Skip to content

Commit

Permalink
fixes xeno wound icon delay (cmss13-devs#4011)
Browse files Browse the repository at this point in the history
# 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:
  • Loading branch information
realkhad authored Jul 27, 2023
1 parent 968d536 commit 058dd87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/Xenomorph.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 058dd87

Please sign in to comment.