spell_damage_bonus (trunk only)
From the newsgroup: player saw "The spell hits the <monster>?" where the question mark punctuation reflected negative damage occurring. Another player diagnosed it as a 2 point force bolt (from 2d12 dice role) modified by -3 penalty for hero who has Int less than 10. This changes spell_damage_bonus() to avoid reducing damage below 1 point.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* NetHack 3.5 spell.c $Date$ $Revision$ */
|
||||
/* SCCS Id: @(#)spell.c 3.5 2007/05/29 */
|
||||
/* Copyright (c) M. Stephenson 1988 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -922,7 +921,7 @@ boolean atme;
|
||||
} else {
|
||||
explode(u.dx, u.dy,
|
||||
pseudo->otyp - SPE_MAGIC_MISSILE + 10,
|
||||
u.ulevel/2 + 1 + spell_damage_bonus(), 0,
|
||||
spell_damage_bonus(u.ulevel / 2 + 1), 0,
|
||||
(pseudo->otyp == SPE_CONE_OF_COLD) ?
|
||||
EXPL_FROSTY : EXPL_FIERY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user