Updated for v81
This commit is contained in:
parent
f0ef413d2f
commit
d89b6bcec5
24 changed files with 214 additions and 90 deletions
|
|
@ -46,20 +46,20 @@ namespace ScarletMansionMimicsPatch {
|
|||
public override bool IsMyInteriorLoaded => ScarletMansion.DunGenPatch.Patch.active;
|
||||
|
||||
public override void OnMimicCreated(MimicDoor mimicDoor, Doorway doorway) {
|
||||
var fixfireexit = doorway.GetComponentInChildren<FixFireExit>(true);
|
||||
fixfireexit.ForcefullyEnableDoorway();
|
||||
var fixfireexit = doorway.GetComponentInChildren<FixFireExit>(true);
|
||||
fixfireexit.ForcefullyEnableDoorway();
|
||||
|
||||
var mimicDoorMesh = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "DoorMesh");
|
||||
var mimicFrame = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "Frame");
|
||||
var mimicLight = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "Light");
|
||||
var mimicDoorMesh = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "DoorMesh");
|
||||
var mimicFrame = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "Frame");
|
||||
var mimicLight = ScarletMansion.Utility.FindChildRecurvisely(mimicDoor.transform, "Light");
|
||||
|
||||
if (fixfireexit.EnableVanillaFireExit){
|
||||
FixDoorwayForVanillaFireExit(fixfireexit, mimicDoorMesh, mimicFrame, mimicLight);
|
||||
} else {
|
||||
FixDoorwayForSDMFireExit(fixfireexit, mimicDoorMesh, mimicFrame, mimicLight);
|
||||
}
|
||||
if (fixfireexit.EnableVanillaFireExit){
|
||||
FixDoorwayForVanillaFireExit(fixfireexit, mimicDoorMesh, mimicFrame, mimicLight);
|
||||
} else {
|
||||
FixDoorwayForSDMFireExit(fixfireexit, mimicDoorMesh, mimicFrame, mimicLight);
|
||||
}
|
||||
|
||||
Plugin.logger.LogDebug("Fixed a doorway for a mimic");
|
||||
Plugin.logger.LogDebug("Fixed a doorway for a mimic");
|
||||
}
|
||||
|
||||
public override void OnMimicAttackStart(MimicDoor mimicDoor, PlayerControllerB playerToAttack) {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace ScarletMansionMimicsPatch {
|
|||
|
||||
[BepInPlugin(modGUID, modName, modVersion)]
|
||||
|
||||
[BepInDependency("dev.ladyalice.scarletmansion", "1.3.22")]
|
||||
[BepInDependency("dev.ladyalice.scarletmansion", "2.4.0")]
|
||||
[BepInDependency(targetModGUID, BepInDependency.DependencyFlags.SoftDependency)]
|
||||
|
||||
public class Plugin : BaseUnityPlugin {
|
||||
|
|
@ -29,7 +29,7 @@ namespace ScarletMansionMimicsPatch {
|
|||
private const string modVersion = "1.0.0";
|
||||
|
||||
public const string targetModGUID = "x753.Mimics";
|
||||
public const string targetModVersion = "2.6.0";
|
||||
public const string targetModVersion = "2.7.4";
|
||||
|
||||
public readonly Harmony harmony = new Harmony(modGUID);
|
||||
public static Plugin Instance {get; private set;}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@
|
|||
<Reference Include="BepInEx">
|
||||
<HintPath>..\..\..\Libraries\BepInEx.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DunGen-publicized">
|
||||
<HintPath>..\..\..\Libraries\DunGen-publicized.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DunGenPlus">
|
||||
<HintPath>..\..\..\Libraries\DunGenPlus.dll</HintPath>
|
||||
</Reference>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue