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
26 lines
613 B
C#
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;
|
|
}
|
|
|
|
}
|
|
}
|