Don't switch away from polearm if monster in range

Using 'f', if hero is wielding a polearm, and a monster is in range,
don't switch away even if we do have ammo in quiver and a launcher
in the inventory.
This commit is contained in:
Pasi Kallinen
2024-12-08 22:18:27 +02:00
parent dafd854993
commit 57abae29e8
3 changed files with 65 additions and 27 deletions

View File

@@ -126,6 +126,7 @@ extern void use_unicorn_horn(struct obj **);
extern boolean tinnable(struct obj *) NONNULLPTRS;
extern void reset_trapset(void);
extern int use_whip(struct obj *) NONNULLPTRS;
extern boolean could_pole_mon(void);
extern int use_pole(struct obj *, boolean) NONNULLPTRS;
extern void fig_transform(union any *, long) NONNULLARG1;
extern int unfixable_trouble_count(boolean);