mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-23 16:50:27 +00:00
Merge pull request #257 from jruderman/dc_geom
Fix Dice Reserve crash in geometries that support d6/d12
This commit is contained in:
commit
cbb98436a1
@ -1051,7 +1051,7 @@ EX namespace dice {
|
||||
c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie;
|
||||
generate_specific(c, &d6, 1, 2);
|
||||
}
|
||||
if(pct2 < 40 + hard) {
|
||||
else if(pct2 < 40 + hard) {
|
||||
c->monst = moAnimatedDie;
|
||||
generate_specific(c, &d6, 0, 99);
|
||||
}
|
||||
@ -1062,7 +1062,7 @@ EX namespace dice {
|
||||
c->wall = (pct < (items[itOrbLuck] ? 9 : 11)) ? waRichDie : waHappyDie;
|
||||
generate_specific(c, &d12, 2, 3);
|
||||
}
|
||||
if(pct2 < 40 + hard) {
|
||||
else if(pct2 < 40 + hard) {
|
||||
c->monst = moAnimatedDie;
|
||||
generate_specific(c, &d12, 0, 99);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user