Bulls crashing into rock formations now reduce their height, and ones falling from Rock III increase the height when they fall

This commit is contained in:
Zeno Rogue 2021-05-30 11:55:48 +02:00
parent dc5384da1e
commit c9a3dde67b
1 changed files with 8 additions and 0 deletions

View File

@ -318,6 +318,8 @@ EX void moveMonster(const movei& mi) {
else if(inc == -3 && !survivesFall(ct->monst) && !passable(cf, ct, P_MONSTER)) {
addMessage(XLAT("%The1 falls!", ct->monst));
fallMonster(ct, AF_FALL);
if(isBull(m) && cf->wall == waRed3)
ct->wall = waRed1;
}
if(isThorny(ct->wall) && !survivesThorns(ct->monst)) {
addMessage(XLAT("%The1 is killed by thorns!", ct->monst));
@ -2160,6 +2162,12 @@ EX void beastcrash(cell *c, cell *beast) {
addMessage(XLAT("%The1 crashes into %the2!", beast->monst, c->wall));
explodeBarrel(c);
}
else if(realred(c)) {
addMessage(XLAT("%The1 crashes into %the2!", beast->monst, c->wall));
if(c->wall == waRed1) c->wall = waNone;
else if(c->wall == waRed2) c->wall = waRed1;
else if(c->wall == waRed3) c->wall = waRed2;
}
else if(isBull(c->monst) || isSwitch(c->monst)) {
addMessage(XLAT("%The1 crashes into %the2!", beast->monst, c->monst));
if(c->monst == moSleepBull) c->monst = moRagingBull, c->stuntime = 3;