-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shrubbery.cs
47 lines (39 loc) · 1.7 KB
/
Shrubbery.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using UnityEngine;
namespace BandTogether;
public class Shrubbery : OWItem
{
public static readonly ItemType ItemType = ModMain.Instance.shrubberyType;
/*public override string GetDisplayName() =>
"""
The Sacred Shrubbery, Guardian of Light, Protector of the Faithful, Beacon of Hope,
Harbinger of Peace, Fountain of Wisdom, Arbiter of Justice, Patron of Tranquility,
Sentinel of the Sacred Grove, Keeper of Secrets, Bearer of Blessings, Herald of Harmony,
Eternal Patron of Transcendental Unity, Sacred Arboreal Beacon of Celestial Illumination,
Ethereal Arboreal Custodian of Harmonious Existence, Divine Guardian of Cosmic Order,
Celestial Patron of Transcendental Bliss, Eternal Arboreal Sentinel of Universal Harmony
""";*/
public override string GetDisplayName() => "The Sacred Shrubbery";
public override void Awake()
{
base.Awake();
_type = ItemType;
}
public override void PickUpItem(Transform holdTranform)
{
base.PickUpItem(holdTranform);
transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
ModMain.SetCondition("BT_HAS_SHRUBBERY", true);
}
public override void SocketItem(Transform socketTransform, Sector sector)
{
base.SocketItem(socketTransform, sector);
transform.localScale = Vector3.one;
ModMain.SetCondition("BT_HAS_SHRUBBERY", false);
}
public override void DropItem(Vector3 position, Vector3 normal, Transform parent, Sector sector, IItemDropTarget customDropTarget)
{
base.DropItem(position, normal, parent, sector, customDropTarget);
transform.localScale = Vector3.one;
ModMain.SetCondition("BT_HAS_SHRUBBERY", false);
}
}