mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
@@ -78,16 +78,21 @@
|
|||||||
for(var/turf/T in trange(max_range, epicenter))
|
for(var/turf/T in trange(max_range, epicenter))
|
||||||
var/dist = sqrt((T.x - x0)**2 + (T.y - y0)**2)
|
var/dist = sqrt((T.x - x0)**2 + (T.y - y0)**2)
|
||||||
|
|
||||||
if(dist < devastation_range) dist = 1
|
if(dist < devastation_range)
|
||||||
else if(dist < heavy_impact_range) dist = 2
|
dist = 1
|
||||||
else if(dist < light_impact_range) dist = 3
|
else if(dist < heavy_impact_range)
|
||||||
else continue
|
dist = 2
|
||||||
|
else if(dist < light_impact_range)
|
||||||
|
dist = 3
|
||||||
|
else
|
||||||
|
continue
|
||||||
|
|
||||||
if(!T)
|
if(!T)
|
||||||
T = locate(x0,y0,z0)
|
T = locate(x0,y0,z0)
|
||||||
for(var/atom_movable in T.contents) //bypass type checking since only atom/movable can be contained by turfs anyway
|
for(var/atom_movable in T.contents) //bypass type checking since only atom/movable can be contained by turfs anyway
|
||||||
var/atom/movable/AM = atom_movable
|
var/atom/movable/AM = atom_movable
|
||||||
if(AM && AM.simulated) AM.ex_act(dist)
|
if(AM && AM.simulated)
|
||||||
|
AM.ex_act(dist)
|
||||||
|
|
||||||
T.ex_act(dist)
|
T.ex_act(dist)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user