reconcile toss_up() with hmon_hitmon()

Throwing silver or blessed non-weapons upward and having them fall
back onto susceptible hero's head wasn't adding the extra bonus damage
that a weapon would get in that situation.

Make hitting vulnerable monsters with blessed just-about-anything get
the 1d4 bonus that blessed weapons get for that.  Doesn't apply to
things that have their own special handing, like potions or eggs.
This commit is contained in:
PatR
2022-01-21 13:37:33 -08:00
parent aab21eba95
commit afc2e1592d
2 changed files with 26 additions and 11 deletions

View File

@@ -1166,13 +1166,15 @@ hmon_hitmon(struct monst *mon,
until after hit message */
dryit = (rn2(obj->spe + 1) > 0);
}
/* things like silver wands can arrive here so
so we need another silver check */
/* things like silver wands can arrive here so we
need another silver check; blessed check too */
if (objects[obj->otyp].oc_material == SILVER
&& mon_hates_silver(mon)) {
tmp += rnd(20);
silvermsg = silverobj = TRUE;
}
if (obj->blessed && mon_hates_blessings(mon))
tmp += rnd(4);
}
}
}