mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-15 17:12:49 +01:00
Merge pull request #5304 from VOREStation/vplk-reverse-all_atoms
Reverse use of global lists where they hurt performance.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
GLOBAL_LIST_BOILERPLATE(all_atoms, /atom) // Use with care, its likely barely better than using world.
|
||||
|
||||
/atom
|
||||
layer = TURF_LAYER //This was here when I got here. Why though?
|
||||
var/level = 2
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
|
||||
/datum/file/program/crew/proc/scan()
|
||||
for(var/obj/item/clothing/under/C in all_clothing)
|
||||
for(var/obj/item/clothing/under/C in world)
|
||||
if((C.has_sensor) && (istype(C.loc, /mob/living/carbon/human)))
|
||||
tracked |= C
|
||||
return 1
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
GLOBAL_LIST_BOILERPLATE(all_items, /obj/item)
|
||||
|
||||
/obj/item
|
||||
name = "item"
|
||||
icon = 'icons/obj/items.dmi'
|
||||
@@ -595,7 +593,7 @@ var/list/global/slot_flags_enumeration = list(
|
||||
I.Blend(new /icon('icons/effects/blood.dmi', "itemblood"),ICON_MULTIPLY) //adds blood and the remaining white areas become transparant
|
||||
|
||||
//not sure if this is worth it. It attaches the blood_overlay to every item of the same type if they don't have one already made.
|
||||
for(var/obj/item/A in all_items)
|
||||
for(var/obj/item/A in world)
|
||||
if(A.type == type && !A.blood_overlay)
|
||||
A.blood_overlay = image(I)
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
GLOBAL_LIST_BOILERPLATE(all_objs, /obj)
|
||||
|
||||
/obj
|
||||
layer = OBJ_LAYER
|
||||
plane = OBJ_PLANE
|
||||
|
||||
Reference in New Issue
Block a user