Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
ResonatingTempleCube.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 => "Resonating Temple Cube";
14  protected override Color? OverrideNameColor => Color.PeachPuff;
15 
16  protected override TooltipLine ExtraTooltip => new TooltipLine(mod, "BlackCube::Description::Add_Box",
17  "Resonates with power\n" +
18  "Does nothing special for now")
19  {
20  overrideColor = OverrideNameColor
21  };
22 
23  protected override void SafeDefaults()
24  {
25  item.value = Item.buyPrice(copper: 1);
26  }
27 
28  protected override void SafeStaticDefaults()
29  {
30  }
31 
32  public override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
33  {
35  }
36  }
37 }
Defines a set of rolling utilities
Definition: RollingUtils.cs:9
Defines properties that will be used when an item is being rolled in a IRollingStrategy<T> These can ...
static DefaultRollingStrategy Default
Definition: RollingUtils.cs:23
override RollingStrategy GetRollingStrategy(Item item, RollingStrategyProperties properties)
Defines a rerolling cube that opens the rerolling UI on right click The method M:GetRollingStrategy c...