Stoning management (trunk only)
Make petrification initiation or termination go through a new routine,
make_stoned(), instead of manipulating its countdown timer and delayed
killer directly. No change in behavior.
There's no reason in terms of bug risk or game play or saved data why
this shouldn't be done in the branch too, but so much of the surrounding
context has already diverged between trunk and branch that it's trunk only.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mthrowu.c 3.5 2004/08/16 */
|
||||
/* SCCS Id: @(#)mthrowu.c 3.5 2005/06/21 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -404,8 +404,7 @@ struct obj *obj; /* missile (or stack providing it) */
|
||||
if (!Stoned && !Stone_resistance
|
||||
&& !(poly_when_stoned(youmonst.data) &&
|
||||
polymon(PM_STONE_GOLEM))) {
|
||||
Stoned = 5;
|
||||
delayed_killer(STONED, KILLED_BY, nul);
|
||||
make_stoned(5L, (char *)0, KILLED_BY, nul);
|
||||
}
|
||||
}
|
||||
stop_occupation();
|
||||
|
||||
Reference in New Issue
Block a user