diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 11:17:52 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 11:17:52 -0400 |
commit | 3df389e9beb6b73d0f1a68475a112fb9c3e65b72 (patch) | |
tree | 9f4bd6e3ebd6cf2cfb40fc8fb16ae170787c4141 /AnodyneArchipelago/Patches | |
parent | 7ecc9027eb4fa8dea5a50bc9847a9cb5257b91ca (diff) | |
download | anodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.tar.gz anodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.tar.bz2 anodyne-archipelago-3df389e9beb6b73d0f1a68475a112fb9c3e65b72.zip |
Honor endgame_card_requirement value
Diffstat (limited to 'AnodyneArchipelago/Patches')
-rw-r--r-- | AnodyneArchipelago/Patches/GameplayPatches.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/AnodyneArchipelago/Patches/GameplayPatches.cs b/AnodyneArchipelago/Patches/GameplayPatches.cs index ec04451..056a855 100644 --- a/AnodyneArchipelago/Patches/GameplayPatches.cs +++ b/AnodyneArchipelago/Patches/GameplayPatches.cs | |||
@@ -148,6 +148,15 @@ namespace AnodyneArchipelago.Patches | |||
148 | [HarmonyPatch(typeof(EntityPreset), nameof(EntityPreset.Create))] | 148 | [HarmonyPatch(typeof(EntityPreset), nameof(EntityPreset.Create))] |
149 | class EntityPresetCreatePatch | 149 | class EntityPresetCreatePatch |
150 | { | 150 | { |
151 | static void Prefix(EntityPreset __instance) | ||
152 | { | ||
153 | if (__instance.EntityID == new Guid("C8CE6E18-CF07-180B-A550-9DC808A2F7E3")) | ||
154 | { | ||
155 | PropertyInfo frameProperty = typeof(EntityPreset).GetProperty("Frame"); | ||
156 | frameProperty.SetValue(__instance, (int)Plugin.ArchipelagoManager.EndgameCardRequirement); | ||
157 | } | ||
158 | } | ||
159 | |||
151 | static void Postfix(EntityPreset __instance, Entity __result) | 160 | static void Postfix(EntityPreset __instance, Entity __result) |
152 | { | 161 | { |
153 | if (__instance.Type.FullName == "AnodyneSharp.Entities.Interactive.DungeonStatue") | 162 | if (__instance.Type.FullName == "AnodyneSharp.Entities.Interactive.DungeonStatue") |