1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-09-07 21:16:48 +00:00

in the Princess challenge, do not generate wandering monsters too close to the Princess's cell

This commit is contained in:
Zeno Rogue 2024-06-28 10:52:20 +02:00
parent e9f68dfb4d
commit 920ed4bb86

View File

@ -750,7 +750,9 @@ EX void wandering() {
}
else if(c->land == laPalace && wchance(items[itPalace], 50)) {
if(princess::dist(c) < OUT_OF_PRISON && !princess::challenge) break;
int dist = princess::dist(c);
if(dist < 7) break;
if(dist < OUT_OF_PRISON && !princess::challenge) break;
if(items[itPalace] >= 15 && hrand(100) < 10)
c->monst = moVizier;