1.6
This commit is contained in:
parent
ee22e1a929
commit
88f618cadf
55 changed files with 1299 additions and 447 deletions
|
|
@ -223,7 +223,7 @@ function updatePanicBehavior(t, world, dt, needs) {
|
|||
if (t.state !== "panic") t.setActionState?.("panic", { target: nest, reason: kingFleeReason, wake: true, sleeping: false });
|
||||
t.fearTimer = Math.max(t.fearTimer || 0, 0.34);
|
||||
if (dist(t, nest) <= Math.max(50, (t.radius || 20) + (nest.r || 24) + 18)) {
|
||||
t.enterNestBox?.(nest, dt, { forceDisplace: true, reason: kingFleeReason });
|
||||
t.enterNestBox?.(nest, dt, { forceDisplace: false, reason: kingFleeReason });
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue