basic and advanced crate item amount changes

This commit is contained in:
Arwent 2022-07-07 09:50:26 +02:00
parent c73368e79d
commit 168fb8c7cb

View File

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