Replaces /atom.initialized and .admin_spawned with flags (#37981)

kill .initialized and .admin_spawned from /atom
This commit is contained in:
vuonojenmustaturska
2018-05-24 12:20:50 +03:00
committed by Tad Hardesty
parent cb13207df6
commit 4f0b0b7ec1
29 changed files with 55 additions and 51 deletions
+1 -1
View File
@@ -643,7 +643,7 @@
T.ChangeTurf(chosen)
else
var/atom/A = new chosen(usr.loc)
A.admin_spawned = TRUE
A.flags_1 |= ADMIN_SPAWNED_1
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+1 -1
View File
@@ -2059,7 +2059,7 @@
else
var/atom/O = new path(target)
if(O)
O.admin_spawned = TRUE
O.flags_1 |= ADMIN_SPAWNED_1
O.setDir(obj_dir)
if(obj_name)
O.name = obj_name