Sunsword vs shades, take II (trunk only)
From the newsgroup: Sunsword is ineffective against shades. It gets a special bonus of double damage vs undead, but since it's not made of silver it was only doing 1 point of damage against shades. Make the bonus-vs-undead attribute override the silver-required criterion. (No comparable handling for flimsy weapons against thick-skinned critters this time.)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)weapon.c 3.5 2007/02/09 */
|
||||
/* SCCS Id: @(#)weapon.c 3.5 2007/05/09 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -294,7 +294,7 @@ struct monst *mon;
|
||||
if (objects[otyp].oc_material <= LEATHER && thick_skinned(ptr))
|
||||
/* thick skinned/scaled creatures don't feel it */
|
||||
tmp = 0;
|
||||
if (ptr == &mons[PM_SHADE] && objects[otyp].oc_material != SILVER)
|
||||
if (ptr == &mons[PM_SHADE] && !shade_glare(otmp))
|
||||
tmp = 0;
|
||||
|
||||
/* "very heavy iron ball"; weight increase is in increments of 160 */
|
||||
|
||||
Reference in New Issue
Block a user