mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont have revenge rats with friendly fire on
This commit is contained in:
parent
164721f6da
commit
52210bb58b
2 changed files with 13 additions and 1 deletions
|
@ -15,6 +15,14 @@ end
|
|||
hide_perk("ABILITY_ACTIONS_MATERIALIZED")
|
||||
hide_perk("HOMUNCULUS")
|
||||
|
||||
local ff = false
|
||||
if CrossCall ~= nil then
|
||||
ff = CrossCall("ew_ff")
|
||||
end
|
||||
if ff then
|
||||
hide_perk("REVENGE_RATS")
|
||||
end
|
||||
|
||||
patch_perk_2("SHIELD", function(entity_perk_item, entity_who_picked, item_name, pickup_count, orig_fn)
|
||||
GlobalsSetValue("PERK_SHIELD_COUNT", tostring(pickup_count-1))
|
||||
orig_fn(entity_perk_item, entity_who_picked, item_name, pickup_count)
|
||||
|
@ -56,4 +64,4 @@ if CrossCall ~= nil then
|
|||
end
|
||||
for _, perk in ipairs(string_split(s, ',')) do
|
||||
hide_perk(perk)
|
||||
end
|
||||
end
|
|
@ -45,6 +45,10 @@ end
|
|||
|
||||
np.CrossCallAdd("ew_perks_modify_max_hp", rpc.modify_max_hp)
|
||||
|
||||
np.CrossCallAdd("ew_ff", function()
|
||||
return ctx.proxy_opt.friendly_fire
|
||||
end)
|
||||
|
||||
np.CrossCallAdd("ew_perk_ban_list", function()
|
||||
return ctx.proxy_opt.perk_ban_list
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue