diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 12:50:11 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 12:50:11 -0400 |
commit | c6d7af45fa044bbc3749c8012beb5bcc022e41a2 (patch) | |
tree | 38139b9bafe04bef05317f34a55b1fc87616088e /AnodyneArchipelago/Patches | |
parent | ba2a395da7026de4be32733fc27011e161ead255 (diff) | |
download | anodyne-archipelago-c6d7af45fa044bbc3749c8012beb5bcc022e41a2.tar.gz anodyne-archipelago-c6d7af45fa044bbc3749c8012beb5bcc022e41a2.tar.bz2 anodyne-archipelago-c6d7af45fa044bbc3749c8012beb5bcc022e41a2.zip |
Scout locations for personal chest icons
Diffstat (limited to 'AnodyneArchipelago/Patches')
-rw-r--r-- | AnodyneArchipelago/Patches/GameplayPatches.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AnodyneArchipelago/Patches/GameplayPatches.cs b/AnodyneArchipelago/Patches/GameplayPatches.cs index 056a855..6a7b621 100644 --- a/AnodyneArchipelago/Patches/GameplayPatches.cs +++ b/AnodyneArchipelago/Patches/GameplayPatches.cs | |||
@@ -37,7 +37,7 @@ namespace AnodyneArchipelago.Patches | |||
37 | Guid entityId = PatchHelper.GetEntityPreset(typeof(TreasureChest), __instance).EntityID; | 37 | Guid entityId = PatchHelper.GetEntityPreset(typeof(TreasureChest), __instance).EntityID; |
38 | if (Locations.LocationsByGuid.ContainsKey(entityId)) | 38 | if (Locations.LocationsByGuid.ContainsKey(entityId)) |
39 | { | 39 | { |
40 | BaseTreasure treasure = new ArchipelagoTreasure(Locations.LocationsByGuid[entityId], __instance.Position); | 40 | BaseTreasure treasure = ArchipelagoTreasure.Create(Locations.LocationsByGuid[entityId], __instance.Position); |
41 | 41 | ||
42 | FieldInfo treasureField = typeof(TreasureChest).GetField("_treasure", BindingFlags.NonPublic | BindingFlags.Instance); | 42 | FieldInfo treasureField = typeof(TreasureChest).GetField("_treasure", BindingFlags.NonPublic | BindingFlags.Instance); |
43 | treasureField.SetValue(__instance, treasure); | 43 | treasureField.SetValue(__instance, treasure); |