2 - Cleaned up rarity declarations with expression switch statements 3 - Added exact numeric rarity numbers as comments to the rarities
21 lines
511 B
C#
21 lines
511 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Rarities
|
|
{
|
|
public class DarkBlue : ModRarity
|
|
{
|
|
// Dark Blue is Rarity 14
|
|
public override Color RarityColor => new Color(43, 96, 222);
|
|
|
|
public override int GetPrefixedRarity(int offset, float valueMult) => offset switch
|
|
{
|
|
-2 => ModContent.RarityType<Turquoise>(),
|
|
-1 => ModContent.RarityType<PureGreen>(),
|
|
1 => ModContent.RarityType<Violet>(),
|
|
2 => ModContent.RarityType<HotPink>(),
|
|
_ => Type,
|
|
};
|
|
}
|
|
}
|