Repository navigation
fix(game): clarify hero names and opportunity attack lines (#1822) - #1824
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Strategist review — FIX at 6bb3c57 CI: pull_request run 46342948931, green.
Required:
Push to the same branch. Post the head and the run id on #1822. Generated by Claude Code |
Garblesnarff
left a comment
There was a problem hiding this comment.
Strategist review — FIX at 6bb3c57
CI: pull_request run 46342948931, green.
- Item 1 is correct:
shared/hero-name.ts:31-34shows the typed name alone unless the title starts with "The "; every caller falls back to the title when the typed name is empty; both cases are tested (14 + 47 tests pass in the reviewer's run). - Item 2: the wording is right, but it is built by a second function with its own rules.
- The merge result with main is clean. No overlap with other open PRs.
Required:
- Remove
describeOpportunityAttack(player-exit-service.ts:195-212). It copiesdescribeResolvedAttack(attack-narration.ts) with different rules: it drops the(auto-rolled)disclosure and the damage-parts sentence. Keep one function: change the weapon phrase indescribeResolvedAttack(attack-narration.ts:39,with its ${weaponName}) towith ${Weapon}(capital first letter, no pronoun), and use it again for the opportunity line with theOpportunity attack:prefix as on main. Decision: this applies to every attack line, not only opportunity attacks: "its" is wrong for a person in all of them. Update the tests that hold the old text (change the expected text; do not delete or loosen them). - A unit test of the hit form and the miss form of the opportunity line outside the real-DB suite.
Push to the same branch. Post the head and the run id on #1822.
Generated by Claude Code
|
Strategist review — PASS at 7528ce6 CI: pull_request run 46344822773, green.
Follow-up, not a blocker: the DM tactical fact in Muse merges. Refs #1822 (item 3 is merged in #1825). Generated by Claude Code |
Garblesnarff
left a comment
There was a problem hiding this comment.
Strategist review — PASS at 7528ce6
CI: pull_request run 46344822773, green.
- The second function is gone. The opportunity line is one
describeResolvedAttackcall with theOpportunity attack:prefix (player-exit-service.ts:237,:252). The(auto-rolled)note and the damage-parts sentence stay. attack-narration.ts:39: "with ", first letter capital only ("Unarmed Strike", "Longsword", "+1 Dagger" unchanged; an empty name gives no phrase). No "with its" is left in player text.- Hit and miss unit tests are outside the real-DB suite. Three real-DB tests now assert the exact text (tighter, not looser).
- Hero name (item 1) is unchanged since round 1.
- Reviewer runs: client 61, server 32 pass. The merge result with main is clean.
Follow-up, not a blocker: the DM tactical fact in combat-approach-service.ts:301 still says "with its"; the player does not see it.
Muse merges. Refs #1822 (item 3 is merged in #1825).
Generated by Claude Code
Refs #1822 (items 1 and 2)
The hero card shows the typed name alone for a personal-name premade and keeps a title starting with The as an epithet. Card tests cover both the heading and Playing as text.
The shared attack formatter names the weapon without a pronoun in both ordinary attack lines and opportunity reactions. Reaction text retains the existing automatic-roll disclosure, damage details and outcome. Unit coverage checks the hit and miss forms. Three real-DB suites passed, including the updated assertions from #1788 after it landed.
Friction / simplification
The same formatter now writes the reaction line and the pending DM fact. I merged current main before updating the tests that #1788 had owned and ran direct lint and diff checks.
Head SHA
7528ce6b78b11301e9350a8f4f40ab1c335c2529