Allow telekinetic kick on host.

This commit is contained in:
IQuant 2024-11-02 19:51:36 +03:00
parent 5e92cff1c8
commit 1020bf4e98
4 changed files with 12 additions and 1 deletions

View file

@ -17,6 +17,7 @@ local perks_to_ignore = {
EXTRA_PERK = true,
FASTER_WANDS = true,
EXTRA_MANA = true,
TELEKINESIS = true,
}
function perk_fns.get_my_perks()

View file

@ -0,0 +1,6 @@
local function hide_perk(perk_id)
local perk_data = get_perk_with_id(perk_list, perk_id)
perk_data.not_in_default_perk_pool = true
end
hide_perk("TELEKINESIS")

View file

@ -12,7 +12,6 @@ local function hide_perk(perk_id)
end
hide_perk("ABILITY_ACTIONS_MATERIALIZED")
hide_perk("TELEKINESIS")
hide_perk("HOMUNCULUS")
patch_perk_2("SHIELD", function(entity_perk_item, entity_who_picked, item_name, pickup_count, orig_fn)

View file

@ -20,6 +20,11 @@ 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")
end
rpc.opts_reliable()
rpc.opts_everywhere()
function rpc.modify_max_hp(percent_amount, do_heal)