Half_physical_damage 2

Another batch of missing Half_physical_damage checks
from the list provided by <Someone>:
- Scrolls of fire (!confused)
- Broken wands
- Splattered burning oil from thrown potion
- Dipping a lit lamp into a potion of oil
- Scrolls of fire (confused, didn't bother with non-confused)
- Being caught in a fireball

Adds a macro Maybe_Half_Phys to assist.
This commit is contained in:
nethack.allison
2003-10-21 16:47:59 +00:00
parent 6c63831645
commit 47e1a6873a
5 changed files with 28 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)dothrow.c 3.4 2003/01/24 */
/* SCCS Id: @(#)dothrow.c 3.4 2003/10/21 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -798,7 +798,7 @@ boolean hitsroof;
if (dmg > 1 && less_damage) dmg = 1;
if (dmg > 0) dmg += u.udaminc;
if (dmg < 0) dmg = 0; /* beware negative rings of increase damage */
if (Half_physical_damage) dmg = (dmg + 1) / 2;
dmg = Maybe_Half_Phys(dmg);
if (uarmh) {
if (less_damage && dmg < (Upolyd ? u.mh : u.uhp)) {