Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
RerollingCube.cs
Go to the documentation of this file.
1 using Loot.Api.Strategy;
2 using Terraria;
3 
4 namespace Loot.Api.Cubes
5 {
11  public abstract class RerollingCube : MagicalCube
12  {
13  public override void SetStaticDefaults()
14  {
15  DisplayName.SetDefault(CubeName);
16  Tooltip.SetDefault(@"Can reroll the magical properties of an item
17 There only seems to be use for this item at a specific workbench");
18  SafeStaticDefaults();
19  }
20 
21  public abstract RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties);
22  }
23 }
Defines properties that will be used when an item is being rolled in a IRollingStrategy<T> These can ...
override void SetStaticDefaults()
Defines a magical cube A magical cube is used to change modifiers on an item
Definition: MagicalCube.cs:12
Defines a rerolling cube that opens the rerolling UI on right click The method M:GetRollingStrategy c...