Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Jul 23, 2023
1 parent bb2d28f commit 4485cf3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1036,17 +1036,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(user.action_busy)
to_chat(user, SPAN_WARNING("You are already attempting to join the game!"))
return

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

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

user.action_busy = FALSE
return TRUE

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

0 comments on commit 4485cf3

Please sign in to comment.