dont have revenge rats with friendly fire on

This commit is contained in:
bgkillas 2024-11-16 11:52:35 -05:00
parent 164721f6da
commit 52210bb58b
2 changed files with 13 additions and 1 deletions

View file

@ -15,6 +15,14 @@ end
hide_perk("ABILITY_ACTIONS_MATERIALIZED") hide_perk("ABILITY_ACTIONS_MATERIALIZED")
hide_perk("HOMUNCULUS") 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) 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)) GlobalsSetValue("PERK_SHIELD_COUNT", tostring(pickup_count-1))
orig_fn(entity_perk_item, entity_who_picked, item_name, pickup_count) orig_fn(entity_perk_item, entity_who_picked, item_name, pickup_count)

View file

@ -45,6 +45,10 @@ 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_ff", function()
return ctx.proxy_opt.friendly_fire
end)
np.CrossCallAdd("ew_perk_ban_list", function() np.CrossCallAdd("ew_perk_ban_list", function()
return ctx.proxy_opt.perk_ban_list return ctx.proxy_opt.perk_ban_list
end) end)