Files
CalamityModPublic/Rarities/Violet.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

21 lines
511 B
C#

using Microsoft.Xna.Framework;
using Terraria.ModLoader;
namespace CalamityMod.Rarities
{
public class Violet : ModRarity
{
// Violet is Rarity 15
public override Color RarityColor => new Color(108, 45, 199);
public override int GetPrefixedRarity(int offset, float valueMult) => offset switch
{
-2 => ModContent.RarityType<PureGreen>(),
-1 => ModContent.RarityType<DarkBlue>(),
1 => ModContent.RarityType<HotPink>(),
2 => ModContent.RarityType<CalamityRed>(),
_ => Type,
};
}
}