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

@@ -1829,7 +1829,7 @@ mon_allowflags(struct monst* mtmp)
allowflags |= ALLOW_SSM | ALLOW_SANCT;
if (passes_walls(mtmp->data))
allowflags |= (ALLOW_ROCK | ALLOW_WALL);
if (throws_rocks(mtmp->data))
if (throws_rocks(mtmp->data) || m_can_break_boulder(mtmp))
allowflags |= ALLOW_ROCK;
if (can_tunnel)
allowflags |= ALLOW_DIG;