Paradise icon indicating copy to clipboard operation
Paradise copied to clipboard

Radiation fixes.

Open Qwertytoforty opened this issue 1 month ago • 0 comments

What Does This PR Do

Proper values from rad armor are passed to apply irradiate. This means armor with a value of 100 or greater rad armor (NOT PERECENT), no longer make you radiation immune. This means for example, engineering modsuits, will properly have you irradiated by the supermatter.

A new proc on human mobs, allow for clothing with rad_protection_flags_2, to protect the mob from being irradiated, or their contents from being irradiated. This requires full body coverage This means radsuits, elite modsuits, heck suits, etc, now protect you and your pockets / id / bag from radiation! This flag has been applied to any clothing with infinite rad armor.

Why It's Good For The Game

Enginering modsuits being radproof (till you hit radiation pulses over 1000 rads) is bad. Rad protective clothing and modsuits not protecting your clothes and yourself from radiation is bad.

Testing

I want this tm'd, as radiation code scares me, but: Created a highly radioactive rad source. Stood by it in an engineering modsuit, my contents, modsuit, and myself got radiated as expected. Stood by it in an advanced modsuit: Contents are non radioactive, I have no radiation, nor are my clothes. Stood by it in a rad suit: Contents are non radioactive, I have no radiation, nor are my clothes. Stood by it in a hecksuit: Contents are non radioactive, I have no radiation, nor are my clothes.

Changelog

:cl: fix: Things like the engineering modsuit are no longer immune to radiation under 1000 power. fix: Wearing radiation proof clothing, means your items on your person, your bag, and your clothing will no longer become radioactive. /:cl:

Qwertytoforty avatar Jul 02 '24 02:07 Qwertytoforty