fertig-classic-games/tools
Brian Fertig 6a24ccd137 feat(mastervega): add advisor recommendation system with lazy diplomacy music loading
Introduce an advisor recommendation system that suggests colony focus
(improvement, research, fleet, growth, trade, defense) and allocation
slider presets (growth, production, military, research, default) for
each colony. Recommendations are computed by pure heuristics that
consider population levels, factory utilization, empire-wide fleet
strength, war status, and building availability.

UI changes:
- Colony Focus and Allocation Focus flyouts display "YOUR ADVISORS
  RECOMMEND" banners with explanatory text and pulsing arrow indicators
  pointing at the recommended row.
- Selecting a recommendation arms quiet-period tracking (15 turns) so
  advisors don't nag immediately after the player makes a choice.
- `checkAdvisorRecommendations` fires once-a-turn `advisorRecommendation`
  events when current settings diverge from live recommendations. Events
  use dedup markers (`focusNotifiedValue`, `allocNotifiedKey`) that clear
  on match, ensuring a persisting mismatch doesn't repeat every turn but
  a later divergence is reported fresh.
- Turn report screen gains an "Advisor Recommendation" event type with a
  "View Colony" shortcut button.

Performance change:
- Stop eager-loading `diplomacy.bySpecies` music tracks in
  `assetManifest.js`. A playthrough may contact only a handful of the
  nine species, so pre-fetching all nine at room entry wastes bandwidth.
  `VegaMusic`'s own `new Audio()` at `setDiplomacy()` time is the actual
  fetch — this manifest was only ever a race to get there first.

Logic changes:
- Extract shared building-ID lists and a `firstEligibleBuildingId` helper
  to eliminate duplication between auto-queue pickers and the recommendation
  heuristics.
- Add `advisor` tracking object to every colony (with migration in
  `deserialize`).
