From 52210bb58b605e7e5323c585572827015df0460a Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sat, 16 Nov 2024 11:52:35 -0500 Subject: [PATCH] dont have revenge rats with friendly fire on --- .../files/system/perk_patches/append/perks_common.lua | 10 +++++++++- quant.ew/files/system/perk_patches/perk_patches.lua | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/quant.ew/files/system/perk_patches/append/perks_common.lua b/quant.ew/files/system/perk_patches/append/perks_common.lua index 0d6415e8..03c0e03f 100644 --- a/quant.ew/files/system/perk_patches/append/perks_common.lua +++ b/quant.ew/files/system/perk_patches/append/perks_common.lua @@ -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 \ No newline at end of file diff --git a/quant.ew/files/system/perk_patches/perk_patches.lua b/quant.ew/files/system/perk_patches/perk_patches.lua index 71bcebe3..1254dd19 100644 --- a/quant.ew/files/system/perk_patches/perk_patches.lua +++ b/quant.ew/files/system/perk_patches/perk_patches.lua @@ -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)