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:
nethack.rankin
2005-06-19 04:38:30 +00:00
parent 254b521add
commit bd1af39997
8 changed files with 47 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)pray.c 3.5 2004/06/12 */
/* SCCS Id: @(#)pray.c 3.5 2005/06/21 */
/* Copyright (c) Benson I. Margulies, Mike Stephenson, Steve Linhart, 1989. */
/* NetHack may be freely redistributed. See license for details. */
@@ -276,10 +276,7 @@ register int trouble;
switch (trouble) {
case TROUBLE_STONED:
You_feel("more limber.");
Stoned = 0;
context.botl = 1;
dealloc_killer(find_delayed_killer(STONED));
make_stoned(0L, "You feel more limber.", 0, (char *)0);
break;
case TROUBLE_SLIMED:
make_slimed(0L, "The slime disappears.");