bbsbot
2026-03-31
Bank balance cap, port_haggle escape, net worth fix, disable trading for swarchestrator
25 files · 344+ · 79-
Bank balance cap and net worth fix
3 files changed
stardock.pyCap bank_balance at 500K game limit; parse actual balance from deposit response rather than estimatingplugin.pyClamp incoming bank_balance to 500K max at manager receivecharacter_state.pyRecompute net_worth_estimate from capped fields; ignore inflated worker value
- bank_balance capped at the 500K TW2002 game limit throughout the system. Actual balance parsed from the deposit response screen rather than estimated. Manager clamps incoming bank_balance values at 500K. net_worth_estimate recomputed from capped fields to prevent inflated values from affecting strategy decisions.
remediate
behavioral
2 files
stardock.pycharacter_state.py
Port haggle escape and swarchestrator trading disable
2 files changed
trading.pyEscape port_haggle loop when bot can't afford default priceswarchestrator.pyTrading disabled for swarchestrator archetype — orchestrators don't trade
- port_haggle loop now exits when the bot’s credits are insufficient to meet the port’s default price, preventing infinite haggle on broke bots. SwarchestratorStrategy has trading disabled — orchestrator bots coordinate other bots rather than trading themselves.
remediate
behavioral
2 files
trading.pyswarchestrator.py
PirateStrategy: patrol sector directive and bank guard
1 file changed
pirate.pypatrol:<sector> directive support; pirate stays at patrol sector instead of banking away; bank withdrawal guard when balance < keep_on_hand
- PirateStrategy supports patrol:
directive to keep the pirate at a specific patrol sector. Pirate uses EXPLORE at the patrol sector instead of WAIT. Bank withdrawal allowed when balance is below keep_on_hand threshold but above zero. Fighter and shield counts reported in bot status. instantiate behavioral1 file
pirate.py