fixes rad fat not making players immune to radiation effects

This commit is contained in:
Phantastic-Swan
2025-05-11 10:02:36 +02:00
parent 01b0c5cd9b
commit cb43d51829
2 changed files with 4 additions and 1 deletions
@@ -1683,6 +1683,9 @@ GLOBAL_LIST_EMPTY(roundstart_race_names)
radiation = 0
return TRUE
if(HAS_TRAIT(H, TRAIT_RADRESONANCE))
return TRUE
if(HAS_TRAIT(H, TRAIT_ROBOTIC_ORGANISM))
return //Robots are hardened against radiation, but suffer system corruption at very high levels.
+1 -1
View File
@@ -439,7 +439,7 @@
dna.remove_mutation(HM.type)
radiation -= min(radiation, RAD_LOSS_PER_TICK)
if(radiation > RAD_MOB_SAFE)
if(radiation > RAD_MOB_SAFE && !HAS_TRAIT(src, TRAIT_RADRESONANCE))
if(!HAS_TRAIT(src, TRAIT_ROBOTIC_ORGANISM))
adjustToxLoss(log(radiation-RAD_MOB_SAFE)*RAD_TOX_COEFFICIENT)
else