Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #75

Found 3 issues. (1) HIGH: GATHERING, WOODCUTTING, and FLEEING states missing from pet-brain.ts fast-path throttle, causing 150-266ms brain ticks for creatures in these states on every tick — add them to the 1-in-4 scan throttle. (2) HIGH: Vexem permanently stuck at social=0 because PairUp companions get no social recovery — add +0.5/sec passive social bonus when a creature has an active partner. (3) MEDIUM: `_lastCombatInjuryBeliefAt` resets to 0 on server restart, allowing immediate duplicate belief formation — initialize to `Date.now()`.

(HIGH): GATHERING and WOODCUTTING states missing from fast-path throttle

Fix: Add GATHERING, WOODCUTTING, and FLEEING to the 1-in-4 throttle: (code change) **Why FLEEING too:** Creatures in FLEEING are just pathfinding to their den. Line 2184 already handles seek_shelter navigation recomputation on `tick % 3 === 0`. They don’t need full POI/fauna scans. Adding to 1-in-4…

(HIGH): Paired companions don’t recover social need — Vexem permanently at social=0

Fix: Add a paired-companion social recovery bonus after the needs update: (code change) This gives paired creatures +0.5/sec social recovery regardless of state, capped at 80 to still encourage dedicated socializing for full recovery. This means hunting with Klyra would net (+0.5 – 0.1) = +0.4/sec…

(MEDIUM): Combat injury belief cooldown resets on server restart

Fix: Initialize to `Date.now()` to prevent post-restart belief spam: (code change) This is the same pattern used in cycle #47 for `lastThinkAt` to prevent artificial starvation signals after restart. —