nddipiazza/robos / games/quest-warrior-dragon/.agents/skills/add-shop
add-shop
VerifiedInstructions for defining shop data in data/v1/shops.json, linking shopkeepers in DungeonMap scenes, and configuring inn pricing.
🛒 Add a Shop or Inn Skill
Use this skill when configuring weapon/armor shops, key shops, tool shops, or inns in town and dungeon maps.
📊 Data Source (data/v1/shops.json)
Shops are loaded at runtime by DungeonMap._load_shops_db(). Each entry defines inventory and location details:
{
"id": "bre001",
"location_id": "brecconary",
"location_name": "Brecconary",
"type": "weapon_armor_shop",
"npc_type": "merchant",
"npc_facing": "down",
"inventory": [
{ "item_id": "bamboo_pole", "price": 10 },
{ "item_id": "club", "price": 60 }
],
"map_key": "brecconary-1f",
"npc_tile": [x, y],
"desk_tile": [x, y]
}
Item IDs reference data/v1/weapons.json, data/v1/armor.json, data/v1/shields.json, or data/v1/items.json.
🛠️ Wiring Shops into DungeonMap Scenes
- Ensure the shop's
idis present indata/v1/shops.jsonwith a matchingmap_key. - In
_get_npcs(), setshop_idon the shopkeeper NPC:{ "tile": Vector2i(x, y), "sprite_id": "merchant", "facing": "down", "shop_id": "bre001" } _cmd_talk()automatically opens_open_shop(shop_id)when talking to the merchant, invoking the purchase choice panel and updating hero gold / inventory.- For an Inn, assign an
inn_costkey (e.g.,"inn_cost": 6) instead ofshop_id._cmd_talk()handles HP/MP restoration and gold deduction via_open_inn(cost).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |