Initial Commit

This commit is contained in:
Lachlan Leone
2026-04-05 18:57:16 +10:00
commit c3a5153a56
691 changed files with 85219 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
using System.Collections.Generic;
using Easter2025.Components;
using Kitchen;
using KitchenData;
using KitchenLib.Customs;
using KitchenLib.Utils;
using UnityEngine;
namespace Easter2025.Customs.Items
{
public class EggBasket : CustomItem
{
public override string UniqueNameID => "EggBasket";
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EggBasket").AssignMaterialsByNames();
public override bool IsIndisposable => true;
public override int MaxOrderSharers => 3;
public override List<IItemProperty> Properties => new List<IItemProperty>
{
new CToolStorage
{
Capacity = 3
},
new CEquippableTool
{
CanHoldItems = false
},
new CEggBasket()
};
public override void OnRegister(Item item)
{
List<GameObject> storage = new List<GameObject>
{
GameObjectUtils.GetChildObject(item.Prefab, "HoldPoint1"),
GameObjectUtils.GetChildObject(item.Prefab, "HoldPoint2"),
GameObjectUtils.GetChildObject(item.Prefab, "HoldPoint3")
};
ItemVariableStorageView obj = item.Prefab.AddComponent<ItemVariableStorageView>();
obj.Storage = storage;
}
}
}