track the handedness of the hero

Don't make either LEFT_HANDED or RIGHT_HANDED be an advantage
or a disadvantage.

use suggested macros
This commit is contained in:
nhmall
2023-12-01 16:11:55 -05:00
parent 8ee8d89814
commit e4e8eea4e8
6 changed files with 54 additions and 17 deletions

View File

@@ -5384,12 +5384,12 @@ hmonas(struct monst *mon)
verb = (mattk->aatyp == AT_TUCH) ? "touch" : "claws";
/* decide if silver-hater will be hit by silver ring(s);
for 'multi_claw' where attacks alternate right/left,
assume 'even' claw or touch attacks use right hand
or paw, 'odd' ones use left for ring interaction;
even vs odd is based on actual attacks rather
than on index into mon->dat->mattk[] so that {bite,
claw,claw} instead of {claw,claw,bite} doesn't
make poly'd hero mysteriously become left-handed */
assume 'even' claw or touch attacks use dominant hand
or paw, 'odd' ones use non-dominant hand for ring
interaction; even vs odd is based on actual attacks
rather than on index into mon->dat->mattk[] so that
{bite,claw,claw} instead of {claw,claw,bite} doesn't
make poly'd hero mysteriously switch handedness */
odd_claw = !odd_claw;
specialdmg = special_dmgval(&gy.youmonst, mon,
W_ARMG