-
Notifications
You must be signed in to change notification settings - Fork 566
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
Fix global list lookups by name for 3 GLOBs #6421
Fix global list lookups by name for 3 GLOBs #6421
Conversation
This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself |
typically, this could be done with a new var on /equipment_preset like var/abstract_type, and for an abstract type, you set it equal to the typepath of the type itself. so you can check if something's abstract with
do you want to implement that here? the inheritance here does feel a bit odd |
That's not a bad idea, however its already got a flag its checking for |
About the pull request
This PR adds key uniqueness checks for
GLOB.gear_name_presets_list
,GLOB.all_yautja_capes
, andGLOB.all_species
and rectifies various/datum/equipment_preset
that offended this check. Any that conflicted like this would just not get displayed or looked up correctly. This change applies to more than just the create_humans list. Species and predator cloaks had no offenders to correct.This does make inheritance a bit weird (see changes needed forThis relies on the equipment/datum/equipment_preset/synth/survivor/wy
that wanted to share an access list), but should we want to address that we need to define when a type is abstract sosetup_gear_name_presets
knows to skip it and ensure all inherited types unset the abstract setting.flags
being set toEQUIPMENT_PRESET_STUB
when abstract, and then unset for non-abstract types. I also applied this change to predator cloaks and species which do the same thing, but they had no offenders.Explain why it's good for the game
Fixes all these key collisions (and more if any had multiple collisions):
Testing Photographs and Procedure
Screenshots & Videos
Put screenshots and videos here with an empty line between the screenshots and the
<details>
tags.Changelog
🆑 Drathek
fix: Fixed various equipment_presets not getting cached or looked up correctly
/:cl: