better use double wield and fix bugs

This commit is contained in:
Ondřej Novák 2025-02-04 20:21:13 +01:00
parent 33fa026576
commit ce3e42f66b
14 changed files with 199 additions and 81 deletions

View file

@ -365,6 +365,7 @@ static char display_game_status(void)
void unaffect();
extern char immortality;
extern char nohassle;
extern char pass_all_mobs;
static char console_input_line[console_max_characters+1] = "";
@ -494,6 +495,10 @@ static int process_on_off_command(const char *cmd, char on) {
game_extras = on?(game_extras | EX_WALKDIAGONAL):(game_extras & ~EX_WALKDIAGONAL);
return 1;
}
if (stricmp(cmd, "ghost-form") == 0) {
pass_all_mobs = on;
return 1;
}
return 0;
}