Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
CopperCube.cs
Go to the documentation of this file.
1 using Loot.Api.Cubes;
2 using Loot.Api.Ext;
3 using Loot.Api.Strategy;
4 using Microsoft.Xna.Framework;
5 using Terraria;
6 using Terraria.ModLoader;
7 
8 namespace Loot.Cubes
9 {
11  {
12  public override int EssenceCraftCost => 10;
13  protected override string CubeName => "Copper Cube";
14  protected override Color? OverrideNameColor => Color.PeachPuff;
15 
16  protected override TooltipLine ExtraTooltip => new TooltipLine(mod, "BlackCube::Description::Add_Box",
17  "Does nothing special for now")
18  {
19  overrideColor = OverrideNameColor
20  };
21 
22  protected override void SafeDefaults()
23  {
24  item.value = Item.buyPrice(copper: 1);
25  }
26 
27  protected override void SafeStaticDefaults()
28  {
29  }
30 
31  public override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
32  {
34  }
35  }
36 }
Defines a set of rolling utilities
Definition: RollingUtils.cs:9
override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
Definition: CopperCube.cs:31
override void SafeDefaults()
Definition: CopperCube.cs:22
Defines properties that will be used when an item is being rolled in a IRollingStrategy<T> These can ...
override void SafeStaticDefaults()
Definition: CopperCube.cs:27
static DefaultRollingStrategy Default
Definition: RollingUtils.cs:23
Defines a rerolling cube that opens the rerolling UI on right click The method M:GetRollingStrategy c...