Reworks armor damage reduction + armor components + more goodies. (#11106)

Ports Baystation12/Baystation12#27254 and Baystation12/Baystation12#24787 and everything inbetween I guess.

Note that this PR makes guns and armor overall stronger. Lasers also once again do organ damage.
This commit is contained in:
Matt Atlas
2021-02-14 17:54:45 +02:00
committed by GitHub
parent 3ab59b8ff7
commit c30cd94024
138 changed files with 2187 additions and 848 deletions
@@ -14,7 +14,7 @@
C.adjustBruteLoss(rand(5,25) * weakness)
C.adjustFireLoss(rand(5,25) * weakness)
C.adjustBrainLoss(rand(5,25) * weakness)
C.apply_effect(25 * weakness, IRRADIATE, blocked = C.getarmor(null, "rad"))
C.apply_damage(25 * weakness, IRRADIATE, damage_flags = DAM_DISPERSED)
C.adjustNutritionLoss(50 * weakness)
C.adjustHydrationLoss(50 * weakness)
C.make_dizzy(6 * weakness)
@@ -26,6 +26,6 @@
if(holder)
var/turf/T = get_turf(holder)
for (var/mob/living/M in range(src.effectrange,T))
M.apply_effect(radiation_amount * 25,IRRADIATE,blocked = M.getarmor(null, "rad"))
M.apply_damage(radiation_amount * 25, IRRADIATE, damage_flags = DAM_DISPERSED)
M.updatehealth()
return 1
@@ -200,7 +200,7 @@
if(!rad_shield)
//irradiate nearby mobs
for(var/mob/living/M in view(7,src))
M.apply_effect(radiation / 25, IRRADIATE, blocked = M.getarmor(null, "rad"))
M.apply_damage(radiation / 25, IRRADIATE, damage_flags = DAM_DISPERSED)
else
t_left_radspike = pick(10,15,25)