Skip to content

Localization Phase 1: hit assignment after a combat roll on combat.hits.* keys (1-5e) - #6313

Open
wholton wants to merge 1 commit into
l10n/phase1-combat-roll-textfrom
l10n/phase1-combat-roll-notes
Open

wholton wants to merge 1 commit into
l10n/phase1-combat-roll-textfrom
l10n/phase1-combat-roll-notes

Conversation

@wholton

@wholton wholton commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Row 1-5e of the localization plan (docs/LOCALIZATION_PLAN.md §5.0): hit assignment after a combat roll. Stacked on #6312 (1-5d); this PR targets the 1-5d branch, so the diff shows 1-5e only.

What moved (combat.hits.*, CombatRollService)

  • Buttons: Auto-assign, Auto-assign For Dummy, Manually Assign, Assign (BOMBARDMENT), Cancel a Hit, Roll Dice (For Dummy) For Combat Round #N, Repair With Duranium Armor, Roll Thalnos. Hit counts are ICU plurals.
  • Messages: suffered hits (SPACE CANNON, per round, supplemental roll), "you may automatically assign" (space, AFB) and "you may autoassign" (ground), the SPACE CANNON DEFENCE, ground ("produced by …") and BOMBARDMENT assignment prompts (also for a dummy), Valkyrie Particle Weave, "you may roll dice for Combat Round #N", the two Fog of War relay notices, Duranium Armor repair without hits and the Crown of Thalnos prompt.
  • Small private helpers build the buttons and messages, so each site is one call.

Messages in the roll's channel follow the roller's channel language (Lang.forCorrectChannel(player), as the roll output in 1-5d). The public senders that take a channel (sendSpaceCannonOffenceHitAssignment, sendSpaceCannonDefenceHitAssignment, sendGroundCombatHitAssignment, sendSpaceAssignHitsButtons) use the hit player's channel language.

Homebrew texts stay English and in code: Sting of the Hive, Metali Void Shielding, Blue Reverie, Meteor Slings, X-89 Ω Ω, Biomechanical Nutrients. Text appended from ButtonHelperModifyUnits.autoAssignSpaceCombatHits is untouched (a later row).

Found on the way, not changed (not localization): after a Valkyrie Particle Weave hit, the buttons assign 1 hit but their labels use the opponent's hit count. Left a TODO.

Ratchet

New class line ti4.service.combat.CombatRollService 33.

Visible changes

One wording for every dummy auto-assign button, "Auto-assign Hit(s) For Dummy". Before, two sites said just "Auto-assign Hit" at 1 hit (SPACE CANNON and AFB), and sendSpaceAssignHitsButtons said "Auto-assign hits for Dummy". Every other English text is byte-identical.

Tests

  • CombatHitAssignmentTextTest compares every new key's English with the old string expression, over 0, 1, 2, 3 and 12 hits and several rounds.
  • Full mvn verify with the Postgres tests: 3960 tests, 0 failures.

🤖 Generated with Claude Code

… (1-5e)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant