Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Row 1-5d of the localization plan (
docs/LOCALIZATION_PLAN.md§5.0): the combat roll output. Stacked on #6311 (1-5c); this PR targets the 1-5c branch, so the diff shows 1-5d only.What moved (
combat.roll.*,CombatMessageHelper)select, with or without mods), per-die modifier groups, the hit count (plural with=0) and "(nice)". The line's markdown frame (> \Nx`` and the dice) stays in code, so the disaster-watch excerpt still finds unit lines without reading words.With modifiers:header (now carried inCombatRollResult).**Total hits N**, and the duplicate and missing unit notices.Roll output follows the roller's channel language (
Lang.forCorrectChannel).RollHeading.name()is always English, so the replay header stays English. Homebrew callers and the replay renderer keep English overloads (displayUnitRoll,displayHitResults,displayModifiers,withExtraDiceNoticewithout a language).rollHeadingwas also split into small methods (the round tracker and the once-per-round agent markers are unchanged, just named).Found on the way, not changed (not localization):
CombatRollService.checkBadUnitspasses the missing list to the duplicate-units notice, so duplicates are never listed. Left a TODO.Ratchet
New class line
ti4.helpers.CombatMessageHelper 0.Visible changes
None: every English text is byte-identical.
Tests
CombatRollTextOracleTestkeeps the oldCombatMessageHelpertext code as a reference and compares: unit roll lines over units, dice, modifiers, roll counts and holder labels; per-die modifier groups; about 150 modifier combinations (named or not, capped or not, scope, sign, type, scaling); totals with and without X-89; and headings for every roll type, on a planet or in space, with and without Thalnos and a BOMBARDMENT target, over two rolls so the round tracker advances the same way.CombatRollPayloadRendererParityTest(replay renderer vs Discord text) still passes.mvn verifywith the Postgres tests: 3956 tests, 0 failures.🤖 Generated with Claude Code