1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

Frogs are not generated until you are in Frog Park or have treasure

This commit is contained in:
Zeno Rogue 2020-03-12 10:31:25 +01:00
parent b9b2bbcd1e
commit 83407fe2db

View File

@ -2657,7 +2657,7 @@ EX void giantLandSwitch(cell *c, int d, cell *from) {
if(d == 7) {
if(c->wall == waNone) {
if(hrand_monster(2000) < 20 + (items[itFrog] + yendor::hardness()))
if(hrand_monster(2000) < ((cwt.at->land == laFrog || items[itFrog]) ? 20 : 0) + (items[itFrog] + yendor::hardness()))
c->monst = pick(moFrog, moPhaser, moVaulter);
}
}