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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user