Removes the global lists all_clothing, all_items, all_objs, and all_atoms for performance reasons.

- The cost of maintaining these lists is more than the benefit of having them (mostly used only for debugging code)
This commit is contained in:
Leshana
2018-05-27 13:18:11 -04:00
parent be5c144a16
commit 0994c9dbe7
13 changed files with 25 additions and 33 deletions

View File

@@ -183,7 +183,7 @@
var/blocked = list(/obj, /mob, /mob/living, /mob/living/carbon, /mob/living/carbon/human, /mob/observer/dead, /mob/living/silicon, /mob/living/silicon/robot, /mob/living/silicon/ai)
var/hsbitem = input(usr, "Choose an object to delete.", "Delete:") as null|anything in typesof(/obj) + typesof(/mob) - blocked
if(hsbitem)
for(var/atom/O in all_atoms)
for(var/atom/O in world)
if(istype(O, hsbitem))
qdel(O)
log_admin("[key_name(src)] has deleted all instances of [hsbitem].")