Skip to content

nddipiazza/robos / games/quest-warrior-dragon/.agents/skills/add-shop

add-shop

Verified

Instructions 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

  1. Ensure the shop's id is present in data/v1/shops.json with a matching map_key.
  2. In _get_npcs(), set shop_id on the shopkeeper NPC:
    { "tile": Vector2i(x, y), "sprite_id": "merchant", "facing": "down", "shop_id": "bre001" }
    
  3. _cmd_talk() automatically opens _open_shop(shop_id) when talking to the merchant, invoking the purchase choice panel and updating hero gold / inventory.
  4. For an Inn, assign an inn_cost key (e.g., "inn_cost": 6) instead of shop_id. _cmd_talk() handles HP/MP restoration and gold deduction via _open_inn(cost).
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
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: 193kUpdated Claude CodeCodexVerifiedInstall