fix camo locked bug and formatting scripts
This commit is contained in:
parent
eacb4489c7
commit
9db7940fdd
@ -319,3 +319,14 @@ MPDepotMenu = function(unk1, unk2)
|
|||||||
return depot_menu
|
return depot_menu
|
||||||
end
|
end
|
||||||
LUI.MenuBuilder.m_types_build["MPDepotMenu"] = MPDepotMenu
|
LUI.MenuBuilder.m_types_build["MPDepotMenu"] = MPDepotMenu
|
||||||
|
|
||||||
|
GetLootDataForRef_orig = LUI.InventoryUtils.GetLootDataForRef
|
||||||
|
LUI.InventoryUtils.GetLootDataForRef = function(f13_arg0, f13_arg1, f13_arg2, f13_arg3, f13_arg4)
|
||||||
|
local loot_data = GetLootDataForRef_orig(f13_arg0, f13_arg1, f13_arg2, f13_arg3, f13_arg4)
|
||||||
|
|
||||||
|
if loot_data and custom_depot.get_function("has_item")(loot_data.guid) then
|
||||||
|
loot_data.lockState = "Unlocked"
|
||||||
|
end
|
||||||
|
|
||||||
|
return loot_data
|
||||||
|
end
|
||||||
|
@ -1,21 +1,7 @@
|
|||||||
-- from roundend.lua, dev comments says that the game["round_end"] array contains indexes for this table
|
-- from roundend.lua, dev comments says that the game["round_end"] array contains indexes for this table
|
||||||
local ending_reasons = {
|
local ending_reasons = {"MP_DRAW", "LUA_MENU_REPORT_DRAW", "MP_ROUND_WIN", "MP_ROUND_LOSS", "LUA_MENU_REPORT_VICTORY",
|
||||||
"MP_DRAW",
|
"LUA_MENU_REPORT_DEFEAT", "MP_HALFTIME", "MP_OVERTIME", "MP_ROUNDEND", "MP_INTERMISSION",
|
||||||
"LUA_MENU_REPORT_DRAW",
|
"MP_SWITCHING_SIDES", "MP_MATCH_BONUS_IS", "MP_MATCH_TIE", "MP_GAME_END", "SPLASHES_BLANK"}
|
||||||
"MP_ROUND_WIN",
|
|
||||||
"MP_ROUND_LOSS",
|
|
||||||
"LUA_MENU_REPORT_VICTORY",
|
|
||||||
"LUA_MENU_REPORT_DEFEAT",
|
|
||||||
"MP_HALFTIME",
|
|
||||||
"MP_OVERTIME",
|
|
||||||
"MP_ROUNDEND",
|
|
||||||
"MP_INTERMISSION",
|
|
||||||
"MP_SWITCHING_SIDES",
|
|
||||||
"MP_MATCH_BONUS_IS",
|
|
||||||
"MP_MATCH_TIE",
|
|
||||||
"MP_GAME_END",
|
|
||||||
"SPLASHES_BLANK"
|
|
||||||
}
|
|
||||||
|
|
||||||
local function starts_with(str, start)
|
local function starts_with(str, start)
|
||||||
return str:sub(1, #start) == start
|
return str:sub(1, #start) == start
|
||||||
|
Loading…
Reference in New Issue
Block a user