This commit is contained in:
Timothy Teakettle
2020-09-11 22:09:51 +01:00
parent 4bad1d23cb
commit 59a089d547

View File

@@ -19,7 +19,7 @@
var/distance = get_dist(epicenter, T)
var/severity = 100
if(distance != 0) //please dont divide by 0
severity = min(max((max_distance / distance^0.3) * (100/max_distance), 1),100) //if it goes below 1 or above 100 stuff gets bad
severity = min(max((max_distance / distance^0.2) * (100/max_distance), 1),100) //if it goes below 1 or above 100 stuff gets bad
T.emp_act(severity)
return 1