Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paygrade shorthand defines. #5128

Merged
merged 6 commits into from
Dec 6, 2023
Merged

Conversation

realforest2001
Copy link
Member

@realforest2001 realforest2001 commented Dec 4, 2023

About the pull request

This PR converts all paygrade shorthands (e.g. ME1) into PAY_SHORT_XXX defines. The reason for this is to ensure any changes are reflected across the board, and also to allow the shorthand to carry description of what it is. It can be hard to tell what a paygrade is meant to be based upon arbitrary letters.

Explain why it's good for the game

Makes future code changes easier.

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑
code: Paygrade shorthands now use defines.
fix: CLF and Survivors are no longer privates.
fix: Civillian Mr/Ms/Mx prefix now works correctly, and is the default for new ID cards.
/:cl:

@github-actions github-actions bot added Code Improvement Make the code longer Fix Fix one bug, make ten more labels Dec 4, 2023
@harryob harryob added this pull request to the merge queue Dec 6, 2023
Merged via the queue into cmss13-devs:master with commit 72d3ff6 Dec 6, 2023
26 checks passed
cm13-github added a commit that referenced this pull request Dec 6, 2023
@BadAtThisGame302 BadAtThisGame302 mentioned this pull request Dec 15, 2023
3 tasks
@realforest2001 realforest2001 deleted the forest/idfix branch January 19, 2024 03:05
github-merge-queue bot pushed a commit that referenced this pull request Jan 25, 2024
# About the pull request
As title. This PR continues my work from #5128 and adds the defines for
PMCs, Mercenaries, VAI and TWE.
I have also changed how the global lists for highcommand (both USCM and
WY) work and have made a new global list of all USCM officers to allow
for easy reference in #5202.
To do the above I have added a default_faction var on paygrades, along
with a variable to indicate if a paygrade refers to an "officer" or not,
and if the officer is a "flag" officer, for senior leadership.
I have also updated the Syndicate ID card to work properly.
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
add: Adds paygrade defines for PMCs, VAI, Mercenaries and TWE.
code: Adds code to populate reference lists for certain paygrades.
fix: Fixes PMC synth not using the correct grade.
add: Syndicate ID card repathed and works with paygrades.
/:cl:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement Make the code longer Fix Fix one bug, make ten more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants