From 48877faa0569a33c11951a77ffb6facfeac1f8db Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Thu, 30 Nov 2023 22:40:05 +0100 Subject: [PATCH] adds safety check before resstet. --- code/modules/admin/verbs/modify_robot.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/admin/verbs/modify_robot.dm b/code/modules/admin/verbs/modify_robot.dm index 876c156fee..f7101edbd8 100644 --- a/code/modules/admin/verbs/modify_robot.dm +++ b/code/modules/admin/verbs/modify_robot.dm @@ -190,4 +190,6 @@ if(selected_component == "power cell") target.cell = null if(MODIFIY_ROBOT_RESET_MODULE) + if(tgui_alert(usr, "Are you sure that you want to reset the entire module?","Confirm",list("Yes","No"))=="No") + return target.module_reset()