From 11d0d5f057ff0d23c7c17980da5e20cadcb25a04 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 22 May 2024 23:30:51 -0400 Subject: Fixed dungeon statue pre-placement --- AnodyneArchipelago/Plugin.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'AnodyneArchipelago') diff --git a/AnodyneArchipelago/Plugin.cs b/AnodyneArchipelago/Plugin.cs index 0fb7b60..d5dba43 100644 --- a/AnodyneArchipelago/Plugin.cs +++ b/AnodyneArchipelago/Plugin.cs @@ -198,7 +198,7 @@ namespace AnodyneArchipelago { if (__instance.Type.FullName == "AnodyneSharp.Entities.Interactive.DungeonStatue") { - __result.Position = __instance.Position; + __result.Position = __instance.Position + new Vector2(1f, 32f); string eventName = "StatueMoved_"; Facing moveDir = Facing.RIGHT; @@ -216,12 +216,10 @@ namespace AnodyneArchipelago eventName += "Mountain"; } - if (GlobalState.events.GetEvent(eventName) == 0) + if (GlobalState.events.GetEvent(eventName) > 0) { - return; + __result.Position += Entity.FacingDirection(moveDir) * 32f; } - - __result.Position += Entity.FacingDirection(moveDir) * 32f; } else if (__instance.Type.FullName.StartsWith("AnodyneSharp.Entities.Decorations.RedCave")) { -- cgit 1.4.1