From 058dd87d9b044742c29cb00f1a4dbf90c6943644 Mon Sep 17 00:00:00 2001 From: khadd <54692343+realkhad@users.noreply.github.com> Date: Thu, 27 Jul 2023 19:22:08 +0200 Subject: [PATCH] fixes xeno wound icon delay (#4011) # About the pull request when xenos were getting back up from a stun/rest their bloody wounds would briefly disappear until the next time their wound icon got updated now the wound icon is updated right as soon as they get up # Explain why it's good for the game a heavily wounded xeno getting up from a stun and appearing full health for a bit shouldn't be a thing # Testing Photographs and Procedure https://github.com/cmss13-devs/cmss13/assets/54692343/233604be-bc88-427e-9397-4059bba5c01a # Changelog :cl:Khadd fix: xenos now update their wound icon when getting up /:cl: --- code/modules/mob/living/carbon/xenomorph/Xenomorph.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm index aea1ce9a5906..dd53868caf36 100644 --- a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm +++ b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm @@ -1125,3 +1125,8 @@ SPAN_WARNING("You squeeze and scuttle underneath [current_structure]."), max_distance = 5) forceMove(current_structure.loc) return TRUE + +/mob/living/carbon/xenomorph/knocked_down_callback() + . = ..() + if(!resting) // !resting because we dont wanna prematurely update wounds if they're just trying to rest + update_wounds()