Skip to content

Commit

Permalink
Can no longer bypass Lesser Drone Limit (#4034)
Browse files Browse the repository at this point in the history
# About the pull request

Users can no longer keep menu open and bypass lesser drone slots

# Explain why it's good for the game

Honestly kinda wish I didn't make this one, infinite lesser drones
sounds really funny.

# Changelog
:cl:
fix: You can no longer circumvent the lesser drone limit by keeping the
prompt open.
/:cl:
  • Loading branch information
Ben10083 committed Jul 29, 2023
1 parent 40c6dd3 commit 3e9d546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,11 @@
if(islesserdrone(mob))
current_lesser_drone_count++

if(lesser_drone_limit <= current_lesser_drone_count)
to_chat(user, SPAN_WARNING("[GLOB.hive_datum[hivenumber]] cannot support more lesser drones! Limit: <b>[current_lesser_drone_count]/[lesser_drone_limit]</b>"))
if(tgui_alert(user, "Are you sure you want to become a lesser drone?", "Confirmation", list("Yes", "No")) != "Yes")
return FALSE

if(tgui_alert(user, "Are you sure you want to become a lesser drone?", "Confirmation", list("Yes", "No")) != "Yes")
if(lesser_drone_limit <= current_lesser_drone_count)
to_chat(user, SPAN_WARNING("[GLOB.hive_datum[hivenumber]] cannot support more lesser drones! Limit: <b>[current_lesser_drone_count]/[lesser_drone_limit]</b>"))
return FALSE

if(!user.client)
Expand Down

0 comments on commit 3e9d546

Please sign in to comment.