mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-21 16:42:28 +00:00
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
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user