mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
[READY] Fixes de-initialization of cleanables-ash (#35191)
* Fixes de-initialization of cleanables-ash * boop * :x * better execution * prevent pile-up * special ash * comment cleanup * cleanup 2
This commit is contained in:
@@ -241,15 +241,11 @@ GLOBAL_LIST_EMPTY(crematoriums)
|
||||
M.ghostize()
|
||||
qdel(M)
|
||||
|
||||
var/ash_check = FALSE
|
||||
for(var/obj/O in conts) //conts defined above, ignores crematorium and tray
|
||||
if(istype(O,/obj/effect/decal/cleanable/ash)) ash_check = TRUE//creates the illusion of ash piling up
|
||||
qdel(O)
|
||||
|
||||
var/obj/effect/decal/cleanable/ash/a
|
||||
if(ash_check) a=new/obj/effect/decal/cleanable/ash/large(src)//cont. illusion of more ash
|
||||
else a=new/obj/effect/decal/cleanable/ash(src)
|
||||
a.layer = connected.layer//Makes the ash the same layer as the tray.
|
||||
if(!locate(/obj/effect/decal/cleanable/ash) in get_step(src, dir))//prevent pile-up
|
||||
new/obj/effect/decal/cleanable/ash/crematorium(src)
|
||||
|
||||
sleep(30)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user