Found this while trying to track down where resistances are handled:
/* Resist the damage */
if (p_ptr->resist_acid) dam = (dam + 2) / 3;
if (p_ptr->oppose_acid) dam = (dam + 2) / 3;
It looks as if resist_acid and oppose_acid do the exact same thing. Why two different flags for this? Is the oppose the spell resistance?
Resistances
Re: Resistances
"resist" is the permanent resist from objects. "oppose" is the temporary resist from spells.
-
- Vorpal Bunny
- Posts: 23
- Joined: Thu 21.04.2016, 19:28
Re: Resistances
Is there code to handle each damage type or is there a generic code block that handles all resists....and where are these things checked? I need to find the code for resistances as well as the resist display that pops up when you "C" to view your character.