diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 23:30:51 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-22 23:30:51 -0400 |
commit | 11d0d5f057ff0d23c7c17980da5e20cadcb25a04 (patch) | |
tree | a2574fdac762d18a80c8114ed83257d7024eb1f5 /AnodyneArchipelago | |
parent | 17f0bce6e3d6ec45259617a33d1154bc3ab7c3e6 (diff) | |
download | anodyne-archipelago-11d0d5f057ff0d23c7c17980da5e20cadcb25a04.tar.gz anodyne-archipelago-11d0d5f057ff0d23c7c17980da5e20cadcb25a04.tar.bz2 anodyne-archipelago-11d0d5f057ff0d23c7c17980da5e20cadcb25a04.zip |
Fixed dungeon statue pre-placement
Diffstat (limited to 'AnodyneArchipelago')
-rw-r--r-- | AnodyneArchipelago/Plugin.cs | 8 |
1 files changed, 3 insertions, 5 deletions
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 | |||
198 | { | 198 | { |
199 | if (__instance.Type.FullName == "AnodyneSharp.Entities.Interactive.DungeonStatue") | 199 | if (__instance.Type.FullName == "AnodyneSharp.Entities.Interactive.DungeonStatue") |
200 | { | 200 | { |
201 | __result.Position = __instance.Position; | 201 | __result.Position = __instance.Position + new Vector2(1f, 32f); |
202 | 202 | ||
203 | string eventName = "StatueMoved_"; | 203 | string eventName = "StatueMoved_"; |
204 | Facing moveDir = Facing.RIGHT; | 204 | Facing moveDir = Facing.RIGHT; |
@@ -216,12 +216,10 @@ namespace AnodyneArchipelago | |||
216 | eventName += "Mountain"; | 216 | eventName += "Mountain"; |
217 | } | 217 | } |
218 | 218 | ||
219 | if (GlobalState.events.GetEvent(eventName) == 0) | 219 | if (GlobalState.events.GetEvent(eventName) > 0) |
220 | { | 220 | { |
221 | return; | 221 | __result.Position += Entity.FacingDirection(moveDir) * 32f; |
222 | } | 222 | } |
223 | |||
224 | __result.Position += Entity.FacingDirection(moveDir) * 32f; | ||
225 | } | 223 | } |
226 | else if (__instance.Type.FullName.StartsWith("AnodyneSharp.Entities.Decorations.RedCave")) | 224 | else if (__instance.Type.FullName.StartsWith("AnodyneSharp.Entities.Decorations.RedCave")) |
227 | { | 225 | { |