mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
- 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. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3135 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -267,6 +267,17 @@
|
|||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
var/list/forbidden_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
|
||||||
|
)
|
||||||
|
|
||||||
|
for(var/p in forbidden_object_types)
|
||||||
|
if( istype(O,p) )
|
||||||
|
usr << "\red It is forbidden to edit this object's variables."
|
||||||
|
return
|
||||||
|
|
||||||
var/class
|
var/class
|
||||||
var/variable
|
var/variable
|
||||||
var/var_value
|
var/var_value
|
||||||
|
|||||||
Reference in New Issue
Block a user