Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
LootRecipeItem.cs
Go to the documentation of this file.
1 using Loot.Api.Cubes;
2 using Terraria;
3 using Terraria.ModLoader;
4 
5 namespace Loot.Soulforging
6 {
7  internal class LootRecipeItem : GlobalItem
8  {
9  public override void UpdateInventory(Item item, Player player)
10  {
11  if (item.modItem is MagicalCube cube)
12  {
13  ModContent.GetInstance<LootEssenceWorld>().UnlockCube(cube.item.type);
14  }
15  // TODO if item is soul, unlock soulforging
16  }
17  }
18 }
Defines a magical cube A magical cube is used to change modifiers on an item
Definition: MagicalCube.cs:12