about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Patches/GameplayPatches.cs
diff options
context:
space:
mode:
Diffstat (limited to 'AnodyneArchipelago/Patches/GameplayPatches.cs')
-rw-r--r--AnodyneArchipelago/Patches/GameplayPatches.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/AnodyneArchipelago/Patches/GameplayPatches.cs b/AnodyneArchipelago/Patches/GameplayPatches.cs index ba33457..a6b572a 100644 --- a/AnodyneArchipelago/Patches/GameplayPatches.cs +++ b/AnodyneArchipelago/Patches/GameplayPatches.cs
@@ -15,6 +15,7 @@ using AnodyneSharp.Dialogue;
15using AnodyneSharp.Sounds; 15using AnodyneSharp.Sounds;
16using AnodyneSharp.States; 16using AnodyneSharp.States;
17using AnodyneSharp.Entities.Interactive.Npc; 17using AnodyneSharp.Entities.Interactive.Npc;
18using AnodyneSharp.MapData;
18 19
19namespace AnodyneArchipelago.Patches 20namespace AnodyneArchipelago.Patches
20{ 21{
@@ -321,4 +322,26 @@ namespace AnodyneArchipelago.Patches
321 } 322 }
322 } 323 }
323 } 324 }
325
326 [HarmonyPatch(typeof(PlayState), "Warp")]
327 class PlayWarpPatch
328 {
329 static void Postfix()
330 {
331 if (GlobalState.CURRENT_MAP_NAME == "FIELDS")
332 {
333 // Place a rock blocking access to Terminal without the red key.
334 PatchHelper.SetMapTile(31, 47, 11, Layer.BG);
335 }
336 }
337 }
338
339 /*[HarmonyPatch(typeof(Player), "Movement")]
340 class PlayerMovementPatch
341 {
342 static void Postfix(Player __instance)
343 {
344 Plugin.Instance.Log.LogInfo($"Player pos: {GlobalState.Map.ToMapLoc(__instance.Position)}");
345 }
346 }*/
324} 347}