mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Allow telekinetic kick on host.
This commit is contained in:
parent
5e92cff1c8
commit
1020bf4e98
4 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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")
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue