mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes another thing
This commit is contained in:
@@ -46,7 +46,9 @@ proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impa
|
|||||||
|
|
||||||
var/close = range(world.view+round(devastation_range,1), epicenter)
|
var/close = range(world.view+round(devastation_range,1), epicenter)
|
||||||
// to all distanced mobs play a different sound
|
// to all distanced mobs play a different sound
|
||||||
for(var/mob/M in world) if(M.z == epicenter.z) if(!(M in close))
|
for(var/mob/M in world)
|
||||||
|
if(M.z == epicenter.z)
|
||||||
|
if(!(M in close))
|
||||||
// check if the mob can hear
|
// check if the mob can hear
|
||||||
if(M.ear_deaf <= 0 || !M.ear_deaf)
|
if(M.ear_deaf <= 0 || !M.ear_deaf)
|
||||||
if(!istype(M.loc,/turf/space))
|
if(!istype(M.loc,/turf/space))
|
||||||
|
|||||||
Reference in New Issue
Block a user