mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
maybe fix perk ban list
This commit is contained in:
parent
470425849f
commit
c838047f33
2 changed files with 9 additions and 2 deletions
|
@ -48,6 +48,11 @@ local function string_split( s, splitter )
|
||||||
return words;
|
return words;
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, perk in ipairs(string_split(CrossCall("ew_perk_ban_list"), ',')) do
|
--this crosscall check may break it but idc enough to test
|
||||||
|
local s = ""
|
||||||
|
if CrossCall ~= nil then
|
||||||
|
s = CrossCall("ew_perk_ban_list")
|
||||||
|
end
|
||||||
|
for _, perk in ipairs(string_split(s, ',')) do
|
||||||
hide_perk(perk)
|
hide_perk(perk)
|
||||||
end
|
end
|
|
@ -45,7 +45,9 @@ end
|
||||||
|
|
||||||
np.CrossCallAdd("ew_perks_modify_max_hp", rpc.modify_max_hp)
|
np.CrossCallAdd("ew_perks_modify_max_hp", rpc.modify_max_hp)
|
||||||
|
|
||||||
np.CrossCallAdd("ew_perk_ban_list", ctx.proxy_opt.perk_ban_list)
|
np.CrossCallAdd("ew_perk_ban_list", function()
|
||||||
|
return ctx.proxy_opt.perk_ban_list
|
||||||
|
end)
|
||||||
|
|
||||||
rpc.opts_everywhere()
|
rpc.opts_everywhere()
|
||||||
function rpc.sync_perk_amount(items, genome)
|
function rpc.sync_perk_amount(items, genome)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue