about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Patches
diff options
context:
space:
mode:
Diffstat (limited to 'AnodyneArchipelago/Patches')
-rw-r--r--AnodyneArchipelago/Patches/GameplayPatches.cs9
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")