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

Weyland-Yutani ID Console #6372

Merged
merged 4 commits into from
Jun 4, 2024

Conversation

realforest2001
Copy link
Member

@realforest2001 realforest2001 commented Jun 3, 2024

About the pull request

Repairs the ID mod console "centcom" variable (renames it to weyland).
Allows this new WY version of the console to correctly assign Corporate ID Accesses and job presets.
Renames a couple PMC jobs (no impact due to no playtime tracking)
Adds a whole bunch of WY jobs, including the PMCs, so they'll now track playtime.

Explain why it's good for the game

Makes it a bit easier to dynamically update IDs in WY related events. I know I've encountered plenty of times where I've wanted to add corporate accesses to certain people but had to resort to variable editing.

Testing Photographs and Procedure

image
image

Changelog

🆑
fix: Changing an Identification Computer to is_weyland (formerly is_centcom) now works correctly and allows assignment of corporate accesses or presets.
code: Added two procs for interpreting WY access information in the UI.
code: Added separate role groups for PMC and Corporate job defines.
add: Added ACCESS_WY_DATABASE as a requirement to use the WY subtype console.
add: Added a WY subtype for crew monitor.
code: Renamed the faction defines explicitly relating to static defences due to confusion over FACTION_WY and FACTION_WEYLAND.
/:cl:

@github-actions github-actions bot added Fix Fix one bug, make ten more Code Improvement Make the code longer Feature Feature coder badge labels Jun 3, 2024
@@ -332,18 +352,26 @@
data["jobs"][department] = department_jobs

var/list/regions = list()
for(var/i in 1 to 7)
for(var/i in 1 to is_weyland ? 6 : 7)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i do not enjoy how this is coded, but it's not really on you

@harryob harryob added this pull request to the merge queue Jun 4, 2024
Merged via the queue into cmss13-devs:master with commit fa0637a Jun 4, 2024
30 checks passed
cm13-github added a commit that referenced this pull request Jun 4, 2024
Git-Nivrak pushed a commit to Git-Nivrak/cmss13 that referenced this pull request Jun 9, 2024
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->

# About the pull request
Repairs the ID mod console "centcom" variable (renames it to weyland).
Allows this new WY version of the console to correctly assign Corporate
ID Accesses and job presets.
Renames a couple PMC jobs (no impact due to no playtime tracking)
Adds a whole bunch of WY jobs, including the PMCs, so they'll now track
playtime.

# Explain why it's good for the game

Makes it a bit easier to dynamically update IDs in WY related events. I
know I've encountered plenty of times where I've wanted to add corporate
accesses to certain people but had to resort to variable editing.


# Testing Photographs and Procedure
<!-- Include any screenshots/videos/debugging steps of the modified code
functioning successfully, ideally including edge cases. -->

<!-- !! If you are modifying sprites, you **must** include one or more
in-game screenshots or videos of the new sprites. !! -->


![image](https://github.com/cmss13-devs/cmss13/assets/41653574/49dab43e-0418-4520-81c9-6d0fce1b32bb)

![image](https://github.com/cmss13-devs/cmss13/assets/41653574/ce6681f2-5c57-40db-8a1a-b872345f108b)


# Changelog

:cl:
fix: Changing an Identification Computer to is_weyland (formerly
is_centcom) now works correctly and allows assignment of corporate
accesses or presets.
code: Added two procs for interpreting WY access information in the UI.
code: Added separate role groups for PMC and Corporate job defines.
add: Added ACCESS_WY_DATABASE as a requirement to use the WY subtype
console.
add: Added a WY subtype for crew monitor.
code: Renamed the faction defines explicitly relating to static defences
due to confusion over FACTION_WY and FACTION_WEYLAND.
/:cl:

<!-- Both :cl:'s are required for the changelog to work! -->
Git-Nivrak pushed a commit to Git-Nivrak/cmss13 that referenced this pull request Jun 9, 2024
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 Feature Feature coder badge Fix Fix one bug, make ten more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants