livelog level entry events
Fix up the level descriptions used when logging an "entered new level" event. Most of the change is for adding an extra argument to calls to describe_level(). The curses portion is in a big chunk of old code suppressed by #if 0. I didn't notice that the level entry events are classified as LL_DEBUG until all the work was done. This promotes the entry events for the four Plane of <Element> levels from debug events to major ones instead. It doesn't do that for the Astral Plane because the entered-the-Astral- Plane achievement already produces a major event for that. Most other key level entry events are in a similar situation--or will become that way once another set of achievements eventually gets added--so there aren't any other event classification promotions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 steed.c $NHDT-Date: 1582155885 2020/02/19 23:44:45 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.79 $ */
|
||||
/* NetHack 3.7 steed.c $NHDT-Date: 1646171628 2022/03/01 21:53:48 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.95 $ */
|
||||
/* Copyright (c) Kevin Hugo, 1998-1999. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -760,7 +760,7 @@ place_monster(struct monst* mon, int x, int y)
|
||||
/* normal map bounds are <1..COLNO-1,0..ROWNO-1> but sometimes
|
||||
vault guards (either living or dead) are parked at <0,0> */
|
||||
if (!isok(x, y) && (x != 0 || y != 0 || !mon->isgd)) {
|
||||
describe_level(buf);
|
||||
describe_level(buf, 0);
|
||||
impossible("trying to place %s at <%d,%d> mstate:%lx on %s",
|
||||
minimal_monnam(mon, TRUE), x, y, mon->mstate, buf);
|
||||
x = y = 0;
|
||||
@@ -768,14 +768,14 @@ place_monster(struct monst* mon, int x, int y)
|
||||
if (mon == u.usteed
|
||||
/* special case is for convoluted vault guard handling */
|
||||
|| (DEADMONSTER(mon) && !(mon->isgd && x == 0 && y == 0))) {
|
||||
describe_level(buf);
|
||||
describe_level(buf, 0);
|
||||
impossible("placing %s onto map, mstate:%lx, on %s?",
|
||||
(mon == u.usteed) ? "steed" : "defunct monster",
|
||||
mon->mstate, buf);
|
||||
return;
|
||||
}
|
||||
if ((othermon = g.level.monsters[x][y]) != 0) {
|
||||
describe_level(buf);
|
||||
describe_level(buf, 0);
|
||||
monnm = minimal_monnam(mon, FALSE);
|
||||
othnm = (mon != othermon) ? minimal_monnam(othermon, TRUE) : "itself";
|
||||
impossible("placing %s over %s at <%d,%d>, mstates:%lx %lx on %s?",
|
||||
|
||||
Reference in New Issue
Block a user