Files
CalamityModPublic/Rarities/CalamityRed.cs
T
Ozzatron b647a48029 1 - Added Calamity Red, the "final +1" rarity for Calamity that matches vanilla's Purple
2 - Cleaned up rarity declarations with expression switch statements
3 - Added exact numeric rarity numbers as comments to the rarities
2022-09-03 19:01:53 -04:00

22 lines
659 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,
};
}
}