From 920ed4bb864ef841c8fb908a3ea945be6f459962 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 28 Jun 2024 10:52:20 +0200 Subject: [PATCH] in the Princess challenge, do not generate wandering monsters too close to the Princess's cell --- monstergen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monstergen.cpp b/monstergen.cpp index 29aa7b07..f52439c8 100644 --- a/monstergen.cpp +++ b/monstergen.cpp @@ -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;