From 168fb8c7cb8686e8c60840191c4dcc3407492a1b Mon Sep 17 00:00:00 2001 From: Arwent Date: Thu, 7 Jul 2022 09:50:26 +0200 Subject: [PATCH] basic and advanced crate item amount changes --- data/ui_scripts/custom_depot/depot_override.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/ui_scripts/custom_depot/depot_override.lua b/data/ui_scripts/custom_depot/depot_override.lua index 51d223dd..78826f51 100644 --- a/data/ui_scripts/custom_depot/depot_override.lua +++ b/data/ui_scripts/custom_depot/depot_override.lua @@ -197,7 +197,7 @@ MPDepotOpenLootMenu = function(unk1, unk2) custom_depot.get_function("remove_currency")(supply_drop_price.type, supply_drop_price.amount) custom_depot.get_function("save_depot_data")() - for i = 1, math.random(1, 3) do + for i = 1, unk2.crateType:find("_basic") and math.random(1, 2) or math.random(2, 3) do local items_list = LUI.MPLootDropsBase.GetGenericItemList(x, LUI.MPDepot.LootDropsData[LUI.MPDepot .SuppyDropLootStream[unk2.crateType]].lootTableColName) local random_item = items_list[math.random(#items_list)]