Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
CraftingComponentLink.cs
Go to the documentation of this file.
1 using Terraria;
2 
3 namespace Loot.UI.Tabs.CraftingTab
4 {
6  {
7  public enum ComponentSource
8  {
9  Soulforge,
10  Inventory,
11  Dynamic
12  }
13 
14  public Item Component;
16 
17  public CraftingComponentLink(Item item, ComponentSource source)
18  {
19  Component = item;
20  Source = source;
21  }
22 
23  public bool EnoughAvailable(int amount) => Component.stack >= amount;
24 
25  }
26 }