TG: - It is now forbidden by code for admins to edit an object of type /obj/admins,

which gives them their admin power.
- It is also forbidden by code for admins to edit the variables of feedback
datum types and the blackbox for consistent data gathering.
Revision: r3135
Author: 	 baloh.matevz
This commit is contained in:
Ren Erthilo
2012-04-23 21:28:38 +01:00
parent e174e7ca76
commit f88da57e57
2 changed files with 13 additions and 0 deletions

View File

@@ -1,8 +1,15 @@
var/list/forbidden_varedit_object_types = list(
/obj/admins, //Admins editing their own admin-power object? Yup, sounds like a good idea.
/obj/machinery/blackbox_recorder, //Prevents people messing with feedback gathering
/datum/feedback_variable //Prevents people messing with feedback gathering
)
/client/proc/cmd_modify_object_variables(obj/O as obj|mob|turf|area in world)
set category = "Debug"
set name = "Edit Variables"
set desc="(target) Edit a target item's variables"
src.modify_variables(O)
//feedback_add_details("admin_verb","EDITV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_modify_ticker_variables()
set category = "Debug"
@@ -12,6 +19,7 @@
src << "Game hasn't started yet."
else
src.modify_variables(ticker)
// feedback_add_details("admin_verb","ETV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/mod_list_add_ass() //haha
@@ -328,6 +336,11 @@
src << "Only administrators may use this command."
return
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
usr << "\red It is forbidden to edit this object's variables."
return
var/class
var/variable
var/var_value