From 034b9e453dda322326e294557edfb73df19fa306 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 3 Apr 2022 23:40:47 +0200 Subject: [PATCH] Made Pathfinder shopkeeper a bit easier identifyable by other mods. Also fixed issue where his shadow would be visible --- main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index c9e8f6ab..46c80a5e 100644 --- a/main.lua +++ b/main.lua @@ -1039,8 +1039,9 @@ local function attemptPathfind(entity) if pathsChecked[entity.InitSeed] == false and EID.GameUpdateCount - lastPathfindFrame < 10 then return false end -- Spawn a Shopkeeper entity to attempt a pathfind to the target pickup, then remove it afterwards - pathCheckerEntity = game:Spawn(17, 0, EID.player.Position, nullVector, EID.player, 0, 4354) - + pathCheckerEntity = game:Spawn(17, 0, EID.player.Position, nullVector, EID.player, 6969, 4354) + pathCheckerEntity:GetData()["EID_Pathfinder"] = true + pathCheckerEntity.Visible = false local success = pathCheckerEntity:ToNPC().Pathfinder:HasPathToPos(entity.Position, false) pathsChecked[entity.InitSeed] = success pathCheckerEntity:Remove()