From 898b8c7afc8b62d1e7341ac73f828f604f5863c8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 31 Jul 2026 11:27:48 +0200 Subject: [PATCH] lineofsight:: function moveval may now need to be redesigned to take shorter route. Probably might also improve pathing for out-of-range monsters in normal mode --- monstermove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monstermove.cpp b/monstermove.cpp index e08ed217..cb53c129 100644 --- a/monstermove.cpp +++ b/monstermove.cpp @@ -534,7 +534,7 @@ EX int moveval(cell *c1, cell *c2, int d, flagtype mf) { int bonus = 0; if(m == moBrownBug && snakelevel(c2) < snakelevel(c1)) bonus = -10; - if(hunt && (mf & MF_PATHDIST) && c2->pathdist < c1->pathdist && !peace::on) return 1500 + bonus; // good move + if(hunt && (mf & MF_PATHDIST) && c2->pathdist < c1->pathdist && !peace::on) return 1500 + bonus + (c1->pathdist - c2->pathdist); // good move // prefer straight direction when wandering int dd = angledist(c1, c1->mondir, d);