SDM_LethalCompany_Mod/ScarletMansion/ScarletMansion/DunGenPatch/GeneratePathPatch.cs
LadyAliceMargatroid fd731baf2f Added configs for items and enemies
Critical damage renamed to marked for death and all share the same mechanic now
Revelant now slows down to speed over a fixed short amount instead the nonworking jank before
Moved item/enemy injection to DunGenPlus
2024-12-15 09:23:53 -08:00

23 lines
579 B
C#

using HarmonyLib;
namespace ScarletMansion.DunGenPatch {
public class GeneratePathPatch {
[HarmonyPatch(typeof(RoundManager), "GenerateNewFloor")]
[HarmonyPrefix]
public static void DungeonGeneratorGenerate_PrefixPrefix(){
Plugin.logger.LogDebug("Disabling SDM logic");
Patch.Deactivate();
}
public static void GeneratePatch(RoundManager roundManager){
Plugin.logger.LogDebug("Loading Scarlet Mansion map so we are activating the alt. dungen scripts");
Patch.Activate(roundManager.dungeonGenerator.Generator);
}
}
}