Files
CalamityModPublic/Rarities/CalamityRed.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

22 lines
804 B
C#

using Microsoft.Xna.Framework;
using Terraria.ModLoader;
namespace CalamityMod.Rarities
{
public class CalamityRed : ModRarity
{
// Calamity Red is Rarity 17
// This rarity should never be assigned to any items.
// It is the equivalent of vanilla's Purple rarity (11): only used for positive reforges on top-rarity items.
public override Color RarityColor => new Color(163, 25, 26); // #A3191A
// (139, 0, 0) is the classic donator item color
public override int GetPrefixedRarity(int offset, float valueMult) => offset switch
{
-2 => ModContent.RarityType<Violet>(),
-1 => ModContent.RarityType<HotPink>(),
_ => Type,
};
}
}