1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 12:27:40 +00:00

dice:: added Angry Dice

This commit is contained in:
Zeno Rogue
2021-05-29 15:45:37 +02:00
parent d7e2b491ac
commit 2973cada6d
8 changed files with 31 additions and 7 deletions

View File

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