Divergent/mods/Lootboxes/gamedata/scripts/a_lootbox_loot.script

15 lines
334 B
Plaintext
Raw Normal View History

2024-03-17 20:18:03 -04:00
GetStatus = utils_item.get_item_trade_status
function utils_item.get_item_trade_status(obj, profile)
local status = GetStatus(obj, profile)
local sec = obj:section()
local factions = SYS_GetParam(0, sec, "factions")
if profile_mode == 2 and factions then
return 3
else
return status
end
end