tutorial tweaks
Replace tests against tutorial_dnum with 'In_tutorial()' predicate. Give a message when entering the tutorial (via level change mechanism). Likewise, give a message when resuming regular play. If player uses #quit or ^C in the tutorial, ask whether to cut the tutorial short and resume regular play; skip "Really quit?" if the answer is yes. Behavior is a bit odd for ^C + yes; it just sits there until player types something.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 dungeon.h $NHDT-Date: 1596498535 2020/08/03 23:48:55 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.39 $ */
|
||||
/* NetHack 3.7 dungeon.h $NHDT-Date: 1685863327 2023/06/04 07:22:07 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.47 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -139,6 +139,7 @@ typedef struct branch {
|
||||
#define In_sokoban(x) ((x)->dnum == sokoban_dnum)
|
||||
#define Inhell In_hell(&u.uz) /* now gehennom */
|
||||
#define In_endgame(x) ((x)->dnum == astral_level.dnum)
|
||||
#define In_tutorial(x) ((x)->dnum == tutorial_dnum)
|
||||
|
||||
#define within_bounded_area(X, Y, LX, LY, HX, HY) \
|
||||
((X) >= (LX) && (X) <= (HX) && (Y) >= (LY) && (Y) <= (HY))
|
||||
|
||||
Reference in New Issue
Block a user