From a9a21ff6791e98fd59ef18f7aec4891cae9f1b8c Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Sun, 19 Dec 2021 15:24:52 -0500 Subject: [PATCH] pirate scrambler will cancel out if you don't say yes (#63468) --- code/modules/events/pirates.dm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/code/modules/events/pirates.dm b/code/modules/events/pirates.dm index 27a54ba4b47..e38be714091 100644 --- a/code/modules/events/pirates.dm +++ b/code/modules/events/pirates.dm @@ -137,16 +137,17 @@ START_PROCESSING(SSobj,src) /obj/machinery/shuttle_scrambler/interact(mob/user) - if(!active) - if(tgui_alert(user, "Turning the scrambler on will make the shuttle trackable by GPS. Are you sure you want to do it?", "Scrambler", list("Yes", "Cancel")) == "Cancel") - return - if(active || !user.canUseTopic(src, BE_CLOSE)) - return - toggle_on(user) - update_appearance() - send_notification() - else + if(active) dump_loot(user) + return + var/scramble_response = tgui_alert(user, "Turning the scrambler on will make the shuttle trackable by GPS. Are you sure you want to do it?", "Scrambler", list("Yes", "Cancel")) + if(scramble_response != "Yes") + return + if(active || !user.canUseTopic(src, BE_CLOSE)) + return + toggle_on(user) + update_appearance() + send_notification() //interrupt_research /obj/machinery/shuttle_scrambler/proc/interrupt_research()