hm
This commit is contained in:
parent
129c07183a
commit
5ed977788c
49 changed files with 1084 additions and 392 deletions
|
|
@ -25,7 +25,7 @@
|
|||
if (tarinai.target && !tarinai.target.dead && (tarinai.target.type === "duplicator" || roleMatches(tarinai.target, "food") || roleMatches(tarinai.target, "medicine"))) foodCandidates.push(tarinai.target);
|
||||
for (const it of nearbyItems) {
|
||||
if (!it || it.dead || foodCandidates.includes(it)) continue;
|
||||
if (!(it.type === "duplicator" || roleMatches(it, "food") || roleMatches(it, "medicine") || it.type === "water" || it.type === "water_bowl")) continue;
|
||||
if (!(it.type === "duplicator" || roleMatches(it, "food") || roleMatches(it, "medicine") || it.type === "water")) continue;
|
||||
foodCandidates.push(it);
|
||||
if (foodCandidates.length >= scanLimit) break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue