basic and advanced crate item amount changes
This commit is contained in:
parent
3e56c1c401
commit
01d536a416
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user