-
Notifications
You must be signed in to change notification settings - Fork 0
/
characters_unlocker.lua
44 lines (41 loc) · 1 KB
/
characters_unlocker.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function GetDLCName(check_data)
for dlc_name, dlc_data in pairs(Global.dlc_manager.all_dlc_data) do
if dlc_data == check_data then
return dlc_name
end
end
return ""
end
function IsCharacterDLC(dlc_name)
for _,dlc in pairs(
{
"chico",
}
) do
if dlc == dlc_name then
return true
end
end
return false
end
old_steam_check = old_steam_check or WinSteamDLCManager._check_dlc_data
old_epic_check = old_epic_check or WinEpicDLCManager._check_dlc_data
old_win_check = old_win_check or WINDLCManager._check_dlc_data
function WinSteamDLCManager:_check_dlc_data(dlc_data)
if IsCharacterDLC(GetDLCName(dlc_data)) then
return true
end
return old_steam_check(self, dlc_data)
end
function WinEpicDLCManager:_check_dlc_data(dlc_data)
if IsCharacterDLC(GetDLCName(dlc_data)) then
return true
end
return old_epic_check(self, dlc_data)
end
function WINDLCManager:_check_dlc_data(dlc_data)
if IsCharacterDLC(GetDLCName(dlc_data)) then
return true
end
return old_win_check(self, dlc_data)
end