1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 10:44:48 +00:00

Fix Dice Reserve crash in geometries that support d6/d12

This commit is contained in:
Jesse Ruderman 2021-07-20 05:50:02 -07:00
parent 8c6aba5f6f
commit 9ac1f2577a

View File

@ -1051,7 +1051,7 @@ EX namespace dice {
c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie; c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie;
generate_specific(c, &d6, 1, 2); generate_specific(c, &d6, 1, 2);
} }
if(pct2 < 40 + hard) { else if(pct2 < 40 + hard) {
c->monst = moAnimatedDie; c->monst = moAnimatedDie;
generate_specific(c, &d6, 0, 99); generate_specific(c, &d6, 0, 99);
} }
@ -1062,7 +1062,7 @@ EX namespace dice {
c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie; c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie;
generate_specific(c, &d12, 2, 3); generate_specific(c, &d12, 2, 3);
} }
if(pct2 < 40 + hard) { else if(pct2 < 40 + hard) {
c->monst = moAnimatedDie; c->monst = moAnimatedDie;
generate_specific(c, &d12, 0, 99); generate_specific(c, &d12, 0, 99);
} }