Ask to kick a locked door open, if hero has no unlocking tool

This commit is contained in:
Pasi Kallinen
2022-04-03 13:58:50 +03:00
parent 4721ae7154
commit 92c21b588b
6 changed files with 54 additions and 3 deletions

View File

@@ -666,11 +666,13 @@ struct _create_particular_data {
enum cmdq_cmdtypes {
CMDQ_KEY = 0, /* a literal character, cmdq_add_key() */
CMDQ_EXTCMD, /* extended command, cmdq_add_ec() */
CMDQ_DIR, /* direction, cmdq_add_dir() */
};
struct _cmd_queue {
int typ;
char key;
schar dirx, diry, dirz;
const struct ext_func_tab *ec_entry;
struct _cmd_queue *next;
};

View File

@@ -252,6 +252,7 @@ extern void reset_occupations(void);
extern void set_occupation(int(*)(void), const char *, cmdcount_nht);
extern void cmdq_add_ec(int(*)(void));
extern void cmdq_add_key(char);
extern void cmdq_add_dir(schar, schar, schar);
extern struct _cmd_queue *cmdq_pop(void);
extern void cmdq_clear(void);
extern char pgetchar(void);