mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Optimized Getallcontents (#2552)
* Optimized Getallcontents (#55964) Optimized Getallcontents, split up it's component procs * Optimized Getallcontents Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
This commit is contained in:
@@ -181,7 +181,7 @@ GLOBAL_LIST_EMPTY(bodycontainers) //Let them act as spawnpoints for revenants an
|
||||
icon_state = "morgue1"
|
||||
else
|
||||
icon_state = "morgue2" // Dead, brainded mob.
|
||||
var/list/compiled = GetAllContents(/mob/living) // Search for mobs in all contents.
|
||||
var/list/compiled = get_all_contents_type(/mob/living) // Search for mobs in all contents.
|
||||
if(!length(compiled)) // No mobs?
|
||||
icon_state = "morgue3"
|
||||
return
|
||||
@@ -295,7 +295,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
|
||||
|
||||
/obj/structure/bodycontainer/crematorium/creamatorium/cremate(mob/user)
|
||||
var/list/icecreams = new()
|
||||
for(var/i_scream in GetAllContents(/mob/living))
|
||||
for(var/i_scream in get_all_contents_type(/mob/living))
|
||||
var/obj/item/food/icecream/IC = new()
|
||||
IC.set_cone_type("waffle")
|
||||
IC.add_mob_flavor(i_scream)
|
||||
|
||||
Reference in New Issue
Block a user