uwarp-space
2026-02-18
TW2002 Gold v3.34b parity reached with 43 TEDIT fields wired, tech debt cleaned, and 1,187 tests passing
211 files · 9,581+ · 7,594-
TW2002 Gold v3.34b parity (5-phase implementation)
10 files changed
entertainment.pyTriCront gambling implementedtricront.pyTriCront slot machine logicgold_planet.pyGold Planet Class system: 7 types with weighted random assignmentservice.pyServerConfig fields for all TEDIT settings with proper defaults and validation boundsconstants.pyGrouped TEDIT settings as General Editor One/Two/Three matching TEDIT UI structurebanking.pyBank caps and corp size settings wiredcombat.pyCapture formulas and photon settings wiredmovement.pyNavigation hazard and turn accumulation settings wiredplanet.pyPlanet limits and production settings wiredmaintenance_executor.pyMaintenance ticks: bust clearing, radiation decay, configurable accumulation
starting_credits: 5000 → 300,starting_fighters: 20 → 30 decouple internal1 file
service.py
inactive_prune_days: 14 → 30,port_regen_pct: 20 → 5 decouple internal1 file
service.py
- 6 hardware prices corrected,
max_colonists: 1M → 100K remediate internal1 file
hardware.py
capture_fail_percent: 30 → 0,podless_captures: false → true decouple internal1 file
combat.py
max_photon_fire: 5 → 1,death_delay_seconds: 0 → 86400 decouple internal1 file
combat.py
- All TEDIT settings now have corresponding
ServerConfigfields with proper defaults and validation bounds baseline internal1 file
service.py
- Grouped as General Editor One (14), Two (15), Three (14) matching TEDIT UI structure
decouple
behavioral
1 file
constants.py
- Bank caps, course length, planet limits, corp size, rob/steal formulas
decouple
internal
2 files
banking.pyplanet.py
- FedSpace ship limit, photon disables, steal-from-buy-port
margin
internal
1 file
movement.py
- New player planet grants, game timing delays
instantiate
internal
1 file
service.py
- Bust clearing, radiation decay, configurable navhaz/turn accumulation
decouple
internal
1 file
maintenance_executor.py
- TriCront gambling (Stardock)
decouple
internal
2 files
entertainment.pytricront.py
- Gold Planet Class system: 7 types with weighted random assignment
decouple
internal
1 file
gold_planet.py
Config-driven transwarp pricing
2 files changed
movement.pyTranswarp lock/cost mechanics and inactive_days config wirednavigation.pyTranswarp pricing driven by ServerConfig
- Wired transwarp lock/cost mechanics and
inactive_daysconfig baseline internal1 file
movement.py
- Transwarp pricing, Ferrengi depreciation, and tournament entry gates now driven by
ServerConfigrather than hard-coded values decouple internal1 file
navigation.py
PortClass.STARDOCKenum used instead of magic number0in stardock sector cache streamline internal1 file
__init__.py
Remaining TEDIT wiring gaps fixed
2 files changed
combat.pyphoton_wave_duration wiredunderground.pyUnderground password wired
O(1) indexed lookups and scalability
2 files changed
service.pyO(1) indexes added; bounded metrics; error handling improvementsagent.pyget_stats() extracted; StarDock sector lookup cached; O(n²) pruning fixed
- Replaced remaining linear scans with indexed lookups and direct array access
decouple
internal
1 file
service.py
- Extracted
get_stats(), cached StarDock sector lookup, fixed O(n²) sector pruning loop streamline internal1 file
agent.py
- Added O(1) indexes, bounded metrics, and error handling improvements
remediate
internal
1 file
service.py
- Fixed three scalability TODOs: locking, persistence, and connection management
remediate
internal
1 file
service.py
Tech debt cleanup (136 files, net −733 lines)
2 files changed
utils.pyEmptyArgs, is_cancel(), require_corp(), require_ceo(), require_planet(), reset_player_to_start(), normalize_commodity() extractedeconomy.pyget_player_cargo/add_player_cargo moved here from inline patterns
- Dead code removed: deleted orphaned CLI files, unused shims —
parsers.py,mercenary_manager.py,state.py,limpet_manager.py,multi_ship.py,npc_manager.pydeprecate behavioral6 files
parsers.pymercenary_manager.pystate.pylimpet_manager.pymulti_ship.pynpc_manager.py
- Deduplication: extracted
EmptyArgs,is_cancel(),require_corp(),require_ceo(),require_planet(),reset_player_to_start(),normalize_commodity()intoutils.py; movedget_player_cargo/add_player_cargotocore/rules/economy.py; replaced inline patterns across 50+ command files decouple behavioral2 files
utils.pyeconomy.py
- Config cleanup: removed duplicate
STARTING_*constants fromlogin.pyandagent.py; useServerConfigvalues directly for character creation deprecate errata1 file
agent.py
- Bug fixes: wired
parked_shipsandavoid_sectorsto persistence (data was lost on restart); fixed broken import inmaintenance_executor.pyremediate internal1 file
maintenance_executor.py
- All 1,187 tests passing after cleanup
qualify
errata
1 file
pytest.ini
TEDIT reference documentation
5 files changed
README.mdTEDIT documentation tree rootgeneral-editor-one.mdGeneral Editor One referencegeneral-editor-two.mdGeneral Editor Two referencegeneral-editor-three.mdGeneral Editor Three referencegold-ship-editor.mdGold ship editor reference with binary source annotations
- Added comprehensive TEDIT documentation tree (
docs/tedit/) with per-editor reference pages specify internal4 files
README.mdgeneral-editor-one.mdgeneral-editor-two.mdgeneral-editor-three.md
- Added binary source annotations documenting exact byte offsets in TEDIT config format
specify
errata
1 file
gold-ship-editor.md