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
This commit is contained in:
Mykhailo Bykhovtsev
2018-12-09 12:50:05 +02:00
committed by Erki
parent 0d3ae944c0
commit 498bb3d9d4
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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()
+4 -4
View File
@@ -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 << "<b>Enabled air processing.</b>"
to_chat(usr, "<b>Enabled air processing.</b>")
else
if(alert("Confirm disabling air processing?",,"Yes","No") == "No")
return
SSair.disable()
usr << "<b>Disabled air processing.</b>"
to_chat(usr, "<b>Disabled air processing.</b>")
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("<span class='notice'>[key_name_admin(usr)] used 'kill air'.</span>", 1)