Adds admin_spawned atom var that is set when something is spawned by admin means or is var edited.

This can be bypassed by using debug-game if needed.
Stats will not be tracked for admin spawned atoms
This commit is contained in:
Shadowlight213
2016-07-20 15:26:24 -07:00
parent a117772f95
commit ed55cefcc2
12 changed files with 27 additions and 9 deletions
+2 -1
View File
@@ -633,7 +633,8 @@ var/global/BSACooldown = 0
var/turf/T = get_turf(usr.loc)
T.ChangeTurf(chosen)
else
new chosen(usr.loc)
var/atom/A = new chosen(usr.loc)
A.admin_spawned = TRUE
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
feedback_add_details("admin_verb","SA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+1
View File
@@ -1953,6 +1953,7 @@
else
var/atom/O = new path(target)
if(O)
O.admin_spawned = TRUE
O.setDir(obj_dir)
if(obj_name)
O.name = obj_name