From 61193939fccb59f3f12f0cbffd6ce3b17ca45ae8 Mon Sep 17 00:00:00 2001 From: uniior Date: Tue, 18 Jun 2024 21:17:56 -0400 Subject: [PATCH] Hotfix for log prices --- assets/common/trading/item_price_calculation.ron | 1 + common/src/trade.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/common/trading/item_price_calculation.ron b/assets/common/trading/item_price_calculation.ron index 8b1e8d2bdf..504ebee2eb 100644 --- a/assets/common/trading/item_price_calculation.ron +++ b/assets/common/trading/item_price_calculation.ron @@ -50,5 +50,6 @@ good_scaling: [ (Armor, 0.025), // common.items.armor.misc.pants.worker_blue (Tools, 0.015487), // common.items.weapons.staff.starter_staff (Ingredients, 0.034626), // common.items.crafting_ing.leather_scraps + (Wood, 0.034626), // common.items.log.wood (Recipe, 0.01), // common.items.recipes ]) diff --git a/common/src/trade.rs b/common/src/trade.rs index 9c4d9afa5c..5dfd22689e 100644 --- a/common/src/trade.rs +++ b/common/src/trade.rs @@ -351,7 +351,7 @@ impl Good { pub fn trade_margin(&self) -> f32 { match self { Good::Tools | Good::Armor => 0.5, - Good::Food | Good::Potions | Good::Ingredients => 0.75, + Good::Food | Good::Potions | Good::Ingredients | Good::Wood => 0.75, Good::Coin | Good::Recipe => 1.0, // Certain abstract goods (like Territory) shouldn't be attached to concrete items; // give a sale price of 0 if the player is trying to sell a concrete item that somehow