too
This commit is contained in:
parent
4fdc567e08
commit
e00bfd8879
51 changed files with 1203 additions and 833 deletions
|
|
@ -34,10 +34,6 @@ function isLiveTarinaiEntity(value) {
|
|||
return Boolean(value && !value.dead && typeof value.relationTo === "function" && Number.isFinite(value.x) && Number.isFinite(value.y));
|
||||
}
|
||||
|
||||
function relationFearSafe(holder, other) {
|
||||
if (!holder || !other || typeof holder.relationTo !== "function") return 0;
|
||||
return Number(holder.relationTo(other.id)?.fear || 0) || 0;
|
||||
}
|
||||
|
||||
function nearestForcedFightTarget(tarinai, world, maxDist = 720) {
|
||||
if (!tarinai || !world) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue