This commit is contained in:
D3athrow
2015-07-31 01:10:25 -05:00
parent 84a4ea3edb
commit feb35d507a
2 changed files with 12 additions and 9 deletions

View File

@@ -1,7 +1,8 @@
var/list/forbidden_varedit_object_types = list(
/datum/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
/datum/feedback_variable, //Prevents people messing with feedback gathering
/datum/configuration, //prevents people from fucking with logging.
)
/*
@@ -330,10 +331,11 @@ var/list/forbidden_varedit_object_types = list(
var/list/locked = list("vars", "key", "ckey", "client", "firemut", "ishulk", "telekinesis", "xray", "virus", "cuffed", "ka", "last_eaten", "icon", "icon_state", "mutantrace")
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
usr << "<span class='warning'>It is forbidden to edit this object's variables.</span>"
return
if(!check_rights(R_PERMISSIONS))
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
usr << "<span class='warning'>It is forbidden to edit this object's variables.</span>"
return
var/class
var/variable