Non-SM rads are a danger. Delam gives more rads.

This commit is contained in:
S34NW
2021-06-09 14:48:42 +01:00
parent 265053f966
commit 9100dc2fcd
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -53,3 +53,5 @@ Ask ninjanomnom if they're around
#define RAD_GEIGER_MEASURE_SMOOTHING 5
#define RAD_GEIGER_GRACE_PERIOD 2
#define RAD_DAMAGE_MULTIPLIER 10 // This brings pre-refactor rad values in line with the current danger values
+2
View File
@@ -1005,6 +1005,8 @@
amount -= RAD_BACKGROUND_RADIATION // This will always be at least 1 because of how skin protection is calculated
amount *= RAD_DAMAGE_MULTIPLIER
var/blocked = getarmor(null, "rad")
if(amount > RAD_BURN_THRESHOLD)
@@ -312,7 +312,7 @@
//Hilariously enough, running into a closet should make you get hit the hardest.
var/mob/living/carbon/human/H = mob
H.hallucination += max(50, min(300, DETONATION_HALLUCINATION * sqrt(1 / (get_dist(mob, src) + 1))))
var/rads = DETONATION_RADS * sqrt(1 / (get_dist(L, src) + 1))
var/rads = DETONATION_RADS * sqrt(1 / (get_dist(L, src) + 1)) * sqrt(power/5) / RAD_DAMAGE_MULTIPLIER
L.rad_act(rads)
var/turf/T = get_turf(src)
@@ -525,7 +525,7 @@
l.hallucination += power * hallucination_power * D
l.hallucination = clamp(l.hallucination, 0, 200)
for(var/mob/living/l in range(src, round((power / 100) ** 0.25)))
var/rads = (power / 10) * sqrt( 1 / max(get_dist(l, src), 1) )
var/rads = ((power / 10) * sqrt( 1 / max(get_dist(l, src), 1) )) / RAD_DAMAGE_MULTIPLIER //RAD_DAMAGE_MULTIPLIER division ensures consistency with other rad sources.
l.rad_act(rads)
//Transitions between one function and another, one we use for the fast inital startup, the other is used to prevent errors with fusion temperatures.