From a676ab07ea96ce69ab797a0ec47f2ef9d5f9eef2 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Tue, 29 Oct 2024 12:56:17 -0400 Subject: [PATCH] fix teleportitus on notplayer --- quant.ew/files/core/perk_fns.lua | 2 -- .../files/system/local_health/local_health.lua | 2 -- .../files/system/notplayer_ai/notplayer_ai.lua | 14 ++++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/quant.ew/files/core/perk_fns.lua b/quant.ew/files/core/perk_fns.lua index 442c6898..7e0fa21b 100644 --- a/quant.ew/files/core/perk_fns.lua +++ b/quant.ew/files/core/perk_fns.lua @@ -12,8 +12,6 @@ local perks_to_ignore = { PERKS_LOTTERY = true, REMOVE_FOG_OF_WAR = true, MEGA_BEAM_STONE = true, - TELEPORTITIS = true, - TELEPORTITIS_DODGE = true, ALWAYS_CAST = true, EXTRA_SLOTS = true, EXTRA_PERK = true, diff --git a/quant.ew/files/system/local_health/local_health.lua b/quant.ew/files/system/local_health/local_health.lua index 8732d664..ca9e7c92 100644 --- a/quant.ew/files/system/local_health/local_health.lua +++ b/quant.ew/files/system/local_health/local_health.lua @@ -139,8 +139,6 @@ local function allow_notplayer_perk(perk_id) LUKKI_MINION = true, CONTACT_DAMAGE = true, FOOD_CLOCK = true, -- TODO, should carry over satiation buff - TELEPORTITIS = true, -- TODO: teleports to 0,0 - TELEPORTITIS_DODGE = true, } return not ignored_perks[perk_id] end diff --git a/quant.ew/files/system/notplayer_ai/notplayer_ai.lua b/quant.ew/files/system/notplayer_ai/notplayer_ai.lua index 203ac0f7..74661df8 100644 --- a/quant.ew/files/system/notplayer_ai/notplayer_ai.lua +++ b/quant.ew/files/system/notplayer_ai/notplayer_ai.lua @@ -477,6 +477,20 @@ function rpc.remove_homing() end local function init_state() + EntityAddTag(ctx.my_player.entity, "teleportable") + EntityAddComponent2(ctx.my_player.entity, "SpriteComponent", { + _tags = "aiming_reticle", + alpha = 1, + image_file = "data/ui_gfx/mouse_cursor.png", + ui_is_parent = 0, + offset_x = 6, + offset_y = 35, + has_special_scale = 1, + special_scale_x = 1, + special_scale_y = 1, + z_index = -10000, + emissive = 1, + }) rpc.remove_homing() if ctx.proxy_opt.no_material_damage then local damage_model = EntityGetFirstComponentIncludingDisabled(ctx.my_player.entity, "DamageModelComponent")