19 lines
825 B
C#
19 lines
825 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items
|
|
{
|
|
// Since all legendary items do not use the same localization category, ILocalizedModType must be placed on each individual item file.
|
|
public abstract class LegendaryItem : ModItem, IHoldShiftTooltipItem
|
|
{
|
|
// All legendary items use the same extension indicator tooltip.
|
|
// This is given a null color, as it is colored manually.
|
|
public string ExtensionIndicatorKey => "Items.Misc.LegendaryShortTooltip";
|
|
public Color? ExtensionIndicatorColor => null;
|
|
|
|
// All full flavor tooltips use the same localization key.
|
|
// Unfortunately, as full tooltip color is different for each item, it must be set manually.
|
|
public string TooltipExtensionKey => "LegendaryText";
|
|
}
|
|
}
|