2026-08-08 22:07:51 -06:00
..
data Excitebike 2026-07-29 22:05:21 -06:00
lib feat(totalannihilation): add flight animation and factory production dials 2026-08-01 09:41:03 -06:00
bloxorzMap.js feat: overhaul Bloxorz rendering, mechanics, and level design; update Total Annihilation visuals 2026-07-25 14:50:23 -06:00
buildCommonWords.js Major Port 2026-06-28 19:27:29 -06:00
fetchStarControlAssets.js refactor: improve Star Control ship rendering and ship picker UX 2026-07-15 11:45:08 -06:00
genBloxorz.js feat: overhaul Bloxorz rendering, mechanics, and level design; update Total Annihilation visuals 2026-07-25 14:50:23 -06:00
genDotLink.js Major Port 2026-06-28 19:27:29 -06:00
genExcitebikeTracks.js fix(excitebike): rework throttle, heat model, and landing after playtest 2026-07-29 22:34:29 -06:00
genGooTower.js Goo Tower Levels 2026-07-26 15:23:18 -06:00
genJumble.js feat: add Jumble word puzzle game with 58 curated levels 2026-06-30 19:42:57 -06:00
genKatamino.js Major Port 2026-06-28 19:27:29 -06:00
genMiniCrossword.js Major Port 2026-06-28 19:27:29 -06:00
genPeggleLevels.js Peggle Adjustments 2026-07-12 09:14:06 -06:00
genPuddingMonsters.js feat: pudding monsters waves 1-3, mahjong match FX, background art 2026-07-26 01:27:36 -06:00
genRushHour.js feat(rushhour): redesign level bank, procedural art, and tiered curriculum 2026-07-28 22:12:55 -06:00
genSpireClimbCreatures.js Major Port 2026-06-28 19:27:29 -06:00
genSuperKartTracks.js feat: add Super Kart — SNES-style Mode 7 kart racing game 2026-07-17 14:25:18 -06:00
genTACampaign.js feat(totalannihilation): overhaul flight model to strafing behavior 2026-08-01 13:15:58 -06:00
genTetrisAttackPuzzles.js feat: add Tetris Attack (Panel de Pon) with endless, stage clear, and puzzle modes 2026-07-20 00:04:26 -06:00
genZuma.js Zuma Level Refactor 2026-07-28 21:33:36 -06:00
readExcitebikeMaps.js excitebike: playtest fixes and Wave 5 polish 2026-07-29 23:06:41 -06:00
verifyAdvanceWars.js feat(advance-wars): add unit progression system with mission-based unlocks 2026-07-19 10:55:18 -06:00
verifyBalatro.js feat: add Balatro — poker roguelike game 2026-07-09 22:43:36 -06:00
verifyBejeweled.js Major Port 2026-06-28 19:27:29 -06:00
verifyBlockFighter.js Major Port 2026-06-28 19:27:29 -06:00
verifyBloxorz.js feat: overhaul Bloxorz rendering, mechanics, and level design; update Total Annihilation visuals 2026-07-25 14:50:23 -06:00
verifyBookwork.js Major Port 2026-06-28 19:27:29 -06:00
verifyCanasta.js Major Port 2026-06-28 19:27:29 -06:00
verifyCivilization.js feat: add barbarian raiders system with warlord ransoms 2026-08-01 18:18:36 -06:00
verifyColoradoDefense.js Further Tweaks to Colorado Defense 2026-07-14 13:19:07 -06:00
verifyCribbage.js Major Port 2026-06-28 19:27:29 -06:00
verifyDotLink.js Major Port 2026-06-28 19:27:29 -06:00
verifyDungeonBoss.js feat(dungeonboss): mid-walk spell casting in adventure windows 2026-07-06 21:55:04 -06:00
verifyExcitebike.js feat(excitebike): add cool-zone speed boost and cooldown feedback 2026-08-01 15:44:17 -06:00
verifyGinRummy.js Major Port 2026-06-28 19:27:29 -06:00
verifyGooTower.js feat(gootower): add sleeping goo mechanic and redesign levels 2026-07-31 23:37:48 -06:00
verifyJewelQuest.js Major Port 2026-06-28 19:27:29 -06:00
verifyJumble.js feat: add Jumble word puzzle game with 58 curated levels 2026-06-30 19:42:57 -06:00
verifyMahjong.js Major Port 2026-06-28 19:27:29 -06:00
verifyMahjongMatch.js Major Port 2026-06-28 19:27:29 -06:00
verifyMasterOfVega.js feat(mastervega): add advisor recommendation system with lazy diplomacy music loading 2026-08-08 22:07:51 -06:00
verifyMiniMotorways.js feat(minimotorways): dynamic scaling and starvation-safe spawning 2026-07-23 21:55:20 -06:00
verifyPaiGowPoker.js Major Port 2026-06-28 19:27:29 -06:00
verifyPeggle.js feat(peggle): overhaul 7 powers with enhanced mechanics, visuals, and audio 2026-07-12 15:29:55 -06:00
verifyPuddingMonsters.js feat: pudding monsters waves 1-3, mahjong match FX, background art 2026-07-26 01:27:36 -06:00
verifyRisk.js Major Port 2026-06-28 19:27:29 -06:00
verifyRummikub.js Major Port 2026-06-28 19:27:29 -06:00
verifyRushHour.js feat(rushhour): redesign level bank, procedural art, and tiered curriculum 2026-07-28 22:12:55 -06:00
verifySWDBG.js feat(swdbg): overhaul card data from physical set transcription 2026-07-08 22:07:48 -06:00
verifySlots.js Major Port 2026-06-28 19:27:29 -06:00
verifySpireClimb.js Major Port 2026-06-28 19:27:29 -06:00
verifyStarControl.js feat: add Star Control space combat game 2026-07-14 22:45:56 -06:00
verifySuperKart.js feat(superkart): add missed-checkpoint correction for shortcut detection 2026-07-22 13:00:12 -06:00
verifyTempest.js retune tempest difficulty and fix death persistence 2026-07-21 22:52:07 -06:00
verifyTetrisAttack.js Re-theme stage clear to helping friends with multi-line intros 2026-07-22 20:52:05 -06:00
verifyTotalAnnihilation.js feat: add radar detection system with jamming and contacts 2026-08-01 14:51:05 -06:00
verifyZuma.js Zuma Level Refactor 2026-07-28 21:33:36 -06:00