wizard mode #timeout command vs gas regions

Show visible regions among the other timed events.  Turn number is
relative rather than absolute.  Location is the internal bounding box
which tends to cover more area than just the gas cloud spots.

When multiple regions are present (common on Plane of Fire), they're
listed in arbitrary order.  It would be better to order them by
timeout or by location or both, but the extra effort to do that seems
unjustified.
This commit is contained in:
PatR
2024-08-13 13:28:24 -07:00
parent 0eb8896301
commit fd57c9ca83
4 changed files with 88 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 timeout.c $NHDT-Date: 1710029105 2024/03/10 00:05:05 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.182 $ */
/* NetHack 3.7 timeout.c $NHDT-Date: 1723580900 2024/08/13 20:28:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.190 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2018. */
/* NetHack may be freely redistributed. See license for details. */
@@ -2056,6 +2056,9 @@ wiz_timeout_queue(void)
Sprintf(buf, "Vault counter is %d.", u.uinvault);
putstr(win, 0, buf);
}
if (any_visible_region()) {
visible_region_summary(win);
}
display_nhwindow(win, FALSE);
destroy_nhwindow(win);