more breaking wands (trunk only)

If breaking a wand of polymorph uses up any floor objects, give a
"you feel shuddering vibrations" message like happens when zapping.
This commit is contained in:
nethack.rankin
2008-10-20 04:07:40 +00:00
parent b0478ecef8
commit 6870660aba
4 changed files with 27 additions and 5 deletions

View File

@@ -2908,6 +2908,9 @@ do_break_wand(obj)
surrounding targets (or underlying objects) got affected yet.] */
explode(obj->ox, obj->oy, -(obj->otyp), rnd(dmg), WAND_CLASS, EXPL_MAGICAL);
/* prepare for potential feedback from polymorph... */
zapsetup();
/* this makes it hit us last, so that we can see the action first */
for (i = 0; i <= 8; i++) {
bhitpos.x = x = obj->ox + xdir[i];
@@ -2990,6 +2993,9 @@ do_break_wand(obj)
}
}
/* potentially give post zap/break feedback */
zapwrapup();
/* Note: if player fell thru, this call is a no-op.
Damage is handled in digactualhole in that case */
if (shop_damage) pay_for_damage("dig into", FALSE);