-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCharm.cs
28 lines (23 loc) · 984 Bytes
/
Charm.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
using ItemChanger;
using System.Runtime.CompilerServices;
namespace Fyrenest
{
internal abstract class Charm: ItemChanger.Items.CharmItem
{
public abstract bool Placeable { get; }
public abstract string Sprite { get; }
public abstract string Name { get; }
public abstract string Description { get; }
public abstract int DefaultCost { get; }
public abstract string Scene { get; }
public abstract float X { get; }
public abstract float Y { get; }
// assigned at runtime by SFCore's CharmHelper
public int Num { get; set; }
public bool Equipped() => PlayerData.instance.GetBool($"equippedCharm_{Num}");
public abstract CharmSettings Settings(SaveSettings s);
public virtual void Hook() {}
public virtual List<(string obj, string fsm, Action<PlayMakerFSM> edit)> FsmEdits => new();
public virtual List<(int Period, Action Func)> Tickers => new();
}
}