Add add_items, unlock_clothing, has_clothing; clothing ownership#12
Merged
Merged
Conversation
- AddItems(id, count): earn multiple items at once (e.g. add_items "kron" 40) - UnlockClothing(id): unlock a clothing item for the wardrobe after purchase - HasClothing(id): bool check for script-side ownership guards - ClothingDefinition.StartingQuantity (default 1): items with 0 must be unlocked via unlock_clothing before they appear in the wardrobe - ClothingDefinition.Price: shop price in Kron, informational for now - InitClothingFromDefaults now respects StartingQuantity Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
add_items "id" count— add multiple items at once (used for earning salary in bulk)unlock_clothing "id"— unlocks a clothing item for the wardrobe (used by shop purchases)has_clothing "id"— bool check so scripts can show "already owned" guardsClothingDefinition.StartingQuantity(default 1): set to 0 inclothes.jsonfor items that must be bought;InitClothingFromDefaultsnow respects thisClothingDefinition.Price: shop price field (informational)Test plan
add_items "kron" 40adds exactly 40 Kron to inventorystarting_quantity: 0does not appear in wardrobe at game startunlock_clothing "sport_outfit", sport_outfit appears in wardrobehas_clothing "sport_outfit"returns false before unlock, true after🤖 Generated with Claude Code