diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index a4fce45cfc0..1278b1b2388 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -640,6 +640,43 @@ var/global/list/rockTurfEdgeCache t.updateMineralOverlays() + + + + + + +//////////////CHASM////////////////// + +/turf/simulated/chasm + name = "chasm" + desc = "Watch your step." + baseturf = /turf/simulated/chasm + smooth = SMOOTH_TRUE + icon = 'icons/turf/floors/Chasms.dmi' + icon_state = "smooth" + + +/turf/simulated/chasm/Entered(atom/movable/AM) + if(istype(AM, /obj/singularity) || istype(AM, /obj/item/projectile)) + return + drop(AM) + + +/turf/simulated/chasm/proc/drop(atom/movable/AM) + visible_message("[AM] falls into [src]!") + if(z+1 > world.maxz) + qdel(AM) + else + AM.Move(locate(src.x, src.y, src.z+1)) + AM.visible_message("[AM] falls from above!") + if(istype(AM, /mob/living)) + var/mob/living/L = AM + L.adjustBruteLoss(30) + + + + #undef NORTH_EDGING #undef SOUTH_EDGING #undef EAST_EDGING diff --git a/icons/turf/floors/Chasms.dmi b/icons/turf/floors/Chasms.dmi new file mode 100644 index 00000000000..cc4feb2e032 Binary files /dev/null and b/icons/turf/floors/Chasms.dmi differ