Added treasure rooms
Added keyslot compatibility Frames look at when you look away Fixed snow globes
This commit is contained in:
parent
056cac8df1
commit
e9152782aa
23 changed files with 530 additions and 87 deletions
|
@ -13,12 +13,14 @@ namespace ScarletMansion.ModPatch {
|
|||
public const string lethalConfigGuid = "ainavt.lc.lethalconfig";
|
||||
public const string facilityMeldownGuid = "me.loaforc.facilitymeltdown";
|
||||
public const string reserveFlashlightGuid = "FlipMods.ReservedFlashlightSlot";
|
||||
public const string reserveKeyGuid = "Rogue.ReservedKeySlot";
|
||||
|
||||
public static readonly ModPatch[] modPatches = new ModPatch[] {
|
||||
//new AdvancedCompanyPatch(advancedCompanyGuid),
|
||||
new LethalConfigPatch(lethalConfigGuid),
|
||||
new FacilityMeltdownPatch(facilityMeldownGuid),
|
||||
new ReservedItemSlotPatch(reserveFlashlightGuid)
|
||||
new ReservedFlashlightPatch(reserveFlashlightGuid),
|
||||
new ReservedKeyPatch(reserveKeyGuid),
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@ using ReservedItemSlotCore.Data;
|
|||
using UnityEngine;
|
||||
|
||||
namespace ScarletMansion.ModPatch {
|
||||
public class ReservedItemSlotPatch : ModPatch {
|
||||
public class ReservedFlashlightPatch : ModPatch {
|
||||
|
||||
public override string version => "2.0.0";
|
||||
|
||||
public ReservedItemSlotPatch(string guid) : base(guid) { }
|
||||
public ReservedFlashlightPatch(string guid) : base(guid) { }
|
||||
|
||||
public override void AddPatch(){
|
||||
Assets.onAssetsLoadEvent.AddEvent("LoadFlashlight", LoadFlashlight);
|
26
ScarletMansion/ScarletMansion/ModPatch/ReservedKeyPatch.cs
Normal file
26
ScarletMansion/ScarletMansion/ModPatch/ReservedKeyPatch.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using ReservedItemSlotCore.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace ScarletMansion.ModPatch {
|
||||
public class ReservedKeyPatch : ModPatch {
|
||||
|
||||
public override string version => "2.0.0";
|
||||
|
||||
public ReservedKeyPatch(string guid) : base(guid) { }
|
||||
|
||||
public override void AddPatch(){
|
||||
Assets.onAssetsLoadEvent.AddEvent("LoadKey", LoadKey);
|
||||
}
|
||||
|
||||
public static void LoadKey(){
|
||||
var key = new ReservedItemData(Assets.key.item.itemName);
|
||||
ReservedItemSlotData.TryAddItemDataToReservedItemSlot(key, "key");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue