Resistances gained from worn or wielded items also protect inventory

This commit is contained in:
Pasi Kallinen
2021-09-06 20:06:19 +03:00
parent 9f230c3cd4
commit 9942b65df7
5 changed files with 58 additions and 0 deletions

View File

@@ -1373,18 +1373,28 @@ attributes_enlightenment(int unused_mode UNUSED, int final)
you_are("magic-protected", from_what(ANTIMAGIC));
if (Fire_resistance)
you_are("fire resistant", from_what(FIRE_RES));
if (u_adtyp_resistance_obj(AD_FIRE))
enl_msg("Your items ", "are", "were", " protected from fire", "");
if (Cold_resistance)
you_are("cold resistant", from_what(COLD_RES));
if (u_adtyp_resistance_obj(AD_COLD))
enl_msg("Your items ", "are", "were", " protected from cold", "");
if (Sleep_resistance)
you_are("sleep resistant", from_what(SLEEP_RES));
if (Disint_resistance)
you_are("disintegration-resistant", from_what(DISINT_RES));
if (u_adtyp_resistance_obj(AD_DISN))
enl_msg("Your items ", "are", "were", " protected from disintegration", "");
if (Shock_resistance)
you_are("shock resistant", from_what(SHOCK_RES));
if (u_adtyp_resistance_obj(AD_ELEC))
enl_msg("Your items ", "are", "were", " protected from electric shocks", "");
if (Poison_resistance)
you_are("poison resistant", from_what(POISON_RES));
if (Acid_resistance)
you_are("acid resistant", from_what(ACID_RES));
if (u_adtyp_resistance_obj(AD_ACID))
enl_msg("Your items ", "are", "were", " protected from acid", "");
if (Drain_resistance)
you_are("level-drain resistant", from_what(DRAIN_RES));
if (Sick_resistance)