Skip to content

Add add_items, unlock_clothing, has_clothing; clothing ownership#12

Merged
narayan24 merged 1 commit into
masterfrom
feature/inventory-clothing-improvements
May 14, 2026
Merged

Add add_items, unlock_clothing, has_clothing; clothing ownership#12
narayan24 merged 1 commit into
masterfrom
feature/inventory-clothing-improvements

Conversation

@narayan24
Copy link
Copy Markdown
Owner

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" guards
  • ClothingDefinition.StartingQuantity (default 1): set to 0 in clothes.json for items that must be bought; InitClothingFromDefaults now respects this
  • ClothingDefinition.Price: shop price field (informational)

Test plan

  • add_items "kron" 40 adds exactly 40 Kron to inventory
  • Clothing with starting_quantity: 0 does not appear in wardrobe at game start
  • After unlock_clothing "sport_outfit", sport_outfit appears in wardrobe
  • has_clothing "sport_outfit" returns false before unlock, true after

🤖 Generated with Claude Code

- 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>
@narayan24 narayan24 merged commit ef1ac6b into master May 14, 2026
2 checks passed
@narayan24 narayan24 deleted the feature/inventory-clothing-improvements branch May 14, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant