Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
CubeOfSealing.cs
Go to the documentation of this file.
1 using Loot.Api.Cubes;
2 using Loot.Api.Strategy;
4 using Terraria;
5 
6 namespace Loot.Cubes
7 {
12  {
13  public override int EssenceCraftCost => 10;
14  protected override string CubeName => "Sealing Cube";
15 
16  protected override void SafeStaticDefaults()
17  {
18  Tooltip.SetDefault("Allows sealing an item's modifiers" +
19  "\nSealing modifiers means they cannot be changed");
20  }
21 
22  protected override void SafeDefaults()
23  {
24  item.value = Item.buyPrice(copper: 1);
25  }
26 
27  public override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
28  {
29  return new SealingRollingStrategy();
30  }
31  }
32 }
override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
Defines properties that will be used when an item is being rolled in a IRollingStrategy<T> These can ...
A cube of sealing is used to lock modifiers in place on an item
override void SafeStaticDefaults()
override void SafeDefaults()
Defines a rerolling cube that opens the rerolling UI on right click The method M:GetRollingStrategy c...