1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

refactored to use isDie if applicable

This commit is contained in:
Zeno Rogue
2021-05-30 13:48:24 +02:00
parent b63a70f279
commit be5194958e
8 changed files with 9 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ EX void moveEffect(const movei& mi, eMonster m) {
tortoise::move_baby(cf, ct);
}
if(among(m, moAnimatedDie, moAngryDie) && mi.proper())
if(isDie(m) && mi.proper())
dice::roll(mi);
}
@@ -1157,7 +1157,7 @@ EX void groupmove2(const movei& mi, eMonster movtype, flagtype mf) {
onpath(from, 0);
if(among(mi.t->monst, moAnimatedDie, moAngryDie)) {
if(isDie(mi.t->monst)) {
/* other dice will not pathfind through the original cell */
/* this makes it easier for the player to roll dice correctly */
onpath(c, 0);