2024-04-28 14:41:33 -07:00

25 lines
603 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DunGen;
using HarmonyLib;
using UnityEngine;
namespace ScarletMansion.DunGenPatch {
public class PostProcessPatch {
[HarmonyPostfix]
[HarmonyPatch(typeof(DungeonGenerator), "PostProcess")]
public static void GenerateBranchPathsPatch(ref DungeonGenerator __instance){
if (Patch.active) {
var value = __instance.RandomStream.Next(999);
GamePatch.Props.SpawnSyncedObjectCycle.UpdateCycle(value);
}
}
}
}