fix #H8164 - kicking altar: injury vs wrath
When kicking an altar, trigger divine wrath (minor: luck or alignment loss) before deciding whether hero has hurt himself in the process. Add some variation to the wrath penalty so that it can't be used to precisely control Luck.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 dokick.c $NHDT-Date: 1551920353 2019/03/07 00:59:13 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.131 $ */
|
||||
/* NetHack 3.6 dokick.c $NHDT-Date: 1562462061 2019/07/07 01:14:21 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.133 $ */
|
||||
/* Copyright (c) Izchak Miller, Mike Stephenson, Steve Linhart, 1989. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1058,9 +1058,9 @@ dokick()
|
||||
if (Levitation)
|
||||
goto dumb;
|
||||
You("kick %s.", (Blind ? something : "the altar"));
|
||||
altar_wrath(x, y);
|
||||
if (!rn2(3))
|
||||
goto ouch;
|
||||
altar_wrath(x, y);
|
||||
exercise(A_DEX, TRUE);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user