Allow some monsters to break boulders

... if the boulder is in a position they want to move to.
Shopkeepers, priests, and the quest leader can break one boulder
and then need to take several turns before being able to break
another.  Riders can break a boulder every turn.
This commit is contained in:
Pasi Kallinen
2023-04-19 14:37:51 +03:00
parent 4d681eed46
commit 200cc21fb3
5 changed files with 43 additions and 2 deletions

View File

@@ -1711,6 +1711,8 @@ extern struct monst *find_pmmonst(int);
extern int bee_eat_jelly(struct monst *, struct obj *);
extern void monflee(struct monst *, int, boolean, boolean);
extern void mon_yells(struct monst *, const char *);
extern boolean m_can_break_boulder(struct monst *);
extern void m_break_boulder(struct monst *, coordxy, coordxy);
extern int dochug(struct monst *);
extern boolean m_digweapon_check(struct monst *, coordxy, coordxy);
extern int m_move(struct monst *, int);