Move item actions into separate src file

Haven't tested compilation on Windows and VMS ...
This commit is contained in:
Pasi Kallinen
2026-01-11 14:43:43 +02:00
parent ac7f0d3615
commit d0b9846367
13 changed files with 744 additions and 719 deletions

View File

@@ -1240,6 +1240,10 @@ extern boolean pmatchi(const char *, const char *) NONNULLPTRS;
extern boolean pmatchz(const char *, const char *) NONNULLPTRS;
*/
/* ### iactions.c ### */
extern int itemactions(struct obj *otmp) NONNULLARG1;
/* ### insight.c ### */
extern int doattributes(void);

View File

@@ -571,6 +571,11 @@ enum hunger_state_types {
STARVED = 6
};
/* fake inventory letters, not 'a'..'z' or 'A'..'Z' */
#define NOINVSYM '#' /* overflow because all 52 letters are in use */
#define CONTAINED_SYM '>' /* designator for inside a container */
#define HANDS_SYM '-' /* hands|fingers|self depending on context */
/* inventory counts (slots in tty parlance)
* a...zA..Z invlet_basic (52)
* $a...zA..Z# 2 special additions