Skip to content

Localization Phase 1: hit assignment results on combat.assign.* keys (1-5f) - #6315

Open
wholton wants to merge 1 commit into
l10n/phase1-combat-roll-notesfrom
l10n/phase1-combat-hits-assign
Open

wholton wants to merge 1 commit into
l10n/phase1-combat-roll-notesfrom
l10n/phase1-combat-hits-assign

Conversation

@wholton

@wholton wholton commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Row 1-5f of the localization plan (docs/LOCALIZATION_PLAN.md §5.0): the hit assignment results. Stacked on #6313 (1-5e); this PR targets the 1-5e branch, so the diff shows 1-5f only.

What moved (combat.assign.*, ButtonHelperModifyUnits)

  • Headers: "{player} assigned the hit(s) in the following way:", the summary "The hit(s) would be assigned in the following way:" and "{player} suffered no hits:". This summary is the text appended to the 1-5e assignment prompts.
  • Result lines for AFB, ground and space auto-assign: Sustained / Would sustain, Destroyed / Would destroy, Removed / Would remove, "Made N X sustained", Duranium Armor repaired / would repair, Valkyrie Exoskeleton hits, destroyed mechs and the rare "got a boo boo" line. The > quote and the newline stay in code, and one hitLine helper builds each line.
  • Ground combat: the automated "## End of Ground Combat" and "Picture of system" lines, the unknown-planet reply, the remove-structures prompt (reusing the 1-5a combat.start.*Structures.button labels), Dacxive Animators, and claim the planet or fight the coexisters with their buttons.
  • "{player}, your opponent has finished assigning hits."

Texts follow the hit player's channel language through the class's existing TacticalMessages.render. The Dacxive, claim-or-fight and finished-assigning messages use the language of the player they address.

Ratchet

ti4.helpers.ButtonHelperModifyUnits 80 → 72.

Visible changes

None: every English text is byte-identical.

Tests

  • HitAssignmentResultTextTest compares every new key's English with the old string expression, over 0, 1, 2, 3 and 12 units or hits.
  • Full mvn verify with the Postgres tests: 3963 tests, 0 failures.

🤖 Generated with Claude Code

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