Armour Refactor (#18547)

* initial commit

* bullet fix + 100% armour pen

* equivalent armour values

* percentage armour pen

* updates bombing

* adds more defines

* i like armour too much

* review pass 1

* review pass 2

* updates with lavaland elites

* armour penetration value tweaks

* wt550 AP round change
This commit is contained in:
Edan
2022-08-01 20:23:49 +01:00
committed by GitHub
parent 6d3033df0a
commit 1d552ab0e4
95 changed files with 406 additions and 384 deletions
@@ -33,7 +33,6 @@
/datum/weather/rad_storm/weather_act(mob/living/L)
var/resist = L.getarmor(null, RAD)
if(!prob(60))
return
@@ -41,10 +40,11 @@
return
var/mob/living/carbon/human/H = L
if(HAS_TRAIT(H, TRAIT_RADIMMUNE))
var/resist = H.getarmor(null, RAD)
if(HAS_TRAIT(H, TRAIT_RADIMMUNE) || resist == INFINITY)
return
if(prob(max(0, 100 - resist)) && !HAS_TRAIT(H, TRAIT_GENELESS))
if(prob(max(0, 100 - ARMOUR_VALUE_TO_PERCENTAGE(resist))) && !HAS_TRAIT(H, TRAIT_GENELESS))
randmuti(H) // Applies bad mutation
if(prob(50))
if(prob(90))