Skip to content

Commit

Permalink
Stops multiple facehuggers spawning from one client (#3949)
Browse files Browse the repository at this point in the history
# About the pull request

Stops stacking prompts to spawn multiple facehuggers.

# Explain why it's good for the game

Bug bad

# 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: Morrow
fix: Stops multiple facehuggers spawning from one client
/:cl:
  • Loading branch information
morrowwolf authored Jul 24, 2023
1 parent 85d415a commit b97bf7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,12 @@
to_chat(user, SPAN_WARNING("\The [GLOB.hive_datum[hivenumber]] cannot support more facehuggers! Limit: <b>[current_hugger_count]/[playable_hugger_limit]</b>"))
return FALSE

if(alert(user, "Are you sure you want to become a facehugger?", "Confirmation", "Yes", "No") != "Yes")
if(tgui_alert(user, "Are you sure you want to become a facehugger?", "Confirmation", list("Yes", "No")) != "Yes")
return FALSE

if(!user.client)
return FALSE

return TRUE

/datum/hive_status/proc/spawn_as_hugger(mob/dead/observer/user, atom/A)
Expand Down

0 comments on commit b97bf7c

Please sign in to comment.