From 498bb3d9d4d95c23e11a40dbac67f51c18739692 Mon Sep 17 00:00:00 2001 From: Mykhailo Bykhovtsev Date: Sun, 9 Dec 2018 02:50:05 -0800 Subject: [PATCH] Fixing dev's perms (#5687) As per skull request, the PR was reworked. Dev rank does not contain spawning capabilities on its own. Kill Air now prompts user if they really want to disable air processing. Only if we are trying to disable it --- code/modules/admin/admin.dm | 2 +- code/modules/admin/admin_verbs.dm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 7951337607d..78a5a87e485 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1009,7 +1009,7 @@ proc/admin_notice(var/message, var/rights) set desc = "(atom path) Spawn an atom" set name = "Spawn" - if(!check_rights(R_SPAWN|R_DEV)) return + if(!check_rights(R_SPAWN)) return var/list/types = typesof(/atom) var/list/matches = new() diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index c1a1c2af158..4b0918d2f56 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -341,8 +341,6 @@ var/list/admin_verbs_mod = list( var/list/admin_verbs_dev = list( //will need to be altered - Ryan784 ///datum/admins/proc/restart, - /datum/admins/proc/spawn_atom, //allows us to spawn instances, - /client/proc/game_panel, // GUI spawn /client/proc/Jump, /client/proc/jumptokey, /*allows us to jump to the location of a mob with a certain ckey*/ /client/proc/jumptomob, /*allows us to jump to a specific mob*/ @@ -766,10 +764,12 @@ var/list/admin_verbs_cciaa = list( set desc = "Toggle Air Processing" if(!SSair.can_fire) SSair.enable() - usr << "Enabled air processing." + to_chat(usr, "Enabled air processing.") else + if(alert("Confirm disabling air processing?",,"Yes","No") == "No") + return SSair.disable() - usr << "Disabled air processing." + to_chat(usr, "Disabled air processing.") feedback_add_details("admin_verb","KA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! log_admin("[key_name(usr)] used 'kill air'.",admin_key=key_name(usr)) message_admins("[key_name_admin(usr)] used 'kill air'.", 1)