Merge branch 'master' into NetHack-3.7
This commit is contained in:
46
src/cmd.c
46
src/cmd.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 cmd.c $NHDT-Date: 1561917056 2019/06/30 17:50:56 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.338 $ */
|
||||
/* NetHack 3.6 cmd.c $NHDT-Date: 1562532731 2019/07/07 20:52:11 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.339 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2013. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1976,6 +1976,50 @@ int final;
|
||||
/* same phrasing for current and final: "entered" is unconditional */
|
||||
enlght_line(You_, "entered ", buf, "");
|
||||
}
|
||||
|
||||
/* for gameover, these have been obtained in really_done() so that they
|
||||
won't vary if user leaves a disclosure prompt or --More-- unanswered
|
||||
long enough for the dynamic value to change between then and now */
|
||||
if (final ? iflags.at_midnight : midnight()) {
|
||||
enl_msg("It ", "is ", "was ", "the midnight hour", "");
|
||||
} else if (final ? iflags.at_night : night()) {
|
||||
enl_msg("It ", "is ", "was ", "nighttime", "");
|
||||
}
|
||||
/* other environmental factors */
|
||||
if (flags.moonphase == FULL_MOON || flags.moonphase == NEW_MOON) {
|
||||
/* [This had "tonight" but has been changed to "in effect".
|
||||
There is a similar issue to Friday the 13th--it's the value
|
||||
at the start of the current session but that session might
|
||||
have dragged on for an arbitrary amount of time. We want to
|
||||
report the values that currently affect play--or affected
|
||||
play when game ended--rather than actual outside situation.] */
|
||||
Sprintf(buf, "a %s moon in effect%s",
|
||||
(flags.moonphase == FULL_MOON) ? "full"
|
||||
: (flags.moonphase == NEW_MOON) ? "new"
|
||||
/* showing these would probably just lead to confusion
|
||||
since they have no effect on game play... */
|
||||
: (flags.moonphase < FULL_MOON) ? "first quarter"
|
||||
: "last quarter",
|
||||
/* we don't have access to 'how' here--aside from survived
|
||||
vs died--so settle for general platitude */
|
||||
final ? " when your adventure ended" : "");
|
||||
enl_msg("There ", "is ", "was ", buf, "");
|
||||
}
|
||||
if (flags.friday13) {
|
||||
/* let player know that friday13 penalty is/was in effect;
|
||||
we don't say "it is/was Friday the 13th" because that was at
|
||||
the start of the session and it might be past midnight (or
|
||||
days later if the game has been paused without save/restore),
|
||||
so phrase this similar to the start up message */
|
||||
Sprintf(buf, " Bad things %s on Friday the 13th.",
|
||||
!final ? "can happen"
|
||||
: (final == ENL_GAMEOVERALIVE) ? "could have happened"
|
||||
/* there's no may to tell whether -1 Luck made a
|
||||
difference but hero has died... */
|
||||
: "happened");
|
||||
enlght_out(buf);
|
||||
}
|
||||
|
||||
if (!Upolyd) {
|
||||
int ulvl = (int) u.ulevel;
|
||||
/* [flags.showexp currently does not matter; should it?] */
|
||||
|
||||
Reference in New Issue
Block a user