dougbot/bridge/src
roberts c2b996947a Fix combat loop, add equipment management
Combat:
- Track entityGone event to detect mob death (not just entity check)
- Auto-equip best weapon before fighting
- 10-second cooldown between engagements (was 5)
- Better target death detection

Equipment system:
- equipBestWeapon(): finds and equips highest-tier sword/axe
- equipBestTool(blockType): picks right tool for block (pickaxe for stone, etc.)
- equipBestArmor(): equips best armor in each slot
- Auto-equip armor when new armor pieces appear in inventory
- Weapon tiers: netherite > diamond > iron > golden > stone > wooden
- Tool type mapping: pickaxe for ores, axe for wood, shovel for dirt

New bridge actions: equip_best_weapon, equip_best_tool, equip_armor

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 17:39:47 -05:00
..
actions Phase 1+2: Doug connects, chats, brain loop (movement WIP) 2026-03-30 10:30:39 -05:00
utils Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
world Phase 1+2: Doug connects, chats, brain loop (movement WIP) 2026-03-30 10:30:39 -05:00
auth.ts Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00
client.ts Phase 1+2: Doug connects, chats, brain loop (movement WIP) 2026-03-30 10:30:39 -05:00
index.js Fix combat loop, add equipment management 2026-03-30 17:39:47 -05:00
index.ts Phase 1+2: Doug connects, chats, brain loop (movement WIP) 2026-03-30 10:30:39 -05:00
protocol.ts Phase 1+2: Doug connects, chats, brain loop (movement WIP) 2026-03-30 10:30:39 -05:00
ws_server.ts Phase 1 complete: Doug connects, chats with personality 2026-03-30 02:03:25 -05:00