From 01209cab7a047c2a43ece9b56e124064cb496faa Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 21 Jul 2022 00:54:51 -0700 Subject: [PATCH] some new feedback for #timeout Add a couple of non-timer, non-(property & TIMEOUT) timeout values for the wizard-mode #timeout command: uswldtim and uinvault. The swallowed counter goes down and explusion or total digestion occurs when it hits zero. The in-vault counter goes up when you're in a vault or the temporary corridor. If you make it out of the vault- and-corridor it gets reset to zero. --- src/timeout.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/timeout.c b/src/timeout.c index 378785e0f..82df30c62 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -1,4 +1,4 @@ -/* NetHack 3.7 timeout.c $NHDT-Date: 1653507043 2022/05/25 19:30:43 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.139 $ */ +/* NetHack 3.7 timeout.c $NHDT-Date: 1658390077 2022/07/21 07:54:37 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.142 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1907,6 +1907,18 @@ wiz_timeout_queue(void) } } } + if (u.uswldtim) { + putstr(win, 0, ""); + /* decremented when engulfer makes a move, so can last longer than + the number of turns reported if engulfer is slow */ + Sprintf(buf, "Swallow countdown is %u.", u.uswldtim); + putstr(win, 0, buf); + } + if (u.uinvault) { + putstr(win, 0, ""); + Sprintf(buf, "Vault counter is %d.", u.uinvault); + putstr(win, 0, buf); + } display_nhwindow(win, FALSE); destroy_nhwindow(win);