Tell the player what is in the captain's pockets - #49
Merged
Conversation
The pants kept a stuff_in_pockets flag that only 'look in' ever set, and 'look in' is the search that empties them. So the flag was FALSE for as long as there was something to find and TRUE forever after: examining the pants said "Nothing seems unusual" while the quarter, the keys and the wallet were still in them, and reported bulges once they were gone. The one hint the game had was printed only to a player who no longer needed it. Ask the question instead of remembering the answer. 'members' is already the list of what an object holds, so the pockets can be described from it and cannot fall out of step. Examining the pants now names the pockets either way, full or empty, and pulling them on says you can feel something in them -- which is what happens when you put on a pair of pants with a pocketful of keys, whether or not you thought to look. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Ui8UMgev1U8LW5iyQdSsJ
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.
"x pants"never indicated the pockets. The pants kept astuff_in_pocketsflag that only'look in'ever set — and'look in'is the search that empties them. The flag was thereforeFALSEfor exactly as long as there was something to find, andTRUEforever after.Before:
After:
membersis already the list of what an object holds, so the flag is gone entirely and the description cannot fall out of step with the contents. No new object and no lexicon change:syn : 'pockets'already makes "pockets" addressable, solook in pocketsandx pocketswork.Two things worth a second look:
>>line are load-bearing.ParagraphOutputStatement::make(src/Statement.cc:509) consumes every consecutive>>literal into one statement, so an unbracedif ... then >>silently swallows the following>>line and governs it too. Without the braces the boast disappeared for any player who searched the pockets before wearing the pants.'wear'reaches this method twice when the pants have to be picked up first (wearable's'wear'does'get'then re-sends'wear').never_wornis what keeps the outer pass from echoing the inner one; both new lines sit inside that guard.Only
games/starship.archchanges — no library file, so thebare/cherrygoldens are untouched.🤖 Generated with Claude Code
https://claude.ai/code/session_013Ui8UMgev1U8LW5iyQdSsJ