Skip to content

Commit

Permalink
Fix afk hugger conversion (#4487)
Browse files Browse the repository at this point in the history
# About the pull request

This PR is a followup to #3886 fixing dead huggers still converting to
normal huggers when client-less. The assumption was that life wouldn't
keep ticking when dead, but thats not the case.

# Explain why it's good for the game

Fixes #4486 

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

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>

# Changelog
:cl: Drathek
fix: Fix dead huggers converting to non-player huggers
/:cl:
  • Loading branch information
Drulikar authored Sep 26, 2023
1 parent d873782 commit 21d32ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@
PF.flags_can_pass_all = PASS_ALL^PASS_OVER_THROW_ITEM

/mob/living/carbon/xenomorph/facehugger/Life(delta_time)
if(stat != DEAD && !lying && !(mutation_type == FACEHUGGER_WATCHER) && !(locate(/obj/effect/alien/weeds) in get_turf(src)))
if(stat == DEAD)
return ..()

if(!lying && !(mutation_type == FACEHUGGER_WATCHER) && !(locate(/obj/effect/alien/weeds) in get_turf(src)))
adjustBruteLoss(1)
return ..()

if(!client && !aghosted && away_timer > XENO_FACEHUGGER_LEAVE_TIMER)
// Become a npc once again
new /obj/item/clothing/mask/facehugger(loc, hivenumber)
Expand Down

0 comments on commit 21d32ee

Please sign in to comment.