Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
Adds a unit test for xeno strains.
I could have included this in #5542, but I thought it would be better in its own PR in order to keep the checks and everything separate.
The removed sprites for the Trapper, Charger, Gardener, and Watcher strains are (as far as I'm able to tell) completely identical to that of the base caste, and are only there in order to make the old system work properly.
Currently, this includes the following tests:
caste_type
variable on each/mob/living/carbon/xenomorph
subtype has a corresponding entry inGLOB.xeno_datum_list
. (Not really strain related but I figured no harm in including it)/datum/xeno_strain
subtype has its ownname
anddescription
.actions_to_add
andactions_to_remove
lists are added and removed from the xeno properly. (Taking into account any which are re-added.)behavior_delegate_type
is successfully added to the xeno.icon_state_prefix
, going through the xeno'sicon
file and double checking that there aren't strain sprites in there (That is, sprites beginning with the strain's name). If there are any, thenicon_state_prefix
should probably be set to use them.icon_state_prefix
, making sure that the xeno's sprite actually got changed to the strain version.Explain why it's good for the game
More unit tests! (woo)
Testing Photographs and Procedure
Screenshots & Videos
Put screenshots and videos here with an empty line between the screenshots and the
<details>
tags.Changelog
🆑
code: Added a unit test for xeno strains.
/:cl: