Better unlock all loot

This commit is contained in:
Federico Cecchetto
2022-05-25 02:00:59 +02:00
parent f9dc6e238d
commit 1f121cd04e
2 changed files with 15 additions and 10 deletions

View File

@ -169,12 +169,3 @@ Cac.IsCustomClassLocked = function(...)
return isclasslocked(...)
end
local getlockstate = Engine.GetItemLockState
Engine.GetItemLockState = function(...)
local status, state, msg = getlockstate(...)
if (state == Cac.ItemLockStatus.NotInInventory and Engine.GetDvarBool("cg_unlockall_loot")) then
return "Unlocked", 0, ""
end
return status, state, msg
end