y
This commit is contained in:
parent
61718e2981
commit
f657b6a4a4
94 changed files with 3970 additions and 1241 deletions
|
|
@ -37,7 +37,7 @@
|
|||
return pressure.ids.has(tarinai.id || tarinai.familyKey || tarinai);
|
||||
}
|
||||
const radius = Math.max(150, (Number(tarinai.radius) || 22) + 190);
|
||||
const source = worldRef.nearbyItems?.(tarinai.x || 0, tarinai.y || 0, radius, true) || worldRef.items || [];
|
||||
const source = worldRef.nearbyNonGrassItems?.(tarinai.x || 0, tarinai.y || 0, radius, true) || worldRef.items || [];
|
||||
for (const it of source) {
|
||||
if (!it || it.dead || !global.TarinaiMechanicalSystem.isMechanicalType(it.type)) continue;
|
||||
const reach = global.TarinaiMechanicalSystem.reach(it) || Math.max(64, it.r || 64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue