Skip to content

Commit

Permalink
Fix hugger death timer exploit (#3991)
Browse files Browse the repository at this point in the history
# About the pull request

This PR simply makes it so huggers retain their ghost's time of death
value since huggers have two means to delete themselves without
"dieing": successful hug and return to morpher.

# Explain why it's good for the game

Fixes #3989 

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>


![image](https://github.com/cmss13-devs/cmss13/assets/76988376/21591de0-4dd4-4fdc-b9d2-1674b2535599)

</details>

# Changelog
:cl: Drathek
fix: Fix huggers not retaining at least their old death value.
/:cl:
  • Loading branch information
Drulikar authored Jul 25, 2023
1 parent a7fdd3f commit 6ddeb05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,7 @@
hugger.visible_message(SPAN_XENODANGER("A facehugger suddenly emerges out of \the [A]!"), SPAN_XENODANGER("You emerge out of \the [A] and awaken from your slumber. For the Hive!"))
playsound(hugger, 'sound/effects/xeno_newlarva.ogg', 25, TRUE)
hugger.generate_name()
hugger.timeofdeath = user.timeofdeath // Keep old death time

/datum/hive_status/proc/update_lesser_drone_limit()
lesser_drone_limit = Ceiling(totalXenos.len / 3)
Expand Down

0 comments on commit 6ddeb05

Please sign in to comment.