Numbers. The paper runner (tools/mvp_validation_sim.py) and the Godot runtime adapter were two independent rewrites of the same rules and had drifted: seed derivation, damage order, the weakness rule and the shield rebuild semantics all differed, so the runtime never actually reproduced the paper numbers and P2-BAT-01 could never pass. - add data/mvp_battle_rules.json as the single source of balance data and of the per-run seed derivation, read by both engines - derive the efficiency factor from SHA-256 (48-bit prefix) so Python and GDScript land on the same float64 - port the paper semantics into battle_sim.gd and expose the simulation as a stepwise state machine so a live scene can drive it at 1x/2x/3x - add tools/mvp_parity_gate.py: diffs 300 results field by field, event log by event log, and exits non-zero on any difference - freeze data/mvp_validation_seed_reference.json so unapproved numeric drift fails the gate - note that GDScript's roundf() is half-away-from-zero while Python's round() is banker's rounding; the runtime uses String.num instead UI. The sample had no real UI carrier, no localization and no touch path, so the NinePatch, dynamic text, safe area and input cases had nothing to be proven against. - add the battle HUD, laid out from the contract table rather than container stretch ratios, reproducing the 390x844 rectangles exactly and adapting 360x800 / 430x932 with the stage kept as priority space - add runtime text tables for zh_CN and en_US and a key validator that proves both locales carry the same keys and every content id has a string - add NinePatch frames with a 6px border band and 6px cut corners - add the live battle scene, the capture runner and the 1x/2x/3x equivalence test tools/run_p2_checks.sh runs the nine gates in one command; all pass.
89 lines
3.6 KiB
JSON
89 lines
3.6 KiB
JSON
{
|
|
"schema": 1,
|
|
"locale": "en_US",
|
|
"purpose": "Runtime UI strings for the Windroost HUD. Every visible string in the game must come from a key here; nothing may be hardcoded in a scene or script. Seven-locale schema (zh_CN/en_US/es/pt-BR/ja/fr/de) is fixed on day one per ADR-009; only zh_CN and en_US ship first.",
|
|
"strings": {
|
|
"hud.resource.gold": "Gold",
|
|
"hud.resource.crystal": "Crystal",
|
|
"hud.resource.round": "Round",
|
|
"hud.action.settings": "Settings",
|
|
"hud.header.region": "Region",
|
|
"hud.header.node": "Node",
|
|
"hud.header.speed": "Speed",
|
|
"hud.header.pause": "Pause",
|
|
"hud.header.resume": "Resume",
|
|
"hud.header.exit": "Exit",
|
|
"hud.stage.enemy": "Enemy",
|
|
"hud.stage.boss": "Boss",
|
|
"hud.stage.hp": "HP",
|
|
"hud.stage.shield": "Shield",
|
|
"hud.stage.weakness": "Weakness",
|
|
"hud.stage.timer": "Countdown",
|
|
"hud.stage.wave": "Wave",
|
|
"hud.stage.shield_broken": "Shield broken",
|
|
"hud.stage.weakness_active": "Weakness active",
|
|
"hud.stage.tap_target": "Tap to switch target",
|
|
"hud.manual.tap": "Tap enemies",
|
|
"hud.manual.tap_stop": "Stop tapping",
|
|
"hud.manual.storm": "Storm Order",
|
|
"hud.manual.ultimate": "Ultimate",
|
|
"hud.manual.ready": "Ready",
|
|
"hud.manual.cooldown": "Cooldown {seconds}s",
|
|
"hud.manual.energy": "Energy {percent}%",
|
|
"hud.roster.signature": "Signature",
|
|
"hud.roster.energy": "Energy",
|
|
"hud.roster.locked": "Off duty",
|
|
"hud.roster.empty": "No visible hero selected",
|
|
"hud.growth.upgrade": "Upgrade",
|
|
"hud.growth.level": "Lv.{level}",
|
|
"hud.growth.dps": "Company DPS",
|
|
"hud.growth.cost": "{gold} gold",
|
|
"hud.nav.expedition": "Run",
|
|
"hud.nav.company": "Company",
|
|
"hud.nav.skyport": "Skyport",
|
|
"hud.nav.archive": "Archive",
|
|
"modal.pause.title": "Paused",
|
|
"modal.pause.settings": "Settings",
|
|
"modal.pause.resume": "Resume battle",
|
|
"modal.pause.exit": "Exit battle",
|
|
"modal.victory.title": "Expedition cleared",
|
|
"modal.victory.reward": "Reward",
|
|
"modal.victory.next": "Next node",
|
|
"modal.victory.return": "Return to skyport",
|
|
"modal.defeat.title": "Expedition failed",
|
|
"modal.defeat.reason": "Time expired, total damage too low",
|
|
"modal.defeat.retry": "Retry",
|
|
"modal.defeat.return": "Return to skyport",
|
|
"modal.save_error.title": "Save error",
|
|
"modal.save_error.code": "Code {code}",
|
|
"modal.save_error.retry": "Retry save",
|
|
"modal.save_error.backup": "A safe backup was kept",
|
|
"common.on": "On",
|
|
"common.off": "Off",
|
|
"content.hero.H01": "Aoden, Human Breaker",
|
|
"content.hero.H02": "Lyria, Elven Ranger",
|
|
"content.hero.H03": "Sera, Storm Warden",
|
|
"content.hero.H04": "Brom, Dwarf Runemaster",
|
|
"content.hero.H05": "Vela, Exiled Scholar",
|
|
"content.hero.H06": "Kalan, Redstone Lancer",
|
|
"content.enemy.E-R1-F1-V1": "Grassland Wolf",
|
|
"content.enemy.E-R1-F3-V1": "Treant Guard",
|
|
"content.enemy.E-R1-F4-V1": "Venom Vine",
|
|
"content.boss.B-R1-01": "Bandit Captain Red Kite",
|
|
"content.region.R1": "Windplain",
|
|
"content.node.R1-C01-N01": "Wolf Pack",
|
|
"content.node.R1-C01-N03": "Treant Outpost",
|
|
"content.node.R1-C01-N10": "Red Kite's Flagship",
|
|
"content.hero.H01.short": "Aoden",
|
|
"content.hero.H02.short": "Lyria",
|
|
"content.hero.H03.short": "Sera",
|
|
"content.hero.H04.short": "Brom",
|
|
"content.hero.H05.short": "Vela",
|
|
"content.hero.H06.short": "Kalan",
|
|
"reward.REWARD-R1-C01-N01": "30 gold",
|
|
"reward.REWARD-R1-C01-N03": "50 gold · dwarven hammer",
|
|
"reward.DROP-R1-BOSS-01": "100 gold · 5 crystal · boss gear",
|
|
"reward.REWARD-R1-C01-N10": "No reward"
|
|
}
|
|
}
|