From 09c5da6398c82d7b6bbbe38655150d31eea205bf Mon Sep 17 00:00:00 2001 From: jwhitak Date: Fri, 23 Aug 2024 08:33:08 -0500 Subject: [PATCH] adds shuttlecrush editing to panel --- code/modules/admin/topic.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index a6de7c56b06c..ccbf021e075a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -4991,6 +4991,14 @@ access_sec_doors,access_salvage_captain,access_cent_ert,access_syndicate,access_ if("can rotate") new_value = input(usr,"0 - rotation disabled, 1 - rotation enabled","Shuttle editing",S.can_rotate) as num S.can_rotate = new_value + if("destroy areas") + new_value = input(usr,"Allow this shuttle to crush into areas? Currently set to: [S.destroy_everything ? "True" : "False"]","Shuttle editing") as null|anything in list("CRUSH","No crush") + if(new_value == "CRUSH") + S.destroy_everything = TRUE + else if(new_value == "No crush") + S.destroy_everything = FALSE + else + return if("DEFINED LOCATIONS") to_chat(usr, "To prevent accidental mistakes, you can only set these locations to docking ports in the shuttle's memory (use the \"Add a destination docking port to a shuttle\" command)")