Repository navigation
Have a crew member describe their own boat, not the fleet's best - #241
Conversation
"How's the boat treating you?" staged its answer on business.currentTier, the best hull in the fleet, so a hand on a Rowboat in a fleet that also held a Fishing Fleet praised the Fishing Fleet, and a hand ashore praised whatever the best boat was. #164 moved the sibling work answer onto boats.boatFor; the boat answer now does the same, with an ashore line for an unassigned hand. Closes #240 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review rubric (an inline review by the authoring session, not an independent review):
Observation outside this diff, not acted on: the tier-2 line ("room to stow the catch") and the tier-1 line still describe a fishing boat whatever the boat's role is. A hand on a piracy Trawler therefore talks about stowing the catch. This is flavour rather than a wrong figure, and #164 only treated quoted numbers as a correctness issue, so it is recorded here and not fixed. Summary: a one-function fix that matches the precedent #164 set. The regression tests have been confirmed to fail without the fix. No protected path is touched. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
Summary
boatDialogueinsrc/npc/villagers.pynow looks up the speaker's own boat withboats.boatFor(player, name)and stages its line on that boat's tier, instead ofbusiness.currentTier(player)(the fleet's best hull). This mirrors the change Fix role-blind crew dialogue and remove three dead symbols #164 made to the siblingworkDialogue.Closes #240
Test plan
test_createCrewNPC_boat_dialogue_is_about_the_hands_own_boat: a Rowboat plus a Fishing Fleet, with the hand on the Rowboat. The answer names the Rowboat and not the Fishing Fleet.test_createCrewNPC_boat_dialogue_handles_an_unassigned_hand: a hand unassigned from a Fishing Fleet gets the ashore line.villagers.pychange stashed and to PASS with it restored.test_createCrewNPC_boat_dialogue_is_staged_by_tier(one boat per tier) still passes unchanged.main, plus 2 new).Notes
black --check src/npc/villagers.pyreports drift that already exists onmain(the longROLES[...]line inworkDialogue). It was left alone to keep this diff to its scope.workDialoguewithboatDialogue.This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson