From cba8e157974e1157a5532f2b5b7c5ba39f58bd8c Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Thu, 10 Jun 2021 15:32:21 +0300 Subject: [PATCH] Split consumables to different tables in trading --- assets/common/item_price_calculation.ron | 7 +++++-- assets/common/loot_tables/consumable/throwable.ron | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/common/item_price_calculation.ron b/assets/common/item_price_calculation.ron index a3ca4f3f4a..875321c988 100644 --- a/assets/common/item_price_calculation.ron +++ b/assets/common/item_price_calculation.ron @@ -24,8 +24,11 @@ loot_tables: [ (0.3, true, "common.loot_tables.food.farm_ingredients"), (0.4, true, "common.loot_tables.food.wild_ingredients"), (0.2, true, "common.loot_tables.food.prepared"), - // TODO: Change consumables and split them up - (1.0, true, "common.loot_tables.consumable.default"), + // Potions + (0.2, true, "common.loot_tables.consumable.potion"), + // Misc + (0.1, true, "common.loot_tables.consumable.throwable"), + (0.7, true, "common.loot_tables.consumable.misc"), (1.0, false, "common.loot_tables.trading"), ], // this is the amount of that good the most common item represents diff --git a/assets/common/loot_tables/consumable/throwable.ron b/assets/common/loot_tables/consumable/throwable.ron index 3fc2ea2b8d..984662026f 100644 --- a/assets/common/loot_tables/consumable/throwable.ron +++ b/assets/common/loot_tables/consumable/throwable.ron @@ -1,5 +1,4 @@ [ // bombs - (0.6, Item("common.items.utility.bomb")), - (0.2, Item("common.items.utility.bomb_pile")), + (1.0, ItemQuantity("common.items.utility.bomb", 1, 3)), ]