Added keyslot compatibility Frames look at when you look away Fixed snow globes
26 lines
650 B
C#
26 lines
650 B
C#
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");
|
|
}
|
|
|
|
}
|
|
}
|