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

first version of the Land of Dice

This commit is contained in:
Zeno Rogue
2021-05-27 13:00:20 +02:00
parent b879682d82
commit 6a6ed4ea0d
11 changed files with 330 additions and 98 deletions

View File

@@ -102,6 +102,9 @@ EX void moveEffect(const movei& mi, eMonster m) {
animateMovement(mi.rev(), LAYER_BOAT);
tortoise::move_baby(cf, ct);
}
if(m == moAnimatedDie && mi.proper())
dice::roll(mi);
}
EX void moveMonster(const movei& mi) {
@@ -1086,6 +1089,11 @@ EX void groupmove2(const movei& mi, eMonster movtype, flagtype mf) {
}
}
else return;
if(c->monst == moAnimatedDie) {
forCellEx(c3, from) if(c3 != c && c3->monst == moAnimatedDie)
return;
}
if(from->monst) {
if(mf & MF_MOUNT) {