SDM_LethalCompany_Mod/ScarletMansion/ScarletMansion/GamePatch/JesterAIPatch.cs
LadyAliceMargatroid 523e7ed898 Added BrachTileBoost system
Added the new coilhead behaviour to the knight
Added treasure room puzzle for bedroom
Changed many LogInfo into LogDebug
Removed jank animator override stuff (no offense)
Changed how treasure rooms lock their doors to work in multiplayer
Removed basement scripts
2024-08-19 02:44:15 -07:00

26 lines
613 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.LogDebug("Activing kill order for Jester");
__instance.SwitchToBehaviourState(1);
}
active = false;
}
}
}