From ce53a8916b4269352cacd68ae9455eedf08c9417 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Tue, 5 Sep 2023 16:23:03 +0100 Subject: [PATCH] Fix carrier mutation sprite update (#4298) # About the pull request Fixes #3994 # Explain why it's good for the game Fixes issue # Testing Photographs and Procedure Tested in local instance. Set huggers to 16 qty and then purchase the strain. `update_hugger_overlays()` was running with the eggsac mutation type. So it would just return and not actually update the icon. It now updates correctly before applying the eggsac icon.
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: fixed eggsac carrier strain not updating hugger sprites. /:cl: --- .../living/carbon/xenomorph/mutators/strains/carrier/eggsac.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/xenomorph/mutators/strains/carrier/eggsac.dm b/code/modules/mob/living/carbon/xenomorph/mutators/strains/carrier/eggsac.dm index 7e5773e5aec5..e85a9f2c1700 100644 --- a/code/modules/mob/living/carbon/xenomorph/mutators/strains/carrier/eggsac.dm +++ b/code/modules/mob/living/carbon/xenomorph/mutators/strains/carrier/eggsac.dm @@ -24,7 +24,6 @@ var/mob/living/carbon/xenomorph/carrier/carrier = mutator_set.xeno if(!istype(carrier)) return FALSE - carrier.mutation_type = CARRIER_EGGSAC carrier.plasma_types = list(PLASMA_EGG) carrier.phero_modifier += XENO_PHERO_MOD_LARGE // praetorian level pheremones carrier.plasmapool_modifier = 1.2 @@ -37,6 +36,7 @@ carrier.huggers_cur = 0 carrier.huggers_max = 0 carrier.update_hugger_overlays() + carrier.mutation_type = CARRIER_EGGSAC carrier.update_eggsac_overlays() carrier.eggs_max = 12 carrier.egg_planting_range = 2