Repository navigation
Have Gilbert say so when none of the crew are fishing - #246
Merged
Merged
Conversation
Gilbert's answer to "Have you noticed my crew hauling in fish?" only special-cased no boat and no workers, so a crew on hauling, transport or piracy, ashore unassigned, or aboard a boat away at sea got "That I have! ... about 0 fish a day. Keep that up". Give the zero-catch state its own line pointing at the fishing boats instead. Closes #245 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (performed inline in the dispatching session, not by an independent reviewer):
Findings:
Summary: the change is small and green, no protected paths are touched, and it is ready to merge. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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.
Summary
Shop._crewDialoguenow returns its own line whenboats.fleetDailyCatchis 0. That covers crew on hauling, transport or piracy boats, hands ashore and unassigned, and a crewed fishing boat away at sea. Before this change the line read "That I have! Word is your crew hauls in about 0 fish a day. Keep that up and I might need a bigger vault!"test_npc_crew_dialogue_ignores_non_fishing_boatsno longer pins the "0 fish a day" string. It still asserts that the best hull's rate isn't reported. Two tests were added for the crew-ashore and boat-at-sea states.Closes #245
Test plan
python3 -m compileall -q srcmain+ 2 new)Run Unit Testsgreen on the PR headNotes
black --check src/location/shop.pyalready fails onmainbecause of two long%tuples in_sellPitchDialogueand_sellingTipsDialogue. Those lines are outside this change and were left alone.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