mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 23:21:20 +00:00
- Admins can no longer MASS - varedit objects of type /obj/admin and /datum/feedback_variable and /obj/machinery/blackbox_recorder.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3143 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -27,6 +27,11 @@
|
|||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
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/list/names = list()
|
var/list/names = list()
|
||||||
for (var/V in O.vars)
|
for (var/V in O.vars)
|
||||||
names += V
|
names += V
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
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)
|
/client/proc/cmd_modify_object_variables(obj/O as obj|mob|turf|area in world)
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Edit Variables"
|
set name = "Edit Variables"
|
||||||
@@ -267,13 +273,7 @@
|
|||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
var/list/forbidden_object_types = list(
|
for(var/p in forbidden_varedit_object_types)
|
||||||
/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) )
|
if( istype(O,p) )
|
||||||
usr << "\red It is forbidden to edit this object's variables."
|
usr << "\red It is forbidden to edit this object's variables."
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user