1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-05 12:15:26 +01:00

The wish parser should be able to handle tenuous drow armor

This commit is contained in:
chris 2022-09-07 19:50:23 -04:00
parent 301c01ce81
commit 1da1a318aa

View file

@ -3989,6 +3989,7 @@ int wishflags;
} else if (!strncmpi(bp, "rusty ", l=6) ||
!strncmpi(bp, "rusted ", l=7) ||
!strncmpi(bp, "burnt ", l=6) ||
!strncmpi(bp, "tenuous ", l=8) ||
!strncmpi(bp, "burned ", l=7)) {
eroded = 1 + very;
very = 0;
@ -5557,7 +5558,7 @@ typfnd:
/* set eroded */
if (is_damageable(otmp) || otmp->otyp == MASK || otmp->otyp == CRYSKNIFE) {
if (eroded && (is_flammable(otmp) || is_rustprone(otmp)))
if (eroded && (is_flammable(otmp) || is_rustprone(otmp) || is_evaporable(otmp)))
otmp->oeroded = eroded;
if (eroded2 && (is_corrodeable(otmp) || is_rottable(otmp)))
otmp->oeroded2 = eroded2;