Hotfix for log prices

This commit is contained in:
uniior 2024-06-18 21:17:56 -04:00
parent 2f968095c7
commit 61193939fc
2 changed files with 2 additions and 1 deletions

View File

@ -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
])

View File

@ -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