mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
Thumpers are now still considered when one cell outside the game range
This commit is contained in:
parent
0d87481d29
commit
f6b5d068fd
@ -147,7 +147,7 @@ EX void computePathdist(eMonster param) {
|
|||||||
pathqm.push_back(c);
|
pathqm.push_back(c);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(c->cpdist > limit && !(c->land == laTrollheim && turncount < c->landparam)) continue;
|
if(c->cpdist > limit && !(c->land == laTrollheim && turncount < c->landparam) && c->wall != waThumperOn) continue;
|
||||||
int d = c->pathdist;
|
int d = c->pathdist;
|
||||||
if(d == PINFD - 1) continue;
|
if(d == PINFD - 1) continue;
|
||||||
for(int j=0; j<c->type; j++) {
|
for(int j=0; j<c->type; j++) {
|
||||||
@ -435,6 +435,12 @@ EX void bfs() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(int i=first7; i<isize(dcal); i++)
|
||||||
|
forCellEx(c2, dcal[i])
|
||||||
|
if(c2->wall == waThumperOn) {
|
||||||
|
targets.push_back(c2);
|
||||||
|
}
|
||||||
|
|
||||||
while(recalcTide) {
|
while(recalcTide) {
|
||||||
recalcTide = false;
|
recalcTide = false;
|
||||||
for(int i=0; i<isize(dcal); i++) checkTide(dcal[i]);
|
for(int i=0; i<isize(dcal); i++) checkTide(dcal[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user