Added keyslot compatibility Frames look at when you look away Fixed snow globes
29 lines
1 KiB
C#
29 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ReservedItemSlotCore.Data;
|
|
using UnityEngine;
|
|
|
|
namespace ScarletMansion.ModPatch {
|
|
public class ReservedFlashlightPatch : ModPatch {
|
|
|
|
public override string version => "2.0.0";
|
|
|
|
public ReservedFlashlightPatch(string guid) : base(guid) { }
|
|
|
|
public override void AddPatch(){
|
|
Assets.onAssetsLoadEvent.AddEvent("LoadFlashlight", LoadFlashlight);
|
|
}
|
|
|
|
public static void LoadFlashlight(){
|
|
var proFlashlight = new ReservedItemData(Assets.flashlight.displayName, PlayerBone.Spine3, new Vector3(0.2f, 0.25f, 0f), new Vector3(90f, 0f, 0f));
|
|
var flashlight = new ReservedItemData(Assets.flashlightBB.displayName, PlayerBone.Spine3, new Vector3(0.2f, 0.25f, 0f), new Vector3(90f, 0f, 0f));
|
|
|
|
ReservedItemSlotData.TryAddItemDataToReservedItemSlot(proFlashlight, "flashlight");
|
|
ReservedItemSlotData.TryAddItemDataToReservedItemSlot(flashlight, "flashlight");
|
|
}
|
|
|
|
}
|
|
}
|