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

[MIRROR] Alternate job titles such as chef and department security get injected to the manifest normally, and show up as the right department. #2291

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1296
Original PR: tgstation/tgstation#81634

About The Pull Request

Previously injecting to the manifest would use solely the mind's assigned role, thus injecting player with alternate job titles such as chef and department security as the job they're based off rather than their actual ID trim.
Then if the manifest were to be updated later on, they would show up as being departmentless because getting the manifest checks for an assigned job, which these don't have as they're just alternate titles for an existing job.

This resolves the first part by checking if it's possible to get a trim from a held ID and using that before attempting to default to the mind's assigned role. As building/updating the manifest is done after equipping, this lets alternate job titles be assigned as their actual job.
Then the second part is resolved by adding a list of alternate titles for the job subsystem to register as being that job, so that a job can have multiple titles which refer to it.

Why It's Good For The Game

It's annoying to not be able to find these in the right spot on the manifest, if at all in the first place.
Edit: Fixes #81378.
Edit: Fixes #67703.

Changelog

🆑 00-Steven
fix: Alternate job titles such as chef and department security actually get injected to the manifest as their respective ID trims, instead of being assigned the job they're based off.
fix: Alternate job titles such as chef and department security actually show up under the right department on the manifest, instead of no department.
/:cl:

…t injected to the manifest normally, and show up as the right department. (#1296)

* Alternate job titles such as chef and department security get injected to the manifest normally, and show up as the right department.

* Fix conflict

---------

Co-authored-by: _0Steven <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
@Iajret Iajret merged commit 2541c21 into master Mar 7, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1296 branch March 7, 2024 10:20
AnywayFarus added a commit that referenced this pull request Mar 7, 2024
Iajret pushed a commit that referenced this pull request May 3, 2024
* 13 year old singularity bug fixed (#83005)

## About The Pull Request
Stage 2 singularities have the wrong step size, allowing them to eat the
containment field if they happen to be right next to it.
(For instance, if they are contained in a 3x3 or 4x4 field)
2 lines of code, and that's fixed.
## Why It's Good For The Game
BEFORE


https://github.com/tgstation/tgstation/assets/23534908/821f43f6-85ca-482b-a905-614f2b1c8359

AFTER


https://github.com/tgstation/tgstation/assets/23534908/4580d23a-41f0-4485-8454-4e991aa38344
## The Source
This was introduced in a googlecode commit in 2011:

https://github.com/tgstation/tgstation/blob/337be2c3bcc7a739ffc927ccce9d6aa2b43c114c/code/modules/power/singularity/singularity.dm#L269
No, mport2004, I *don't* think this is right.

## Changelog
:cl:
fix: Stage 2 singularities should no longer escape containment
/:cl:

* 13 year old singularity bug fixed

---------

Co-authored-by: Ikalpo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants