livelog tweaks, mostly sokoban
Demote "completed sokoban {1,2,3,4}" from major achievement to minor
at the request of hardfought. OR on the 'dump' flag so that those
entries appear in dumplog.
Change "completed Sokoban" (for the whole branch) to "acquired the
Sokoban <prize object>" since that's what triggers the event and it
is possible to pass through the first level without completing that.
This event is still classified as a major achievement. It has has
the 'spoiler' flag added to prevent #chronicle from showing that event
which now discloses the type of item the prize is. (Note: suppression
of spoiler events is ignored in wizard mode.)
The "attained rank N" achievements are classified as minor for ranks
1..3 (gaining levels 3, 6, 10); OR the 'dump' flag for those. [Rank 0
for levels 1 and 2 isn't an achievement and 4..8 for Xp levels 14, 18,
22, 26, and 30 are classified as 'major' achievements so don't need
that flag to make it into dumplog.]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.7 context.h $NHDT-Date: 1596498530 2020/08/03 23:48:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.41 $ */
|
||||
/* NetHack 3.7 context.h $NHDT-Date: 1646428003 2022/03/04 21:06:43 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.45 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Michael Allison, 2006. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -116,10 +116,14 @@ struct novel_tracking { /* for choosing random passage when reading novel */
|
||||
};
|
||||
|
||||
struct achievement_tracking {
|
||||
unsigned mines_prize_oid, /* luckstone->o_id */
|
||||
soko_prize_oid, /* {bag or amulet}->o_id */
|
||||
castle_prize_old; /* wand->o_id; not yet implemented */
|
||||
boolean minetn_reached; /* avoid redundant checking for town entry */
|
||||
unsigned mines_prize_oid, /* luckstone->o_id */
|
||||
soko_prize_oid, /* {bag or amulet}->o_id */
|
||||
castle_prize_old; /* wand->o_id; not yet implemented */
|
||||
/* record_achievement() wants the item type for livelog() event */
|
||||
short mines_prize_otyp, /* luckstone */
|
||||
soko_prize_otyp, /* bag of holding or amulet of reflection */
|
||||
castle_prize_otyp; /* strange object (someday wand of wishing) */
|
||||
boolean minetn_reached; /* avoid redundant checking for town entry */
|
||||
};
|
||||
|
||||
struct context_info {
|
||||
|
||||
Reference in New Issue
Block a user