mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 03:53:33 +00:00
TG: - Admins can no longer MASS - varedit objects of type /obj/admin and
/datum/feedback_variable and /obj/machinery/blackbox_recorder. Revision: r3143 Author: baloh.matevz
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
return
|
||||
|
||||
src.massmodify_variables(A, var_name, method)
|
||||
//feedback_add_details("admin_verb","MEV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
|
||||
/client/proc/massmodify_variables(var/atom/O, var/var_name = "", var/method = 0)
|
||||
@@ -27,6 +28,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/list/names = list()
|
||||
for (var/V in O.vars)
|
||||
names += V
|
||||
|
||||
Reference in New Issue
Block a user