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 fa61075e..0d6415e8 100644 --- a/quant.ew/files/system/perk_patches/append/perks_common.lua +++ b/quant.ew/files/system/perk_patches/append/perks_common.lua @@ -7,6 +7,7 @@ local function patch_perk_2(perk_id, fn) end local function hide_perk(perk_id) + print("Hiding perk", perk_id) local perk_data = get_perk_with_id(perk_list, perk_id) perk_data.not_in_default_perk_pool = true end @@ -55,4 +56,4 @@ if CrossCall ~= nil then end for _, perk in ipairs(string_split(s, ',')) do hide_perk(perk) -end \ No newline at end of file +end diff --git a/quant.ew/files/system/perk_patches/append/perks_client.lua b/quant.ew/files/system/perk_patches/append/perks_no_telekinesis.lua similarity index 100% rename from quant.ew/files/system/perk_patches/append/perks_client.lua rename to quant.ew/files/system/perk_patches/append/perks_no_telekinesis.lua diff --git a/quant.ew/files/system/perk_patches/perk_patches.lua b/quant.ew/files/system/perk_patches/perk_patches.lua index 75ec8a5d..71bcebe3 100644 --- a/quant.ew/files/system/perk_patches/perk_patches.lua +++ b/quant.ew/files/system/perk_patches/perk_patches.lua @@ -20,9 +20,9 @@ else ModLuaFileAppend("data/scripts/perks/perk_list.lua", "mods/quant.ew/files/system/perk_patches/append/perks_local.lua") end -if not ctx.is_host then - print("Also loading perk patches for clients") - ModLuaFileAppend("data/scripts/perks/perk_list.lua", "mods/quant.ew/files/system/perk_patches/append/perks_client.lua") +if not ctx.is_host or not ctx.proxy_opt.randomize_perks then + print("Hiding telekinesis") + ModLuaFileAppend("data/scripts/perks/perk_list.lua", "mods/quant.ew/files/system/perk_patches/append/perks_no_telekinesis.lua") end rpc.opts_reliable()