From e6b4cb9f5816c6ee239233bc85f74ee446a161c2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 16:37:45 -0400 Subject: feat: shop system overhauled, gui conversation tree editor overhauled --- data/mobs/examples/weapons_smith.yaml | 58 +++++++++++++---------------------- 1 file changed, 22 insertions(+), 36 deletions(-) (limited to 'data/mobs/examples/weapons_smith.yaml') diff --git a/data/mobs/examples/weapons_smith.yaml b/data/mobs/examples/weapons_smith.yaml index 0ba8237..b12a543 100644 --- a/data/mobs/examples/weapons_smith.yaml +++ b/data/mobs/examples/weapons_smith.yaml @@ -19,46 +19,32 @@ slash_defense: 0 speed: 5 stab_defense: 0 strength: 1 +shop: + message: The Smithy — buy or sell weapons and armor. + buys_anything: false + items: + - item_id: bronze_sword + stock: 10 + - item_id: iron_sword + stock: 5 + - item_id: bronze_axe + stock: 10 + - item_id: iron_axe + stock: 5 + - item_id: bronze_pickaxe + stock: 10 + - item_id: iron_pickaxe + stock: 5 + - item_id: bronze_med_helm + stock: 10 + - item_id: iron_med_helm + stock: 5 talk: nodes: - shop: - action: - shop: - items: - - buy_price: 25 - item_id: bronze_sword - sell_price: 6 - - buy_price: 60 - item_id: iron_sword - sell_price: 15 - - buy_price: 20 - item_id: bronze_axe - sell_price: 5 - - buy_price: 50 - item_id: iron_axe - sell_price: 12 - - buy_price: 20 - item_id: bronze_pickaxe - sell_price: 5 - - buy_price: 50 - item_id: iron_pickaxe - sell_price: 12 - - buy_price: 16 - item_id: bronze_med_helm - sell_price: 4 - - buy_price: 40 - item_id: iron_med_helm - sell_price: 10 - message: The Smithy — buy or sell weapons and armor. - message: '"Here''s the current inventory. All quality guaranteed."' - options: - - goto: start - text: '"That''s all for now."' start: - message: '"Welcome to the Smithy! Finest weapons and armor on the asteroid."' + messages: + - '"Welcome to the Smithy! Type ''list'' to see my wares."' options: - - goto: shop - text: '"Show me what you''ve got."' - text: '"Nothing right now."' unique: true size: small -- cgit v1.2.3