From a2a3ab63e715a574c4abc7d9cabf4eb71044e2e1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 17 Jul 2025 13:50:43 -0400 Subject: [PATCH] Turquoise and Pure Green items cannot reach later rarities via prefix --- Rarities/ColorTool.cs | 9 ++++----- Rarities/PureGreen.cs | 4 +--- Rarities/Turquoise.cs | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Rarities/ColorTool.cs b/Rarities/ColorTool.cs index f226186c9a..ca16bd0a20 100644 --- a/Rarities/ColorTool.cs +++ b/Rarities/ColorTool.cs @@ -1,9 +1,8 @@ -using CalamityMod.Rarities; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items +namespace CalamityMod.Rarities { public sealed class ColorTool : GlobalItem { @@ -41,7 +40,7 @@ namespace CalamityMod.Items } public static Color Rainbowing(float position) => colorLerps( - new Color[] { new Color(255, 50, 50, 255), new Color(255, 128, 50, 255), new Color(230, 255, 50, 255), new Color(80, 255, 60, 255), - new Color(50, 80, 250, 255), new Color(200, 50, 250, 255),new Color(255, 50, 230, 255), }, position); + [ new Color(255, 50, 50, 255), new Color(255, 128, 50, 255), new Color(230, 255, 50, 255), new Color(80, 255, 60, 255), + new Color(50, 80, 250, 255), new Color(200, 50, 250, 255), new Color(255, 50, 230, 255), ], position); } } diff --git a/Rarities/PureGreen.cs b/Rarities/PureGreen.cs index 8d859b9226..5752ae8335 100644 --- a/Rarities/PureGreen.cs +++ b/Rarities/PureGreen.cs @@ -13,9 +13,7 @@ namespace CalamityMod.Rarities { -2 => ItemRarityID.Purple, -1 => ModContent.RarityType(), - 1 => ModContent.RarityType(), - 2 => ModContent.RarityType(), - _ => Type, + _ => Type, // Cannot reach Cosmic Purple or Burnished Auric }; } } diff --git a/Rarities/Turquoise.cs b/Rarities/Turquoise.cs index 254fa196ab..27428d0c1a 100644 --- a/Rarities/Turquoise.cs +++ b/Rarities/Turquoise.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Rarities -2 => ItemRarityID.Red, -1 => ItemRarityID.Purple, 1 => ModContent.RarityType(), - 2 => ModContent.RarityType(), + 2 => ModContent.RarityType(), // Cannot reach Cosmic Purple _ => Type, }; }