replace magic numbers related to emp and explosion severity with defines (#26495)

replace even more magic emp and ex numbers
This commit is contained in:
Kenionatus
2024-08-18 03:11:22 +00:00
committed by GitHub
parent 1b5af3a748
commit 777910d6d2
37 changed files with 50 additions and 52 deletions
+4 -4
View File
@@ -37,16 +37,16 @@
var/will_affect = FALSE
if(distance < heavy_range)
will_affect = T.emp_act(1)
will_affect = T.emp_act(EMP_HEAVY)
else if(distance == heavy_range)
if(prob(50))
will_affect = T.emp_act(1)
will_affect = T.emp_act(EMP_HEAVY)
else
will_affect = T.emp_act(2)
will_affect = T.emp_act(EMP_LIGHT)
else if(distance <= light_range)
will_affect = T.emp_act(2)
will_affect = T.emp_act(EMP_LIGHT)
if(will_affect)
if(cause == "cult")