new composite status conditions: weaponstatus,\

armorstatus, and terrainstatus

This adds three special status items to show at a glance what the hero
is wielding, wearing, and standing on.

Each of the three items has its own boolean option rather than try to
fix them in with the existing opttional status conditions.  After a
lot of testing, I think the weapon and armor ones will prove useful
but the terrain one probably won't be.

Presently it is implemented for tty and curses.  When I developed it
six years ago, it was also working for X11 but I'm not able to test
the resurrection of that part so have left it out.
This commit is contained in:
PatR
2026-04-16 13:35:08 -07:00
parent 45e8305918
commit 84ddf85cb4
20 changed files with 659 additions and 72 deletions

View File

@@ -92,7 +92,20 @@ enum levl_typ_types {
CLOUD = 36,
MAX_TYPE = 37,
/* for special levels */
MATCH_WALL = 38,
/* these aren't levl[][].typ values, they're additional indices
into terrain_descr[] for status feedback */
xFLOOR = 39,
xGROUND = 40,
xOPENDOOR = 41,
xSHUTDOOR = 42,
xSWAMP = 43,
xSUBMERGED = 44,
xSEA = 45,
xWATERWALL = 46,
INVALID_TYPE = 127
};