[MIRROR] Adds collapsing stone tiles (#1933)
* Adds collapsing stone tiles * Update necropolis_gate.dm * Update necropolis_gate.dm.rej * Delete necropolis_gate.dm.rej
This commit is contained in:
committed by
kevinz000
parent
f893863397
commit
2892a3710d
@@ -65,6 +65,9 @@
|
||||
//if anything matching this typecache is found in the chasm, we don't drop things
|
||||
var/static/list/chasm_safeties_typecache = typecacheof(list(/obj/structure/lattice/catwalk, /obj/structure/stone_tile))
|
||||
var/list/found_safeties = typecache_filter_list(contents, chasm_safeties_typecache)
|
||||
for(var/obj/structure/stone_tile/S in found_safeties)
|
||||
if(S.fallen)
|
||||
LAZYREMOVE(found_safeties, S)
|
||||
return LAZYLEN(found_safeties)
|
||||
|
||||
/turf/open/chasm/proc/drop_stuff(AM)
|
||||
@@ -89,6 +92,8 @@
|
||||
if(istype(AM, /obj/effect/portal))
|
||||
//Portals aren't affected by gravity. Probably.
|
||||
return FALSE
|
||||
if(istype(AM, /obj/structure/stone_tile))
|
||||
return FALSE
|
||||
//Flies right over the chasm
|
||||
if(isliving(AM))
|
||||
var/mob/M = AM
|
||||
@@ -204,4 +209,4 @@
|
||||
/turf/open/chasm/straight_down/jungle
|
||||
icon = 'icons/turf/floors/junglechasm.dmi'
|
||||
planetary_atmos = TRUE
|
||||
initial_gas_mix = LAVALAND_DEFAULT_ATMOS
|
||||
initial_gas_mix = LAVALAND_DEFAULT_ATMOS
|
||||
|
||||
@@ -62,6 +62,9 @@
|
||||
//if anything matching this typecache is found in the lava, we don't burn things
|
||||
var/static/list/lava_safeties_typecache = typecacheof(list(/obj/structure/lattice/catwalk, /obj/structure/stone_tile))
|
||||
var/list/found_safeties = typecache_filter_list(contents, lava_safeties_typecache)
|
||||
for(var/obj/structure/stone_tile/S in found_safeties)
|
||||
if(S.fallen)
|
||||
LAZYREMOVE(found_safeties, S)
|
||||
return LAZYLEN(found_safeties)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user