LadyAliceMargatroid 37e3d6e9b1 Added spooky dark souls enemies
Added potential fix for items spawning near doorways (and enemies potentially using them)
2024-05-06 02:13:04 -07:00

27 lines
612 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using HarmonyLib;
namespace ScarletMansion.GamePatch {
public class JesterAIPatch {
public static bool active;
[HarmonyPatch(typeof(JesterAI), "Start")]
[HarmonyPostfix]
public static void StartPatch(ref JesterAI __instance){
if (DunGenPatch.Patch.active && active && __instance.IsOwner) {
Plugin.logger.LogInfo("Activing kill order for Jester");
__instance.SwitchToBehaviourState(1);
}
active = false;
}
}
}