Skip to content

Commit

Permalink
delete all xenos button
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Oct 26, 2023
1 parent 2b342b4 commit 634a8f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/modules/admin/game_master/game_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ GLOBAL_VAR_INIT(radio_communication_clarity, 100)
xeno_spawn_count = clamp(new_number, 1, 10)
return

if("delete_all_xenos")
if(tgui_alert(ui.user, "Do you want to delete all xenos?", "Confirmation", list("Yes", "No")) != "Yes")
return

for(var/mob/living/carbon/xenomorph/cycled_xeno in GLOB.alive_mob_list)
qdel(cycled_xeno)

return

//Objective Section
if("toggle_click_objective")
if(objective_click_intercept)
Expand Down
8 changes: 8 additions & 0 deletions tgui/packages/tgui/interfaces/GameMaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ export const GameMaster = (props, context) => {
</Flex.Item>
</Flex>
</Flex.Item>
<Flex.Item>
<Button
content="Delete all xenos"
onClick={() => {
act('delete_all_xenos');
}}
/>
</Flex.Item>
</Flex>
</Section>
</Flex.Item>
Expand Down

0 comments on commit 634a8f8

Please sign in to comment.