diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index cc2458beae..2bc76824c8 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -18,6 +18,18 @@ internal const float BalloonJumpSpeedBoost = 0.75f; #endregion + #region Immunity Frames + // Default immunity frame rules + internal const int VanillaDefaultIFrames = 40; + internal const int VanillaParryIFrames = 60; + internal const int VanillaDodgeIFrames = 80; + + // In vanilla, the Cross Necklace grants +40 iframes to all hits except for in PvP (where it does nothing) + // and Brand of the Inferno (where it only gives +30 instead). + internal const int CrossNecklaceIFrameBoost = 40; + internal const int CrossNecklaceIFrameBoost_Parry = 30; + #endregion + #region Dashes and Dodges // Dash cooldowns (in frames) internal const int UniversalDashCooldown = 30; diff --git a/Buffs/StatBuffs/Encased.cs b/Buffs/StatBuffs/Encased.cs index 25a9de731b..251d0489a8 100644 --- a/Buffs/StatBuffs/Encased.cs +++ b/Buffs/StatBuffs/Encased.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Balancing; +using CalamityMod.Items.Accessories; +using Terraria; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -20,7 +22,10 @@ namespace CalamityMod.Buffs.StatBuffs if (player.buffTime[buffIndex] == 2) { SoundEngine.PlaySound(SoundID.Item27, player.Center); - player.GiveIFrames(90, true); + + // 17APR2024: Ozzatron: Permafrost's Concoction gives true invulnerability to everything and is boosted by Cross Necklace. + int encasedIFrames = PermafrostsConcoction.EncasedIFrames + (player.longInvince ? BalancingConstants.CrossNecklaceIFrameBoost : 0); + player.GiveUniversalIFrames(encasedIFrames, true); } } } diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 130c695930..ab0614aa70 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1175,6 +1175,10 @@ namespace CalamityMod.CalPlayer public Vector2 FireDrawerPosition; public int monolithAccursedShader = 0; + + // This may seem like a scuffed setup, but a simple bool will have ordering issues when it comes to drawing. + // Until ModSceneMetrics gets implemented, this works for now. + public int BrimstoneLavaFountainCounter = 0; #endregion Draw Effects #region Draedon Summoning @@ -2798,7 +2802,7 @@ namespace CalamityMod.CalPlayer Main.dust[dustIndex].noLight = true; } - spectralVeilImmunity = 45; + spectralVeilImmunity = SpectralVeil.VeilIFrames; } } } diff --git a/CalPlayer/CalamityPlayerDashEffects.cs b/CalPlayer/CalamityPlayerDashEffects.cs index 072d6a1070..302f69fc37 100644 --- a/CalPlayer/CalamityPlayerDashEffects.cs +++ b/CalPlayer/CalamityPlayerDashEffects.cs @@ -566,8 +566,10 @@ namespace CalamityMod.CalPlayer if (Player.whoAmI == Main.myPlayer) Player.ApplyDamageToNPC(n, (int)Damage, Knockback, hitDirection, false); + // 17APR2024: Ozzatron: Dash iframes are not boosted by Cross Necklace at all and are fixed. n.Calamity().dashImmunityTime[Player.whoAmI] = NPCImmuneTime; - Player.GiveIFrames(PlayerImmuneTime, false); + Player.GiveUniversalIFrames(PlayerImmuneTime, false); + totalHurtNPCs++; break; } diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index cbcb1a724a..f5c320f416 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -54,7 +54,9 @@ namespace CalamityMod.CalPlayer #region Dodges private void SpectralVeilDodge() { - Player.GiveIFrames(spectralVeilImmunity, true); //Set immunity before setting this variable to 0 + // 17APR2024: Ozzatron: Spectral Veil counts as a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int spectralVeilIFrames = spectralVeilImmunity + (Player.longInvince ? BalancingConstants.CrossNecklaceIFrameBoost : 0); + Player.GiveUniversalIFrames(spectralVeilIFrames, true); rogueStealth = rogueStealthMax; spectralVeilImmunity = 0; @@ -79,7 +81,10 @@ namespace CalamityMod.CalPlayer private void GodSlayerDodge() { - Player.GiveIFrames(Player.longInvince ? 100 : 60, true); + // 17APR2024: Ozzatron: God Slayer Dodge is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int godSlayerDodgeIFrames = Player.ComputeDodgeIFrames(); + Player.GiveUniversalIFrames(godSlayerDodgeIFrames, true); + SoundEngine.PlaySound(SoundID.Item67, Player.Center); for (int j = 0; j < 30; j++) @@ -114,7 +119,9 @@ namespace CalamityMod.CalPlayer Player.AddCooldown(Cooldowns.CounterScarf.ID, duration); } - Player.GiveIFrames(Player.longInvince ? 100 : 60, true); + // 17APR2024: Ozzatron: Counter Scarf is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int counterScarfIFrames = Player.ComputeDodgeIFrames(); + Player.GiveUniversalIFrames(counterScarfIFrames, true); for (int j = 0; j < 100; j++) { @@ -151,10 +158,10 @@ namespace CalamityMod.CalPlayer int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar); Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "abyssmirror"); - // TODO -- why is this here? - Player.noKnockback = true; + // 17APR2024: Ozzatron: Abyssal Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int abyssalMirrorDodgeIFrames = Player.ComputeDodgeIFrames(); + Player.GiveUniversalIFrames(abyssalMirrorDodgeIFrames, true); - Player.GiveIFrames(Player.longInvince ? 100 : 60, true); rogueStealth += 0.5f; SoundEngine.PlaySound(SilvaHeadSummon.ActivationSound, Player.Center); @@ -195,10 +202,10 @@ namespace CalamityMod.CalPlayer int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.MirrorDodgeCooldownMin, BalancingConstants.MirrorDodgeCooldownMax, cooldownDurationScalar); Player.AddCooldown(GlobalDodge.ID, cooldownDuration, true, "eclipsemirror"); - // TODO -- why is this here? - Player.noKnockback = true; + // 17APR2024: Ozzatron: Eclipse Mirror is a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int eclipseMirrorDodgeIFrames = Player.ComputeDodgeIFrames(); + Player.GiveUniversalIFrames(eclipseMirrorDodgeIFrames, true); - Player.GiveIFrames(Player.longInvince ? 100 : 60, true); rogueStealth += 0.5f; SoundEngine.PlaySound(SoundID.Item68, Player.Center); @@ -915,7 +922,10 @@ namespace CalamityMod.CalPlayer proj.velocity *= -2f; proj.extraUpdates += 1; proj.penetrate = 1; - Player.GiveIFrames(20, false); + + // 17APR2024: Ozzatron: The Evolution is a reflect which also functions as a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int evolutionIFrames = Player.ComputeReflectIFrames(); + Player.GiveUniversalIFrames(evolutionIFrames, true); modifiers.SetMaxDamage(1); evolutionLifeRegenCounter = 300; @@ -1420,7 +1430,10 @@ namespace CalamityMod.CalPlayer proj.velocity *= -1f; proj.damage = (int)Player.GetBestClassDamage().ApplyTo(proj.damage * 8); proj.penetrate = 1; - Player.GiveIFrames(20, false); + + // 17APR2024: Ozzatron: The Transformer is a reflect which also functions as a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int transformerIFrames = Player.ComputeReflectIFrames(); + Player.GiveUniversalIFrames(transformerIFrames, true); } } @@ -1445,7 +1458,10 @@ namespace CalamityMod.CalPlayer proj.friendly = true; proj.velocity *= -1f; proj.penetrate = 1; - Player.GiveIFrames(20, false); + + // 17APR2024: Ozzatron: The Daedalus Reflect set bonus also functions as a dodge. It uses vanilla dodge iframes and benefits from Cross Necklace. + int daedalusReflectIFrames = Player.ComputeReflectIFrames(); + Player.GiveUniversalIFrames(daedalusReflectIFrames, true); int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.DaedalusReflectCooldownMin, BalancingConstants.DaedalusReflectCooldownMax, cooldownDurationScalar); Player.AddCooldown(GlobalDodge.ID, cooldownDuration); @@ -1499,8 +1515,11 @@ namespace CalamityMod.CalPlayer Projectile.NewProjectile(Player.GetSource_FromThis(), n.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 0, Main.myPlayer); + // 17APR2024: Ozzatron: Gravistar Sabaton gives iframes when passing through enemies for projectile safety. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. n.Calamity().dashImmunityTime[Player.whoAmI] = 4; - Player.GiveIFrames(5, false); + Player.GiveUniversalIFrames(GravistarSabaton.PassthroughIFrames, false); + return true; } } @@ -1679,8 +1698,12 @@ namespace CalamityMod.CalPlayer { if (!Player.HasCooldown(ParryCooldown.ID)) { - Player.GiveIFrames(60, true); + // 17APR2024: Ozzatron: Blazing Core is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + int blazingCoreParryIFrames = Player.ComputeParryIFrames(); + Player.GiveUniversalIFrames(blazingCoreParryIFrames, true); + blazingCoreEmpoweredParry = true; + modifiers.SetMaxDamage(1); //ONLY REDUCE DAMAGE IF NOT ON COOLDOWN modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing } @@ -1699,8 +1722,12 @@ namespace CalamityMod.CalPlayer { if (!Player.HasCooldown(ParryCooldown.ID)) { - Player.GiveIFrames(60, true); + // 17APR2024: Ozzatron: Flame-Licked Shell is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + int flameLickedShellParryIFrames = Player.ComputeParryIFrames(); + Player.GiveUniversalIFrames(flameLickedShellParryIFrames, true); + flameLickedShellEmpoweredParry = true; + modifiers.FinalDamage *= 0.1f; //90% dr modifiers.DisableSound(); } @@ -1736,9 +1763,9 @@ namespace CalamityMod.CalPlayer // If the shield(s) completely absorb the hit, iframes are granted on the spot and the hit is marked to be dodged. // Shields are drained in order of progression, so your weaker shields will break first. // Damage can and will be blocked by multiple shields if it has to be. + bool shieldsFullyAbsorbedHit = false; if (HasAnyEnergyShield) { - bool shieldsFullyAbsorbedHit = false; bool shieldsTookHit = false; bool anyShieldBroke = false; int totalDamageBlocked = 0; @@ -1883,8 +1910,9 @@ namespace CalamityMod.CalPlayer Rectangle location = new Rectangle((int)Player.position.X, (int)Player.position.Y - 16, Player.width, Player.height); CombatText.NewText(location, Color.LightBlue, Language.GetTextValue(shieldDamageText)); - // Give the player iframes for taking the a shield hit, regardless of whether or not the shields broke - Player.GiveIFrames(Player.longInvince ? 100 : 60, true); + // Give the player iframes for taking a shield hit, regardless of whether or not the shields broke. + int shieldHitIFrames = Player.ComputeHitIFrames(info); + Player.GiveIFrames(info.CooldownCounter, shieldHitIFrames, true); // Spawn particles when hit with the shields up, regardless of whether or not the shields broke. // More particles spawn if a shield broke. @@ -1926,7 +1954,7 @@ namespace CalamityMod.CalPlayer masterChefDurabilityCD.timeLeft = LunicCorpsShieldDurability; // Update PSA/PSC durability on the cooldown rack - if ((pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs)) && cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var profanedSoulDurabilityCD)) + if (pSoulArtifact && (!profanedCrystal || profanedCrystalBuffs) && cooldowns.TryGetValue(Cooldowns.ProfanedSoulShield.ID, out var profanedSoulDurabilityCD)) profanedSoulDurabilityCD.timeLeft = pSoulShieldDurability; // Update Sponge durability on the cooldown rack. @@ -1954,7 +1982,7 @@ namespace CalamityMod.CalPlayer Player.AddCooldown(SpongeRecharge.ID, TheSponge.ShieldRechargeDelay, true); } - // If the shields completely absorbed the hit, mark the player as dodging this damage instance later down the chain with a "Free Dodge". + // If the shields completely absorbed the hit, then delete the hit using reflection. if (shieldsFullyAbsorbedHit) { freeDodgeFromShieldAbsorption = true; @@ -1970,7 +1998,7 @@ namespace CalamityMod.CalPlayer // Otherwise, it reduces the damage of any hit to 5, which allows for full iframes. // It then applies the full hit (minus that 5 damage) to its own bleedout buffer. // Hits for less than 5 damage are ignored entirely and allowed to strike the player as normal. - if (chaliceOfTheBloodGod && !freeDodgeFromShieldAbsorption && info.Damage > ChaliceOfTheBloodGod.MinAllowedDamage) + if (chaliceOfTheBloodGod && !shieldsFullyAbsorbedHit && info.Damage > ChaliceOfTheBloodGod.MinAllowedDamage) { int bleedoutToApply = info.Damage - ChaliceOfTheBloodGod.MinAllowedDamage; chaliceBleedoutBuffer += bleedoutToApply; @@ -2375,40 +2403,8 @@ namespace CalamityMod.CalPlayer if (Player.whoAmI == Main.myPlayer) { - int iFramesToAdd = 0; - if (godSlayerThrowing && hurtInfo.Damage > 80) - iFramesToAdd += 30; - if (statigelSet && hurtInfo.Damage > 100) - iFramesToAdd += 30; - - // Deific Amulet provides 10 to 40 bonus immunity frames when you get hit which scale with your missing health. - // If you only take 1 damage, you get 5 iframes. - // This effect is inherited by Rampart of Deities. - if (dAmulet) - { - if (hurtInfo.Damage > 1) - { - float lifeRatio = (float)Player.statLife / Player.statLifeMax2; - float iframeEffectivenessRatio = Utils.GetLerpValue(1.0f, 0.25f, lifeRatio, true); - - iFramesToAdd += (int)(iframeEffectivenessRatio * DeificAmulet.MaxBonusIFrames); - } - else - iFramesToAdd += 5; - } - - // Ozzatron 20FEB2024: Moved extra iframes from Seraph Tracers to Rampart of Deities to counteract its loss of Charm of Myths - // This stacks with the above Deific Amulet effect - if (rampartOfDeities && hurtInfo.Damage > 200) - iFramesToAdd += 30; - - if (fabsolVodka) - { - if (hurtInfo.Damage == 1) - iFramesToAdd += 5; - else - iFramesToAdd += 10; - } + // Add extra iframes on hit based on various Calamity effects. + int iFramesToAdd = Player.GetExtraHitIFrames(hurtInfo); // Give bonus immunity frames based on the type of damage dealt if (hurtInfo.CooldownCounter != -1) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index c38a5ded33..7f57930ad9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1520,6 +1520,8 @@ namespace CalamityMod.CalPlayer ChlorophyteHealDelay--; if (monolithAccursedShader > 0) monolithAccursedShader--; + if (BrimstoneLavaFountainCounter > 0) + BrimstoneLavaFountainCounter--; if (miningSetCooldown > 0) miningSetCooldown--; if (RustyMedallionCooldown > 0) @@ -1654,8 +1656,10 @@ namespace CalamityMod.CalPlayer if (tarraThrowing) { // The iframes from the evasion are disabled by dodge disabling effects. + // 17APR2024: Ozzatron: Tarragon Immunity is meant to be a full invulnerability effect, so universal iframes are granted throughout its duration. + // It has no interaction with Cross Necklace. if (tarragonImmunity && !disableAllDodges) - Player.GiveIFrames(2, true); + Player.GiveUniversalIFrames(2, true); if (tarraThrowingCrits >= 50) { diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index c3b97cc30a..5964ba52bf 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -86,6 +86,7 @@ namespace CalamityMod.CalPlayer { case ItemID.CobaltSword: target.Calamity().miscDefenseLoss = (int)(target.defense * 0.25); + target.Calamity().isNerfedByCobalt = true; break; case ItemID.PalladiumSword: @@ -96,6 +97,7 @@ namespace CalamityMod.CalPlayer case ItemID.MythrilSword: target.damage = (int)(target.defDamage * 0.9); + target.Calamity().isNerfedByMythril = true; break; case ItemID.OrichalcumSword: @@ -215,6 +217,7 @@ namespace CalamityMod.CalPlayer { case ProjectileID.CobaltNaginata: target.Calamity().miscDefenseLoss = (int)(target.defense * 0.25); + target.Calamity().isNerfedByCobalt = true; break; case ProjectileID.PalladiumPike: @@ -225,6 +228,7 @@ namespace CalamityMod.CalPlayer case ProjectileID.MythrilHalberd: target.damage = (int)(target.defDamage * 0.9); + target.Calamity().isNerfedByMythril = true; break; case ProjectileID.OrichalcumHalberd: diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index e5207bc4e2..de1419da6f 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -78,7 +78,8 @@ namespace CalamityMod.ILEditing cursor.Remove(); // Emit a delegate which calls the Calamity utility to consistently provide iframes. - cursor.EmitDelegate>((p, frames) => CalamityUtils.GiveIFrames(p, frames, false)); + // 17APR2024: Ozzatron: Consistent shield slam iframes are not boosted by Cross Necklace at all and are fixed. + cursor.EmitDelegate>((p, frames) => CalamityUtils.GiveUniversalIFrames(p, frames, false)); } private static readonly Func CalamityDashEquipped = (Player p) => p.Calamity().HasCustomDash ? 1 : 0; diff --git a/Items/Accessories/Abaddon.cs b/Items/Accessories/Abaddon.cs index f88596d263..6c0fe97557 100644 --- a/Items/Accessories/Abaddon.cs +++ b/Items/Accessories/Abaddon.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/AbyssalAmulet.cs b/Items/Accessories/AbyssalAmulet.cs index a989edec15..e060bee4ed 100644 --- a/Items/Accessories/AbyssalAmulet.cs +++ b/Items/Accessories/AbyssalAmulet.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/AbyssalDivingGear.cs b/Items/Accessories/AbyssalDivingGear.cs index ca368d03cf..440cfaa92c 100644 --- a/Items/Accessories/AbyssalDivingGear.cs +++ b/Items/Accessories/AbyssalDivingGear.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/AbyssalDivingSuit.cs b/Items/Accessories/AbyssalDivingSuit.cs index d16b9be024..fd672d8313 100644 --- a/Items/Accessories/AbyssalDivingSuit.cs +++ b/Items/Accessories/AbyssalDivingSuit.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories Item.width = 18; Item.height = 18; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; if (Main.netMode != NetmodeID.Server) diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs index 1267a16fdb..03ec3d4a34 100644 --- a/Items/Accessories/AbyssalMirror.cs +++ b/Items/Accessories/AbyssalMirror.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/AeroStone.cs b/Items/Accessories/AeroStone.cs index e2185e9649..93676815e0 100644 --- a/Items/Accessories/AeroStone.cs +++ b/Items/Accessories/AeroStone.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 40; Item.height = 50; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/Affliction.cs b/Items/Accessories/Affliction.cs index d34fe7d220..be8a8b917a 100644 --- a/Items/Accessories/Affliction.cs +++ b/Items/Accessories/Affliction.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories Item.width = 38; Item.height = 44; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/AlchemicalFlask.cs b/Items/Accessories/AlchemicalFlask.cs index 4335564627..909aa4106f 100644 --- a/Items/Accessories/AlchemicalFlask.cs +++ b/Items/Accessories/AlchemicalFlask.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/AlluringBait.cs b/Items/Accessories/AlluringBait.cs index d9e4a91698..1a5383e4b1 100644 --- a/Items/Accessories/AlluringBait.cs +++ b/Items/Accessories/AlluringBait.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 6850ade31a..5979cb98e6 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/AmbrosialAmpoule.cs b/Items/Accessories/AmbrosialAmpoule.cs index 3766079b95..ae0904ba07 100644 --- a/Items/Accessories/AmbrosialAmpoule.cs +++ b/Items/Accessories/AmbrosialAmpoule.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/AmidiasPendant.cs b/Items/Accessories/AmidiasPendant.cs index 4dc6b333ee..12e0ce87ad 100644 --- a/Items/Accessories/AmidiasPendant.cs +++ b/Items/Accessories/AmidiasPendant.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 46; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/AmidiasSpark.cs b/Items/Accessories/AmidiasSpark.cs index cc6b08797b..e15f15b358 100644 --- a/Items/Accessories/AmidiasSpark.cs +++ b/Items/Accessories/AmidiasSpark.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/AncientFossil.cs b/Items/Accessories/AncientFossil.cs index c17e1cddd6..09447e3273 100644 --- a/Items/Accessories/AncientFossil.cs +++ b/Items/Accessories/AncientFossil.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/AnechoicPlating.cs b/Items/Accessories/AnechoicPlating.cs index d02394e686..ccadb15281 100644 --- a/Items/Accessories/AnechoicPlating.cs +++ b/Items/Accessories/AnechoicPlating.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/AngelTreads.cs b/Items/Accessories/AngelTreads.cs index 4cbebbe838..bf1b3b87a0 100644 --- a/Items/Accessories/AngelTreads.cs +++ b/Items/Accessories/AngelTreads.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 32; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.accessory = true; } diff --git a/Items/Accessories/AquaticEmblem.cs b/Items/Accessories/AquaticEmblem.cs index 958a5c23bf..7171d7c9d2 100644 --- a/Items/Accessories/AquaticEmblem.cs +++ b/Items/Accessories/AquaticEmblem.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/AquaticHeart.cs b/Items/Accessories/AquaticHeart.cs index c6c88516d3..c4bc403163 100644 --- a/Items/Accessories/AquaticHeart.cs +++ b/Items/Accessories/AquaticHeart.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Accessories Item.width = 18; Item.height = 18; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Accessories/ArchaicPowder.cs b/Items/Accessories/ArchaicPowder.cs index 393d31ff3b..e75019f9d7 100644 --- a/Items/Accessories/ArchaicPowder.cs +++ b/Items/Accessories/ArchaicPowder.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/AscendantInsignia.cs b/Items/Accessories/AscendantInsignia.cs index 23506064e9..11023258b1 100644 --- a/Items/Accessories/AscendantInsignia.cs +++ b/Items/Accessories/AscendantInsignia.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index 2193cc3dc8..4bffcce0e7 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 60; Item.height = 54; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 20; Item.accessory = true; Item.rare = ModContent.RarityType(); diff --git a/Items/Accessories/AsgardsValor.cs b/Items/Accessories/AsgardsValor.cs index 29e5645ef7..e2aacf1b97 100644 --- a/Items/Accessories/AsgardsValor.cs +++ b/Items/Accessories/AsgardsValor.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 38; Item.height = 44; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.defense = 12; // we buff Ankh Shield to 12 Item.accessory = true; diff --git a/Items/Accessories/AuricSoulArtifact.cs b/Items/Accessories/AuricSoulArtifact.cs index 10372e199d..2a2702982b 100644 --- a/Items/Accessories/AuricSoulArtifact.cs +++ b/Items/Accessories/AuricSoulArtifact.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories Item.height = 28; Item.accessory = true; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/BadgeofBravery.cs b/Items/Accessories/BadgeofBravery.cs index cc5cd5d03a..7ce4c9ccae 100644 --- a/Items/Accessories/BadgeofBravery.cs +++ b/Items/Accessories/BadgeofBravery.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 30; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/Baroclaw.cs b/Items/Accessories/Baroclaw.cs index db78b9dafb..bbc971ac6a 100644 --- a/Items/Accessories/Baroclaw.cs +++ b/Items/Accessories/Baroclaw.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 40; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 2e5fce3349..b481df9a76 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories Item.width = 42; Item.height = 46; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/BloodPact.cs b/Items/Accessories/BloodPact.cs index bbd5896b8b..7c5896228e 100644 --- a/Items/Accessories/BloodPact.cs +++ b/Items/Accessories/BloodPact.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.rare = ItemRarityID.Yellow; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/BloodflareCore.cs b/Items/Accessories/BloodflareCore.cs index 681241365f..0cc9b6c92a 100644 --- a/Items/Accessories/BloodflareCore.cs +++ b/Items/Accessories/BloodflareCore.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/BloodstainedGlove.cs b/Items/Accessories/BloodstainedGlove.cs index 3e3aaf1a07..075af22adf 100644 --- a/Items/Accessories/BloodstainedGlove.cs +++ b/Items/Accessories/BloodstainedGlove.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Orange; } diff --git a/Items/Accessories/BloodyWormScarf.cs b/Items/Accessories/BloodyWormScarf.cs index 2836d69654..8399ef805a 100644 --- a/Items/Accessories/BloodyWormScarf.cs +++ b/Items/Accessories/BloodyWormScarf.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 42; Item.defense = 7; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/BloodyWormTooth.cs b/Items/Accessories/BloodyWormTooth.cs index 289c6ec23d..4c6ef7f45c 100644 --- a/Items/Accessories/BloodyWormTooth.cs +++ b/Items/Accessories/BloodyWormTooth.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 12; Item.height = 15; Item.defense = 7; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/BloomStone.cs b/Items/Accessories/BloomStone.cs index d016818e8c..6858aaff91 100644 --- a/Items/Accessories/BloomStone.cs +++ b/Items/Accessories/BloomStone.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 38; Item.height = 54; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/BlunderBooster.cs b/Items/Accessories/BlunderBooster.cs index 51902fb58f..c8cdba9e89 100644 --- a/Items/Accessories/BlunderBooster.cs +++ b/Items/Accessories/BlunderBooster.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; } diff --git a/Items/Accessories/ChaliceOfTheBloodGod.cs b/Items/Accessories/ChaliceOfTheBloodGod.cs index 6af6082986..edc3fe6b1c 100644 --- a/Items/Accessories/ChaliceOfTheBloodGod.cs +++ b/Items/Accessories/ChaliceOfTheBloodGod.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Accessories { Item.width = Item.height = 32; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/ChaosStone.cs b/Items/Accessories/ChaosStone.cs index 5c34738627..89b7f583a6 100644 --- a/Items/Accessories/ChaosStone.cs +++ b/Items/Accessories/ChaosStone.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/CleansingJelly.cs b/Items/Accessories/CleansingJelly.cs index 6f1aef2c1a..4e8df9627e 100644 --- a/Items/Accessories/CleansingJelly.cs +++ b/Items/Accessories/CleansingJelly.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/CoinofDeceit.cs b/Items/Accessories/CoinofDeceit.cs index 9b7f537321..694429bc96 100644 --- a/Items/Accessories/CoinofDeceit.cs +++ b/Items/Accessories/CoinofDeceit.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Accessories/CorrosiveSpine.cs b/Items/Accessories/CorrosiveSpine.cs index 339be47126..6f99322f4d 100644 --- a/Items/Accessories/CorrosiveSpine.cs +++ b/Items/Accessories/CorrosiveSpine.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 46; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 4; Item.accessory = true; diff --git a/Items/Accessories/CorruptFlask.cs b/Items/Accessories/CorruptFlask.cs index 8aadb6e4ac..db6a38b7fb 100644 --- a/Items/Accessories/CorruptFlask.cs +++ b/Items/Accessories/CorruptFlask.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/CounterScarf.cs b/Items/Accessories/CounterScarf.cs index 2818c8e584..1f36cadfd2 100644 --- a/Items/Accessories/CounterScarf.cs +++ b/Items/Accessories/CounterScarf.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/CrawCarapace.cs b/Items/Accessories/CrawCarapace.cs index e59a0ed0cc..fcb357da8a 100644 --- a/Items/Accessories/CrawCarapace.cs +++ b/Items/Accessories/CrawCarapace.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 28; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/CrimsonFlask.cs b/Items/Accessories/CrimsonFlask.cs index 74a238a4a6..dc1d4c038c 100644 --- a/Items/Accessories/CrimsonFlask.cs +++ b/Items/Accessories/CrimsonFlask.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/CrownJewel.cs b/Items/Accessories/CrownJewel.cs index 6aaf199736..1c85ffd2fe 100644 --- a/Items/Accessories/CrownJewel.cs +++ b/Items/Accessories/CrownJewel.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.defense = 4; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/CryoStone.cs b/Items/Accessories/CryoStone.cs index bef06ac0e8..bf6e2deb08 100644 --- a/Items/Accessories/CryoStone.cs +++ b/Items/Accessories/CryoStone.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 40; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/DaawnlightSpiritOrigin.cs b/Items/Accessories/DaawnlightSpiritOrigin.cs index f3a805bce2..e6a42c5c25 100644 --- a/Items/Accessories/DaawnlightSpiritOrigin.cs +++ b/Items/Accessories/DaawnlightSpiritOrigin.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Accessories Item.height = 38; Item.accessory = true; Item.rare = ItemRarityID.Purple; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.Calamity().donorItem = true; } diff --git a/Items/Accessories/DarkMatterSheath.cs b/Items/Accessories/DarkMatterSheath.cs index b94f36ff05..c77de6db38 100644 --- a/Items/Accessories/DarkMatterSheath.cs +++ b/Items/Accessories/DarkMatterSheath.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 48; Item.height = 62; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index 037580a847..0a06a8e9a8 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 60; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 10; Item.lifeRegen = 1; Item.accessory = true; diff --git a/Items/Accessories/DeadshotBrooch.cs b/Items/Accessories/DeadshotBrooch.cs index 0d0f5fc8d8..1e1ec3c3ad 100644 --- a/Items/Accessories/DeadshotBrooch.cs +++ b/Items/Accessories/DeadshotBrooch.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/DeepDiver.cs b/Items/Accessories/DeepDiver.cs index 6fea3ceb24..33537b3241 100644 --- a/Items/Accessories/DeepDiver.cs +++ b/Items/Accessories/DeepDiver.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 28; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/DeificAmulet.cs b/Items/Accessories/DeificAmulet.cs index 45742268e2..22d188bd58 100644 --- a/Items/Accessories/DeificAmulet.cs +++ b/Items/Accessories/DeificAmulet.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.rare = ItemRarityID.Cyan; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/DepthCharm.cs b/Items/Accessories/DepthCharm.cs index 8b357715e9..0ec3e73774 100644 --- a/Items/Accessories/DepthCharm.cs +++ b/Items/Accessories/DepthCharm.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/DimensionalSoulArtifact.cs b/Items/Accessories/DimensionalSoulArtifact.cs index 3b5ce59237..f874e3229a 100644 --- a/Items/Accessories/DimensionalSoulArtifact.cs +++ b/Items/Accessories/DimensionalSoulArtifact.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories Item.height = 28; Item.accessory = true; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/DragonScales.cs b/Items/Accessories/DragonScales.cs index f76de5df86..766939ee78 100644 --- a/Items/Accessories/DragonScales.cs +++ b/Items/Accessories/DragonScales.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 32; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/DynamoStemCells.cs b/Items/Accessories/DynamoStemCells.cs index 9104ff3d4e..1ab6a9bf64 100644 --- a/Items/Accessories/DynamoStemCells.cs +++ b/Items/Accessories/DynamoStemCells.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; } diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index c96bc0e7e5..c3e975502e 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 46; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/EldritchSoulArtifact.cs b/Items/Accessories/EldritchSoulArtifact.cs index d665e34d14..91df6f15a8 100644 --- a/Items/Accessories/EldritchSoulArtifact.cs +++ b/Items/Accessories/EldritchSoulArtifact.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories Item.width = 64; Item.height = 58; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; } diff --git a/Items/Accessories/ElectriciansGlove.cs b/Items/Accessories/ElectriciansGlove.cs index 3bcae0c170..f47b586c7f 100644 --- a/Items/Accessories/ElectriciansGlove.cs +++ b/Items/Accessories/ElectriciansGlove.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index e69ee6f8e2..bc5bd995c6 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 22; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/ElementalQuiver.cs b/Items/Accessories/ElementalQuiver.cs index 225c75cbeb..b586332d81 100644 --- a/Items/Accessories/ElementalQuiver.cs +++ b/Items/Accessories/ElementalQuiver.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 379a59615a..a7231b9b11 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 48; Item.height = 42; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.defense = 16; Item.accessory = true; diff --git a/Items/Accessories/EnchantedPearl.cs b/Items/Accessories/EnchantedPearl.cs index bf3017c0e3..9025eb04c2 100644 --- a/Items/Accessories/EnchantedPearl.cs +++ b/Items/Accessories/EnchantedPearl.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/EtherealExtorter.cs b/Items/Accessories/EtherealExtorter.cs index 3d35469f5c..c963385ea8 100644 --- a/Items/Accessories/EtherealExtorter.cs +++ b/Items/Accessories/EtherealExtorter.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 28; Item.height = 32; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Accessories/EtherealTalisman.cs b/Items/Accessories/EtherealTalisman.cs index c8c04b4150..7e53c9baa6 100644 --- a/Items/Accessories/EtherealTalisman.cs +++ b/Items/Accessories/EtherealTalisman.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/EvasionScarf.cs b/Items/Accessories/EvasionScarf.cs index 7c857c3a5b..cf9f6bdeef 100644 --- a/Items/Accessories/EvasionScarf.cs +++ b/Items/Accessories/EvasionScarf.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.Calamity().donorItem = true; } diff --git a/Items/Accessories/EyeoftheStorm.cs b/Items/Accessories/EyeoftheStorm.cs index 6c4afeebbc..d0db6cd67c 100644 --- a/Items/Accessories/EyeoftheStorm.cs +++ b/Items/Accessories/EyeoftheStorm.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/FeatherCrown.cs b/Items/Accessories/FeatherCrown.cs index 967ccd6818..fc1e5de671 100644 --- a/Items/Accessories/FeatherCrown.cs +++ b/Items/Accessories/FeatherCrown.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 44; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/FilthyGlove.cs b/Items/Accessories/FilthyGlove.cs index 239394e860..905d4c0ccb 100644 --- a/Items/Accessories/FilthyGlove.cs +++ b/Items/Accessories/FilthyGlove.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Orange; } diff --git a/Items/Accessories/FlameLickedShell.cs b/Items/Accessories/FlameLickedShell.cs index 3044e50b79..cbf6b96a33 100644 --- a/Items/Accessories/FlameLickedShell.cs +++ b/Items/Accessories/FlameLickedShell.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 36; Item.height = 42; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/FleshTotem.cs b/Items/Accessories/FleshTotem.cs index 3fdf794c5b..43a6d21ea8 100644 --- a/Items/Accessories/FleshTotem.cs +++ b/Items/Accessories/FleshTotem.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.rare = ItemRarityID.Yellow; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/FrostBarrier.cs b/Items/Accessories/FrostBarrier.cs index a9a7fb7907..0b961d17d4 100644 --- a/Items/Accessories/FrostBarrier.cs +++ b/Items/Accessories/FrostBarrier.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 20; Item.height = 24; Item.defense = 10; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/FrostFlare.cs b/Items/Accessories/FrostFlare.cs index 9dcd7db795..647d427878 100644 --- a/Items/Accessories/FrostFlare.cs +++ b/Items/Accessories/FrostFlare.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 24; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/FungalClump.cs b/Items/Accessories/FungalClump.cs index 37b51c914a..e65ca7c7b0 100644 --- a/Items/Accessories/FungalClump.cs +++ b/Items/Accessories/FungalClump.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 38; Item.height = 42; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/FungalSymbiote.cs b/Items/Accessories/FungalSymbiote.cs index fc82a46443..8f020a1998 100644 --- a/Items/Accessories/FungalSymbiote.cs +++ b/Items/Accessories/FungalSymbiote.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 38; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/GiantPearl.cs b/Items/Accessories/GiantPearl.cs index 08e208b7e8..e1e9e339a4 100644 --- a/Items/Accessories/GiantPearl.cs +++ b/Items/Accessories/GiantPearl.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/GiantShell.cs b/Items/Accessories/GiantShell.cs index 897a547e0c..52297d4d96 100644 --- a/Items/Accessories/GiantShell.cs +++ b/Items/Accessories/GiantShell.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories Item.width = 30; Item.height = 28; Item.defense = 6; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/GiantTortoiseShell.cs b/Items/Accessories/GiantTortoiseShell.cs index 926f806b4c..4366fe4f5c 100644 --- a/Items/Accessories/GiantTortoiseShell.cs +++ b/Items/Accessories/GiantTortoiseShell.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 20; Item.height = 24; Item.defense = 15; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/GladiatorsLocket.cs b/Items/Accessories/GladiatorsLocket.cs index 66887de9b6..8b56b94464 100644 --- a/Items/Accessories/GladiatorsLocket.cs +++ b/Items/Accessories/GladiatorsLocket.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 5; Item.accessory = true; diff --git a/Items/Accessories/GloveOfRecklessness.cs b/Items/Accessories/GloveOfRecklessness.cs index 56dea0b411..bcf12ea981 100644 --- a/Items/Accessories/GloveOfRecklessness.cs +++ b/Items/Accessories/GloveOfRecklessness.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/GloveofPrecision.cs b/Items/Accessories/GloveofPrecision.cs index 74dc20e01b..9cb6f21173 100644 --- a/Items/Accessories/GloveofPrecision.cs +++ b/Items/Accessories/GloveofPrecision.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index 17aa96c5d1..48540432a4 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 52; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/GravistarSabaton.cs b/Items/Accessories/GravistarSabaton.cs index 2c85b5f2c1..93913e2744 100644 --- a/Items/Accessories/GravistarSabaton.cs +++ b/Items/Accessories/GravistarSabaton.cs @@ -11,12 +11,13 @@ namespace CalamityMod.Items.Accessories public static readonly int PassthroughDamage = 150; public static readonly int SlamDamage = 300; + public static readonly int PassthroughIFrames = 5; public override void SetDefaults() { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/HallowedRune.cs b/Items/Accessories/HallowedRune.cs index f1ab3e0f1f..74226ce8d0 100644 --- a/Items/Accessories/HallowedRune.cs +++ b/Items/Accessories/HallowedRune.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/HarpyRing.cs b/Items/Accessories/HarpyRing.cs index fc30d1aaba..927a30b43a 100644 --- a/Items/Accessories/HarpyRing.cs +++ b/Items/Accessories/HarpyRing.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index c2dca54644..fe40492178 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 66; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index 543edf0708..536236e269 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Red; } diff --git a/Items/Accessories/HideofAstrumDeus.cs b/Items/Accessories/HideofAstrumDeus.cs index fa58539daf..b59cc97768 100644 --- a/Items/Accessories/HideofAstrumDeus.cs +++ b/Items/Accessories/HideofAstrumDeus.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.accessory = true; } diff --git a/Items/Accessories/HoneyDew.cs b/Items/Accessories/HoneyDew.cs index 247b8ed539..f0bd6da006 100644 --- a/Items/Accessories/HoneyDew.cs +++ b/Items/Accessories/HoneyDew.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/HowlsHeart.cs b/Items/Accessories/HowlsHeart.cs index 18ff5cf8c3..9397e5a300 100644 --- a/Items/Accessories/HowlsHeart.cs +++ b/Items/Accessories/HowlsHeart.cs @@ -1,6 +1,5 @@ using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; -using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Projectiles.Summon; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -30,7 +29,7 @@ namespace CalamityMod.Items.Accessories Item.height = 26; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.Calamity().donorItem = true; } diff --git a/Items/Accessories/InfectedJewel.cs b/Items/Accessories/InfectedJewel.cs index f2e4435168..86c11199ca 100644 --- a/Items/Accessories/InfectedJewel.cs +++ b/Items/Accessories/InfectedJewel.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.defense = 6; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/InkBomb.cs b/Items/Accessories/InkBomb.cs index 6bed5597df..6ed93531bb 100644 --- a/Items/Accessories/InkBomb.cs +++ b/Items/Accessories/InkBomb.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 22; Item.height = 50; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/IronBoots.cs b/Items/Accessories/IronBoots.cs index 3bfed0a092..a87ec69437 100644 --- a/Items/Accessories/IronBoots.cs +++ b/Items/Accessories/IronBoots.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/JellyChargedBattery.cs b/Items/Accessories/JellyChargedBattery.cs index b3edd9c9e6..a10d8a46be 100644 --- a/Items/Accessories/JellyChargedBattery.cs +++ b/Items/Accessories/JellyChargedBattery.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Accessories/Laudanum.cs b/Items/Accessories/Laudanum.cs index 29eb533a53..34e65e548b 100644 --- a/Items/Accessories/Laudanum.cs +++ b/Items/Accessories/Laudanum.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/LeviathanAmbergris.cs b/Items/Accessories/LeviathanAmbergris.cs index c707a8e9c3..3b3ef45fa7 100644 --- a/Items/Accessories/LeviathanAmbergris.cs +++ b/Items/Accessories/LeviathanAmbergris.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/LifeJelly.cs b/Items/Accessories/LifeJelly.cs index a87305728d..5b953ac31a 100644 --- a/Items/Accessories/LifeJelly.cs +++ b/Items/Accessories/LifeJelly.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/LivingDew.cs b/Items/Accessories/LivingDew.cs index 1ef0b8db2c..741b41a753 100644 --- a/Items/Accessories/LivingDew.cs +++ b/Items/Accessories/LivingDew.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/LumenousAmulet.cs b/Items/Accessories/LumenousAmulet.cs index efc6a1e410..99f96bc469 100644 --- a/Items/Accessories/LumenousAmulet.cs +++ b/Items/Accessories/LumenousAmulet.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/LuxorsGift.cs b/Items/Accessories/LuxorsGift.cs index 4e5e4cdfa9..bd3acd5dff 100644 --- a/Items/Accessories/LuxorsGift.cs +++ b/Items/Accessories/LuxorsGift.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 58; Item.height = 48; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/ManaPolarizer.cs b/Items/Accessories/ManaPolarizer.cs index 44d64a84f8..95e449d742 100644 --- a/Items/Accessories/ManaPolarizer.cs +++ b/Items/Accessories/ManaPolarizer.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 30; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/MarniteRepulsionShield.cs b/Items/Accessories/MarniteRepulsionShield.cs index c177019c1b..722a59065d 100644 --- a/Items/Accessories/MarniteRepulsionShield.cs +++ b/Items/Accessories/MarniteRepulsionShield.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories Item.width = 24; Item.height = 30; Item.rare = ItemRarityID.Blue; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.accessory = true; Item.defense = 2; } diff --git a/Items/Accessories/MirageMirror.cs b/Items/Accessories/MirageMirror.cs index 72db294d5b..6db96c7e11 100644 --- a/Items/Accessories/MirageMirror.cs +++ b/Items/Accessories/MirageMirror.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 30; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/MoonstoneCrown.cs b/Items/Accessories/MoonstoneCrown.cs index 25de4aaba1..67ce61386b 100644 --- a/Items/Accessories/MoonstoneCrown.cs +++ b/Items/Accessories/MoonstoneCrown.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; } diff --git a/Items/Accessories/Nanotech.cs b/Items/Accessories/Nanotech.cs index 0b630f0da3..882bf3a32a 100644 --- a/Items/Accessories/Nanotech.cs +++ b/Items/Accessories/Nanotech.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 46; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs index bc9c165501..fcbb9e69d8 100644 --- a/Items/Accessories/NebulousCore.cs +++ b/Items/Accessories/NebulousCore.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories Item.width = 16; Item.height = 14; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/NecklaceofVexation.cs b/Items/Accessories/NecklaceofVexation.cs index dd827c0595..8b0b948c8a 100644 --- a/Items/Accessories/NecklaceofVexation.cs +++ b/Items/Accessories/NecklaceofVexation.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/NuclearFuelRod.cs b/Items/Accessories/NuclearFuelRod.cs index 6b78b7a6ea..9b0bdbc502 100644 --- a/Items/Accessories/NuclearFuelRod.cs +++ b/Items/Accessories/NuclearFuelRod.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/Nucleogenesis.cs b/Items/Accessories/Nucleogenesis.cs index 283e14002a..19a5c50e6f 100644 --- a/Items/Accessories/Nucleogenesis.cs +++ b/Items/Accessories/Nucleogenesis.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 50; Item.height = 52; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/OccultSkullCrown.cs b/Items/Accessories/OccultSkullCrown.cs index e3e7056d45..00acd223fa 100644 --- a/Items/Accessories/OccultSkullCrown.cs +++ b/Items/Accessories/OccultSkullCrown.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories Item.height = 62; Item.defense = 5; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/OceanCrest.cs b/Items/Accessories/OceanCrest.cs index 8fd47147aa..9266827683 100644 --- a/Items/Accessories/OceanCrest.cs +++ b/Items/Accessories/OceanCrest.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/OldDie.cs b/Items/Accessories/OldDie.cs index 603b6d58a1..24d1c36c04 100644 --- a/Items/Accessories/OldDie.cs +++ b/Items/Accessories/OldDie.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories Item.width = 24; Item.height = 26; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/OldDukeScales.cs b/Items/Accessories/OldDukeScales.cs index 5c44741570..43a9746187 100644 --- a/Items/Accessories/OldDukeScales.cs +++ b/Items/Accessories/OldDukeScales.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories Item.width = 28; Item.height = 26; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/OrnateShield.cs b/Items/Accessories/OrnateShield.cs index 21337c5858..4591e8c680 100644 --- a/Items/Accessories/OrnateShield.cs +++ b/Items/Accessories/OrnateShield.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 36; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 8; Item.accessory = true; diff --git a/Items/Accessories/PearlofEnthrallment.cs b/Items/Accessories/PearlofEnthrallment.cs index ba3e4a35b2..a6069a3b59 100644 --- a/Items/Accessories/PearlofEnthrallment.cs +++ b/Items/Accessories/PearlofEnthrallment.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 56; Item.height = 56; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/PermafrostsConcoction.cs b/Items/Accessories/PermafrostsConcoction.cs index bba253f32d..e52819bd0c 100644 --- a/Items/Accessories/PermafrostsConcoction.cs +++ b/Items/Accessories/PermafrostsConcoction.cs @@ -6,13 +6,16 @@ namespace CalamityMod.Items.Accessories { public class PermafrostsConcoction : ModItem, ILocalizedModType { + // Boosted by Cross Necklace. + internal static readonly int EncasedIFrames = 90; + public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() { Item.width = 36; Item.height = 34; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Accessories/PlagueHive.cs b/Items/Accessories/PlagueHive.cs index bff475918f..c0bc650ec9 100644 --- a/Items/Accessories/PlagueHive.cs +++ b/Items/Accessories/PlagueHive.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 48; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/PlaguedFuelPack.cs b/Items/Accessories/PlaguedFuelPack.cs index d038b88a24..7ba1dcb02f 100644 --- a/Items/Accessories/PlaguedFuelPack.cs +++ b/Items/Accessories/PlaguedFuelPack.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index e08765f6c4..1823d0a29b 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -70,7 +70,7 @@ namespace CalamityMod.Items.Accessories Item.width = 32; Item.height = 40; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Accessories/Purity.cs b/Items/Accessories/Purity.cs index a39577bc63..4bdeeaa82d 100644 --- a/Items/Accessories/Purity.cs +++ b/Items/Accessories/Purity.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories Item.height = 44; Item.defense = 8; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/QuiverofNihility.cs b/Items/Accessories/QuiverofNihility.cs index 5adc684b32..cc419a93c1 100644 --- a/Items/Accessories/QuiverofNihility.cs +++ b/Items/Accessories/QuiverofNihility.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.accessory = true; diff --git a/Items/Accessories/RadiantOoze.cs b/Items/Accessories/RadiantOoze.cs index 58f33eec38..42f5a8a1de 100644 --- a/Items/Accessories/RadiantOoze.cs +++ b/Items/Accessories/RadiantOoze.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/RaidersTalisman.cs b/Items/Accessories/RaidersTalisman.cs index 428be470ae..9181a9e2ea 100644 --- a/Items/Accessories/RaidersTalisman.cs +++ b/Items/Accessories/RaidersTalisman.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/RampartofDeities.cs b/Items/Accessories/RampartofDeities.cs index 2c045b0cf0..04b7481d08 100644 --- a/Items/Accessories/RampartofDeities.cs +++ b/Items/Accessories/RampartofDeities.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 64; Item.height = 62; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 18; Item.accessory = true; Item.rare = ModContent.RarityType(); diff --git a/Items/Accessories/ReaperToothNecklace.cs b/Items/Accessories/ReaperToothNecklace.cs index 401ddee52d..7fc403aa83 100644 --- a/Items/Accessories/ReaperToothNecklace.cs +++ b/Items/Accessories/ReaperToothNecklace.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories Item.width = 44; Item.height = 50; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/Regenator.cs b/Items/Accessories/Regenator.cs index 1ef4cdae00..292b762fa4 100644 --- a/Items/Accessories/Regenator.cs +++ b/Items/Accessories/Regenator.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 56; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.defense = 10; Item.accessory = true; diff --git a/Items/Accessories/RogueEmblem.cs b/Items/Accessories/RogueEmblem.cs index fdeefe9645..e418c24675 100644 --- a/Items/Accessories/RogueEmblem.cs +++ b/Items/Accessories/RogueEmblem.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 24; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/RoseStone.cs b/Items/Accessories/RoseStone.cs index ed1341ba10..d2f21afb82 100644 --- a/Items/Accessories/RoseStone.cs +++ b/Items/Accessories/RoseStone.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/RottenBrain.cs b/Items/Accessories/RottenBrain.cs index aabf2757c0..783cdf7762 100644 --- a/Items/Accessories/RottenBrain.cs +++ b/Items/Accessories/RottenBrain.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/RottenDogtooth.cs b/Items/Accessories/RottenDogtooth.cs index efde40675e..7dad00cdc3 100644 --- a/Items/Accessories/RottenDogtooth.cs +++ b/Items/Accessories/RottenDogtooth.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 14; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/RoverDrive.cs b/Items/Accessories/RoverDrive.cs index 2099d50aa9..92b08066ed 100644 --- a/Items/Accessories/RoverDrive.cs +++ b/Items/Accessories/RoverDrive.cs @@ -63,7 +63,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 38; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; Item.MakeUsableWithChlorophyteExtractinator(); diff --git a/Items/Accessories/RuinMedallion.cs b/Items/Accessories/RuinMedallion.cs index f7a853f3f6..5238582827 100644 --- a/Items/Accessories/RuinMedallion.cs +++ b/Items/Accessories/RuinMedallion.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 28; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/RustyMedallion.cs b/Items/Accessories/RustyMedallion.cs index 24fdd0847b..4f7c014cc6 100644 --- a/Items/Accessories/RustyMedallion.cs +++ b/Items/Accessories/RustyMedallion.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories Item.width = 18; Item.height = 32; Item.rare = ItemRarityID.Blue; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.accessory = true; } diff --git a/Items/Accessories/SandCloak.cs b/Items/Accessories/SandCloak.cs index 41051a9dc3..9097563d19 100644 --- a/Items/Accessories/SandCloak.cs +++ b/Items/Accessories/SandCloak.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 44; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; Item.defense = 2; diff --git a/Items/Accessories/SandSharkToothNecklace.cs b/Items/Accessories/SandSharkToothNecklace.cs index 54c83b11e0..c18875f349 100644 --- a/Items/Accessories/SandSharkToothNecklace.cs +++ b/Items/Accessories/SandSharkToothNecklace.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories Item.width = 32; Item.height = 44; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/ScuttlersJewel.cs b/Items/Accessories/ScuttlersJewel.cs index 34203253c5..5a24199168 100644 --- a/Items/Accessories/ScuttlersJewel.cs +++ b/Items/Accessories/ScuttlersJewel.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; Item.MakeUsableWithChlorophyteExtractinator(); diff --git a/Items/Accessories/ShieldoftheHighRuler.cs b/Items/Accessories/ShieldoftheHighRuler.cs index 46bfbed05e..f717c20560 100644 --- a/Items/Accessories/ShieldoftheHighRuler.cs +++ b/Items/Accessories/ShieldoftheHighRuler.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories Item.DamageType = DamageClass.MeleeNoSpeed; Item.damage = 30; Item.knockBack = 9f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; Item.defense = 12; diff --git a/Items/Accessories/ShieldoftheOcean.cs b/Items/Accessories/ShieldoftheOcean.cs index 6219a62af6..9db1a74924 100644 --- a/Items/Accessories/ShieldoftheOcean.cs +++ b/Items/Accessories/ShieldoftheOcean.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 28; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 2; Item.accessory = true; diff --git a/Items/Accessories/SigilofCalamitas.cs b/Items/Accessories/SigilofCalamitas.cs index 464b2168b0..eb3ff6f32b 100644 --- a/Items/Accessories/SigilofCalamitas.cs +++ b/Items/Accessories/SigilofCalamitas.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/SilencingSheath.cs b/Items/Accessories/SilencingSheath.cs index 8ae2600163..e2299267cc 100644 --- a/Items/Accessories/SilencingSheath.cs +++ b/Items/Accessories/SilencingSheath.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 32; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/SlagsplitterPauldron.cs b/Items/Accessories/SlagsplitterPauldron.cs index 220a13173f..5180da893b 100644 --- a/Items/Accessories/SlagsplitterPauldron.cs +++ b/Items/Accessories/SlagsplitterPauldron.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 54; Item.height = 56; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index 5fe959bfda..c2c749190f 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; +using CalamityMod.Balancing; using CalamityMod.Rarities; using Terraria; -using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories @@ -10,11 +10,15 @@ namespace CalamityMod.Items.Accessories { public new string LocalizationCategory => "Items.Accessories"; public const float TeleportRange = 845f; + + // Boosted by Cross Necklace. + internal static readonly int VeilIFrames = BalancingConstants.VanillaDodgeIFrames; + public override void SetDefaults() { Item.width = 30; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/SpelunkersAmulet.cs b/Items/Accessories/SpelunkersAmulet.cs index 35f172cbc5..d7029c4e28 100644 --- a/Items/Accessories/SpelunkersAmulet.cs +++ b/Items/Accessories/SpelunkersAmulet.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 22; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/SpiritGlyph.cs b/Items/Accessories/SpiritGlyph.cs index e795cd09d2..7537625a42 100644 --- a/Items/Accessories/SpiritGlyph.cs +++ b/Items/Accessories/SpiritGlyph.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 30; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.accessory = true; } diff --git a/Items/Accessories/StarTaintedGenerator.cs b/Items/Accessories/StarTaintedGenerator.cs index 70f26aeb99..994e56cdfc 100644 --- a/Items/Accessories/StarTaintedGenerator.cs +++ b/Items/Accessories/StarTaintedGenerator.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories Item.width = 38; Item.height = 60; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Accessories/StarbusterCore.cs b/Items/Accessories/StarbusterCore.cs index 50df78bf22..be1707868b 100644 --- a/Items/Accessories/StarbusterCore.cs +++ b/Items/Accessories/StarbusterCore.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/StatMeter.cs b/Items/Accessories/StatMeter.cs index 573b2fbffc..9fc54df8eb 100644 --- a/Items/Accessories/StatMeter.cs +++ b/Items/Accessories/StatMeter.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/StatisBlessing.cs b/Items/Accessories/StatisBlessing.cs index d29d7bf8e8..72fa58ce65 100644 --- a/Items/Accessories/StatisBlessing.cs +++ b/Items/Accessories/StatisBlessing.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/StatisCurse.cs b/Items/Accessories/StatisCurse.cs index 17eef73ebd..e16ebd5b2e 100644 --- a/Items/Accessories/StatisCurse.cs +++ b/Items/Accessories/StatisCurse.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index 934958d8c4..a0990135cd 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; } diff --git a/Items/Accessories/StatisVoidSash.cs b/Items/Accessories/StatisVoidSash.cs index 5bd17fc655..1606ad6e1f 100644 --- a/Items/Accessories/StatisVoidSash.cs +++ b/Items/Accessories/StatisVoidSash.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories Item.width = 28; Item.height = 32; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/StressPills.cs b/Items/Accessories/StressPills.cs index 15e3fafacd..3a921fcb3d 100644 --- a/Items/Accessories/StressPills.cs +++ b/Items/Accessories/StressPills.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories Item.width = 26; Item.height = 26; Item.defense = 4; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs index 064312a4fa..bf385bc526 100644 --- a/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs +++ b/Items/Accessories/SupremeBaitTackleBoxFishingStation.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 46; Item.height = 52; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index 4d773fb8be..cd3aa3500e 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories Item.width = 20; Item.height = 24; Item.defense = 15; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index b91234729f..b9c4afea7e 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories Item.width = 34; Item.height = 34; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = RarityType(); } diff --git a/Items/Accessories/TheBee.cs b/Items/Accessories/TheBee.cs index 9858aac859..8d9aac1e0c 100644 --- a/Items/Accessories/TheBee.cs +++ b/Items/Accessories/TheBee.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 24; Item.height = 28; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/TheCamper.cs b/Items/Accessories/TheCamper.cs index 286d252287..430535724a 100644 --- a/Items/Accessories/TheCamper.cs +++ b/Items/Accessories/TheCamper.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; Item.defense = 10; diff --git a/Items/Accessories/TheCommunity.cs b/Items/Accessories/TheCommunity.cs index 7af51fa756..7aeffc057c 100644 --- a/Items/Accessories/TheCommunity.cs +++ b/Items/Accessories/TheCommunity.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 64; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/TheEvolution.cs b/Items/Accessories/TheEvolution.cs index f7cae5cd24..7f0dff4b8a 100644 --- a/Items/Accessories/TheEvolution.cs +++ b/Items/Accessories/TheEvolution.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 58; Item.height = 44; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/TheFirstShadowflame.cs b/Items/Accessories/TheFirstShadowflame.cs index 9fb41afc35..9e041957c1 100644 --- a/Items/Accessories/TheFirstShadowflame.cs +++ b/Items/Accessories/TheFirstShadowflame.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 32; Item.height = 48; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/TheSponge.cs b/Items/Accessories/TheSponge.cs index dc9cd34726..16fe75addd 100644 --- a/Items/Accessories/TheSponge.cs +++ b/Items/Accessories/TheSponge.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/TheTransformer.cs b/Items/Accessories/TheTransformer.cs index 5970da5711..d5df8d20d1 100644 --- a/Items/Accessories/TheTransformer.cs +++ b/Items/Accessories/TheTransformer.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 42; Item.height = 56; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Accessories/ToxicHeart.cs b/Items/Accessories/ToxicHeart.cs index 82f47606d4..b5cbd57c43 100644 --- a/Items/Accessories/ToxicHeart.cs +++ b/Items/Accessories/ToxicHeart.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/TrinketofChi.cs b/Items/Accessories/TrinketofChi.cs index 43bef232a9..aaba2c7446 100644 --- a/Items/Accessories/TrinketofChi.cs +++ b/Items/Accessories/TrinketofChi.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/UnstableGraniteCore.cs b/Items/Accessories/UnstableGraniteCore.cs index c9b402a917..c6c5779487 100644 --- a/Items/Accessories/UnstableGraniteCore.cs +++ b/Items/Accessories/UnstableGraniteCore.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 40; Item.height = 44; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/VampiricTalisman.cs b/Items/Accessories/VampiricTalisman.cs index 6f1c62e81e..4f6d09983b 100644 --- a/Items/Accessories/VampiricTalisman.cs +++ b/Items/Accessories/VampiricTalisman.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 86; Item.height = 48; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Accessories/Vanity/AbandonedWulfrumHelmet.cs b/Items/Accessories/Vanity/AbandonedWulfrumHelmet.cs index af5dfdc741..5e8b8ae18d 100644 --- a/Items/Accessories/Vanity/AbandonedWulfrumHelmet.cs +++ b/Items/Accessories/Vanity/AbandonedWulfrumHelmet.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 26; Item.height = 30; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Green; Item.vanity = true; } diff --git a/Items/Accessories/Vanity/CocosFeather.cs b/Items/Accessories/Vanity/CocosFeather.cs index 6ba8a4b76c..4e55c0074d 100644 --- a/Items/Accessories/Vanity/CocosFeather.cs +++ b/Items/Accessories/Vanity/CocosFeather.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 42; Item.height = 38; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.vanity = true; Item.Calamity().devItem = true; diff --git a/Items/Accessories/Vanity/HapuFruit.cs b/Items/Accessories/Vanity/HapuFruit.cs index 8002aa9d5c..30f2a7fefa 100644 --- a/Items/Accessories/Vanity/HapuFruit.cs +++ b/Items/Accessories/Vanity/HapuFruit.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 22; Item.height = 30; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.vanity = true; Item.Calamity().devItem = true; diff --git a/Items/Accessories/Vanity/OracleHeadphones.cs b/Items/Accessories/Vanity/OracleHeadphones.cs index c22d5789be..b6997d3609 100644 --- a/Items/Accessories/Vanity/OracleHeadphones.cs +++ b/Items/Accessories/Vanity/OracleHeadphones.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 22; Item.height = 30; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.vanity = true; Item.Calamity().devItem = true; diff --git a/Items/Accessories/Vanity/Popo.cs b/Items/Accessories/Vanity/Popo.cs index dd3101f43c..f78f57563a 100644 --- a/Items/Accessories/Vanity/Popo.cs +++ b/Items/Accessories/Vanity/Popo.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 36; Item.height = 44; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.Calamity().devItem = true; } diff --git a/Items/Accessories/Vanity/RedBow.cs b/Items/Accessories/Vanity/RedBow.cs index c55c67ace4..a336b99bdf 100644 --- a/Items/Accessories/Vanity/RedBow.cs +++ b/Items/Accessories/Vanity/RedBow.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Accessories.Vanity Item.width = 22; Item.height = 30; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.vanity = true; Item.Calamity().devItem = true; diff --git a/Items/Accessories/VeneratedLocket.cs b/Items/Accessories/VeneratedLocket.cs index 0153e53579..612d021444 100644 --- a/Items/Accessories/VeneratedLocket.cs +++ b/Items/Accessories/VeneratedLocket.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 34; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/VitalJelly.cs b/Items/Accessories/VitalJelly.cs index 8a0c66f0a3..5c18a64de3 100644 --- a/Items/Accessories/VitalJelly.cs +++ b/Items/Accessories/VitalJelly.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 18; Item.height = 40; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; } diff --git a/Items/Accessories/VoidofCalamity.cs b/Items/Accessories/VoidofCalamity.cs index f97fb9d7f2..b9e35b78cb 100644 --- a/Items/Accessories/VoidofCalamity.cs +++ b/Items/Accessories/VoidofCalamity.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index e21abda4b0..b892b0268b 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/VoltaicJelly.cs b/Items/Accessories/VoltaicJelly.cs index f950a3eba9..e341b82c80 100644 --- a/Items/Accessories/VoltaicJelly.cs +++ b/Items/Accessories/VoltaicJelly.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Green; } diff --git a/Items/Accessories/WarbanneroftheSun.cs b/Items/Accessories/WarbanneroftheSun.cs index 19679e5d94..3b16c87ca2 100644 --- a/Items/Accessories/WarbanneroftheSun.cs +++ b/Items/Accessories/WarbanneroftheSun.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 32; Item.height = 78; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.accessory = true; } diff --git a/Items/Accessories/WifeinaBottle.cs b/Items/Accessories/WifeinaBottle.cs index 376e9d3b08..7954944e71 100644 --- a/Items/Accessories/WifeinaBottle.cs +++ b/Items/Accessories/WifeinaBottle.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/WifeinaBottlewithBoobs.cs b/Items/Accessories/WifeinaBottlewithBoobs.cs index 5982282631..40bf02662e 100644 --- a/Items/Accessories/WifeinaBottlewithBoobs.cs +++ b/Items/Accessories/WifeinaBottlewithBoobs.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/Wings/AureateBooster.cs b/Items/Accessories/Wings/AureateBooster.cs index 472bf0daab..1207c6432b 100644 --- a/Items/Accessories/Wings/AureateBooster.cs +++ b/Items/Accessories/Wings/AureateBooster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 54; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/Wings/DrewsWings.cs b/Items/Accessories/Wings/DrewsWings.cs index f13b31a293..30ec3ec6d8 100644 --- a/Items/Accessories/Wings/DrewsWings.cs +++ b/Items/Accessories/Wings/DrewsWings.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/Wings/ElysianWings.cs b/Items/Accessories/Wings/ElysianWings.cs index f0a92e6256..2139a3381a 100644 --- a/Items/Accessories/Wings/ElysianWings.cs +++ b/Items/Accessories/Wings/ElysianWings.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 36; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/Wings/ExodusWings.cs b/Items/Accessories/Wings/ExodusWings.cs index 2e7b5b4d59..549f1ae5e8 100644 --- a/Items/Accessories/Wings/ExodusWings.cs +++ b/Items/Accessories/Wings/ExodusWings.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/Wings/HadalMantle.cs b/Items/Accessories/Wings/HadalMantle.cs index 6c27fb4f4d..9bcf25930c 100644 --- a/Items/Accessories/Wings/HadalMantle.cs +++ b/Items/Accessories/Wings/HadalMantle.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.accessory = true; } diff --git a/Items/Accessories/Wings/HadarianWings.cs b/Items/Accessories/Wings/HadarianWings.cs index 9081b777e9..8d3ff62629 100644 --- a/Items/Accessories/Wings/HadarianWings.cs +++ b/Items/Accessories/Wings/HadarianWings.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 24; Item.height = 36; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.accessory = true; } diff --git a/Items/Accessories/Wings/MOAB.cs b/Items/Accessories/Wings/MOAB.cs index 116f3e82db..694ddaab3b 100644 --- a/Items/Accessories/Wings/MOAB.cs +++ b/Items/Accessories/Wings/MOAB.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.accessory = true; } diff --git a/Items/Accessories/Wings/SilvaWings.cs b/Items/Accessories/Wings/SilvaWings.cs index 1f220dc35f..b00db4d361 100644 --- a/Items/Accessories/Wings/SilvaWings.cs +++ b/Items/Accessories/Wings/SilvaWings.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/Wings/SkylineWings.cs b/Items/Accessories/Wings/SkylineWings.cs index c46b662d53..58ab67d809 100644 --- a/Items/Accessories/Wings/SkylineWings.cs +++ b/Items/Accessories/Wings/SkylineWings.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; } diff --git a/Items/Accessories/Wings/SoulofCryogen.cs b/Items/Accessories/Wings/SoulofCryogen.cs index de434783b6..cfc3f82932 100644 --- a/Items/Accessories/Wings/SoulofCryogen.cs +++ b/Items/Accessories/Wings/SoulofCryogen.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/Wings/StarlightWings.cs b/Items/Accessories/Wings/StarlightWings.cs index 8a460549bd..f80f8c7a98 100644 --- a/Items/Accessories/Wings/StarlightWings.cs +++ b/Items/Accessories/Wings/StarlightWings.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.accessory = true; } diff --git a/Items/Accessories/Wings/TarragonWings.cs b/Items/Accessories/Wings/TarragonWings.cs index b84474cc70..e30e73c6bd 100644 --- a/Items/Accessories/Wings/TarragonWings.cs +++ b/Items/Accessories/Wings/TarragonWings.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 22; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.accessory = true; } diff --git a/Items/Accessories/Wings/TracersCelestial.cs b/Items/Accessories/Wings/TracersCelestial.cs index 905a4b5db8..5ff8fee788 100644 --- a/Items/Accessories/Wings/TracersCelestial.cs +++ b/Items/Accessories/Wings/TracersCelestial.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 36; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.accessory = true; } diff --git a/Items/Accessories/Wings/TracersElysian.cs b/Items/Accessories/Wings/TracersElysian.cs index fabfbac898..41740f0d71 100644 --- a/Items/Accessories/Wings/TracersElysian.cs +++ b/Items/Accessories/Wings/TracersElysian.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 36; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/Wings/TracersSeraph.cs b/Items/Accessories/Wings/TracersSeraph.cs index f1cd73a510..21303ea750 100644 --- a/Items/Accessories/Wings/TracersSeraph.cs +++ b/Items/Accessories/Wings/TracersSeraph.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Accessories.Wings { Item.width = 36; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.accessory = true; Item.rare = ModContent.RarityType(); } diff --git a/Items/Accessories/WulfrumAcrobaticsPack.cs b/Items/Accessories/WulfrumAcrobaticsPack.cs index 08f5da2675..0558fdda00 100644 --- a/Items/Accessories/WulfrumAcrobaticsPack.cs +++ b/Items/Accessories/WulfrumAcrobaticsPack.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Accessories/WulfrumBattery.cs b/Items/Accessories/WulfrumBattery.cs index bdfa648868..ea1aaca730 100644 --- a/Items/Accessories/WulfrumBattery.cs +++ b/Items/Accessories/WulfrumBattery.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 20; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.accessory = true; Item.rare = ItemRarityID.Blue; diff --git a/Items/Accessories/YharimsGift.cs b/Items/Accessories/YharimsGift.cs index 9f8272b831..6f5cc3c2e9 100644 --- a/Items/Accessories/YharimsGift.cs +++ b/Items/Accessories/YharimsGift.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Accessories Item.height = 22; Item.defense = 30; Item.accessory = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/AntiCystOintment.cs b/Items/AntiCystOintment.cs index 5f32157f62..464176fd38 100644 --- a/Items/AntiCystOintment.cs +++ b/Items/AntiCystOintment.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items { Item.width = 44; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/AntiTumorOintment.cs b/Items/AntiTumorOintment.cs index 157b9a1e6b..0c356725ec 100644 --- a/Items/AntiTumorOintment.cs +++ b/Items/AntiTumorOintment.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items { Item.width = 44; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Armor/Aerospec/AerospecBreastplate.cs b/Items/Armor/Aerospec/AerospecBreastplate.cs index 569b8264d6..0379cb9b0f 100644 --- a/Items/Armor/Aerospec/AerospecBreastplate.cs +++ b/Items/Armor/Aerospec/AerospecBreastplate.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 7; } diff --git a/Items/Armor/Aerospec/AerospecHat.cs b/Items/Armor/Aerospec/AerospecHat.cs index 1cd080b8ab..5fb0715309 100644 --- a/Items/Armor/Aerospec/AerospecHat.cs +++ b/Items/Armor/Aerospec/AerospecHat.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 3; //15 } diff --git a/Items/Armor/Aerospec/AerospecHeadgear.cs b/Items/Armor/Aerospec/AerospecHeadgear.cs index 57831b9137..ed6ec52e82 100644 --- a/Items/Armor/Aerospec/AerospecHeadgear.cs +++ b/Items/Armor/Aerospec/AerospecHeadgear.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 4; //17 } diff --git a/Items/Armor/Aerospec/AerospecHelm.cs b/Items/Armor/Aerospec/AerospecHelm.cs index 6d1ef234ea..bf10c1b5b2 100644 --- a/Items/Armor/Aerospec/AerospecHelm.cs +++ b/Items/Armor/Aerospec/AerospecHelm.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 7; //20 } diff --git a/Items/Armor/Aerospec/AerospecHelmet.cs b/Items/Armor/Aerospec/AerospecHelmet.cs index 7abd1896d7..688945d746 100644 --- a/Items/Armor/Aerospec/AerospecHelmet.cs +++ b/Items/Armor/Aerospec/AerospecHelmet.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 2; //13 } diff --git a/Items/Armor/Aerospec/AerospecHood.cs b/Items/Armor/Aerospec/AerospecHood.cs index f97c49ba90..1d18851f55 100644 --- a/Items/Armor/Aerospec/AerospecHood.cs +++ b/Items/Armor/Aerospec/AerospecHood.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 5; //18 } diff --git a/Items/Armor/Aerospec/AerospecLeggings.cs b/Items/Armor/Aerospec/AerospecLeggings.cs index 745218ba4a..2cb02ee477 100644 --- a/Items/Armor/Aerospec/AerospecLeggings.cs +++ b/Items/Armor/Aerospec/AerospecLeggings.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Aerospec { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.defense = 6; } diff --git a/Items/Armor/Astral/AstralBreastplate.cs b/Items/Armor/Astral/AstralBreastplate.cs index 05a5a60592..4b71e1d7bf 100644 --- a/Items/Armor/Astral/AstralBreastplate.cs +++ b/Items/Armor/Astral/AstralBreastplate.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Astral { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.defense = 25; } diff --git a/Items/Armor/Astral/AstralHelm.cs b/Items/Armor/Astral/AstralHelm.cs index 412d23e441..7df783d9e1 100644 --- a/Items/Armor/Astral/AstralHelm.cs +++ b/Items/Armor/Astral/AstralHelm.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Astral { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.defense = 17; //63 } diff --git a/Items/Armor/Astral/AstralLeggings.cs b/Items/Armor/Astral/AstralLeggings.cs index 935aed9d67..ff3e4af4a0 100644 --- a/Items/Armor/Astral/AstralLeggings.cs +++ b/Items/Armor/Astral/AstralLeggings.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Astral { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.defense = 21; } diff --git a/Items/Armor/Auric/AuricTeslaBodyArmor.cs b/Items/Armor/Auric/AuricTeslaBodyArmor.cs index 6c6f01d8d7..91ccc4cd61 100644 --- a/Items/Armor/Auric/AuricTeslaBodyArmor.cs +++ b/Items/Armor/Auric/AuricTeslaBodyArmor.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 38; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 48; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaCuisses.cs b/Items/Armor/Auric/AuricTeslaCuisses.cs index 265557d2ea..1cb579a498 100644 --- a/Items/Armor/Auric/AuricTeslaCuisses.cs +++ b/Items/Armor/Auric/AuricTeslaCuisses.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 44; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs index d2285a97c3..e78c7cebc2 100644 --- a/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs +++ b/Items/Armor/Auric/AuricTeslaHoodedFacemask.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 40; //132 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs index cc43f2d217..8c5b0367f3 100644 --- a/Items/Armor/Auric/AuricTeslaPlumedHelm.cs +++ b/Items/Armor/Auric/AuricTeslaPlumedHelm.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 34; //132 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs index 1f03b8a263..cc0549db06 100644 --- a/Items/Armor/Auric/AuricTeslaRoyalHelm.cs +++ b/Items/Armor/Auric/AuricTeslaRoyalHelm.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 54; //132 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs index 326f4ff154..7fbb0f8dd4 100644 --- a/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/Auric/AuricTeslaSpaceHelmet.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 12; //132 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs index 899c364ec7..a2e4802bd0 100644 --- a/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs +++ b/Items/Armor/Auric/AuricTeslaWireHemmedVisage.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Auric { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.defense = 24; //132 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareBodyArmor.cs b/Items/Armor/Bloodflare/BloodflareBodyArmor.cs index 321d4059c8..7139b25e18 100644 --- a/Items/Armor/Bloodflare/BloodflareBodyArmor.cs +++ b/Items/Armor/Bloodflare/BloodflareBodyArmor.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 35; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareCuisses.cs b/Items/Armor/Bloodflare/BloodflareCuisses.cs index 23fbd56398..a34517488d 100644 --- a/Items/Armor/Bloodflare/BloodflareCuisses.cs +++ b/Items/Armor/Bloodflare/BloodflareCuisses.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 29; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs index 2eeff0a658..92f840986d 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadMagic.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadMagic.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 22; //85 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs index efaefaeab8..52523c67d6 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadMelee.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadMelee.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 49; //85 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs index cf3c67d80e..df4841eaa7 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 34; //85 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs index d9277c9e52..a9460e2066 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadRogue.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadRogue.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 28; //85 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs index 5e5c5001ac..1cb061cd35 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadSummon.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadSummon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Bloodflare { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 16; //85 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/CirrusDress.cs b/Items/Armor/CirrusDress.cs index fc472e3459..4da0b51cd9 100644 --- a/Items/Armor/CirrusDress.cs +++ b/Items/Armor/CirrusDress.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Armor { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; Item.defense = 8; diff --git a/Items/Armor/Daedalus/DaedalusBreastplate.cs b/Items/Armor/Daedalus/DaedalusBreastplate.cs index 8775e33ecc..99653f3213 100644 --- a/Items/Armor/Daedalus/DaedalusBreastplate.cs +++ b/Items/Armor/Daedalus/DaedalusBreastplate.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 19; //41 } diff --git a/Items/Armor/Daedalus/DaedalusHeadMagic.cs b/Items/Armor/Daedalus/DaedalusHeadMagic.cs index bb2b4abe1b..175ea3b048 100644 --- a/Items/Armor/Daedalus/DaedalusHeadMagic.cs +++ b/Items/Armor/Daedalus/DaedalusHeadMagic.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 5; //35 } diff --git a/Items/Armor/Daedalus/DaedalusHeadMelee.cs b/Items/Armor/Daedalus/DaedalusHeadMelee.cs index efc5faa87c..f7fc612265 100644 --- a/Items/Armor/Daedalus/DaedalusHeadMelee.cs +++ b/Items/Armor/Daedalus/DaedalusHeadMelee.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 21; //51 } diff --git a/Items/Armor/Daedalus/DaedalusHeadRanged.cs b/Items/Armor/Daedalus/DaedalusHeadRanged.cs index fb9cf3a62e..1209a9ebc0 100644 --- a/Items/Armor/Daedalus/DaedalusHeadRanged.cs +++ b/Items/Armor/Daedalus/DaedalusHeadRanged.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 9; //39 } diff --git a/Items/Armor/Daedalus/DaedalusHeadRogue.cs b/Items/Armor/Daedalus/DaedalusHeadRogue.cs index 390f68944a..67bcabda36 100644 --- a/Items/Armor/Daedalus/DaedalusHeadRogue.cs +++ b/Items/Armor/Daedalus/DaedalusHeadRogue.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 7; //37 } diff --git a/Items/Armor/Daedalus/DaedalusHeadSummon.cs b/Items/Armor/Daedalus/DaedalusHeadSummon.cs index f308960c51..5f85a4c3ef 100644 --- a/Items/Armor/Daedalus/DaedalusHeadSummon.cs +++ b/Items/Armor/Daedalus/DaedalusHeadSummon.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 3; //33 } diff --git a/Items/Armor/Daedalus/DaedalusLeggings.cs b/Items/Armor/Daedalus/DaedalusLeggings.cs index 1b59a641f8..023629f0c4 100644 --- a/Items/Armor/Daedalus/DaedalusLeggings.cs +++ b/Items/Armor/Daedalus/DaedalusLeggings.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.Daedalus { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 15; //41 } diff --git a/Items/Armor/Demonshade/DemonshadeBreastplate.cs b/Items/Armor/Demonshade/DemonshadeBreastplate.cs index a27a5fff84..dec634e4f4 100644 --- a/Items/Armor/Demonshade/DemonshadeBreastplate.cs +++ b/Items/Armor/Demonshade/DemonshadeBreastplate.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Demonshade Item.width = 18; Item.height = 18; Item.defense = 50; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Armor/Demonshade/DemonshadeGreaves.cs b/Items/Armor/Demonshade/DemonshadeGreaves.cs index b0f04a3d73..013b25a960 100644 --- a/Items/Armor/Demonshade/DemonshadeGreaves.cs +++ b/Items/Armor/Demonshade/DemonshadeGreaves.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Demonshade Item.height = 18; Item.defense = 50; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Armor/Demonshade/DemonshadeHelm.cs b/Items/Armor/Demonshade/DemonshadeHelm.cs index 2d454c68b5..1abc0de932 100644 --- a/Items/Armor/Demonshade/DemonshadeHelm.cs +++ b/Items/Armor/Demonshade/DemonshadeHelm.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor.Demonshade Item.width = 18; Item.height = 18; Item.defense = 50; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Armor/DesertProwler/DesertProwlerSet.cs b/Items/Armor/DesertProwler/DesertProwlerSet.cs index 0b46df1947..d2afe3d3aa 100644 --- a/Items/Armor/DesertProwler/DesertProwlerSet.cs +++ b/Items/Armor/DesertProwler/DesertProwlerSet.cs @@ -64,7 +64,7 @@ namespace CalamityMod.Items.Armor.DesertProwler { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 1; //6 } @@ -218,7 +218,7 @@ namespace CalamityMod.Items.Armor.DesertProwler { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 3; } @@ -248,7 +248,7 @@ namespace CalamityMod.Items.Armor.DesertProwler { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 2; } diff --git a/Items/Armor/Empyrean/EmpyreanCloak.cs b/Items/Armor/Empyrean/EmpyreanCloak.cs index 755249b824..1cb1f1d103 100644 --- a/Items/Armor/Empyrean/EmpyreanCloak.cs +++ b/Items/Armor/Empyrean/EmpyreanCloak.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Armor.Empyrean { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.defense = 27; } diff --git a/Items/Armor/Empyrean/EmpyreanCuisses.cs b/Items/Armor/Empyrean/EmpyreanCuisses.cs index 5e47bef699..9480df2faf 100644 --- a/Items/Armor/Empyrean/EmpyreanCuisses.cs +++ b/Items/Armor/Empyrean/EmpyreanCuisses.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Empyrean { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.defense = 24; } diff --git a/Items/Armor/Empyrean/EmpyreanMask.cs b/Items/Armor/Empyrean/EmpyreanMask.cs index 3fef9a2634..2dcd7472d1 100644 --- a/Items/Armor/Empyrean/EmpyreanMask.cs +++ b/Items/Armor/Empyrean/EmpyreanMask.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor.Empyrean { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.defense = 20; //71 } diff --git a/Items/Armor/Fearmonger/FearmongerGreathelm.cs b/Items/Armor/Fearmonger/FearmongerGreathelm.cs index 61f4091029..4454c1f4c7 100644 --- a/Items/Armor/Fearmonger/FearmongerGreathelm.cs +++ b/Items/Armor/Fearmonger/FearmongerGreathelm.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Fearmonger { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 38; // 132 total Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Fearmonger/FearmongerGreaves.cs b/Items/Armor/Fearmonger/FearmongerGreaves.cs index 008027b09e..ae1a160f5a 100644 --- a/Items/Armor/Fearmonger/FearmongerGreaves.cs +++ b/Items/Armor/Fearmonger/FearmongerGreaves.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Fearmonger { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 44; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Fearmonger/FearmongerPlateMail.cs b/Items/Armor/Fearmonger/FearmongerPlateMail.cs index 18966d1f20..2429a23224 100644 --- a/Items/Armor/Fearmonger/FearmongerPlateMail.cs +++ b/Items/Armor/Fearmonger/FearmongerPlateMail.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Fearmonger { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 50; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/GemTech/GemTechBodyArmor.cs b/Items/Armor/GemTech/GemTechBodyArmor.cs index 8775b9fbe3..7b76249015 100644 --- a/Items/Armor/GemTech/GemTechBodyArmor.cs +++ b/Items/Armor/GemTech/GemTechBodyArmor.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GemTech Item.width = 48; Item.height = 32; Item.defense = 31; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/GemTech/GemTechHeadgear.cs b/Items/Armor/GemTech/GemTechHeadgear.cs index 2308e1ae7b..006989a52d 100644 --- a/Items/Armor/GemTech/GemTechHeadgear.cs +++ b/Items/Armor/GemTech/GemTechHeadgear.cs @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.GemTech Item.width = 40; Item.height = 32; Item.defense = 14; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/GemTech/GemTechSchynbaulds.cs b/Items/Armor/GemTech/GemTechSchynbaulds.cs index b842e50137..cc5f3f3323 100644 --- a/Items/Armor/GemTech/GemTechSchynbaulds.cs +++ b/Items/Armor/GemTech/GemTechSchynbaulds.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GemTech Item.width = 28; Item.height = 26; Item.defense = 24; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/GodSlayer/GodSlayerChestplate.cs b/Items/Armor/GodSlayer/GodSlayerChestplate.cs index fc58217de3..fae0a56ad4 100644 --- a/Items/Armor/GodSlayer/GodSlayerChestplate.cs +++ b/Items/Armor/GodSlayer/GodSlayerChestplate.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GodSlayer { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 41; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs index 567a039311..251f1f7b3a 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GodSlayer { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 48; //96 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs index 60e0d5650b..f5fcdee6ef 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GodSlayer { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 35; //96 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs index 288baab07a..5aa027e58f 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.GodSlayer { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 29; //96 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/GodSlayer/GodSlayerLeggings.cs b/Items/Armor/GodSlayer/GodSlayerLeggings.cs index 1b5a1fe56f..2e74e4c676 100644 --- a/Items/Armor/GodSlayer/GodSlayerLeggings.cs +++ b/Items/Armor/GodSlayer/GodSlayerLeggings.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.GodSlayer { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 35; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Hydrothermic/HydrothermicArmor.cs b/Items/Armor/Hydrothermic/HydrothermicArmor.cs index b376339703..9dcc979f64 100644 --- a/Items/Armor/Hydrothermic/HydrothermicArmor.cs +++ b/Items/Armor/Hydrothermic/HydrothermicArmor.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 20; } diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs b/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs index d4d495576a..75ac9ea103 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadMagic.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 9; //45 } diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs b/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs index 46f81e0fab..33fbbab286 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadMelee.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 33; //67 } diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs b/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs index 02ab1549f8..e62bf09a14 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadRanged.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 15; //53 } diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs b/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs index cc88018fc7..5abfac1be7 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadRogue.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 12; //49 } diff --git a/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs b/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs index 333a631d2b..b246aae0eb 100644 --- a/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs +++ b/Items/Armor/Hydrothermic/HydrothermicHeadSummon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 6; //40 } diff --git a/Items/Armor/Hydrothermic/HydrothermicSubligar.cs b/Items/Armor/Hydrothermic/HydrothermicSubligar.cs index bff64a0dc8..95b528c3c7 100644 --- a/Items/Armor/Hydrothermic/HydrothermicSubligar.cs +++ b/Items/Armor/Hydrothermic/HydrothermicSubligar.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 14; } diff --git a/Items/Armor/LunicCorps/LunicCorpsBoots.cs b/Items/Armor/LunicCorps/LunicCorpsBoots.cs index ac7b8791d8..aee18ca025 100644 --- a/Items/Armor/LunicCorps/LunicCorpsBoots.cs +++ b/Items/Armor/LunicCorps/LunicCorpsBoots.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.LunicCorps { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.defense = 18; Item.rare = ItemRarityID.Cyan; Item.Calamity().donorItem = true; diff --git a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs index 5324ef7c8b..f8c38f6f04 100644 --- a/Items/Armor/LunicCorps/LunicCorpsHelmet.cs +++ b/Items/Armor/LunicCorps/LunicCorpsHelmet.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Armor.LunicCorps { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.defense = 14; Item.rare = ItemRarityID.Cyan; Item.Calamity().donorItem = true; diff --git a/Items/Armor/LunicCorps/LunicCorpsVest.cs b/Items/Armor/LunicCorps/LunicCorpsVest.cs index ea9c757be5..104d829934 100644 --- a/Items/Armor/LunicCorps/LunicCorpsVest.cs +++ b/Items/Armor/LunicCorps/LunicCorpsVest.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.LunicCorps { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.defense = 20; Item.rare = ItemRarityID.Cyan; Item.Calamity().donorItem = true; diff --git a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs index 7770cef4bb..711995fa8f 100644 --- a/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs +++ b/Items/Armor/MarniteArchitect/MarniteArchitectSet.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 0; } @@ -153,7 +153,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 1; } diff --git a/Items/Armor/Mollusk/MolluskShelleggings.cs b/Items/Armor/Mollusk/MolluskShelleggings.cs index c78d3af5d2..ed92e3077d 100644 --- a/Items/Armor/Mollusk/MolluskShelleggings.cs +++ b/Items/Armor/Mollusk/MolluskShelleggings.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Mollusk { Item.width = 22; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 15; } diff --git a/Items/Armor/Mollusk/MolluskShellmet.cs b/Items/Armor/Mollusk/MolluskShellmet.cs index 70e7cbb208..ac81a9a397 100644 --- a/Items/Armor/Mollusk/MolluskShellmet.cs +++ b/Items/Armor/Mollusk/MolluskShellmet.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Armor.Mollusk { Item.width = 22; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 18; } diff --git a/Items/Armor/Mollusk/MolluskShellplate.cs b/Items/Armor/Mollusk/MolluskShellplate.cs index 8c77ec27e2..f8813d3250 100644 --- a/Items/Armor/Mollusk/MolluskShellplate.cs +++ b/Items/Armor/Mollusk/MolluskShellplate.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Mollusk { Item.width = 30; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.defense = 22; } diff --git a/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs b/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs index 293a930e7e..d6b3a00bed 100644 --- a/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs +++ b/Items/Armor/OmegaBlue/OmegaBlueChestplate.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 28; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs index 2cbe485cbf..219a9c78e3 100644 --- a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 19; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs b/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs index 5c9a3d609f..6bae62a45b 100644 --- a/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs +++ b/Items/Armor/OmegaBlue/OmegaBlueTentacles.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.defense = 22; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/PlagueReaper/PlagueReaperMask.cs b/Items/Armor/PlagueReaper/PlagueReaperMask.cs index c38e3cd653..743937c551 100644 --- a/Items/Armor/PlagueReaper/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaper/PlagueReaperMask.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 9; //35 } diff --git a/Items/Armor/PlagueReaper/PlagueReaperStriders.cs b/Items/Armor/PlagueReaper/PlagueReaperStriders.cs index 88975e4674..4b2492d575 100644 --- a/Items/Armor/PlagueReaper/PlagueReaperStriders.cs +++ b/Items/Armor/PlagueReaper/PlagueReaperStriders.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 11; } diff --git a/Items/Armor/PlagueReaper/PlagueReaperVest.cs b/Items/Armor/PlagueReaper/PlagueReaperVest.cs index 61520f4325..02b6c3132a 100644 --- a/Items/Armor/PlagueReaper/PlagueReaperVest.cs +++ b/Items/Armor/PlagueReaper/PlagueReaperVest.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.defense = 14; } diff --git a/Items/Armor/Plaguebringer/PlaguebringerCarapace.cs b/Items/Armor/Plaguebringer/PlaguebringerCarapace.cs index 31b001d949..b2aa04d2b7 100644 --- a/Items/Armor/Plaguebringer/PlaguebringerCarapace.cs +++ b/Items/Armor/Plaguebringer/PlaguebringerCarapace.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer Item.width = 18; Item.height = 18; Item.defense = 17; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Plaguebringer/PlaguebringerPistons.cs b/Items/Armor/Plaguebringer/PlaguebringerPistons.cs index 2c0b2541d0..005095a0fa 100644 --- a/Items/Armor/Plaguebringer/PlaguebringerPistons.cs +++ b/Items/Armor/Plaguebringer/PlaguebringerPistons.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer Item.width = 18; Item.height = 18; Item.defense = 8; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Plaguebringer/PlaguebringerVisor.cs b/Items/Armor/Plaguebringer/PlaguebringerVisor.cs index 8af8d19d59..b176b70614 100644 --- a/Items/Armor/Plaguebringer/PlaguebringerVisor.cs +++ b/Items/Armor/Plaguebringer/PlaguebringerVisor.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.Plaguebringer Item.width = 18; Item.height = 18; Item.defense = 7; // 32 total - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Prismatic/PrismaticGreaves.cs b/Items/Armor/Prismatic/PrismaticGreaves.cs index 16a09757bd..ea73d76edf 100644 --- a/Items/Armor/Prismatic/PrismaticGreaves.cs +++ b/Items/Armor/Prismatic/PrismaticGreaves.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Prismatic Item.height = 18; Item.defense = 21; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Prismatic/PrismaticHelmet.cs b/Items/Armor/Prismatic/PrismaticHelmet.cs index e86a745d94..cb71e7273a 100644 --- a/Items/Armor/Prismatic/PrismaticHelmet.cs +++ b/Items/Armor/Prismatic/PrismaticHelmet.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Prismatic Item.height = 18; Item.defense = 18; //71 - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Prismatic/PrismaticRegalia.cs b/Items/Armor/Prismatic/PrismaticRegalia.cs index 44c03805c8..cf33906e55 100644 --- a/Items/Armor/Prismatic/PrismaticRegalia.cs +++ b/Items/Armor/Prismatic/PrismaticRegalia.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Armor.Prismatic Item.height = 18; Item.defense = 33; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Armor/Silva/SilvaArmor.cs b/Items/Armor/Silva/SilvaArmor.cs index ccfb997b04..c9f6fa1c0a 100644 --- a/Items/Armor/Silva/SilvaArmor.cs +++ b/Items/Armor/Silva/SilvaArmor.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Silva { Item.width = 24; Item.height = 24; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 44; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Silva/SilvaHeadMagic.cs b/Items/Armor/Silva/SilvaHeadMagic.cs index f7f837972a..f74ca35b2b 100644 --- a/Items/Armor/Silva/SilvaHeadMagic.cs +++ b/Items/Armor/Silva/SilvaHeadMagic.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Silva { Item.width = 24; Item.height = 22; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 21; //110 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Silva/SilvaHeadSummon.cs b/Items/Armor/Silva/SilvaHeadSummon.cs index 8bf039d395..f5c274ca52 100644 --- a/Items/Armor/Silva/SilvaHeadSummon.cs +++ b/Items/Armor/Silva/SilvaHeadSummon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Armor.Silva { Item.width = 28; Item.height = 24; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 13; //110 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Silva/SilvaLeggings.cs b/Items/Armor/Silva/SilvaLeggings.cs index 8f82dd0c23..887ee8d864 100644 --- a/Items/Armor/Silva/SilvaLeggings.cs +++ b/Items/Armor/Silva/SilvaLeggings.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Silva { Item.width = 22; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.defense = 39; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs b/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs index 810f342215..cc726ffdc5 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianChestplate.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 4; //9 } diff --git a/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs b/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs index 0461fd1662..5e4137d56e 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianGreaves.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 3; //9 } diff --git a/Items/Armor/SnowRuffian/SnowRuffianMask.cs b/Items/Armor/SnowRuffian/SnowRuffianMask.cs index c11953eef2..f995a21e32 100644 --- a/Items/Armor/SnowRuffian/SnowRuffianMask.cs +++ b/Items/Armor/SnowRuffian/SnowRuffianMask.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 2; //9 } diff --git a/Items/Armor/Sulphurous/SulphurousBreastplate.cs b/Items/Armor/Sulphurous/SulphurousBreastplate.cs index 9be6207852..ee6c63df21 100644 --- a/Items/Armor/Sulphurous/SulphurousBreastplate.cs +++ b/Items/Armor/Sulphurous/SulphurousBreastplate.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Sulphurous { Item.width = 24; Item.height = 20; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.defense = 6; Item.rare = ItemRarityID.Green; } diff --git a/Items/Armor/Sulphurous/SulphurousHelmet.cs b/Items/Armor/Sulphurous/SulphurousHelmet.cs index bdd28b0fdc..b2b6e7b765 100644 --- a/Items/Armor/Sulphurous/SulphurousHelmet.cs +++ b/Items/Armor/Sulphurous/SulphurousHelmet.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Armor.Sulphurous { Item.width = 26; Item.height = 26; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 5; } diff --git a/Items/Armor/Sulphurous/SulphurousLeggings.cs b/Items/Armor/Sulphurous/SulphurousLeggings.cs index 26b48c9a11..5968958d92 100644 --- a/Items/Armor/Sulphurous/SulphurousLeggings.cs +++ b/Items/Armor/Sulphurous/SulphurousLeggings.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Sulphurous { Item.width = 22; Item.height = 16; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.defense = 5; Item.rare = ItemRarityID.Green; } diff --git a/Items/Armor/Tarragon/TarragonBreastplate.cs b/Items/Armor/Tarragon/TarragonBreastplate.cs index 1129c4adc3..0596b39c82 100644 --- a/Items/Armor/Tarragon/TarragonBreastplate.cs +++ b/Items/Armor/Tarragon/TarragonBreastplate.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Tarragon Item.width = 18; Item.height = 18; Item.lifeRegen = 3; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 37; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonHeadMagic.cs b/Items/Armor/Tarragon/TarragonHeadMagic.cs index 24ae07a3f8..b46d33d1a1 100644 --- a/Items/Armor/Tarragon/TarragonHeadMagic.cs +++ b/Items/Armor/Tarragon/TarragonHeadMagic.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 10; //98 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonHeadMelee.cs b/Items/Armor/Tarragon/TarragonHeadMelee.cs index 685fa7c3dc..a4318fd9fa 100644 --- a/Items/Armor/Tarragon/TarragonHeadMelee.cs +++ b/Items/Armor/Tarragon/TarragonHeadMelee.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 33; //98 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonHeadRanged.cs b/Items/Armor/Tarragon/TarragonHeadRanged.cs index 4b35cd96df..792ea770cb 100644 --- a/Items/Armor/Tarragon/TarragonHeadRanged.cs +++ b/Items/Armor/Tarragon/TarragonHeadRanged.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 21; //98 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonHeadRogue.cs b/Items/Armor/Tarragon/TarragonHeadRogue.cs index e89e53ef01..f23bb9b49f 100644 --- a/Items/Armor/Tarragon/TarragonHeadRogue.cs +++ b/Items/Armor/Tarragon/TarragonHeadRogue.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 15; //98 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonHeadSummon.cs b/Items/Armor/Tarragon/TarragonHeadSummon.cs index b73b7810dc..c7cccc2570 100644 --- a/Items/Armor/Tarragon/TarragonHeadSummon.cs +++ b/Items/Armor/Tarragon/TarragonHeadSummon.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 3; //98 Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Tarragon/TarragonLeggings.cs b/Items/Armor/Tarragon/TarragonLeggings.cs index 91df12647d..4aeeca59c1 100644 --- a/Items/Armor/Tarragon/TarragonLeggings.cs +++ b/Items/Armor/Tarragon/TarragonLeggings.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Armor.Tarragon { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.defense = 32; Item.rare = ModContent.RarityType(); } diff --git a/Items/Armor/Vanity/OldHunterSet.cs b/Items/Armor/Vanity/OldHunterSet.cs index 0908ffb302..03471b531d 100644 --- a/Items/Armor/Vanity/OldHunterSet.cs +++ b/Items/Armor/Vanity/OldHunterSet.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Vanity { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.vanity = true; } @@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.Vanity { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.vanity = true; } @@ -89,7 +89,7 @@ namespace CalamityMod.Items.Armor.Vanity { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.vanity = true; } diff --git a/Items/Armor/Victide/VictideBreastplate.cs b/Items/Armor/Victide/VictideBreastplate.cs index 856a7f828b..f8e6c751c8 100644 --- a/Items/Armor/Victide/VictideBreastplate.cs +++ b/Items/Armor/Victide/VictideBreastplate.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 5; //9 } diff --git a/Items/Armor/Victide/VictideGreaves.cs b/Items/Armor/Victide/VictideGreaves.cs index acc772fb77..a9a702b35b 100644 --- a/Items/Armor/Victide/VictideGreaves.cs +++ b/Items/Armor/Victide/VictideGreaves.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 4; //9 } diff --git a/Items/Armor/Victide/VictideHeadMagic.cs b/Items/Armor/Victide/VictideHeadMagic.cs index 373bae8101..c7401a7cac 100644 --- a/Items/Armor/Victide/VictideHeadMagic.cs +++ b/Items/Armor/Victide/VictideHeadMagic.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 2; //9 } diff --git a/Items/Armor/Victide/VictideHeadMelee.cs b/Items/Armor/Victide/VictideHeadMelee.cs index b88b84eaea..213c0a8720 100644 --- a/Items/Armor/Victide/VictideHeadMelee.cs +++ b/Items/Armor/Victide/VictideHeadMelee.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 4; //11 } diff --git a/Items/Armor/Victide/VictideHeadRanged.cs b/Items/Armor/Victide/VictideHeadRanged.cs index 5750ea0860..c320003da6 100644 --- a/Items/Armor/Victide/VictideHeadRanged.cs +++ b/Items/Armor/Victide/VictideHeadRanged.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 3; //10 } diff --git a/Items/Armor/Victide/VictideHeadRogue.cs b/Items/Armor/Victide/VictideHeadRogue.cs index c791620ab4..b08263d4e0 100644 --- a/Items/Armor/Victide/VictideHeadRogue.cs +++ b/Items/Armor/Victide/VictideHeadRogue.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 3; //10 } diff --git a/Items/Armor/Victide/VictideHeadSummon.cs b/Items/Armor/Victide/VictideHeadSummon.cs index d92eb63686..48ca1c5af8 100644 --- a/Items/Armor/Victide/VictideHeadSummon.cs +++ b/Items/Armor/Victide/VictideHeadSummon.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor.Victide { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.defense = 1; //8 } diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs index f6773b9ca0..6d5858ea5e 100644 --- a/Items/Armor/Wulfrum/WulfrumSet.cs +++ b/Items/Armor/Wulfrum/WulfrumSet.cs @@ -116,7 +116,7 @@ namespace CalamityMod.Items.Armor.Wulfrum { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } @@ -286,7 +286,7 @@ namespace CalamityMod.Items.Armor.Wulfrum { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 2; } @@ -314,7 +314,7 @@ namespace CalamityMod.Items.Armor.Wulfrum { Item.width = 18; Item.height = 18; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.defense = 1; diff --git a/Items/BleachBall.cs b/Items/BleachBall.cs index 9d4853ddd5..697b0860b1 100644 --- a/Items/BleachBall.cs +++ b/Items/BleachBall.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items { Item.width = 38; Item.height = 46; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/BrokenWaterFilter.cs b/Items/BrokenWaterFilter.cs index 2c7dd5e7e8..208a8a0a43 100644 --- a/Items/BrokenWaterFilter.cs +++ b/Items/BrokenWaterFilter.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items { Item.width = 32; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index c3463a1f90..dda7362f55 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1,13 +1,11 @@ using System; using System.IO; -using System.Net.Sockets; using CalamityMod.Buffs.StatBuffs; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.CalPlayer; using CalamityMod.Enums; using CalamityMod.Events; using CalamityMod.Items.Accessories; -using CalamityMod.Items.Placeables; using CalamityMod.Items.VanillaArmorChanges; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Summon; @@ -1849,72 +1847,85 @@ namespace CalamityMod.Items } #endregion - #region Money From Rarity - public static readonly int Rarity0BuyPrice = Item.buyPrice(0, 0, 50, 0); - public static readonly int Rarity1BuyPrice = Item.buyPrice(0, 1, 0, 0); - public static readonly int Rarity2BuyPrice = Item.buyPrice(0, 2, 0, 0); - public static readonly int Rarity3BuyPrice = Item.buyPrice(0, 4, 0, 0); - public static readonly int Rarity4BuyPrice = Item.buyPrice(0, 12, 0, 0); - public static readonly int Rarity5BuyPrice = Item.buyPrice(0, 24, 0, 0); - public static readonly int Rarity6BuyPrice = Item.buyPrice(0, 36, 0, 0); - public static readonly int Rarity7BuyPrice = Item.buyPrice(0, 48, 0, 0); - public static readonly int Rarity8BuyPrice = Item.buyPrice(0, 60, 0, 0); - public static readonly int Rarity9BuyPrice = Item.buyPrice(0, 80, 0, 0); - public static readonly int Rarity10BuyPrice = Item.buyPrice(1, 0, 0, 0); - public static readonly int Rarity11BuyPrice = Item.buyPrice(1, 10, 0, 0); - public static readonly int Rarity12BuyPrice = Item.buyPrice(1, 20, 0, 0); - public static readonly int Rarity13BuyPrice = Item.buyPrice(1, 30, 0, 0); - public static readonly int Rarity14BuyPrice = Item.buyPrice(1, 40, 0, 0); - public static readonly int Rarity15BuyPrice = Item.buyPrice(1, 50, 0, 0); - public static readonly int Rarity16BuyPrice = Item.buyPrice(2, 0, 0, 0); + #region Rarity Price Table + // Base numeric rarity pricing guide. + private static readonly int Rarity0BuyPrice = Item.buyPrice(0, 0, 50, 0); + private static readonly int Rarity1BuyPrice = Item.buyPrice(0, 1, 0, 0); + private static readonly int Rarity2BuyPrice = Item.buyPrice(0, 2, 0, 0); + private static readonly int Rarity3BuyPrice = Item.buyPrice(0, 4, 0, 0); + private static readonly int Rarity4BuyPrice = Item.buyPrice(0, 12, 0, 0); + private static readonly int Rarity5BuyPrice = Item.buyPrice(0, 24, 0, 0); + private static readonly int Rarity6BuyPrice = Item.buyPrice(0, 36, 0, 0); + private static readonly int Rarity7BuyPrice = Item.buyPrice(0, 48, 0, 0); + private static readonly int Rarity8BuyPrice = Item.buyPrice(0, 60, 0, 0); + private static readonly int Rarity9BuyPrice = Item.buyPrice(0, 80, 0, 0); + private static readonly int Rarity10BuyPrice = Item.buyPrice(1, 0, 0, 0); // Highest raw rarity used by vanilla items (ML drops) + private static readonly int Rarity11BuyPrice = Item.buyPrice(1, 20, 0, 0); // End of vanilla rarities + private static readonly int Rarity12BuyPrice = Item.buyPrice(1, 50, 0, 0); + private static readonly int Rarity13BuyPrice = Item.buyPrice(1, 75, 0, 0); + private static readonly int Rarity14BuyPrice = Item.buyPrice(2, 0, 0, 0); + private static readonly int Rarity15BuyPrice = Item.buyPrice(2, 40, 0, 0); + private static readonly int Rarity16BuyPrice = Item.buyPrice(2, 80, 0, 0); + private static readonly int Rarity17BuyPrice = Item.buyPrice(3, 20, 0, 0); // This is Calamity's "plus" rarity (similar to vanilla 11 / Purple). Nothing uses it. - public static readonly int RarityWhiteBuyPrice = Item.buyPrice(0, 0, 50, 0); - public static readonly int RarityBlueBuyPrice = Item.buyPrice(0, 1, 0, 0); - public static readonly int RarityGreenBuyPrice = Item.buyPrice(0, 2, 0, 0); - public static readonly int RarityOrangeBuyPrice = Item.buyPrice(0, 4, 0, 0); - public static readonly int RarityLightRedBuyPrice = Item.buyPrice(0, 12, 0, 0); - public static readonly int RarityPinkBuyPrice = Item.buyPrice(0, 24, 0, 0); - public static readonly int RarityLightPurpleBuyPrice = Item.buyPrice(0, 36, 0, 0); - public static readonly int RarityLimeBuyPrice = Item.buyPrice(0, 48, 0, 0); - public static readonly int RarityYellowBuyPrice = Item.buyPrice(0, 60, 0, 0); - public static readonly int RarityCyanBuyPrice = Item.buyPrice(0, 80, 0, 0); - public static readonly int RarityRedBuyPrice = Item.buyPrice(1, 0, 0, 0); - public static readonly int RarityPurpleBuyPrice = Item.buyPrice(1, 10, 0, 0); - public static readonly int RarityTurquoiseBuyPrice = Item.buyPrice(1, 20, 0, 0); - public static readonly int RarityPureGreenBuyPrice = Item.buyPrice(1, 30, 0, 0); - public static readonly int RarityDarkBlueBuyPrice = Item.buyPrice(1, 40, 0, 0); - public static readonly int RarityVioletBuyPrice = Item.buyPrice(1, 50, 0, 0); - public static readonly int RarityHotPinkBuyPrice = Item.buyPrice(2, 0, 0, 0); + private static readonly int[] RarityBuyPriceArray = new int[] { + Rarity0BuyPrice, + Rarity1BuyPrice, + Rarity2BuyPrice, + Rarity3BuyPrice, + Rarity4BuyPrice, + Rarity5BuyPrice, + Rarity6BuyPrice, + Rarity7BuyPrice, + Rarity8BuyPrice, + Rarity9BuyPrice, + Rarity10BuyPrice, + Rarity11BuyPrice, + Rarity12BuyPrice, + Rarity13BuyPrice, + Rarity14BuyPrice, + Rarity15BuyPrice, + Rarity16BuyPrice, + Rarity17BuyPrice, + }; + // Canonical names which are implemented as properties that reference the base numeric rarity prices. + // Also serves as a convenient counter for the number of items Calamity adds of each rarity. + public static int RarityWhiteBuyPrice => Rarity0BuyPrice; + public static int RarityBlueBuyPrice => Rarity1BuyPrice; + public static int RarityGreenBuyPrice => Rarity2BuyPrice; + public static int RarityOrangeBuyPrice => Rarity3BuyPrice; + public static int RarityLightRedBuyPrice => Rarity4BuyPrice; + public static int RarityPinkBuyPrice => Rarity5BuyPrice; + public static int RarityLightPurpleBuyPrice => Rarity6BuyPrice; + public static int RarityLimeBuyPrice => Rarity7BuyPrice; + public static int RarityYellowBuyPrice => Rarity8BuyPrice; + public static int RarityCyanBuyPrice => Rarity9BuyPrice; + public static int RarityRedBuyPrice => Rarity10BuyPrice; + public static int RarityPurpleBuyPrice => Rarity11BuyPrice; + public static int RarityTurquoiseBuyPrice => Rarity12BuyPrice; + public static int RarityPureGreenBuyPrice => Rarity13BuyPrice; + public static int RarityDarkBlueBuyPrice => Rarity14BuyPrice; + public static int RarityVioletBuyPrice => Rarity15BuyPrice; + public static int RarityHotPinkBuyPrice => Rarity16BuyPrice; + public static int RarityCalamityRedBuyPrice => Rarity17BuyPrice; + #endregion + + // + // !! WARNING !! + // + // 17APR2024: Ozzatron: + // THESE FUNCTIONS MAY SHOW ZERO REFERENCES BUT ARE ACTIVELY USED BY MULTIPLE CALAMITY ADDONS, INCLUDING CATALYST. + // DO NOT TOUCH. IF YOU DO, THESE ADDONS WILL BREAK! + // + #region Rarity / Price Helper Functions public static int GetBuyPrice(int rarity) { - switch (rarity) - { - case 0: - return Rarity0BuyPrice; - case 1: - return Rarity1BuyPrice; - case 2: - return Rarity2BuyPrice; - case 3: - return Rarity3BuyPrice; - case 4: - return Rarity4BuyPrice; - case 5: - return Rarity5BuyPrice; - case 6: - return Rarity6BuyPrice; - case 7: - return Rarity7BuyPrice; - case 8: - return Rarity8BuyPrice; - case 9: - return Rarity9BuyPrice; - case 10: - return Rarity10BuyPrice; - case 11: - return Rarity11BuyPrice; - } + // Vanilla rarities go directly to the array. + if (rarity >= ItemRarityID.White && rarity <= ItemRarityID.Purple) + return RarityBuyPriceArray[rarity]; + + // Calamity rarities aren't guaranteed to have the monotonic IDs, so they're handled directly. if (rarity == ModContent.RarityType()) return RarityTurquoiseBuyPrice; if (rarity == ModContent.RarityType()) @@ -1925,15 +1936,14 @@ namespace CalamityMod.Items return RarityVioletBuyPrice; if (rarity == ModContent.RarityType()) return RarityHotPinkBuyPrice; + if (rarity == ModContent.RarityType()) + return RarityCalamityRedBuyPrice; // Return 0 if it's not a progression based or other mod's rarity return 0; } - public static int GetBuyPrice(Item item) - { - return GetBuyPrice(item.rare); - } + public static int GetBuyPrice(Item item) => GetBuyPrice(item.rare); #endregion } } diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 5888598bc6..e8ad8627ce 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -436,7 +436,7 @@ namespace CalamityMod.Items // Cobalt if (item.type == ItemID.CobaltSword || item.type == ItemID.CobaltNaginata) - EditTooltipByName("Knockback", (line) => line.Text += "\nDecreases enemy defense by 25% on hit"); + EditTooltipByName("Knockback", (line) => line.Text += "\nPermanently decreases enemy defense by 25% on hit"); // Palladium if (item.type == ItemID.PalladiumSword || item.type == ItemID.PalladiumPike) @@ -444,7 +444,7 @@ namespace CalamityMod.Items // Mythril if (item.type == ItemID.MythrilSword || item.type == ItemID.MythrilHalberd) - EditTooltipByName("Knockback", (line) => line.Text += "\nDecreases enemy contact damage by 10% on hit"); + EditTooltipByName("Knockback", (line) => line.Text += "\nPermanently decreases enemy contact damage by 10% on hit"); // Orichalcum if (item.type == ItemID.OrichalcumSword || item.type == ItemID.OrichalcumHalberd) diff --git a/Items/Dyes/DefiledFlameDye.cs b/Items/Dyes/DefiledFlameDye.cs index 11d4367612..5f8543ddf1 100644 --- a/Items/Dyes/DefiledFlameDye.cs +++ b/Items/Dyes/DefiledFlameDye.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Dyes public override void SafeSetDefaults() { Item.rare = ItemRarityID.LightRed; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; } } } diff --git a/Items/Fishing/AstralCatches/UrsaSergeant.cs b/Items/Fishing/AstralCatches/UrsaSergeant.cs index 09a509b7ea..f9743d26be 100644 --- a/Items/Fishing/AstralCatches/UrsaSergeant.cs +++ b/Items/Fishing/AstralCatches/UrsaSergeant.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Fishing.AstralCatches Item.width = 36; Item.height = 26; Item.defense = 20; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.accessory = true; } diff --git a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs index 93205bf480..892b507f4e 100644 --- a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs +++ b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.1f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Fishing/FishingRods/EarlyBloomRod.cs b/Items/Fishing/FishingRods/EarlyBloomRod.cs index 6d116ae2e5..2c536a12f5 100644 --- a/Items/Fishing/FishingRods/EarlyBloomRod.cs +++ b/Items/Fishing/FishingRods/EarlyBloomRod.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 60; Item.shootSpeed = 18f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Fishing/FishingRods/FeralDoubleRod.cs b/Items/Fishing/FishingRods/FeralDoubleRod.cs index f96cae5f90..cf8ad0dc8e 100644 --- a/Items/Fishing/FishingRods/FeralDoubleRod.cs +++ b/Items/Fishing/FishingRods/FeralDoubleRod.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 40; Item.shootSpeed = 16f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Fishing/FishingRods/HeronRod.cs b/Items/Fishing/FishingRods/HeronRod.cs index bf92fec219..be764e8289 100644 --- a/Items/Fishing/FishingRods/HeronRod.cs +++ b/Items/Fishing/FishingRods/HeronRod.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 25; Item.shootSpeed = 14.5f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; } diff --git a/Items/Fishing/FishingRods/NavyFishingRod.cs b/Items/Fishing/FishingRods/NavyFishingRod.cs index 328354db6c..6b6eb6d7f4 100644 --- a/Items/Fishing/FishingRods/NavyFishingRod.cs +++ b/Items/Fishing/FishingRods/NavyFishingRod.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 20; Item.shootSpeed = 13f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } diff --git a/Items/Fishing/FishingRods/RiftReeler.cs b/Items/Fishing/FishingRods/RiftReeler.cs index 26b3b4c65b..6bbe1e7441 100644 --- a/Items/Fishing/FishingRods/RiftReeler.cs +++ b/Items/Fishing/FishingRods/RiftReeler.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 45; Item.shootSpeed = 17f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Fishing/FishingRods/SlurperPole.cs b/Items/Fishing/FishingRods/SlurperPole.cs index 53c52fb3b5..b8462e6e00 100644 --- a/Items/Fishing/FishingRods/SlurperPole.cs +++ b/Items/Fishing/FishingRods/SlurperPole.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 25; Item.shootSpeed = 14f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; } diff --git a/Items/Fishing/FishingRods/TheDevourerofCods.cs b/Items/Fishing/FishingRods/TheDevourerofCods.cs index f67f41d350..6a4f028556 100644 --- a/Items/Fishing/FishingRods/TheDevourerofCods.cs +++ b/Items/Fishing/FishingRods/TheDevourerofCods.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 75; Item.shootSpeed = 20f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs index a03f39fb44..e89239b189 100644 --- a/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs +++ b/Items/Fishing/FishingRods/VerstaltiteFishingRod.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 35; Item.shootSpeed = 15f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Fishing/FishingRods/WulfrumRod.cs b/Items/Fishing/FishingRods/WulfrumRod.cs index 108b6a5217..d7309b4449 100644 --- a/Items/Fishing/FishingRods/WulfrumRod.cs +++ b/Items/Fishing/FishingRods/WulfrumRod.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Fishing.FishingRods Item.fishingPole = 10; Item.shootSpeed = 10f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; } public override void ModifyFishingLine(Projectile bobber, ref Vector2 lineOriginOffset, ref Color lineColor) diff --git a/Items/Fishing/Spadefish.cs b/Items/Fishing/Spadefish.cs index bd45a8ba22..481b516ad1 100644 --- a/Items/Fishing/Spadefish.cs +++ b/Items/Fishing/Spadefish.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Fishing Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs index a20264af90..51ce7fc457 100644 --- a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs +++ b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches Item.height = 32; Item.shootSpeed = SerpentsBiteHook.LaunchSpeed; // how quickly the hook is shot. Item.shoot = ProjectileType(); - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } } diff --git a/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs index 4dd938f94a..1688295a81 100644 --- a/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs +++ b/Items/Fishing/SunkenSeaCatches/SparklingEmpress.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches Item.useStyle = ItemUseStyleID.Shoot; Item.shootSpeed = 14f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; } //Looks scuffed with the laser when there is offset diff --git a/Items/Materials/MeldBlob.cs b/Items/Materials/MeldBlob.cs index fcfcf0b071..63d2a1da1e 100644 --- a/Items/Materials/MeldBlob.cs +++ b/Items/Materials/MeldBlob.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Materials Item.height = 14; Item.maxStack = 9999; Item.value = Item.sellPrice(silver: 20); - Item.rare = ItemRarityID.Cyan; + Item.rare = ItemRarityID.Red; } } } diff --git a/Items/Materials/MeldConstruct.cs b/Items/Materials/MeldConstruct.cs index 7f89b3bc3a..b49062f647 100644 --- a/Items/Materials/MeldConstruct.cs +++ b/Items/Materials/MeldConstruct.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Materials Item.height = 12; Item.maxStack = 9999; Item.value = Item.sellPrice(gold: 1, silver: 20); - Item.rare = ItemRarityID.Cyan; + Item.rare = ItemRarityID.Red; } public override void AddRecipes() { diff --git a/Items/MomentumCapacitor.cs b/Items/MomentumCapacitor.cs index bc1c19ee9b..5f95ff78f8 100644 --- a/Items/MomentumCapacitor.cs +++ b/Items/MomentumCapacitor.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items { Item.width = 28; Item.height = 32; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.useStyle = ItemUseStyleID.HoldUp; diff --git a/Items/Mounts/GazeOfCrysthamyr.cs b/Items/Mounts/GazeOfCrysthamyr.cs index fd60681132..e456334b0e 100644 --- a/Items/Mounts/GazeOfCrysthamyr.cs +++ b/Items/Mounts/GazeOfCrysthamyr.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Mounts Item.useAnimation = 20; Item.useStyle = ItemUseStyleID.HoldUp; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Mounts/SuspiciousLookingJellyBean.cs b/Items/Mounts/SuspiciousLookingJellyBean.cs index 9f36867212..55f9597ad6 100644 --- a/Items/Mounts/SuspiciousLookingJellyBean.cs +++ b/Items/Mounts/SuspiciousLookingJellyBean.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Mounts Item.noMelee = true; Item.mountType = ModContent.MountType(); - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.Calamity().devItem = true; } diff --git a/Items/NormalityRelocator.cs b/Items/NormalityRelocator.cs index 0f084c6137..2b37817793 100644 --- a/Items/NormalityRelocator.cs +++ b/Items/NormalityRelocator.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items { Item.width = 38; Item.height = 38; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.Calamity().donorItem = true; } diff --git a/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs b/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs index f82970c580..3521c048f1 100644 --- a/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/AbyssFountainItem.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; Item.value = Item.buyPrice(0, 4, 0, 0); - Item.rare = ItemRarityID.White; + Item.rare = ItemRarityID.Blue; Item.createTile = ModContent.TileType(); } } diff --git a/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs b/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs index e983b7b2f4..1ea7b38bb6 100644 --- a/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/AstralFountainItem.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; Item.value = Item.buyPrice(0, 4, 0, 0); - Item.rare = ItemRarityID.White; + Item.rare = ItemRarityID.Blue; Item.createTile = ModContent.TileType(); } } diff --git a/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs new file mode 100644 index 0000000000..7f2295a155 --- /dev/null +++ b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs @@ -0,0 +1,27 @@ +using CalamityMod.Tiles.Furniture.Fountains; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.Furniture.Fountains +{ + public class BrimstoneLavaFountainItem : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 22; + Item.height = 42; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.value = Item.buyPrice(0, 4, 0, 0); + Item.rare = ItemRarityID.Blue; + Item.createTile = ModContent.TileType(); + } + } +} diff --git a/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png new file mode 100644 index 0000000000..6e5bbcab48 Binary files /dev/null and b/Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png differ diff --git a/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs b/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs index 6894fc2018..082c262a4c 100644 --- a/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs +++ b/Items/Placeables/Furniture/Fountains/SulphurousFountainItem.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; Item.value = Item.buyPrice(0, 4, 0, 0); - Item.rare = ItemRarityID.White; + Item.rare = ItemRarityID.Blue; Item.createTile = ModContent.TileType(); } } diff --git a/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs b/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs index 459a6c98d6..b3c1b023f1 100644 --- a/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs +++ b/Items/Placeables/Furniture/Fountains/SunkenSeaFountain.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Fountains Item.useStyle = ItemUseStyleID.Swing; Item.consumable = true; Item.value = Item.buyPrice(0, 4, 0, 0); - Item.rare = ItemRarityID.White; + Item.rare = ItemRarityID.Blue; Item.createTile = ModContent.TileType(); } } diff --git a/Items/RelicOfConvergence.cs b/Items/RelicOfConvergence.cs index 2ebfb5fa8f..4ed4266d9f 100644 --- a/Items/RelicOfConvergence.cs +++ b/Items/RelicOfConvergence.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); } diff --git a/Items/SirenproofEarMuffs.cs b/Items/SirenproofEarMuffs.cs index 9a338b7c55..b4f61e1287 100644 --- a/Items/SirenproofEarMuffs.cs +++ b/Items/SirenproofEarMuffs.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items { Item.width = 44; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/SummonItems/BloodyWormFood.cs b/Items/SummonItems/BloodyWormFood.cs index 08d8dbeef8..67c13f0eea 100644 --- a/Items/SummonItems/BloodyWormFood.cs +++ b/Items/SummonItems/BloodyWormFood.cs @@ -50,11 +50,13 @@ namespace CalamityMod.Items.SummonItems public override void AddRecipes() { + Condition downedPerfs = new(CalamityUtils.GetText("Condition.DownedPerfs"), () => DownedBossSystem.downedPerforator); CreateRecipe(). AddIngredient(ItemID.CrimtaneBar, 3). AddIngredient(7). AddIngredient(ItemID.Vertebrae, 13). AddTile(TileID.DemonAltar). + AddDecraftCondition(downedPerfs). Register(); } } diff --git a/Items/SummonItems/Teratoma.cs b/Items/SummonItems/Teratoma.cs index 55aa0b3bd0..0266af0838 100644 --- a/Items/SummonItems/Teratoma.cs +++ b/Items/SummonItems/Teratoma.cs @@ -50,11 +50,13 @@ namespace CalamityMod.Items.SummonItems public override void AddRecipes() { + Condition downedHM = new(CalamityUtils.GetText("Condition.DownedHM"), () => DownedBossSystem.downedHiveMind); CreateRecipe(). AddIngredient(ItemID.DemoniteBar, 3). AddIngredient(7). AddIngredient(ItemID.RottenChunk, 13). AddTile(TileID.DemonAltar). + AddDecraftCondition(downedHM). Register(); } } diff --git a/Items/Tools/AbyssalWarhammer.cs b/Items/Tools/AbyssalWarhammer.cs index 30a86f57a1..9339432c58 100644 --- a/Items/Tools/AbyssalWarhammer.cs +++ b/Items/Tools/AbyssalWarhammer.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/AerialHamaxe.cs b/Items/Tools/AerialHamaxe.cs index b0ec2219bf..7f257532ef 100644 --- a/Items/Tools/AerialHamaxe.cs +++ b/Items/Tools/AerialHamaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/AstralHamaxe.cs b/Items/Tools/AstralHamaxe.cs index dcbd146a6e..2b7ba2735c 100644 --- a/Items/Tools/AstralHamaxe.cs +++ b/Items/Tools/AstralHamaxe.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/AstralPickaxe.cs b/Items/Tools/AstralPickaxe.cs index 108691ccca..5330fa612f 100644 --- a/Items/Tools/AstralPickaxe.cs +++ b/Items/Tools/AstralPickaxe.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/AxeofPurity.cs b/Items/Tools/AxeofPurity.cs index 0f41b7b7cb..abdf5aa8d7 100644 --- a/Items/Tools/AxeofPurity.cs +++ b/Items/Tools/AxeofPurity.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/BeastialPickaxe.cs b/Items/Tools/BeastialPickaxe.cs index b539bf93de..9269689fc5 100644 --- a/Items/Tools/BeastialPickaxe.cs +++ b/Items/Tools/BeastialPickaxe.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/BerserkerWaraxe.cs b/Items/Tools/BerserkerWaraxe.cs index 75abd49158..9f08128517 100644 --- a/Items/Tools/BerserkerWaraxe.cs +++ b/Items/Tools/BerserkerWaraxe.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/BlossomPickaxe.cs b/Items/Tools/BlossomPickaxe.cs index 901c439b16..6030917674 100644 --- a/Items/Tools/BlossomPickaxe.cs +++ b/Items/Tools/BlossomPickaxe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.rare = ModContent.RarityType(); diff --git a/Items/Tools/BobbitHook.cs b/Items/Tools/BobbitHook.cs index 280e7aea65..f67d9f7fe3 100644 --- a/Items/Tools/BobbitHook.cs +++ b/Items/Tools/BobbitHook.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Tools Item.height = 32; Item.shootSpeed = BobbitHead.LaunchSpeed; // How quickly the hook is shot. Item.shoot = ProjectileType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } } diff --git a/Items/Tools/CrystylCrusher.cs b/Items/Tools/CrystylCrusher.cs index 04f6b7d5a0..43b4d0a156 100644 --- a/Items/Tools/CrystylCrusher.cs +++ b/Items/Tools/CrystylCrusher.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Tools Item.UseSound = SoundID.Item1; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Tools/FellerofEvergreens.cs b/Items/Tools/FellerofEvergreens.cs index 00e4b98011..8f6cffdec9 100644 --- a/Items/Tools/FellerofEvergreens.cs +++ b/Items/Tools/FellerofEvergreens.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/Gelpick.cs b/Items/Tools/Gelpick.cs index 6c273b7fc9..8dddba14cd 100644 --- a/Items/Tools/Gelpick.cs +++ b/Items/Tools/Gelpick.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/GenesisPickaxe.cs b/Items/Tools/GenesisPickaxe.cs index 69758f9109..731ed16653 100644 --- a/Items/Tools/GenesisPickaxe.cs +++ b/Items/Tools/GenesisPickaxe.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/Grax.cs b/Items/Tools/Grax.cs index 0435f907e0..05a6a1d354 100644 --- a/Items/Tools/Grax.cs +++ b/Items/Tools/Grax.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Tools Item.useTurn = true; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Tools/GreatbayPickaxe.cs b/Items/Tools/GreatbayPickaxe.cs index 3ab726fe1f..abc45a967d 100644 --- a/Items/Tools/GreatbayPickaxe.cs +++ b/Items/Tools/GreatbayPickaxe.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/InfernaCutter.cs b/Items/Tools/InfernaCutter.cs index 9d49cf95cb..54feccc2ee 100644 --- a/Items/Tools/InfernaCutter.cs +++ b/Items/Tools/InfernaCutter.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/MarniteDeconstructor.cs b/Items/Tools/MarniteDeconstructor.cs index c2f0c72f5d..a457d1cf24 100644 --- a/Items/Tools/MarniteDeconstructor.cs +++ b/Items/Tools/MarniteDeconstructor.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Tools Item.noUseGraphic = true; Item.noMelee = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item23; Item.autoReuse = true; diff --git a/Items/Tools/MarniteObliterator.cs b/Items/Tools/MarniteObliterator.cs index 48d53cf7f0..f274cc24c1 100644 --- a/Items/Tools/MarniteObliterator.cs +++ b/Items/Tools/MarniteObliterator.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Tools Item.noUseGraphic = true; Item.noMelee = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item23; Item.autoReuse = true; diff --git a/Items/Tools/ReefclawHamaxe.cs b/Items/Tools/ReefclawHamaxe.cs index fa8d28293e..ac0cfd10aa 100644 --- a/Items/Tools/ReefclawHamaxe.cs +++ b/Items/Tools/ReefclawHamaxe.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/SeismicHampick.cs b/Items/Tools/SeismicHampick.cs index 6978db82b0..1146ade1fc 100644 --- a/Items/Tools/SeismicHampick.cs +++ b/Items/Tools/SeismicHampick.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/ShardlightPickaxe.cs b/Items/Tools/ShardlightPickaxe.cs index 3c267ed5ba..019d52c300 100644 --- a/Items/Tools/ShardlightPickaxe.cs +++ b/Items/Tools/ShardlightPickaxe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/SkyfringePickaxe.cs b/Items/Tools/SkyfringePickaxe.cs index 840bcad233..5bf89577f3 100644 --- a/Items/Tools/SkyfringePickaxe.cs +++ b/Items/Tools/SkyfringePickaxe.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/TectonicTruncator.cs b/Items/Tools/TectonicTruncator.cs index 42e1284a8a..3f022a6ab5 100644 --- a/Items/Tools/TectonicTruncator.cs +++ b/Items/Tools/TectonicTruncator.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Tools Item.DamageType = DamageClass.Melee; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Tools/WulfrumDrill.cs b/Items/Tools/WulfrumDrill.cs index f04d156416..1a5508fe6d 100644 --- a/Items/Tools/WulfrumDrill.cs +++ b/Items/Tools/WulfrumDrill.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Tools Item.tileBoost += 1; Item.DamageType = DamageClass.Melee; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item23; Item.autoReuse = true; diff --git a/Items/VoodooDemonVoodooDoll.cs b/Items/VoodooDemonVoodooDoll.cs index 643c99a88f..97e4e6283d 100644 --- a/Items/VoodooDemonVoodooDoll.cs +++ b/Items/VoodooDemonVoodooDoll.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items { Item.width = 44; Item.height = 34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs b/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs index 7aaa9703fb..12f8741267 100644 --- a/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs +++ b/Items/Weapons/DraedonsArsenal/FrequencyManipulator.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs b/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs index fe30f9661a..ded5c99d03 100644 --- a/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs +++ b/Items/Weapons/DraedonsArsenal/GalvanizingGlaive.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.rare = ItemRarityID.Yellow; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 21f; diff --git a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs index c5ee1d0cba..c914d5e12b 100644 --- a/Items/Weapons/DraedonsArsenal/GatlingLaser.cs +++ b/Items/Weapons/DraedonsArsenal/GatlingLaser.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = FireSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/GaussDagger.cs b/Items/Weapons/DraedonsArsenal/GaussDagger.cs index 229f8e88da..98c8eac524 100644 --- a/Items/Weapons/DraedonsArsenal/GaussDagger.cs +++ b/Items/Weapons/DraedonsArsenal/GaussDagger.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useTurn = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/DraedonsArsenal/GaussPistol.cs b/Items/Weapons/DraedonsArsenal/GaussPistol.cs index 545ba46734..144e1db7c4 100644 --- a/Items/Weapons/DraedonsArsenal/GaussPistol.cs +++ b/Items/Weapons/DraedonsArsenal/GaussPistol.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = CommonCalamitySounds.GaussWeaponFire; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/GaussRifle.cs b/Items/Weapons/DraedonsArsenal/GaussRifle.cs index b17c810596..7be5cf7369 100644 --- a/Items/Weapons/DraedonsArsenal/GaussRifle.cs +++ b/Items/Weapons/DraedonsArsenal/GaussRifle.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = CommonCalamitySounds.GaussWeaponFire; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs index aa35a108fa..6bcc75a4ce 100644 --- a/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs +++ b/Items/Weapons/DraedonsArsenal/HydraulicVoltCrasher.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item23; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.noMelee = true; diff --git a/Items/Weapons/DraedonsArsenal/MatterModulator.cs b/Items/Weapons/DraedonsArsenal/MatterModulator.cs index f628aa5e61..67952028d0 100644 --- a/Items/Weapons/DraedonsArsenal/MatterModulator.cs +++ b/Items/Weapons/DraedonsArsenal/MatterModulator.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/MountedScanner.cs b/Items/Weapons/DraedonsArsenal/MountedScanner.cs index 32a2c75bac..526fc38224 100644 --- a/Items/Weapons/DraedonsArsenal/MountedScanner.cs +++ b/Items/Weapons/DraedonsArsenal/MountedScanner.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item15; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index 9e01fe7775..653ce53ecf 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noUseGraphic = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs index be9536521e..1a3f98583d 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaGrenade.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/PoleWarper.cs b/Items/Weapons/DraedonsArsenal/PoleWarper.cs index 1ef2ec84e3..83a8625855 100644 --- a/Items/Weapons/DraedonsArsenal/PoleWarper.cs +++ b/Items/Weapons/DraedonsArsenal/PoleWarper.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item15; diff --git a/Items/Weapons/DraedonsArsenal/PulsePistol.cs b/Items/Weapons/DraedonsArsenal/PulsePistol.cs index a362516040..5c6ff2194d 100644 --- a/Items/Weapons/DraedonsArsenal/PulsePistol.cs +++ b/Items/Weapons/DraedonsArsenal/PulsePistol.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = PulseRifle.FireSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index 8e308785b5..9dc151c1c5 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = FireSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs index bfd6cfbff0..f4ee6d90c2 100644 --- a/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs +++ b/Items/Weapons/DraedonsArsenal/PulseTurretRemote.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = SoundID.Item15; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs index 78bd16089d..6ae3f691fd 100644 --- a/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs +++ b/Items/Weapons/DraedonsArsenal/StarSwallowerContainmentUnit.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item15; Item.autoReuse = true; diff --git a/Items/Weapons/DraedonsArsenal/SystemBane.cs b/Items/Weapons/DraedonsArsenal/SystemBane.cs index a444686514..fce888af9a 100644 --- a/Items/Weapons/DraedonsArsenal/SystemBane.cs +++ b/Items/Weapons/DraedonsArsenal/SystemBane.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/DraedonsArsenal/Taser.cs b/Items/Weapons/DraedonsArsenal/Taser.cs index 0667685c36..52c92a47a3 100644 --- a/Items/Weapons/DraedonsArsenal/Taser.cs +++ b/Items/Weapons/DraedonsArsenal/Taser.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 423135bfd2..53b5e7d0ee 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.UseSound = FireSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/DraedonsArsenal/TrackingDisk.cs b/Items/Weapons/DraedonsArsenal/TrackingDisk.cs index 0d2d2ce228..f69d253b41 100644 --- a/Items/Weapons/DraedonsArsenal/TrackingDisk.cs +++ b/Items/Weapons/DraedonsArsenal/TrackingDisk.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.useTurn = false; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.noUseGraphic = true; diff --git a/Items/Weapons/Magic/AbyssShocker.cs b/Items/Weapons/Magic/AbyssShocker.cs index 730f5a1482..399ba5cb99 100644 --- a/Items/Weapons/Magic/AbyssShocker.cs +++ b/Items/Weapons/Magic/AbyssShocker.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.mana = 10; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Magic/AbyssalTome.cs b/Items/Weapons/Magic/AbyssalTome.cs index d1d028dc37..12edcf818c 100644 --- a/Items/Weapons/Magic/AbyssalTome.cs +++ b/Items/Weapons/Magic/AbyssalTome.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SlimeGodCore.ShotSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AcidGun.cs b/Items/Weapons/Magic/AcidGun.cs index 86d5b9df59..712bb487fe 100644 --- a/Items/Weapons/Magic/AcidGun.cs +++ b/Items/Weapons/Magic/AcidGun.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item13; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AetherfluxCannon.cs b/Items/Weapons/Magic/AetherfluxCannon.cs index 536edac468..11d3ad3d29 100644 --- a/Items/Weapons/Magic/AetherfluxCannon.cs +++ b/Items/Weapons/Magic/AetherfluxCannon.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 24f; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; diff --git a/Items/Weapons/Magic/AethersWhisper.cs b/Items/Weapons/Magic/AethersWhisper.cs index 75a8ad12f3..84c70e6b73 100644 --- a/Items/Weapons/Magic/AethersWhisper.cs +++ b/Items/Weapons/Magic/AethersWhisper.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = CommonCalamitySounds.LaserCannonSound; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/AlphaRay.cs b/Items/Weapons/Magic/AlphaRay.cs index 197759ffbd..4e43df2c20 100644 --- a/Items/Weapons/Magic/AlphaRay.cs +++ b/Items/Weapons/Magic/AlphaRay.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.UseSound = SoundID.Item33; Item.autoReuse = true; Item.shootSpeed = 6f; diff --git a/Items/Weapons/Magic/AlulaAustralis.cs b/Items/Weapons/Magic/AlulaAustralis.cs index 28f2e38aca..8cb2b562d2 100644 --- a/Items/Weapons/Magic/AlulaAustralis.cs +++ b/Items/Weapons/Magic/AlulaAustralis.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AnahitasArpeggio.cs b/Items/Weapons/Magic/AnahitasArpeggio.cs index 11000a055e..d2cc58731e 100644 --- a/Items/Weapons/Magic/AnahitasArpeggio.cs +++ b/Items/Weapons/Magic/AnahitasArpeggio.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/ApoctosisArray.cs b/Items/Weapons/Magic/ApoctosisArray.cs index d1da01aa25..c376b5e698 100644 --- a/Items/Weapons/Magic/ApoctosisArray.cs +++ b/Items/Weapons/Magic/ApoctosisArray.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.UseSound = SoundID.Item91; Item.autoReuse = true; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index aa482610b1..35001cf518 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 6.9f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Magic/AquamarineStaff.cs b/Items/Weapons/Magic/AquamarineStaff.cs index 6409b2b2ca..1359f1b9fd 100644 --- a/Items/Weapons/Magic/AquamarineStaff.cs +++ b/Items/Weapons/Magic/AquamarineStaff.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item43; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ArchAmaryllis.cs b/Items/Weapons/Magic/ArchAmaryllis.cs index 7aa2465265..bbb0031196 100644 --- a/Items/Weapons/Magic/ArchAmaryllis.cs +++ b/Items/Weapons/Magic/ArchAmaryllis.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item109; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ArcticBearPaw.cs b/Items/Weapons/Magic/ArcticBearPaw.cs index 6fdba5d48c..467f1d0c4b 100644 --- a/Items/Weapons/Magic/ArcticBearPaw.cs +++ b/Items/Weapons/Magic/ArcticBearPaw.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useTurn = false; Item.noMelee = true; Item.knockBack = 10f; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ArtAttack.cs b/Items/Weapons/Magic/ArtAttack.cs index 0c163a905b..45d5c5bd1f 100644 --- a/Items/Weapons/Magic/ArtAttack.cs +++ b/Items/Weapons/Magic/ArtAttack.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = null; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AsteroidStaff.cs b/Items/Weapons/Magic/AsteroidStaff.cs index 154dddb4ee..f15b6fc41f 100644 --- a/Items/Weapons/Magic/AsteroidStaff.cs +++ b/Items/Weapons/Magic/AsteroidStaff.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; } diff --git a/Items/Weapons/Magic/AstralStaff.cs b/Items/Weapons/Magic/AstralStaff.cs index 597f0e5a68..6c2ca3d064 100644 --- a/Items/Weapons/Magic/AstralStaff.cs +++ b/Items/Weapons/Magic/AstralStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item105; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AstralachneaStaff.cs b/Items/Weapons/Magic/AstralachneaStaff.cs index 7db3d5b6ab..7317265a11 100644 --- a/Items/Weapons/Magic/AstralachneaStaff.cs +++ b/Items/Weapons/Magic/AstralachneaStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item46; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Atlantis.cs b/Items/Weapons/Magic/Atlantis.cs index 3486d1c26d..69c4ad491a 100644 --- a/Items/Weapons/Magic/Atlantis.cs +++ b/Items/Weapons/Magic/Atlantis.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item34; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AuguroftheElements.cs b/Items/Weapons/Magic/AuguroftheElements.cs index 5b0891268b..ab2d7c028d 100644 --- a/Items/Weapons/Magic/AuguroftheElements.cs +++ b/Items/Weapons/Magic/AuguroftheElements.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item103; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/BelchingSaxophone.cs b/Items/Weapons/Magic/BelchingSaxophone.cs index 22aff503de..f9e5d70960 100644 --- a/Items/Weapons/Magic/BelchingSaxophone.cs +++ b/Items/Weapons/Magic/BelchingSaxophone.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Biofusillade.cs b/Items/Weapons/Magic/Biofusillade.cs index be2a25b28a..e5f34f725b 100644 --- a/Items/Weapons/Magic/Biofusillade.cs +++ b/Items/Weapons/Magic/Biofusillade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.UseSound = SoundID.Item33; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/BlackAnurian.cs b/Items/Weapons/Magic/BlackAnurian.cs index 2affa28893..3c40c780a5 100644 --- a/Items/Weapons/Magic/BlackAnurian.cs +++ b/Items/Weapons/Magic/BlackAnurian.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.75f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item111; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/BloodBath.cs b/Items/Weapons/Magic/BloodBath.cs index 8bf849182b..9a3faa1a1a 100644 --- a/Items/Weapons/Magic/BloodBath.cs +++ b/Items/Weapons/Magic/BloodBath.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.75f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item21; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/BrimroseStaff.cs b/Items/Weapons/Magic/BrimroseStaff.cs index 16bd2b3d63..1982fc6d2e 100644 --- a/Items/Weapons/Magic/BrimroseStaff.cs +++ b/Items/Weapons/Magic/BrimroseStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item43; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/BurningSea.cs b/Items/Weapons/Magic/BurningSea.cs index c2386ea546..780927a80b 100644 --- a/Items/Weapons/Magic/BurningSea.cs +++ b/Items/Weapons/Magic/BurningSea.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ClamorNoctus.cs b/Items/Weapons/Magic/ClamorNoctus.cs index 0ce382b607..73f5b92166 100644 --- a/Items/Weapons/Magic/ClamorNoctus.cs +++ b/Items/Weapons/Magic/ClamorNoctus.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.2f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item105; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ClothiersWrath.cs b/Items/Weapons/Magic/ClothiersWrath.cs index ebe1e109c0..8ef09521c1 100644 --- a/Items/Weapons/Magic/ClothiersWrath.cs +++ b/Items/Weapons/Magic/ClothiersWrath.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/CoralSpout.cs b/Items/Weapons/Magic/CoralSpout.cs index 2da55e45e4..f0df8bd95b 100644 --- a/Items/Weapons/Magic/CoralSpout.cs +++ b/Items/Weapons/Magic/CoralSpout.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.channel = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item17; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/CosmicRainbow.cs b/Items/Weapons/Magic/CosmicRainbow.cs index 52ef94e3e4..7c9c432dc1 100644 --- a/Items/Weapons/Magic/CosmicRainbow.cs +++ b/Items/Weapons/Magic/CosmicRainbow.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item67; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Cryophobia.cs b/Items/Weapons/Magic/Cryophobia.cs index 16e2fb0bf4..cb6f719579 100644 --- a/Items/Weapons/Magic/Cryophobia.cs +++ b/Items/Weapons/Magic/Cryophobia.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.UseSound = SoundID.Item117; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/DarkSpark.cs b/Items/Weapons/Magic/DarkSpark.cs index 261d921b78..f9013dad83 100644 --- a/Items/Weapons/Magic/DarkSpark.cs +++ b/Items/Weapons/Magic/DarkSpark.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noUseGraphic = true; Item.channel = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/DeathValleyDuster.cs b/Items/Weapons/Magic/DeathValleyDuster.cs index e9e5cde0a1..d028ceb6f6 100644 --- a/Items/Weapons/Magic/DeathValleyDuster.cs +++ b/Items/Weapons/Magic/DeathValleyDuster.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/DeathhailStaff.cs b/Items/Weapons/Magic/DeathhailStaff.cs index 9e4e61abe4..cbe31237bb 100644 --- a/Items/Weapons/Magic/DeathhailStaff.cs +++ b/Items/Weapons/Magic/DeathhailStaff.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item12; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/DivineRetribution.cs b/Items/Weapons/Magic/DivineRetribution.cs index 63a28e80b4..a345625500 100644 --- a/Items/Weapons/Magic/DivineRetribution.cs +++ b/Items/Weapons/Magic/DivineRetribution.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Magic/Downpour.cs b/Items/Weapons/Magic/Downpour.cs index 9b8f47c20a..5e340743dc 100644 --- a/Items/Weapons/Magic/Downpour.cs +++ b/Items/Weapons/Magic/Downpour.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item13; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Effervescence.cs b/Items/Weapons/Magic/Effervescence.cs index 078ca76f1c..190e2321a1 100644 --- a/Items/Weapons/Magic/Effervescence.cs +++ b/Items/Weapons/Magic/Effervescence.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.75f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item95; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/EidolicWail.cs b/Items/Weapons/Magic/EidolicWail.cs index 13aff7b586..11291e2f1f 100644 --- a/Items/Weapons/Magic/EidolicWail.cs +++ b/Items/Weapons/Magic/EidolicWail.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.UseSound = CommonCalamitySounds.WyrmScreamSound; Item.autoReuse = true; Item.shootSpeed = 14.5f; diff --git a/Items/Weapons/Magic/EidolonStaff.cs b/Items/Weapons/Magic/EidolonStaff.cs index ad35c81509..45fa1b6e53 100644 --- a/Items/Weapons/Magic/EidolonStaff.cs +++ b/Items/Weapons/Magic/EidolonStaff.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item43; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/EldritchTome.cs b/Items/Weapons/Magic/EldritchTome.cs index 45ffd6f57a..912d223f4b 100644 --- a/Items/Weapons/Magic/EldritchTome.cs +++ b/Items/Weapons/Magic/EldritchTome.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item103; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ElementalRay.cs b/Items/Weapons/Magic/ElementalRay.cs index 8bc9715646..50b49e953e 100644 --- a/Items/Weapons/Magic/ElementalRay.cs +++ b/Items/Weapons/Magic/ElementalRay.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item60; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Eternity.cs b/Items/Weapons/Magic/Eternity.cs index bf1551ea6a..0c119bc4cd 100644 --- a/Items/Weapons/Magic/Eternity.cs +++ b/Items/Weapons/Magic/Eternity.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Magic/EventHorizon.cs b/Items/Weapons/Magic/EventHorizon.cs index 5bd44b9a8e..bb80dcc498 100644 --- a/Items/Weapons/Magic/EventHorizon.cs +++ b/Items/Weapons/Magic/EventHorizon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item84; diff --git a/Items/Weapons/Magic/EvergladeSpray.cs b/Items/Weapons/Magic/EvergladeSpray.cs index a68e54f90f..d073842bf8 100644 --- a/Items/Weapons/Magic/EvergladeSpray.cs +++ b/Items/Weapons/Magic/EvergladeSpray.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item13; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Fabstaff.cs b/Items/Weapons/Magic/Fabstaff.cs index c225c88afd..72117d510f 100644 --- a/Items/Weapons/Magic/Fabstaff.cs +++ b/Items/Weapons/Magic/Fabstaff.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index 55aac0ef0e..951693e686 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Magic/FatesReveal.cs b/Items/Weapons/Magic/FatesReveal.cs index 9d2d262dc2..bb490b7a17 100644 --- a/Items/Weapons/Magic/FatesReveal.cs +++ b/Items/Weapons/Magic/FatesReveal.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 1f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/FlareBolt.cs b/Items/Weapons/Magic/FlareBolt.cs index 18fe65a49c..481eb7aab1 100644 --- a/Items/Weapons/Magic/FlareBolt.cs +++ b/Items/Weapons/Magic/FlareBolt.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ForbiddenSun.cs b/Items/Weapons/Magic/ForbiddenSun.cs index e0e327135d..ff631c0944 100644 --- a/Items/Weapons/Magic/ForbiddenSun.cs +++ b/Items/Weapons/Magic/ForbiddenSun.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/FrigidflashBolt.cs b/Items/Weapons/Magic/FrigidflashBolt.cs index f6e329e152..e1df32d506 100644 --- a/Items/Weapons/Magic/FrigidflashBolt.cs +++ b/Items/Weapons/Magic/FrigidflashBolt.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = UseSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/FrostBolt.cs b/Items/Weapons/Magic/FrostBolt.cs index 5b0a5b2034..489a233792 100644 --- a/Items/Weapons/Magic/FrostBolt.cs +++ b/Items/Weapons/Magic/FrostBolt.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Genisis.cs b/Items/Weapons/Magic/Genisis.cs index 3ee459c89d..7ee65b690a 100644 --- a/Items/Weapons/Magic/Genisis.cs +++ b/Items/Weapons/Magic/Genisis.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item33; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/GhastlyVisage.cs b/Items/Weapons/Magic/GhastlyVisage.cs index 546138288c..086b54ccde 100644 --- a/Items/Weapons/Magic/GhastlyVisage.cs +++ b/Items/Weapons/Magic/GhastlyVisage.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 9f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/GleamingMagnolia.cs b/Items/Weapons/Magic/GleamingMagnolia.cs index 10b6f49152..6ca12ba596 100644 --- a/Items/Weapons/Magic/GleamingMagnolia.cs +++ b/Items/Weapons/Magic/GleamingMagnolia.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item109; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/GloriousEnd.cs b/Items/Weapons/Magic/GloriousEnd.cs index d94642741d..29c4d96f19 100644 --- a/Items/Weapons/Magic/GloriousEnd.cs +++ b/Items/Weapons/Magic/GloriousEnd.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.UseSound = SoundID.Item9; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Magic/GruesomeEminence.cs b/Items/Weapons/Magic/GruesomeEminence.cs index 03624cc604..684c53dd65 100644 --- a/Items/Weapons/Magic/GruesomeEminence.cs +++ b/Items/Weapons/Magic/GruesomeEminence.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 9f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/HadalUrn.cs b/Items/Weapons/Magic/HadalUrn.cs index 10e18d86dd..99191e7e68 100644 --- a/Items/Weapons/Magic/HadalUrn.cs +++ b/Items/Weapons/Magic/HadalUrn.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.75f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.Calamity().donorItem = true; Item.UseSound = ShootSound; diff --git a/Items/Weapons/Magic/HeliumFlash.cs b/Items/Weapons/Magic/HeliumFlash.cs index 03e2cd96d1..bd5307fc53 100644 --- a/Items/Weapons/Magic/HeliumFlash.cs +++ b/Items/Weapons/Magic/HeliumFlash.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item73; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/HellwingStaff.cs b/Items/Weapons/Magic/HellwingStaff.cs index b8ca91dc53..d6f67d8f1f 100644 --- a/Items/Weapons/Magic/HellwingStaff.cs +++ b/Items/Weapons/Magic/HellwingStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item43; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Hematemesis.cs b/Items/Weapons/Magic/Hematemesis.cs index 023521a715..18c289a27f 100644 --- a/Items/Weapons/Magic/Hematemesis.cs +++ b/Items/Weapons/Magic/Hematemesis.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.75f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.UseSound = SoundID.Item21; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Heresy.cs b/Items/Weapons/Magic/Heresy.cs index ff43651c3f..77c4af47e3 100644 --- a/Items/Weapons/Magic/Heresy.cs +++ b/Items/Weapons/Magic/Heresy.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.UseSound = SoundID.DD2_EtherianPortalDryadTouch; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.autoReuse = true; diff --git a/Items/Weapons/Magic/HyphaeRod.cs b/Items/Weapons/Magic/HyphaeRod.cs index b84c19008b..30bc37b713 100644 --- a/Items/Weapons/Magic/HyphaeRod.cs +++ b/Items/Weapons/Magic/HyphaeRod.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/IceBarrage.cs b/Items/Weapons/Magic/IceBarrage.cs index 59d80d7201..1d71b194b4 100644 --- a/Items/Weapons/Magic/IceBarrage.cs +++ b/Items/Weapons/Magic/IceBarrage.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.UseSound = CastSound; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Magic/IcicleStaff.cs b/Items/Weapons/Magic/IcicleStaff.cs index 9e27b987a7..6e5c822dab 100644 --- a/Items/Weapons/Magic/IcicleStaff.cs +++ b/Items/Weapons/Magic/IcicleStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/IcicleTrident.cs b/Items/Weapons/Magic/IcicleTrident.cs index 87397943a9..206d0b3632 100644 --- a/Items/Weapons/Magic/IcicleTrident.cs +++ b/Items/Weapons/Magic/IcicleTrident.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useTurn = false; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/InfernalRift.cs b/Items/Weapons/Magic/InfernalRift.cs index e857c56cca..0fcf0fc8d6 100644 --- a/Items/Weapons/Magic/InfernalRift.cs +++ b/Items/Weapons/Magic/InfernalRift.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/IonBlaster.cs b/Items/Weapons/Magic/IonBlaster.cs index 3b8b2856e6..24dc94d772 100644 --- a/Items/Weapons/Magic/IonBlaster.cs +++ b/Items/Weapons/Magic/IonBlaster.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 3f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Magic/Keelhaul.cs b/Items/Weapons/Magic/Keelhaul.cs index 6ba766b7e2..5929c99224 100644 --- a/Items/Weapons/Magic/Keelhaul.cs +++ b/Items/Weapons/Magic/Keelhaul.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.UseSound = SoundID.Item102; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Magic/LashesofChaos.cs b/Items/Weapons/Magic/LashesofChaos.cs index 296431ecd4..adeafbbd2a 100644 --- a/Items/Weapons/Magic/LashesofChaos.cs +++ b/Items/Weapons/Magic/LashesofChaos.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Lazhar.cs b/Items/Weapons/Magic/Lazhar.cs index bc1c7a4bc1..152ffbb9a2 100644 --- a/Items/Weapons/Magic/Lazhar.cs +++ b/Items/Weapons/Magic/Lazhar.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item12; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs index 10303e7a49..5c836aa917 100644 --- a/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs +++ b/Items/Weapons/Magic/MadAlchemistsCocktailGlove.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 19f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Magic/MagneticMeltdown.cs b/Items/Weapons/Magic/MagneticMeltdown.cs index 1029010c75..7bcdf3b1ba 100644 --- a/Items/Weapons/Magic/MagneticMeltdown.cs +++ b/Items/Weapons/Magic/MagneticMeltdown.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/ManaRose.cs b/Items/Weapons/Magic/ManaRose.cs index 795858e02d..898c4af8d1 100644 --- a/Items/Weapons/Magic/ManaRose.cs +++ b/Items/Weapons/Magic/ManaRose.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item109; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Miasma.cs b/Items/Weapons/Magic/Miasma.cs index be355153d8..5a24f1a067 100644 --- a/Items/Weapons/Magic/Miasma.cs +++ b/Items/Weapons/Magic/Miasma.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Mistlestorm.cs b/Items/Weapons/Magic/Mistlestorm.cs index 5516d9cb32..e2fa749681 100644 --- a/Items/Weapons/Magic/Mistlestorm.cs +++ b/Items/Weapons/Magic/Mistlestorm.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item39; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/NanoPurge.cs b/Items/Weapons/Magic/NanoPurge.cs index a8162d8c57..558c24ab99 100644 --- a/Items/Weapons/Magic/NanoPurge.cs +++ b/Items/Weapons/Magic/NanoPurge.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.channel = true; Item.knockBack = 3f; Item.rare = ItemRarityID.Red; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Magic/NebulousCataclysm.cs b/Items/Weapons/Magic/NebulousCataclysm.cs index 353bcd9959..7a113fceae 100644 --- a/Items/Weapons/Magic/NebulousCataclysm.cs +++ b/Items/Weapons/Magic/NebulousCataclysm.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noUseGraphic = true; Item.channel = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/NightsRay.cs b/Items/Weapons/Magic/NightsRay.cs index 008e67a7a0..3b767eaa97 100644 --- a/Items/Weapons/Magic/NightsRay.cs +++ b/Items/Weapons/Magic/NightsRay.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item72; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/NuclearFury.cs b/Items/Weapons/Magic/NuclearFury.cs index 1d4f0ac895..15ccc2aacb 100644 --- a/Items/Weapons/Magic/NuclearFury.cs +++ b/Items/Weapons/Magic/NuclearFury.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item84; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ParasiticSceptor.cs b/Items/Weapons/Magic/ParasiticSceptor.cs index 351fd2a16e..a79fa58088 100644 --- a/Items/Weapons/Magic/ParasiticSceptor.cs +++ b/Items/Weapons/Magic/ParasiticSceptor.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.useStyle = ItemUseStyleID.Shoot; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; } diff --git a/Items/Weapons/Magic/PhantasmalFury.cs b/Items/Weapons/Magic/PhantasmalFury.cs index 8b99a65d8a..f50734ad0f 100644 --- a/Items/Weapons/Magic/PhantasmalFury.cs +++ b/Items/Weapons/Magic/PhantasmalFury.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.UseSound = SoundID.Item43; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/PhoenixFlameBarrage.cs b/Items/Weapons/Magic/PhoenixFlameBarrage.cs index 8487e7c85b..5f47966448 100644 --- a/Items/Weapons/Magic/PhoenixFlameBarrage.cs +++ b/Items/Weapons/Magic/PhoenixFlameBarrage.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/PlagueStaff.cs b/Items/Weapons/Magic/PlagueStaff.cs index ebeb8a681a..61462b4e87 100644 --- a/Items/Weapons/Magic/PlagueStaff.cs +++ b/Items/Weapons/Magic/PlagueStaff.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item43; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/PlasmaRifle.cs b/Items/Weapons/Magic/PlasmaRifle.cs index e149cba86d..24bb921c54 100644 --- a/Items/Weapons/Magic/PlasmaRifle.cs +++ b/Items/Weapons/Magic/PlasmaRifle.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/PlasmaRod.cs b/Items/Weapons/Magic/PlasmaRod.cs index f719601880..11b443fc00 100644 --- a/Items/Weapons/Magic/PlasmaRod.cs +++ b/Items/Weapons/Magic/PlasmaRod.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item109; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Poseidon.cs b/Items/Weapons/Magic/Poseidon.cs index a9f8dcffc4..d1de524308 100644 --- a/Items/Weapons/Magic/Poseidon.cs +++ b/Items/Weapons/Magic/Poseidon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.UseSound = SoundID.Item84; Item.rare = ItemRarityID.Pink; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/PrimordialEarth.cs b/Items/Weapons/Magic/PrimordialEarth.cs index 21cf28f043..1e787d2d03 100644 --- a/Items/Weapons/Magic/PrimordialEarth.cs +++ b/Items/Weapons/Magic/PrimordialEarth.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/PurgeGuzzler.cs b/Items/Weapons/Magic/PurgeGuzzler.cs index e50400d2da..00e44ba34b 100644 --- a/Items/Weapons/Magic/PurgeGuzzler.cs +++ b/Items/Weapons/Magic/PurgeGuzzler.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/Rancor.cs b/Items/Weapons/Magic/Rancor.cs index 6bbb942870..67dcea1045 100644 --- a/Items/Weapons/Magic/Rancor.cs +++ b/Items/Weapons/Magic/Rancor.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 9f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/RelicofRuin.cs b/Items/Weapons/Magic/RelicofRuin.cs index 7b740c752b..cae57f5144 100644 --- a/Items/Weapons/Magic/RelicofRuin.cs +++ b/Items/Weapons/Magic/RelicofRuin.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.25f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item84; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/RougeSlash.cs b/Items/Weapons/Magic/RougeSlash.cs index a879f5e7b7..e9975d1d74 100644 --- a/Items/Weapons/Magic/RougeSlash.cs +++ b/Items/Weapons/Magic/RougeSlash.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 7.5f; Item.UseSound = SoundID.Item91; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/SHPC.cs b/Items/Weapons/Magic/SHPC.cs index 0d67a01e85..0504374faf 100644 --- a/Items/Weapons/Magic/SHPC.cs +++ b/Items/Weapons/Magic/SHPC.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Magic/SandstreamScepter.cs b/Items/Weapons/Magic/SandstreamScepter.cs index faefebb677..942ba48deb 100644 --- a/Items/Weapons/Magic/SandstreamScepter.cs +++ b/Items/Weapons/Magic/SandstreamScepter.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item72; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/SanguineFlare.cs b/Items/Weapons/Magic/SanguineFlare.cs index 9a9d878d9c..23cb3d0aea 100644 --- a/Items/Weapons/Magic/SanguineFlare.cs +++ b/Items/Weapons/Magic/SanguineFlare.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/SeethingDischarge.cs b/Items/Weapons/Magic/SeethingDischarge.cs index 9feaf3522f..ccb6632d8c 100644 --- a/Items/Weapons/Magic/SeethingDischarge.cs +++ b/Items/Weapons/Magic/SeethingDischarge.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.knockBack = 6.75f; Item.UseSound = CommonCalamitySounds.FlareSound; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Serpentine.cs b/Items/Weapons/Magic/Serpentine.cs index b569aeeabc..7753b8bbea 100644 --- a/Items/Weapons/Magic/Serpentine.cs +++ b/Items/Weapons/Magic/Serpentine.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ShadecrystalBarrage.cs b/Items/Weapons/Magic/ShadecrystalBarrage.cs index bb8e51f3cd..1858eb3dc1 100644 --- a/Items/Weapons/Magic/ShadecrystalBarrage.cs +++ b/Items/Weapons/Magic/ShadecrystalBarrage.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/ShaderainStaff.cs b/Items/Weapons/Magic/ShaderainStaff.cs index 766556b0fe..b77a1b5a43 100644 --- a/Items/Weapons/Magic/ShaderainStaff.cs +++ b/Items/Weapons/Magic/ShaderainStaff.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item66; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.autoReuse = true; Item.noMelee = true; } diff --git a/Items/Weapons/Magic/ShadowboltStaff.cs b/Items/Weapons/Magic/ShadowboltStaff.cs index 670120be68..593ac52488 100644 --- a/Items/Weapons/Magic/ShadowboltStaff.cs +++ b/Items/Weapons/Magic/ShadowboltStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.UseSound = SoundID.Item72; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/ShiftingSands.cs b/Items/Weapons/Magic/ShiftingSands.cs index 48ec29db9d..ca5991c6f6 100644 --- a/Items/Weapons/Magic/ShiftingSands.cs +++ b/Items/Weapons/Magic/ShiftingSands.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.UseSound = SoundID.Item20; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Magic/SkyGlaze.cs b/Items/Weapons/Magic/SkyGlaze.cs index 446da2556d..07705ba1b5 100644 --- a/Items/Weapons/Magic/SkyGlaze.cs +++ b/Items/Weapons/Magic/SkyGlaze.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item102; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/SlitheringEels.cs b/Items/Weapons/Magic/SlitheringEels.cs index d81ce56ebb..64ddf0ec5d 100644 --- a/Items/Weapons/Magic/SlitheringEels.cs +++ b/Items/Weapons/Magic/SlitheringEels.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.NPCHit13; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/SnowstormStaff.cs b/Items/Weapons/Magic/SnowstormStaff.cs index b17d91e6d1..4d4c8e00f5 100644 --- a/Items/Weapons/Magic/SnowstormStaff.cs +++ b/Items/Weapons/Magic/SnowstormStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 5; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item46; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/StaffofBlushie.cs b/Items/Weapons/Magic/StaffofBlushie.cs index 54872d4ed7..b8d8a4e951 100644 --- a/Items/Weapons/Magic/StaffofBlushie.cs +++ b/Items/Weapons/Magic/StaffofBlushie.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useTurn = false; Item.DamageType = DamageClass.Magic; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Magic/StarShower.cs b/Items/Weapons/Magic/StarShower.cs index e900725209..f1da7a9249 100644 --- a/Items/Weapons/Magic/StarShower.cs +++ b/Items/Weapons/Magic/StarShower.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.UseSound = SoundID.Item105; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index ac2cb7ecf3..debf53f5c6 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item84; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.noMelee = true; Item.channel = true; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/TacticiansTrumpCard.cs b/Items/Weapons/Magic/TacticiansTrumpCard.cs index a3e4a5049e..59b23ff197 100644 --- a/Items/Weapons/Magic/TacticiansTrumpCard.cs +++ b/Items/Weapons/Magic/TacticiansTrumpCard.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Magic/TearsofHeaven.cs b/Items/Weapons/Magic/TearsofHeaven.cs index bdf3899913..142e3a62f1 100644 --- a/Items/Weapons/Magic/TearsofHeaven.cs +++ b/Items/Weapons/Magic/TearsofHeaven.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = UseSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/TerraRay.cs b/Items/Weapons/Magic/TerraRay.cs index 9a8af687a9..a8b71ad589 100644 --- a/Items/Weapons/Magic/TerraRay.cs +++ b/Items/Weapons/Magic/TerraRay.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item60; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Teslastaff.cs b/Items/Weapons/Magic/Teslastaff.cs index 205d1a177d..2611504952 100644 --- a/Items/Weapons/Magic/Teslastaff.cs +++ b/Items/Weapons/Magic/Teslastaff.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.noMelee = true; Item.channel = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/TheDanceofLight.cs b/Items/Weapons/Magic/TheDanceofLight.cs index c68477f0cb..347545910d 100644 --- a/Items/Weapons/Magic/TheDanceofLight.cs +++ b/Items/Weapons/Magic/TheDanceofLight.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Magic/TheSwarmer.cs b/Items/Weapons/Magic/TheSwarmer.cs index 2736295cca..35d5d257f3 100644 --- a/Items/Weapons/Magic/TheSwarmer.cs +++ b/Items/Weapons/Magic/TheSwarmer.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useAnimation = 12; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/TheWand.cs b/Items/Weapons/Magic/TheWand.cs index 5fc7e2faa1..38f0e17b33 100644 --- a/Items/Weapons/Magic/TheWand.cs +++ b/Items/Weapons/Magic/TheWand.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.knockBack = 0.5f; Item.UseSound = SoundID.Item102; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 24f; Item.rare = ModContent.RarityType(); diff --git a/Items/Weapons/Magic/ThornBlossom.cs b/Items/Weapons/Magic/ThornBlossom.cs index cc36f427d9..0fe8425e06 100644 --- a/Items/Weapons/Magic/ThornBlossom.cs +++ b/Items/Weapons/Magic/ThornBlossom.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item109; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Thunderstorm.cs b/Items/Weapons/Magic/Thunderstorm.cs index 38c0d57ae3..2309058e6c 100644 --- a/Items/Weapons/Magic/Thunderstorm.cs +++ b/Items/Weapons/Magic/Thunderstorm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/TomeofFates.cs b/Items/Weapons/Magic/TomeofFates.cs index 39386cb92b..b8e8d2c3de 100644 --- a/Items/Weapons/Magic/TomeofFates.cs +++ b/Items/Weapons/Magic/TomeofFates.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item103; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Tradewinds.cs b/Items/Weapons/Magic/Tradewinds.cs index ffed29b946..64a725372a 100644 --- a/Items/Weapons/Magic/Tradewinds.cs +++ b/Items/Weapons/Magic/Tradewinds.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item7; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/UltraLiquidator.cs b/Items/Weapons/Magic/UltraLiquidator.cs index e1226cefff..7e3fc41370 100644 --- a/Items/Weapons/Magic/UltraLiquidator.cs +++ b/Items/Weapons/Magic/UltraLiquidator.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = SoundID.Item9; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; } diff --git a/Items/Weapons/Magic/UndinesRetribution.cs b/Items/Weapons/Magic/UndinesRetribution.cs index 89d6b9b52c..85490b1564 100644 --- a/Items/Weapons/Magic/UndinesRetribution.cs +++ b/Items/Weapons/Magic/UndinesRetribution.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item66; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/VeeringWind.cs b/Items/Weapons/Magic/VeeringWind.cs index d2ab6e5c6c..7adc9d4a4d 100644 --- a/Items/Weapons/Magic/VeeringWind.cs +++ b/Items/Weapons/Magic/VeeringWind.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 10f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.Calamity().donorItem = true; Item.UseSound = SoundID.Item66; diff --git a/Items/Weapons/Magic/Vehemence.cs b/Items/Weapons/Magic/Vehemence.cs index 41578f0d9a..f5304189d4 100644 --- a/Items/Weapons/Magic/Vehemence.cs +++ b/Items/Weapons/Magic/Vehemence.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 16.5f; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Magic/VenusianTrident.cs b/Items/Weapons/Magic/VenusianTrident.cs index 50615a8fa0..275e0f2306 100644 --- a/Items/Weapons/Magic/VenusianTrident.cs +++ b/Items/Weapons/Magic/VenusianTrident.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 9f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.UseSound = SoundID.Item45; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Vesuvius.cs b/Items/Weapons/Magic/Vesuvius.cs index c0abec3d7f..3ed6924f0d 100644 --- a/Items/Weapons/Magic/Vesuvius.cs +++ b/Items/Weapons/Magic/Vesuvius.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shootSpeed = 20f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Magic/Viscera.cs b/Items/Weapons/Magic/Viscera.cs index 10696984a3..f7c221a071 100644 --- a/Items/Weapons/Magic/Viscera.cs +++ b/Items/Weapons/Magic/Viscera.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/VitriolicViper.cs b/Items/Weapons/Magic/VitriolicViper.cs index cb51945b82..45cc02fd5a 100644 --- a/Items/Weapons/Magic/VitriolicViper.cs +++ b/Items/Weapons/Magic/VitriolicViper.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Magic/VividClarity.cs b/Items/Weapons/Magic/VividClarity.cs index fffe4b98bd..b51b21e2f5 100644 --- a/Items/Weapons/Magic/VividClarity.cs +++ b/Items/Weapons/Magic/VividClarity.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.UseSound = UseSound; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/VoidVortex.cs b/Items/Weapons/Magic/VoidVortex.cs index 997b9e86d3..be59e1e2b0 100644 --- a/Items/Weapons/Magic/VoidVortex.cs +++ b/Items/Weapons/Magic/VoidVortex.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item20; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/VoltaicClimax.cs b/Items/Weapons/Magic/VoltaicClimax.cs index 5155f53620..d1b5c9c448 100644 --- a/Items/Weapons/Magic/VoltaicClimax.cs +++ b/Items/Weapons/Magic/VoltaicClimax.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.UseSound = SoundID.Item20; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/Waywasher.cs b/Items/Weapons/Magic/Waywasher.cs index 431b9d892a..add4b132bf 100644 --- a/Items/Weapons/Magic/Waywasher.cs +++ b/Items/Weapons/Magic/Waywasher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item8; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Wingman.cs b/Items/Weapons/Magic/Wingman.cs index ae37a28100..b2db99864b 100644 --- a/Items/Weapons/Magic/Wingman.cs +++ b/Items/Weapons/Magic/Wingman.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item33; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/WintersFury.cs b/Items/Weapons/Magic/WintersFury.cs index 8c1a8c58d7..73d7bf6a5e 100644 --- a/Items/Weapons/Magic/WintersFury.cs +++ b/Items/Weapons/Magic/WintersFury.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useTurn = false; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/WrathoftheAncients.cs b/Items/Weapons/Magic/WrathoftheAncients.cs index 4cba974dd6..e7a48dcdec 100644 --- a/Items/Weapons/Magic/WrathoftheAncients.cs +++ b/Items/Weapons/Magic/WrathoftheAncients.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Magic/WulfrumProsthesis.cs b/Items/Weapons/Magic/WulfrumProsthesis.cs index 2b24b4ca26..359ed31119 100644 --- a/Items/Weapons/Magic/WulfrumProsthesis.cs +++ b/Items/Weapons/Magic/WulfrumProsthesis.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = ShootSound; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/WyvernsCall.cs b/Items/Weapons/Magic/WyvernsCall.cs index 89c355d0fe..36a2897fd8 100644 --- a/Items/Weapons/Magic/WyvernsCall.cs +++ b/Items/Weapons/Magic/WyvernsCall.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.75f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item102; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/YharimsCrystal.cs b/Items/Weapons/Magic/YharimsCrystal.cs index ab6e07d42b..d91a6096e9 100644 --- a/Items/Weapons/Magic/YharimsCrystal.cs +++ b/Items/Weapons/Magic/YharimsCrystal.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/AbsoluteZero.cs b/Items/Weapons/Melee/AbsoluteZero.cs index 80a06a1262..de9f7969e6 100644 --- a/Items/Weapons/Melee/AbsoluteZero.cs +++ b/Items/Weapons/Melee/AbsoluteZero.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.useTurn = false; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/AbyssBlade.cs b/Items/Weapons/Melee/AbyssBlade.cs index 50e6f61e11..199a341c1a 100644 --- a/Items/Weapons/Melee/AbyssBlade.cs +++ b/Items/Weapons/Melee/AbyssBlade.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Melee/AegisBlade.cs b/Items/Weapons/Melee/AegisBlade.cs index f177d07fa5..9b76ece0bb 100644 --- a/Items/Weapons/Melee/AegisBlade.cs +++ b/Items/Weapons/Melee/AegisBlade.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Melee/Aftershock.cs b/Items/Weapons/Melee/Aftershock.cs index 11eee11eda..aa4dcc8de9 100644 --- a/Items/Weapons/Melee/Aftershock.cs +++ b/Items/Weapons/Melee/Aftershock.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 9f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/AirSpinner.cs b/Items/Weapons/Melee/AirSpinner.cs index e811dd97f5..9fff13ee27 100644 --- a/Items/Weapons/Melee/AirSpinner.cs +++ b/Items/Weapons/Melee/AirSpinner.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 14f; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/AmidiasTrident.cs b/Items/Weapons/Melee/AmidiasTrident.cs index 9a7d30d5ae..9624cbde95 100644 --- a/Items/Weapons/Melee/AmidiasTrident.cs +++ b/Items/Weapons/Melee/AmidiasTrident.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 4.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Melee/AnarchyBlade.cs b/Items/Weapons/Melee/AnarchyBlade.cs index 9766aa1a5b..be42a6d88f 100644 --- a/Items/Weapons/Melee/AnarchyBlade.cs +++ b/Items/Weapons/Melee/AnarchyBlade.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Melee/Aorta.cs b/Items/Weapons/Melee/Aorta.cs index 5130e45a45..182dab333b 100644 --- a/Items/Weapons/Melee/Aorta.cs +++ b/Items/Weapons/Melee/Aorta.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 8f; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index 1202b93cc4..b2075df53f 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 9.5f; Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 28f; Item.rare = ModContent.RarityType(); diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index d501fae8f7..df934e2e7c 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.5f; Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/AstralBlade.cs b/Items/Weapons/Melee/AstralBlade.cs index 37eeb4ef35..46e95a74f6 100644 --- a/Items/Weapons/Melee/AstralBlade.cs +++ b/Items/Weapons/Melee/AstralBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/AstralPike.cs b/Items/Weapons/Melee/AstralPike.cs index 31676719d9..d9d5da2e0a 100644 --- a/Items/Weapons/Melee/AstralPike.cs +++ b/Items/Weapons/Melee/AstralPike.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13f; diff --git a/Items/Weapons/Melee/AstralScythe.cs b/Items/Weapons/Melee/AstralScythe.cs index 41d62fe95f..da283e3c99 100644 --- a/Items/Weapons/Melee/AstralScythe.cs +++ b/Items/Weapons/Melee/AstralScythe.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item71; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/Melee/Ataraxia.cs b/Items/Weapons/Melee/Ataraxia.cs index 46c83cc8db..d02a6a5184 100644 --- a/Items/Weapons/Melee/Ataraxia.cs +++ b/Items/Weapons/Melee/Ataraxia.cs @@ -15,27 +15,28 @@ namespace CalamityMod.Items.Weapons.Melee public class Ataraxia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + public bool hitsound = true; public override void SetDefaults() { Item.width = 94; Item.height = 92; Item.DamageType = DamageClass.Melee; - Item.damage = 864; + Item.damage = 675; Item.knockBack = 2.5f; - Item.useAnimation = 19; - Item.useTime = 19; + Item.useAnimation = 10; + Item.useTime = 10; Item.autoReuse = true; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 9f; + Item.shootSpeed = 10f; } // Fires one large and two small projectiles which stay together in formation. @@ -60,19 +61,18 @@ namespace CalamityMod.Items.Weapons.Melee Vector2 rightOffset = velocity.RotatedBy(-MathHelper.PiOver4, default); leftOffset -= 1.4f * velocity; rightOffset -= 1.4f * velocity; - Projectile.NewProjectile(source, new Vector2(rrp.X + leftOffset.X, rrp.Y + leftOffset.Y), originalVelocity, sideID, sideDamage, knockback, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(source, new Vector2(rrp.X + rightOffset.X, rrp.Y + rightOffset.Y), originalVelocity, sideID, sideDamage, knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, new Vector2(rrp.X + leftOffset.X, rrp.Y + leftOffset.Y), originalVelocity, sideID, sideDamage, knockback, player.whoAmI, 0f, 1f); + Projectile.NewProjectile(source, new Vector2(rrp.X + rightOffset.X, rrp.Y + rightOffset.Y), originalVelocity, sideID, sideDamage, knockback, player.whoAmI, 0f, 2f); + hitsound = true; return false; } - // On-hit, tosses out five homing projectiles. This is not like Holy Collider. + // On-hit, explode for extra damage. public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(BuffID.ShadowFlame, 480); OnHitEffects(player, target.Center); } - - // On-hit, tosses out five homing projectiles. This is not like Holy Collider. public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) { target.AddBuff(ModContent.BuffType(), 480); @@ -81,23 +81,18 @@ namespace CalamityMod.Items.Weapons.Melee private void OnHitEffects(Player player, Vector2 targetPos) { - // Individual true melee homing missiles deal 30% of the weapon's base damage. - int numSplits = 5; - int trueMeleeID = ModContent.ProjectileType(); - int trueMeleeDamage = (int)player.GetTotalDamage().ApplyTo(0.3f * Item.damage); - float angleVariance = MathHelper.TwoPi / (float)numSplits; - float spinOffsetAngle = MathHelper.Pi / (2f * numSplits); - var source = player.GetSource_ItemUse(Item); - Vector2 posVec = new Vector2(8f, 0f).RotatedByRandom(MathHelper.TwoPi); - - for (int i = 0; i < numSplits; ++i) + if (hitsound) { - posVec = posVec.RotatedBy(angleVariance); - Vector2 velocity = new Vector2(posVec.X, posVec.Y).RotatedBy(spinOffsetAngle); - velocity.Normalize(); - velocity *= 8f; - Projectile.NewProjectile(source, targetPos + posVec, velocity, trueMeleeID, trueMeleeDamage, Item.knockBack, player.whoAmI, 0.0f, 0.0f); + SoundStyle fire = new("CalamityMod/Sounds/Item/CursedDaggerThrow"); + SoundEngine.PlaySound(fire with { Volume = 0.5f, Pitch = 0.9f, PitchVariance = 0.2f, MaxInstances = -1 }, player.Center); + hitsound = false; } + + int trueMeleeID = ModContent.ProjectileType(); + int trueMeleeDamage = (int)player.GetTotalDamage().ApplyTo(0.7f * Item.damage); + var source = player.GetSource_ItemUse(Item); + Projectile.NewProjectile(source, targetPos, Vector2.Zero, trueMeleeID, trueMeleeDamage, Item.knockBack, player.whoAmI, 0.0f, 0.0f); + } // Spawn some fancy dust while swinging diff --git a/Items/Weapons/Melee/Avalanche.cs b/Items/Weapons/Melee/Avalanche.cs index cdb892af1a..d62182a121 100644 --- a/Items/Weapons/Melee/Avalanche.cs +++ b/Items/Weapons/Melee/Avalanche.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index 9b064d8e7e..fc8b6534fe 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/BalefulHarvester.cs b/Items/Weapons/Melee/BalefulHarvester.cs index 3a2e1a0f1f..81bb2411b5 100644 --- a/Items/Weapons/Melee/BalefulHarvester.cs +++ b/Items/Weapons/Melee/BalefulHarvester.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; } diff --git a/Items/Weapons/Melee/BallOFugu.cs b/Items/Weapons/Melee/BallOFugu.cs index e172a8ff21..23f0581be8 100644 --- a/Items/Weapons/Melee/BallOFugu.cs +++ b/Items/Weapons/Melee/BallOFugu.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/BansheeHook.cs b/Items/Weapons/Melee/BansheeHook.cs index b6fb92ef32..458b6276f9 100644 --- a/Items/Weapons/Melee/BansheeHook.cs +++ b/Items/Weapons/Melee/BansheeHook.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 42f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/Basher.cs b/Items/Weapons/Melee/Basher.cs index 8250374d65..ae3d491e6c 100644 --- a/Items/Weapons/Melee/Basher.cs +++ b/Items/Weapons/Melee/Basher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.useTurn = true; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Weapons/Melee/BladecrestOathsword.cs b/Items/Weapons/Melee/BladecrestOathsword.cs index 42d78b91b8..066a995169 100644 --- a/Items/Weapons/Melee/BladecrestOathsword.cs +++ b/Items/Weapons/Melee/BladecrestOathsword.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noUseGraphic = true; Item.useTurn = false; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shootSpeed = 6f; // Set so the item isn't classified as true melee diff --git a/Items/Weapons/Melee/BlightedCleaver.cs b/Items/Weapons/Melee/BlightedCleaver.cs index 4c4af94f7d..176febb628 100644 --- a/Items/Weapons/Melee/BlightedCleaver.cs +++ b/Items/Weapons/Melee/BlightedCleaver.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.shootsEveryUse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/Bonebreaker.cs b/Items/Weapons/Melee/Bonebreaker.cs index 0accc1ad66..a3a36efc90 100644 --- a/Items/Weapons/Melee/Bonebreaker.cs +++ b/Items/Weapons/Melee/Bonebreaker.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.useTurn = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.noMelee = true; diff --git a/Items/Weapons/Melee/Brimlance.cs b/Items/Weapons/Melee/Brimlance.cs index 1ef1a63ab6..1666ed6820 100644 --- a/Items/Weapons/Melee/Brimlance.cs +++ b/Items/Weapons/Melee/Brimlance.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/Brimlash.cs b/Items/Weapons/Melee/Brimlash.cs index e5afea25a6..2107039480 100644 --- a/Items/Weapons/Melee/Brimlash.cs +++ b/Items/Weapons/Melee/Brimlash.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Melee/BrimstoneSword.cs b/Items/Weapons/Melee/BrimstoneSword.cs index 89f84a06bc..8407cb5eb2 100644 --- a/Items/Weapons/Melee/BrimstoneSword.cs +++ b/Items/Weapons/Melee/BrimstoneSword.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/BrinyBaron.cs b/Items/Weapons/Melee/BrinyBaron.cs index 3f74cd427b..108c8f20de 100644 --- a/Items/Weapons/Melee/BrinyBaron.cs +++ b/Items/Weapons/Melee/BrinyBaron.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Melee/BrokenBiomeBlade.cs b/Items/Weapons/Melee/BrokenBiomeBlade.cs index 0c6b19f525..ebd82fb459 100644 --- a/Items/Weapons/Melee/BrokenBiomeBlade.cs +++ b/Items/Weapons/Melee/BrokenBiomeBlade.cs @@ -127,7 +127,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ProjectileID.PurificationPowder; Item.knockBack = 5f; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shootSpeed = 12f; } diff --git a/Items/Weapons/Melee/BurntSienna.cs b/Items/Weapons/Melee/BurntSienna.cs index 131b8e65ea..d290ff5246 100644 --- a/Items/Weapons/Melee/BurntSienna.cs +++ b/Items/Weapons/Melee/BurntSienna.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.shootSpeed = 5f; } diff --git a/Items/Weapons/Melee/Carnage.cs b/Items/Weapons/Melee/Carnage.cs index 656aca236b..f1831a2ad1 100644 --- a/Items/Weapons/Melee/Carnage.cs +++ b/Items/Weapons/Melee/Carnage.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.useTurn = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Weapons/Melee/CatastropheClaymore.cs b/Items/Weapons/Melee/CatastropheClaymore.cs index 4b6399b788..035899da48 100644 --- a/Items/Weapons/Melee/CatastropheClaymore.cs +++ b/Items/Weapons/Melee/CatastropheClaymore.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 11f; diff --git a/Items/Weapons/Melee/CelestialClaymore.cs b/Items/Weapons/Melee/CelestialClaymore.cs index 5b5da49765..7272201e97 100644 --- a/Items/Weapons/Melee/CelestialClaymore.cs +++ b/Items/Weapons/Melee/CelestialClaymore.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 0.1f; diff --git a/Items/Weapons/Melee/ChronomancersScythe.cs b/Items/Weapons/Melee/ChronomancersScythe.cs index 9ec1f7c1aa..2c815eeb89 100644 --- a/Items/Weapons/Melee/ChronomancersScythe.cs +++ b/Items/Weapons/Melee/ChronomancersScythe.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item71; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/ClamCrusher.cs b/Items/Weapons/Melee/ClamCrusher.cs index 47bde12567..81072b8d27 100644 --- a/Items/Weapons/Melee/ClamCrusher.cs +++ b/Items/Weapons/Melee/ClamCrusher.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 10f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/CometQuasher.cs b/Items/Weapons/Melee/CometQuasher.cs index 21c2480660..2715110fdf 100644 --- a/Items/Weapons/Melee/CometQuasher.cs +++ b/Items/Weapons/Melee/CometQuasher.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shootSpeed = ShootSpeed; } diff --git a/Items/Weapons/Melee/CosmicDischarge.cs b/Items/Weapons/Melee/CosmicDischarge.cs index 5e20cd8a96..5e0f2ae32c 100644 --- a/Items/Weapons/Melee/CosmicDischarge.cs +++ b/Items/Weapons/Melee/CosmicDischarge.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 24f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index 3a7488089e..eb19732c3d 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 2.4f; Item.knockBack = 9f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; // revertusernamechange on Discord (Yatagarasu) } diff --git a/Items/Weapons/Melee/CrescentMoon.cs b/Items/Weapons/Melee/CrescentMoon.cs index 203c6e86c2..12654f8efb 100644 --- a/Items/Weapons/Melee/CrescentMoon.cs +++ b/Items/Weapons/Melee/CrescentMoon.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 4f; Item.UseSound = SoundID.Item82; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.shootSpeed = 24f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/DarklightGreatsword.cs b/Items/Weapons/Melee/DarklightGreatsword.cs index f1aad0e4bf..ff02684bf3 100644 --- a/Items/Weapons/Melee/DarklightGreatsword.cs +++ b/Items/Weapons/Melee/DarklightGreatsword.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = ShootSpeed; diff --git a/Items/Weapons/Melee/DeathsAscension.cs b/Items/Weapons/Melee/DeathsAscension.cs index a8e24ec226..f22376f9da 100644 --- a/Items/Weapons/Melee/DeathsAscension.cs +++ b/Items/Weapons/Melee/DeathsAscension.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.shootSpeed = 12f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/DefiledGreatsword.cs b/Items/Weapons/Melee/DefiledGreatsword.cs index c08075e5dc..b46bdb4425 100644 --- a/Items/Weapons/Melee/DefiledGreatsword.cs +++ b/Items/Weapons/Melee/DefiledGreatsword.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.shootsEveryUse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = ShootSpeed; diff --git a/Items/Weapons/Melee/DepthCrusher.cs b/Items/Weapons/Melee/DepthCrusher.cs index e874a94843..1714581a67 100644 --- a/Items/Weapons/Melee/DepthCrusher.cs +++ b/Items/Weapons/Melee/DepthCrusher.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } } diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index 19783757e7..8e84933f5e 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 4.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/DevilsSunrise.cs b/Items/Weapons/Melee/DevilsSunrise.cs index 54696596dd..c2fb16337e 100644 --- a/Items/Weapons/Melee/DevilsSunrise.cs +++ b/Items/Weapons/Melee/DevilsSunrise.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = false; Item.useStyle = ItemUseStyleID.Shoot; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/DiseasedPike.cs b/Items/Weapons/Melee/DiseasedPike.cs index 4c780c7aee..343abf21ac 100644 --- a/Items/Weapons/Melee/DiseasedPike.cs +++ b/Items/Weapons/Melee/DiseasedPike.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index 89811aca24..42c3574a1b 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Melee/DragonPow.cs b/Items/Weapons/Melee/DragonPow.cs index 9835451071..0631ea083b 100644 --- a/Items/Weapons/Melee/DragonPow.cs +++ b/Items/Weapons/Melee/DragonPow.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = Yharon.ShortRoarSound; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/DragonRage.cs b/Items/Weapons/Melee/DragonRage.cs index cdec540950..dc5f9e1f86 100644 --- a/Items/Weapons/Melee/DragonRage.cs +++ b/Items/Weapons/Melee/DragonRage.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.DD2_SkyDragonsFurySwing; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } } diff --git a/Items/Weapons/Melee/Earth.cs b/Items/Weapons/Melee/Earth.cs index 8ca2099e40..e8c4939df8 100644 --- a/Items/Weapons/Melee/Earth.cs +++ b/Items/Weapons/Melee/Earth.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Melee/EarthenPike.cs b/Items/Weapons/Melee/EarthenPike.cs index c8beedfc1b..279a1f99a0 100644 --- a/Items/Weapons/Melee/EarthenPike.cs +++ b/Items/Weapons/Melee/EarthenPike.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Melee/ElementalLance.cs b/Items/Weapons/Melee/ElementalLance.cs index 9d17f36074..7e104ba78b 100644 --- a/Items/Weapons/Melee/ElementalLance.cs +++ b/Items/Weapons/Melee/ElementalLance.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 9.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index afe0eea9b7..364819f8b4 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 2.4f; Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; } diff --git a/Items/Weapons/Melee/EmpyreanKnives.cs b/Items/Weapons/Melee/EmpyreanKnives.cs index 306282df20..4081665059 100644 --- a/Items/Weapons/Melee/EmpyreanKnives.cs +++ b/Items/Weapons/Melee/EmpyreanKnives.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 3f; Item.UseSound = SoundID.Item39; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Melee/EntropicClaymore.cs b/Items/Weapons/Melee/EntropicClaymore.cs index 23e310ea24..a37ecdd797 100644 --- a/Items/Weapons/Melee/EntropicClaymore.cs +++ b/Items/Weapons/Melee/EntropicClaymore.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/EutrophicScimitar.cs b/Items/Weapons/Melee/EutrophicScimitar.cs index c860edf7f8..156f6b9779 100644 --- a/Items/Weapons/Melee/EutrophicScimitar.cs +++ b/Items/Weapons/Melee/EutrophicScimitar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 2; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 17; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/EvilSmasher.cs b/Items/Weapons/Melee/EvilSmasher.cs index c4addba714..27abbe6fa8 100644 --- a/Items/Weapons/Melee/EvilSmasher.cs +++ b/Items/Weapons/Melee/EvilSmasher.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Weapons/Melee/ExaltedOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs index 5f5732f244..55d3e34c95 100644 --- a/Items/Weapons/Melee/ExaltedOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = ShootSpeed; diff --git a/Items/Weapons/Melee/Excelsus.cs b/Items/Weapons/Melee/Excelsus.cs index 17b6fba732..4aab4c5fdb 100644 --- a/Items/Weapons/Melee/Excelsus.cs +++ b/Items/Weapons/Melee/Excelsus.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/Exoblade.cs b/Items/Weapons/Melee/Exoblade.cs index e950df77b2..c1c551acd5 100644 --- a/Items/Weapons/Melee/Exoblade.cs +++ b/Items/Weapons/Melee/Exoblade.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.noUseGraphic = true; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.shoot = ProjectileType(); Item.shootSpeed = 9f; Item.rare = RarityType(); diff --git a/Items/Weapons/Melee/FeralthornClaymore.cs b/Items/Weapons/Melee/FeralthornClaymore.cs index 09b859fb60..4822393f51 100644 --- a/Items/Weapons/Melee/FeralthornClaymore.cs +++ b/Items/Weapons/Melee/FeralthornClaymore.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Melee/FlarefrostBlade.cs b/Items/Weapons/Melee/FlarefrostBlade.cs index d015d2938c..05ef94c203 100644 --- a/Items/Weapons/Melee/FlarefrostBlade.cs +++ b/Items/Weapons/Melee/FlarefrostBlade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 11f; diff --git a/Items/Weapons/Melee/Floodtide.cs b/Items/Weapons/Melee/Floodtide.cs index dc281c7952..cf6602e1e3 100644 --- a/Items/Weapons/Melee/Floodtide.cs +++ b/Items/Weapons/Melee/Floodtide.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index d30e2d07eb..c9b078de77 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Melee/ForsakenSaber.cs b/Items/Weapons/Melee/ForsakenSaber.cs index 8506c5dd49..bc4f7501e2 100644 --- a/Items/Weapons/Melee/ForsakenSaber.cs +++ b/Items/Weapons/Melee/ForsakenSaber.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Melee/FracturedArk.cs b/Items/Weapons/Melee/FracturedArk.cs index 7d21699409..f7b6845084 100644 --- a/Items/Weapons/Melee/FracturedArk.cs +++ b/Items/Weapons/Melee/FracturedArk.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.25f; Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 15f; diff --git a/Items/Weapons/Melee/GaelsGreatsword.cs b/Items/Weapons/Melee/GaelsGreatsword.cs index 7b668a1f72..c4d9e656db 100644 --- a/Items/Weapons/Melee/GaelsGreatsword.cs +++ b/Items/Weapons/Melee/GaelsGreatsword.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Melee/GalactusBlade.cs b/Items/Weapons/Melee/GalactusBlade.cs index aa151ebf80..7d90459230 100644 --- a/Items/Weapons/Melee/GalactusBlade.cs +++ b/Items/Weapons/Melee/GalactusBlade.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item105; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 23f; diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index edae7ebf82..fa34986a90 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 0.9f; Item.knockBack = 10f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/GeliticBlade.cs b/Items/Weapons/Melee/GeliticBlade.cs index a6a50bd92a..16ab04f7ab 100644 --- a/Items/Weapons/Melee/GeliticBlade.cs +++ b/Items/Weapons/Melee/GeliticBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; diff --git a/Items/Weapons/Melee/GildedProboscis.cs b/Items/Weapons/Melee/GildedProboscis.cs index 64e3d912a9..45b27e9071 100644 --- a/Items/Weapons/Melee/GildedProboscis.cs +++ b/Items/Weapons/Melee/GildedProboscis.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13f; diff --git a/Items/Weapons/Melee/GoldplumeSpear.cs b/Items/Weapons/Melee/GoldplumeSpear.cs index 87fb469951..d2b38a87c0 100644 --- a/Items/Weapons/Melee/GoldplumeSpear.cs +++ b/Items/Weapons/Melee/GoldplumeSpear.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Melee/GrandGuardian.cs b/Items/Weapons/Melee/GrandGuardian.cs index ec95d4853e..339dbd02c4 100644 --- a/Items/Weapons/Melee/GrandGuardian.cs +++ b/Items/Weapons/Melee/GrandGuardian.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.shootSpeed = 12f; } diff --git a/Items/Weapons/Melee/GreatswordofJudgement.cs b/Items/Weapons/Melee/GreatswordofJudgement.cs index 110ee1501d..1732260e9d 100644 --- a/Items/Weapons/Melee/GreatswordofJudgement.cs +++ b/Items/Weapons/Melee/GreatswordofJudgement.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Melee/Greentide.cs b/Items/Weapons/Melee/Greentide.cs index c105558f9e..836b4b600d 100644 --- a/Items/Weapons/Melee/Greentide.cs +++ b/Items/Weapons/Melee/Greentide.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/HellfireFlamberge.cs b/Items/Weapons/Melee/HellfireFlamberge.cs index e61bf0443e..bfe5859fd8 100644 --- a/Items/Weapons/Melee/HellfireFlamberge.cs +++ b/Items/Weapons/Melee/HellfireFlamberge.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; diff --git a/Items/Weapons/Melee/HellionFlowerSpear.cs b/Items/Weapons/Melee/HellionFlowerSpear.cs index 843c359e3e..0ea8d94c6d 100644 --- a/Items/Weapons/Melee/HellionFlowerSpear.cs +++ b/Items/Weapons/Melee/HellionFlowerSpear.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Melee/Hellkite.cs b/Items/Weapons/Melee/Hellkite.cs index 4eb4fbed99..b76f5b0ed6 100644 --- a/Items/Weapons/Melee/Hellkite.cs +++ b/Items/Weapons/Melee/Hellkite.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Melee/HolyCollider.cs b/Items/Weapons/Melee/HolyCollider.cs index e47ddf751f..cdedd6b888 100644 --- a/Items/Weapons/Melee/HolyCollider.cs +++ b/Items/Weapons/Melee/HolyCollider.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.shootSpeed = 10f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/IllustriousKnives.cs b/Items/Weapons/Melee/IllustriousKnives.cs index 1136e2bcff..2b39aa7796 100644 --- a/Items/Weapons/Melee/IllustriousKnives.cs +++ b/Items/Weapons/Melee/IllustriousKnives.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item39; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Melee/InsidiousImpaler.cs b/Items/Weapons/Melee/InsidiousImpaler.cs index ac50ff064d..89be9745df 100644 --- a/Items/Weapons/Melee/InsidiousImpaler.cs +++ b/Items/Weapons/Melee/InsidiousImpaler.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } } diff --git a/Items/Weapons/Melee/IridescentExcalibur.cs b/Items/Weapons/Melee/IridescentExcalibur.cs index 7afec5e78e..457c2521e4 100644 --- a/Items/Weapons/Melee/IridescentExcalibur.cs +++ b/Items/Weapons/Melee/IridescentExcalibur.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = ShootSpeed; Item.rare = ModContent.RarityType(); diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index e169bd19ae..f6674661e4 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/LifehuntScythe.cs b/Items/Weapons/Melee/LifehuntScythe.cs index 2a7112e848..2141d6263b 100644 --- a/Items/Weapons/Melee/LifehuntScythe.cs +++ b/Items/Weapons/Melee/LifehuntScythe.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item71; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/LionHeart.cs b/Items/Weapons/Melee/LionHeart.cs index d20a765175..dd0b0df4ed 100644 --- a/Items/Weapons/Melee/LionHeart.cs +++ b/Items/Weapons/Melee/LionHeart.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/Lucrecia.cs b/Items/Weapons/Melee/Lucrecia.cs index ed96a7ec94..3d4df9ee9c 100644 --- a/Items/Weapons/Melee/Lucrecia.cs +++ b/Items/Weapons/Melee/Lucrecia.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 4.2f; Item.knockBack = 8.25f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Melee/MajesticGuard.cs b/Items/Weapons/Melee/MajesticGuard.cs index 45ecf47f3b..47319cb373 100644 --- a/Items/Weapons/Melee/MajesticGuard.cs +++ b/Items/Weapons/Melee/MajesticGuard.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Melee/MantisClaws.cs b/Items/Weapons/Melee/MantisClaws.cs index 8697aea9cc..4c8cc3be64 100644 --- a/Items/Weapons/Melee/MantisClaws.cs +++ b/Items/Weapons/Melee/MantisClaws.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Melee/MirrorBlade.cs b/Items/Weapons/Melee/MirrorBlade.cs index 9993792d1a..68f155fd79 100644 --- a/Items/Weapons/Melee/MirrorBlade.cs +++ b/Items/Weapons/Melee/MirrorBlade.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shootSpeed = 9f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/MonstrousKnives.cs b/Items/Weapons/Melee/MonstrousKnives.cs index 36d7fc83df..2b512bb0b4 100644 --- a/Items/Weapons/Melee/MonstrousKnives.cs +++ b/Items/Weapons/Melee/MonstrousKnives.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = SoundID.Item39; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/Mourningstar.cs b/Items/Weapons/Melee/Mourningstar.cs index e47b7c031f..a039ce5e46 100644 --- a/Items/Weapons/Melee/Mourningstar.cs +++ b/Items/Weapons/Melee/Mourningstar.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 2.5f; Item.UseSound = SoundID.Item116; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shootSpeed = 24f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs index 3d7b3ecd07..178e3f5df1 100644 --- a/Items/Weapons/Melee/Murasama.cs +++ b/Items/Weapons/Melee/Murasama.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTime = 5; Item.knockBack = 6.5f; Item.autoReuse = false; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 24f; Item.rare = ModContent.RarityType(); diff --git a/Items/Weapons/Melee/MycelialClaws.cs b/Items/Weapons/Melee/MycelialClaws.cs index aea5bec961..d8ed6d9a09 100644 --- a/Items/Weapons/Melee/MycelialClaws.cs +++ b/Items/Weapons/Melee/MycelialClaws.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 3.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index b35dd08e3d..62ed4826eb 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/Nebulash.cs b/Items/Weapons/Melee/Nebulash.cs index 7d0439bb9f..8e36c516f2 100644 --- a/Items/Weapons/Melee/Nebulash.cs +++ b/Items/Weapons/Melee/Nebulash.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 2f; Item.UseSound = SoundID.Item117; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.shootSpeed = 24f; Item.shoot = ModContent.ProjectileType(); } diff --git a/Items/Weapons/Melee/NeptunesBounty.cs b/Items/Weapons/Melee/NeptunesBounty.cs index 3cc637ec0c..91c8905696 100644 --- a/Items/Weapons/Melee/NeptunesBounty.cs +++ b/Items/Weapons/Melee/NeptunesBounty.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } public override void AddRecipes() diff --git a/Items/Weapons/Melee/OldLordClaymore.cs b/Items/Weapons/Melee/OldLordClaymore.cs index 9256299add..21913884b1 100644 --- a/Items/Weapons/Melee/OldLordClaymore.cs +++ b/Items/Weapons/Melee/OldLordClaymore.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.noUseGraphic = true; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; } diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index 51a298171a..213198cac8 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -183,7 +183,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 15f; diff --git a/Items/Weapons/Melee/Omniblade.cs b/Items/Weapons/Melee/Omniblade.cs index 2e13f26d52..1fc173a4e3 100644 --- a/Items/Weapons/Melee/Omniblade.cs +++ b/Items/Weapons/Melee/Omniblade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; diff --git a/Items/Weapons/Melee/Orderbringer.cs b/Items/Weapons/Melee/Orderbringer.cs index 8b1fd1401f..01acc2a755 100644 --- a/Items/Weapons/Melee/Orderbringer.cs +++ b/Items/Weapons/Melee/Orderbringer.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Melee/PerfectDark.cs b/Items/Weapons/Melee/PerfectDark.cs index 152f3a8293..25216877bd 100644 --- a/Items/Weapons/Melee/PerfectDark.cs +++ b/Items/Weapons/Melee/PerfectDark.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 4.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/PlagueKeeper.cs b/Items/Weapons/Melee/PlagueKeeper.cs index 3f5c03d96f..9ec6a35407 100644 --- a/Items/Weapons/Melee/PlagueKeeper.cs +++ b/Items/Weapons/Melee/PlagueKeeper.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; diff --git a/Items/Weapons/Melee/PrismaticBreaker.cs b/Items/Weapons/Melee/PrismaticBreaker.cs index 829a113945..f86e75a993 100644 --- a/Items/Weapons/Melee/PrismaticBreaker.cs +++ b/Items/Weapons/Melee/PrismaticBreaker.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index 6168f5eb8e..3ecee86fd1 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Melee/RedtideSpear.cs b/Items/Weapons/Melee/RedtideSpear.cs index eee2b64d80..39a9fce2af 100644 --- a/Items/Weapons/Melee/RedtideSpear.cs +++ b/Items/Weapons/Melee/RedtideSpear.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5f; Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; diff --git a/Items/Weapons/Melee/RemsRevenge.cs b/Items/Weapons/Melee/RemsRevenge.cs index 79b23d5b85..be3714e311 100644 --- a/Items/Weapons/Melee/RemsRevenge.cs +++ b/Items/Weapons/Melee/RemsRevenge.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 10f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/Riptide.cs b/Items/Weapons/Melee/Riptide.cs index 2567f244e2..3676f8d2e5 100644 --- a/Items/Weapons/Melee/Riptide.cs +++ b/Items/Weapons/Melee/Riptide.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 18f; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; } public override void AddRecipes() diff --git a/Items/Weapons/Melee/Roxcalibur.cs b/Items/Weapons/Melee/Roxcalibur.cs index 7f61edbd24..debc3d50b2 100644 --- a/Items/Weapons/Melee/Roxcalibur.cs +++ b/Items/Weapons/Melee/Roxcalibur.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.reuseDelay = 10; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/SaharaSlicers.cs b/Items/Weapons/Melee/SaharaSlicers.cs index 63a978a7e4..4ffc6f96f5 100644 --- a/Items/Weapons/Melee/SaharaSlicers.cs +++ b/Items/Weapons/Melee/SaharaSlicers.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = null; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } public override bool AltFunctionUse(Player player) => true; diff --git a/Items/Weapons/Melee/SausageMaker.cs b/Items/Weapons/Melee/SausageMaker.cs index 073766c6b8..fd0f87b89b 100644 --- a/Items/Weapons/Melee/SausageMaker.cs +++ b/Items/Weapons/Melee/SausageMaker.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Melee/ScourgeoftheCosmos.cs b/Items/Weapons/Melee/ScourgeoftheCosmos.cs index 730817d8c1..3eaaa817b5 100644 --- a/Items/Weapons/Melee/ScourgeoftheCosmos.cs +++ b/Items/Weapons/Melee/ScourgeoftheCosmos.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5f; Item.UseSound = SoundID.Item109; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; diff --git a/Items/Weapons/Melee/SeashineSword.cs b/Items/Weapons/Melee/SeashineSword.cs index b163aa43fe..465fa48b07 100644 --- a/Items/Weapons/Melee/SeashineSword.cs +++ b/Items/Weapons/Melee/SeashineSword.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTime = 30; Item.damage = 25; Item.DamageType = DamageClass.Melee; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.knockBack = 4f; Item.shootSpeed = 12f; Item.rare = ItemRarityID.Green; diff --git a/Items/Weapons/Melee/SeekingScorcher.cs b/Items/Weapons/Melee/SeekingScorcher.cs index ae9b2f28c1..79f0a44291 100644 --- a/Items/Weapons/Melee/SeekingScorcher.cs +++ b/Items/Weapons/Melee/SeekingScorcher.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.DamageType = DamageClass.MeleeNoSpeed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/SmokingComet.cs b/Items/Weapons/Melee/SmokingComet.cs index ea28bff513..ff8fe8633e 100644 --- a/Items/Weapons/Melee/SmokingComet.cs +++ b/Items/Weapons/Melee/SmokingComet.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 14f; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index ed462a8530..8bf48025bc 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } } diff --git a/Items/Weapons/Melee/SolsticeClaymore.cs b/Items/Weapons/Melee/SolsticeClaymore.cs index c8385bc9f8..33deea51ab 100644 --- a/Items/Weapons/Melee/SolsticeClaymore.cs +++ b/Items/Weapons/Melee/SolsticeClaymore.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/SoulHarvester.cs b/Items/Weapons/Melee/SoulHarvester.cs index 9c311ae962..6ad35bb47f 100644 --- a/Items/Weapons/Melee/SoulHarvester.cs +++ b/Items/Weapons/Melee/SoulHarvester.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item71; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 18f; diff --git a/Items/Weapons/Melee/StarnightLance.cs b/Items/Weapons/Melee/StarnightLance.cs index a7b4a8aa8b..8e6afe25b2 100644 --- a/Items/Weapons/Melee/StarnightLance.cs +++ b/Items/Weapons/Melee/StarnightLance.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Melee/StellarContempt.cs b/Items/Weapons/Melee/StellarContempt.cs index 01d48f4f5a..03487196f7 100644 --- a/Items/Weapons/Melee/StellarContempt.cs +++ b/Items/Weapons/Melee/StellarContempt.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index 8ce420280e..6e2e7945b2 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shootSpeed = 12f; } diff --git a/Items/Weapons/Melee/StormRuler.cs b/Items/Weapons/Melee/StormRuler.cs index e1b6e87cad..cf8ce8d329 100644 --- a/Items/Weapons/Melee/StormRuler.cs +++ b/Items/Weapons/Melee/StormRuler.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; diff --git a/Items/Weapons/Melee/StormSaber.cs b/Items/Weapons/Melee/StormSaber.cs index 9918287e1f..f155315a5f 100644 --- a/Items/Weapons/Melee/StormSaber.cs +++ b/Items/Weapons/Melee/StormSaber.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/StygianShield.cs b/Items/Weapons/Melee/StygianShield.cs index 58c7cf2c27..1f2983725a 100644 --- a/Items/Weapons/Melee/StygianShield.cs +++ b/Items/Weapons/Melee/StygianShield.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; // Donor: Cin2Win Item.UseSound = null; diff --git a/Items/Weapons/Melee/SubmarineShocker.cs b/Items/Weapons/Melee/SubmarineShocker.cs index 6372e5ea78..9f948cf7e9 100644 --- a/Items/Weapons/Melee/SubmarineShocker.cs +++ b/Items/Weapons/Melee/SubmarineShocker.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 2f; Item.knockBack = 7f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index 1196d322b5..ad10265c3a 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7f; Item.UseSound = SoundID.Item60; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/TaintedBlade.cs b/Items/Weapons/Melee/TaintedBlade.cs index 859d4e197c..4bd49059d5 100644 --- a/Items/Weapons/Melee/TaintedBlade.cs +++ b/Items/Weapons/Melee/TaintedBlade.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } diff --git a/Items/Weapons/Melee/TeardropCleaver.cs b/Items/Weapons/Melee/TeardropCleaver.cs index 5d1363b80c..939db3f77d 100644 --- a/Items/Weapons/Melee/TeardropCleaver.cs +++ b/Items/Weapons/Melee/TeardropCleaver.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; } diff --git a/Items/Weapons/Melee/TenebreusTides.cs b/Items/Weapons/Melee/TenebreusTides.cs index 0f090497df..7bbd67982a 100644 --- a/Items/Weapons/Melee/TenebreusTides.cs +++ b/Items/Weapons/Melee/TenebreusTides.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/TerraLance.cs b/Items/Weapons/Melee/TerraLance.cs index ceb138b590..2b0cca945e 100644 --- a/Items/Weapons/Melee/TerraLance.cs +++ b/Items/Weapons/Melee/TerraLance.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 8.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 11f; diff --git a/Items/Weapons/Melee/Terratomere.cs b/Items/Weapons/Melee/Terratomere.cs index 49a3407ab2..a80bf5569d 100644 --- a/Items/Weapons/Melee/Terratomere.cs +++ b/Items/Weapons/Melee/Terratomere.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.noUseGraphic = true; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 60f; diff --git a/Items/Weapons/Melee/TerrorBlade.cs b/Items/Weapons/Melee/TerrorBlade.cs index 7d07634a76..e85ba3366f 100644 --- a/Items/Weapons/Melee/TerrorBlade.cs +++ b/Items/Weapons/Melee/TerrorBlade.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index 3e46a300b3..abb9f7b438 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/TheDarkMaster.cs b/Items/Weapons/Melee/TheDarkMaster.cs index b72fd7aa9f..5054b7ed5a 100644 --- a/Items/Weapons/Melee/TheDarkMaster.cs +++ b/Items/Weapons/Melee/TheDarkMaster.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTurn = true; Item.knockBack = 7f; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index fd454b75a5..3cc6fe5c75 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/TheMicrowave.cs b/Items/Weapons/Melee/TheMicrowave.cs index 4434853115..c485fbbe46 100644 --- a/Items/Weapons/Melee/TheMicrowave.cs +++ b/Items/Weapons/Melee/TheMicrowave.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shootSpeed = 14f; Item.rare = ItemRarityID.Cyan; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; } } } diff --git a/Items/Weapons/Melee/TheMutilator.cs b/Items/Weapons/Melee/TheMutilator.cs index 8cdf99cdb0..c06b33dad3 100644 --- a/Items/Weapons/Melee/TheMutilator.cs +++ b/Items/Weapons/Melee/TheMutilator.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.autoReuse = true; Item.shootSpeed = 10f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index 3dce956e41..7d6ee4d1b4 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } public override void ModifyTooltips(List list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal")); diff --git a/Items/Weapons/Melee/TheOracle.cs b/Items/Weapons/Melee/TheOracle.cs index 6d2d489dc8..985ac51930 100644 --- a/Items/Weapons/Melee/TheOracle.cs +++ b/Items/Weapons/Melee/TheOracle.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Melee/TitanArm.cs b/Items/Weapons/Melee/TitanArm.cs index 22615f87ee..03b4a71cb1 100644 --- a/Items/Weapons/Melee/TitanArm.cs +++ b/Items/Weapons/Melee/TitanArm.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; Item.rare = ItemRarityID.Lime; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; } // Boosting crit in SetDefaults along with knockback seemed to severely inflate the reforging price. Guaranteed crits for more knockback. diff --git a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs index edfec09fb3..e6a4b2eb9f 100644 --- a/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs +++ b/Items/Weapons/Melee/TriactisTruePaladinianMageHammerofMightMelee.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 25f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 41fbdf6495..8ace1c199a 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.5f; Item.UseSound = null; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index 3428ab8269..c562f63b80 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -156,7 +156,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ProjectileID.PurificationPowder; Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/TrueCausticEdge.cs b/Items/Weapons/Melee/TrueCausticEdge.cs index a1422ff7ce..f1c13d18b1 100644 --- a/Items/Weapons/Melee/TrueCausticEdge.cs +++ b/Items/Weapons/Melee/TrueCausticEdge.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Melee/Tumbleweed.cs b/Items/Weapons/Melee/Tumbleweed.cs index 91c733b4f8..01cd0c49bd 100644 --- a/Items/Weapons/Melee/Tumbleweed.cs +++ b/Items/Weapons/Melee/Tumbleweed.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/TyphonsGreed.cs b/Items/Weapons/Melee/TyphonsGreed.cs index 4b95e8d948..e101efa146 100644 --- a/Items/Weapons/Melee/TyphonsGreed.cs +++ b/Items/Weapons/Melee/TyphonsGreed.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.DD2_SkyDragonsFurySwing; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/UltimusCleaver.cs b/Items/Weapons/Melee/UltimusCleaver.cs index 4b04a43483..655d248f21 100644 --- a/Items/Weapons/Melee/UltimusCleaver.cs +++ b/Items/Weapons/Melee/UltimusCleaver.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useAnimation = 20; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.autoReuse = true; Item.UseSound = SoundID.Item1; } diff --git a/Items/Weapons/Melee/UrchinFlail.cs b/Items/Weapons/Melee/UrchinFlail.cs index b1311316eb..5be6cbaa01 100644 --- a/Items/Weapons/Melee/UrchinFlail.cs +++ b/Items/Weapons/Melee/UrchinFlail.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Melee/UrchinMace.cs b/Items/Weapons/Melee/UrchinMace.cs index ed2632f48a..abea666477 100644 --- a/Items/Weapons/Melee/UrchinMace.cs +++ b/Items/Weapons/Melee/UrchinMace.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useTime = 19; Item.knockBack = 4; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 9f; diff --git a/Items/Weapons/Melee/VeinBurster.cs b/Items/Weapons/Melee/VeinBurster.cs index e119d14a4f..fe8d0adf61 100644 --- a/Items/Weapons/Melee/VeinBurster.cs +++ b/Items/Weapons/Melee/VeinBurster.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 4.25f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13f; diff --git a/Items/Weapons/Melee/Virulence.cs b/Items/Weapons/Melee/Virulence.cs index 9d99b77499..da76d26a24 100644 --- a/Items/Weapons/Melee/Virulence.cs +++ b/Items/Weapons/Melee/Virulence.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Melee/VoidEdge.cs b/Items/Weapons/Melee/VoidEdge.cs index f9e5e1e038..07276065ed 100644 --- a/Items/Weapons/Melee/VoidEdge.cs +++ b/Items/Weapons/Melee/VoidEdge.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = ShootSpeed; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Melee/VulcaniteLance.cs b/Items/Weapons/Melee/VulcaniteLance.cs index 9c6c8ebfca..98e810e120 100644 --- a/Items/Weapons/Melee/VulcaniteLance.cs +++ b/Items/Weapons/Melee/VulcaniteLance.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 6.75f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Melee/WindBlade.cs b/Items/Weapons/Melee/WindBlade.cs index c4de2e3ca4..8676601b68 100644 --- a/Items/Weapons/Melee/WindBlade.cs +++ b/Items/Weapons/Melee/WindBlade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 3f; diff --git a/Items/Weapons/Melee/WulfrumScrewdriver.cs b/Items/Weapons/Melee/WulfrumScrewdriver.cs index 83c6840b77..ad663b26d5 100644 --- a/Items/Weapons/Melee/WulfrumScrewdriver.cs +++ b/Items/Weapons/Melee/WulfrumScrewdriver.cs @@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.knockBack = 3.75f; Item.UseSound = ThrustSound; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/YateveoBloom.cs b/Items/Weapons/Melee/YateveoBloom.cs index 0eafce19ab..b6e7a31af2 100644 --- a/Items/Weapons/Melee/YateveoBloom.cs +++ b/Items/Weapons/Melee/YateveoBloom.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Melee/YinYo.cs b/Items/Weapons/Melee/YinYo.cs index bea4627bf9..641d211528 100644 --- a/Items/Weapons/Melee/YinYo.cs +++ b/Items/Weapons/Melee/YinYo.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Weapons/Ranged/AcesHigh.cs b/Items/Weapons/Ranged/AcesHigh.cs index 4c6699ee60..72672b11ce 100644 --- a/Items/Weapons/Ranged/AcesHigh.cs +++ b/Items/Weapons/Ranged/AcesHigh.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/AdamantiteParticleAccelerator.cs b/Items/Weapons/Ranged/AdamantiteParticleAccelerator.cs index ff0222407f..62bfe59a96 100644 --- a/Items/Weapons/Ranged/AdamantiteParticleAccelerator.cs +++ b/Items/Weapons/Ranged/AdamantiteParticleAccelerator.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 3f; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.autoReuse = true; Item.shootSpeed = 6f; diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index 687249d4e2..d2fce9bbca 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = SoundID.Item38; Item.useStyle = ItemUseStyleID.Shoot; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/Animosity.cs b/Items/Weapons/Ranged/Animosity.cs index 3f40d3f7bf..afd87d2f30 100644 --- a/Items/Weapons/Ranged/Animosity.cs +++ b/Items/Weapons/Ranged/Animosity.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = null; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/AquashardShotgun.cs b/Items/Weapons/Ranged/AquashardShotgun.cs index 652b6650eb..55fe5c3db9 100644 --- a/Items/Weapons/Ranged/AquashardShotgun.cs +++ b/Items/Weapons/Ranged/AquashardShotgun.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item61; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Arbalest.cs b/Items/Weapons/Ranged/Arbalest.cs index 68187e1186..3ee4b56f48 100644 --- a/Items/Weapons/Ranged/Arbalest.cs +++ b/Items/Weapons/Ranged/Arbalest.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = null; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ArcNovaDiffuser.cs b/Items/Weapons/Ranged/ArcNovaDiffuser.cs index e81d8582b0..072a68b931 100644 --- a/Items/Weapons/Ranged/ArcNovaDiffuser.cs +++ b/Items/Weapons/Ranged/ArcNovaDiffuser.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.channel = true; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = null; Item.autoReuse = false; diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index 303af70c2c..80e6aabbf1 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item85; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ArterialAssault.cs b/Items/Weapons/Ranged/ArterialAssault.cs index 1cd0c68d7c..9623518c5f 100644 --- a/Items/Weapons/Ranged/ArterialAssault.cs +++ b/Items/Weapons/Ranged/ArterialAssault.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.25f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item102; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/AstralBlaster.cs b/Items/Weapons/Ranged/AstralBlaster.cs index dd63d05874..72e9b8da2c 100644 --- a/Items/Weapons/Ranged/AstralBlaster.cs +++ b/Items/Weapons/Ranged/AstralBlaster.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.75f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item41; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/AstralBow.cs b/Items/Weapons/Ranged/AstralBow.cs index 103f7b416a..308327e530 100644 --- a/Items/Weapons/Ranged/AstralBow.cs +++ b/Items/Weapons/Ranged/AstralBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/AstrealDefeat.cs b/Items/Weapons/Ranged/AstrealDefeat.cs index 16351c94b5..3231490127 100644 --- a/Items/Weapons/Ranged/AstrealDefeat.cs +++ b/Items/Weapons/Ranged/AstrealDefeat.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item102; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Auralis.cs b/Items/Weapons/Ranged/Auralis.cs index ab3719fc2c..a346b19b08 100644 --- a/Items/Weapons/Ranged/Auralis.cs +++ b/Items/Weapons/Ranged/Auralis.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/AuroraBlazer.cs b/Items/Weapons/Ranged/AuroraBlazer.cs index 6e09a32e8f..5e3073cde9 100644 --- a/Items/Weapons/Ranged/AuroraBlazer.cs +++ b/Items/Weapons/Ranged/AuroraBlazer.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Ranged/Barinade.cs b/Items/Weapons/Ranged/Barinade.cs index 2fa711e62c..d58ef12011 100644 --- a/Items/Weapons/Ranged/Barinade.cs +++ b/Items/Weapons/Ranged/Barinade.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Barinautical.cs b/Items/Weapons/Ranged/Barinautical.cs index 9dd935b325..d258ec492c 100644 --- a/Items/Weapons/Ranged/Barinautical.cs +++ b/Items/Weapons/Ranged/Barinautical.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/BarracudaGun.cs b/Items/Weapons/Ranged/BarracudaGun.cs index 92e8a88084..72044deda0 100644 --- a/Items/Weapons/Ranged/BarracudaGun.cs +++ b/Items/Weapons/Ranged/BarracudaGun.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item10; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/BladedgeRailbow.cs b/Items/Weapons/Ranged/BladedgeRailbow.cs index 5a90780cdf..33fd07ef90 100644 --- a/Items/Weapons/Ranged/BladedgeRailbow.cs +++ b/Items/Weapons/Ranged/BladedgeRailbow.cs @@ -1,4 +1,7 @@ -using CalamityMod.Items.Materials; +using System.Collections.Generic; +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.DataStructures; @@ -11,6 +14,81 @@ namespace CalamityMod.Items.Weapons.Ranged public class BladedgeRailbow : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + + #region GFB Arrow Array + public int[] arrowArr = + { + ProjectileID.WoodenArrowFriendly, + ProjectileID.FireArrow, + ProjectileID.UnholyArrow, + ProjectileID.JestersArrow, + ProjectileID.HellfireArrow, + ProjectileID.HolyArrow, + ProjectileID.CursedArrow, + ProjectileID.FrostburnArrow, + ProjectileID.ChlorophyteArrow, + ProjectileID.IchorArrow, + ProjectileID.VenomArrow, + ProjectileID.BoneArrowFromMerchant, + ProjectileID.MoonlordArrow, + ProjectileID.ShimmerArrow, + ProjectileID.DD2BetsyArrow, + ProjectileID.BloodArrow, + ProjectileID.FairyQueenRangedItemShot, + ProjectileID.Hellwing, + ProjectileID.FrostArrow, + ProjectileID.BoneArrow, + ProjectileID.PhantasmArrow, + ProjectileID.DD2PhoenixBowShot, + ProjectileID.PulseBolt, + ProjectileID.ShadowFlameArrow, + ProjectileID.BeeArrow, + ProjectileID.Stake, + + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), // Not ranged + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType() + }; + #endregion + public override void SetDefaults() { Item.width = 74; @@ -22,7 +100,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item5; Item.autoReuse = true; @@ -52,7 +130,9 @@ namespace CalamityMod.Items.Weapons.Ranged arrowVel.Normalize(); arrowVel *= 10f; bool arrowHitsTiles = Collision.CanHit(realPlayerPos, 0, 0, realPlayerPos + arrowVel, 0, 0); - for (int i = 0; i < 2; i++) + + int numArrows = Main.zenithWorld ? 4 : 2; + for (int i = 0; i < numArrows; i++) { float arrowOffset = (float)i - 1f / 2f; Vector2 offsetSpawn = arrowVel.RotatedBy((double)(PiOver10 * arrowOffset), default); @@ -60,13 +140,26 @@ namespace CalamityMod.Items.Weapons.Ranged { offsetSpawn -= arrowVel; } - int projectile = Projectile.NewProjectile(source, realPlayerPos.X + offsetSpawn.X, realPlayerPos.Y + offsetSpawn.Y, velocity.X, velocity.Y, ProjectileID.Leaf, damage, 0f, player.whoAmI); - if (projectile.WithinBounds(Main.maxProjectiles)) + + int projType; + if (Main.zenithWorld) + projType = arrowArr[Main.rand.Next(0, 67)]; + else + projType = ProjectileID.Leaf; + + int projectile = Projectile.NewProjectile(source, realPlayerPos.X + offsetSpawn.X, realPlayerPos.Y + offsetSpawn.Y, velocity.X, velocity.Y, projType, damage, 0f, player.whoAmI); + if (projectile.WithinBounds(Main.maxProjectiles) && (projType == ProjectileID.Leaf || projType == ModContent.ProjectileType())) Main.projectile[projectile].DamageType = DamageClass.Ranged; } return false; } + public override void ModifyTooltips(List tooltips) + { + string tooltip = Main.zenithWorld ? this.GetLocalizedValue("TooltipGFB") : this.GetLocalizedValue("TooltipNormal"); + tooltips.FindAndReplace("[GFB]", tooltip); + } + public override void AddRecipes() { CreateRecipe(). diff --git a/Items/Weapons/Ranged/BlightSpewer.cs b/Items/Weapons/Ranged/BlightSpewer.cs index ad2c8a138f..50e3df7a73 100644 --- a/Items/Weapons/Ranged/BlightSpewer.cs +++ b/Items/Weapons/Ranged/BlightSpewer.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 1.5f; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/BlissfulBombardier.cs b/Items/Weapons/Ranged/BlissfulBombardier.cs index 80dc17f37e..150dc202ea 100644 --- a/Items/Weapons/Ranged/BlissfulBombardier.cs +++ b/Items/Weapons/Ranged/BlissfulBombardier.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/BloodBoiler.cs b/Items/Weapons/Ranged/BloodBoiler.cs index 98b1ac4bc7..29e9f63f78 100644 --- a/Items/Weapons/Ranged/BloodBoiler.cs +++ b/Items/Weapons/Ranged/BloodBoiler.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shootSpeed = 9.5f; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/BlossomFlux.cs b/Items/Weapons/Ranged/BlossomFlux.cs index 0df238d954..b17ee348e4 100644 --- a/Items/Weapons/Ranged/BlossomFlux.cs +++ b/Items/Weapons/Ranged/BlossomFlux.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 10f; Item.useAmmo = AmmoID.Arrow; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.Calamity().canFirePointBlankShots = true; } diff --git a/Items/Weapons/Ranged/BrimstoneFury.cs b/Items/Weapons/Ranged/BrimstoneFury.cs index 7f09cdd428..634cb0cef9 100644 --- a/Items/Weapons/Ranged/BrimstoneFury.cs +++ b/Items/Weapons/Ranged/BrimstoneFury.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.75f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/BulletFilledShotgun.cs b/Items/Weapons/Ranged/BulletFilledShotgun.cs index b7b06e6526..a985c94a1d 100644 --- a/Items/Weapons/Ranged/BulletFilledShotgun.cs +++ b/Items/Weapons/Ranged/BulletFilledShotgun.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item38; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/Butcher.cs b/Items/Weapons/Ranged/Butcher.cs index db05a25c13..48ec12ad69 100644 --- a/Items/Weapons/Ranged/Butcher.cs +++ b/Items/Weapons/Ranged/Butcher.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAnimation = 40; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item38; Item.noMelee = true; diff --git a/Items/Weapons/Ranged/ChickenCannon.cs b/Items/Weapons/Ranged/ChickenCannon.cs index 7b042117bf..889f57a40e 100644 --- a/Items/Weapons/Ranged/ChickenCannon.cs +++ b/Items/Weapons/Ranged/ChickenCannon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); // No use sound is intentional Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ClamorRifle.cs b/Items/Weapons/Ranged/ClamorRifle.cs index 40fbae145a..b51d12896b 100644 --- a/Items/Weapons/Ranged/ClamorRifle.cs +++ b/Items/Weapons/Ranged/ClamorRifle.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.autoReuse = true; Item.rare = ItemRarityID.Pink; diff --git a/Items/Weapons/Ranged/ClaretCannon.cs b/Items/Weapons/Ranged/ClaretCannon.cs index f1c0e752aa..70569df399 100644 --- a/Items/Weapons/Ranged/ClaretCannon.cs +++ b/Items/Weapons/Ranged/ClaretCannon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item40; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ClockGatlignum.cs b/Items/Weapons/Ranged/ClockGatlignum.cs index 293a36d015..47e81821e0 100644 --- a/Items/Weapons/Ranged/ClockGatlignum.cs +++ b/Items/Weapons/Ranged/ClockGatlignum.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.75f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item31; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ClockworkBow.cs b/Items/Weapons/Ranged/ClockworkBow.cs index 53f3e0e17b..64b5d58268 100644 --- a/Items/Weapons/Ranged/ClockworkBow.cs +++ b/Items/Weapons/Ranged/ClockworkBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.channel = true; Item.knockBack = 4.25f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.noUseGraphic = true; Item.UseSound = SoundID.Item20; diff --git a/Items/Weapons/Ranged/ConferenceCall.cs b/Items/Weapons/Ranged/ConferenceCall.cs index 276cb92069..9c9fa464e9 100644 --- a/Items/Weapons/Ranged/ConferenceCall.cs +++ b/Items/Weapons/Ranged/ConferenceCall.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item38; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Contagion.cs b/Items/Weapons/Ranged/Contagion.cs index a8c5a67158..f8fe958161 100644 --- a/Items/Weapons/Ranged/Contagion.cs +++ b/Items/Weapons/Ranged/Contagion.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 20f; Item.useAmmo = AmmoID.Arrow; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/ContinentalGreatbow.cs b/Items/Weapons/Ranged/ContinentalGreatbow.cs index b99e0fd9b8..6e63b9f837 100644 --- a/Items/Weapons/Ranged/ContinentalGreatbow.cs +++ b/Items/Weapons/Ranged/ContinentalGreatbow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/CoralCannon.cs b/Items/Weapons/Ranged/CoralCannon.cs index f78baf973e..6e97debf19 100644 --- a/Items/Weapons/Ranged/CoralCannon.cs +++ b/Items/Weapons/Ranged/CoralCannon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item61; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/CorinthPrime.cs b/Items/Weapons/Ranged/CorinthPrime.cs index d50d928625..0ddd616eda 100644 --- a/Items/Weapons/Ranged/CorinthPrime.cs +++ b/Items/Weapons/Ranged/CorinthPrime.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.UseSound = SoundID.Item38; diff --git a/Items/Weapons/Ranged/CorrodedCaustibow.cs b/Items/Weapons/Ranged/CorrodedCaustibow.cs index 3bd3c0a227..2413651e0e 100644 --- a/Items/Weapons/Ranged/CorrodedCaustibow.cs +++ b/Items/Weapons/Ranged/CorrodedCaustibow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/CosmicBolter.cs b/Items/Weapons/Ranged/CosmicBolter.cs index 7782be14e7..4d84616595 100644 --- a/Items/Weapons/Ranged/CosmicBolter.cs +++ b/Items/Weapons/Ranged/CosmicBolter.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.75f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item75; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/CrackshotColt.cs b/Items/Weapons/Ranged/CrackshotColt.cs index 9022da64ca..9a061b193f 100644 --- a/Items/Weapons/Ranged/CrackshotColt.cs +++ b/Items/Weapons/Ranged/CrackshotColt.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = ShootSound; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/CursedCapper.cs b/Items/Weapons/Ranged/CursedCapper.cs index 1cb7a8b159..0205479166 100644 --- a/Items/Weapons/Ranged/CursedCapper.cs +++ b/Items/Weapons/Ranged/CursedCapper.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item41; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/DaemonsFlame.cs b/Items/Weapons/Ranged/DaemonsFlame.cs index 8f6f0000e0..7fa53c9b10 100644 --- a/Items/Weapons/Ranged/DaemonsFlame.cs +++ b/Items/Weapons/Ranged/DaemonsFlame.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 20f; Item.useAmmo = AmmoID.Arrow; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().canFirePointBlankShots = true; } diff --git a/Items/Weapons/Ranged/DarkechoGreatbow.cs b/Items/Weapons/Ranged/DarkechoGreatbow.cs index 677db34b6a..960908d2c8 100644 --- a/Items/Weapons/Ranged/DarkechoGreatbow.cs +++ b/Items/Weapons/Ranged/DarkechoGreatbow.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/DeadSunsWind.cs b/Items/Weapons/Ranged/DeadSunsWind.cs index 90baf6ed97..8e81c00b99 100644 --- a/Items/Weapons/Ranged/DeadSunsWind.cs +++ b/Items/Weapons/Ranged/DeadSunsWind.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 3.5f; Item.UseSound = ShootSound; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/Deathwind.cs b/Items/Weapons/Ranged/Deathwind.cs index 913e50fb67..81cf35ba6d 100644 --- a/Items/Weapons/Ranged/Deathwind.cs +++ b/Items/Weapons/Ranged/Deathwind.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/DeepcoreGK2.cs b/Items/Weapons/Ranged/DeepcoreGK2.cs index 9a30d67c6d..b1f059e43b 100644 --- a/Items/Weapons/Ranged/DeepcoreGK2.cs +++ b/Items/Weapons/Ranged/DeepcoreGK2.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTime = Item.useAnimation = 14; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item38; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Disseminator.cs b/Items/Weapons/Ranged/Disseminator.cs index 3463e488bb..2583ef4355 100644 --- a/Items/Weapons/Ranged/Disseminator.cs +++ b/Items/Weapons/Ranged/Disseminator.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item38; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/DodusHandcannon.cs b/Items/Weapons/Ranged/DodusHandcannon.cs index 103e91d86f..bfcefcfd68 100644 --- a/Items/Weapons/Ranged/DodusHandcannon.cs +++ b/Items/Weapons/Ranged/DodusHandcannon.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 13f; Item.useAmmo = AmmoID.Bullet; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/DragonsBreath.cs b/Items/Weapons/Ranged/DragonsBreath.cs index debb1fd647..41867a4a4f 100644 --- a/Items/Weapons/Ranged/DragonsBreath.cs +++ b/Items/Weapons/Ranged/DragonsBreath.cs @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Gel; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; } public override bool CanConsumeAmmo(Item ammo, Player player) => !StrongShotMode && Main.rand.NextFloat() > 0.80f; diff --git a/Items/Weapons/Ranged/Drataliornus.cs b/Items/Weapons/Ranged/Drataliornus.cs index 1f4382ccd6..e7d1ad1b07 100644 --- a/Items/Weapons/Ranged/Drataliornus.cs +++ b/Items/Weapons/Ranged/Drataliornus.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useLimitPerAnimation = 2; Item.UseSound = SoundID.Item5; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.noMelee = true; Item.noUseGraphic = true; Item.DamageType = DamageClass.Ranged; diff --git a/Items/Weapons/Ranged/ElementalBlaster.cs b/Items/Weapons/Ranged/ElementalBlaster.cs index 7ff501607a..50c96f5885 100644 --- a/Items/Weapons/Ranged/ElementalBlaster.cs +++ b/Items/Weapons/Ranged/ElementalBlaster.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.75f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ElementalEruption.cs b/Items/Weapons/Ranged/ElementalEruption.cs index f01d1d2a55..33f3b95041 100644 --- a/Items/Weapons/Ranged/ElementalEruption.cs +++ b/Items/Weapons/Ranged/ElementalEruption.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 3.5f; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/EternalBlizzard.cs b/Items/Weapons/Ranged/EternalBlizzard.cs index af9096a8eb..988223ece0 100644 --- a/Items/Weapons/Ranged/EternalBlizzard.cs +++ b/Items/Weapons/Ranged/EternalBlizzard.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTurn = false; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.useAmmo = AmmoID.Arrow; Item.UseSound = SoundID.Item5; diff --git a/Items/Weapons/Ranged/Eviscerator.cs b/Items/Weapons/Ranged/Eviscerator.cs index ac21223a79..75849b1bb2 100644 --- a/Items/Weapons/Ranged/Eviscerator.cs +++ b/Items/Weapons/Ranged/Eviscerator.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7.5f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item40; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/FetidEmesis.cs b/Items/Weapons/Ranged/FetidEmesis.cs index 04795c3572..ca3cddecaf 100644 --- a/Items/Weapons/Ranged/FetidEmesis.cs +++ b/Items/Weapons/Ranged/FetidEmesis.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 16f; Item.useAmmo = AmmoID.Bullet; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().canFirePointBlankShots = true; } diff --git a/Items/Weapons/Ranged/FirestormCannon.cs b/Items/Weapons/Ranged/FirestormCannon.cs index f0dc14ec41..573af9b6a4 100644 --- a/Items/Weapons/Ranged/FirestormCannon.cs +++ b/Items/Weapons/Ranged/FirestormCannon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/FlakKraken.cs b/Items/Weapons/Ranged/FlakKraken.cs index a95adf2113..707d82448f 100644 --- a/Items/Weapons/Ranged/FlakKraken.cs +++ b/Items/Weapons/Ranged/FlakKraken.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noUseGraphic = true; Item.channel = true; Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.95f, PitchVariance = 0.1f }; diff --git a/Items/Weapons/Ranged/FlakToxicannon.cs b/Items/Weapons/Ranged/FlakToxicannon.cs index 8ebe60218b..78d2f57a2b 100644 --- a/Items/Weapons/Ranged/FlakToxicannon.cs +++ b/Items/Weapons/Ranged/FlakToxicannon.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noUseGraphic = true; Item.channel = true; Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.7f, PitchVariance = 0.1f }; diff --git a/Items/Weapons/Ranged/FlarewingBow.cs b/Items/Weapons/Ranged/FlarewingBow.cs index a04fa4e9b8..a1f6d32d26 100644 --- a/Items/Weapons/Ranged/FlarewingBow.cs +++ b/Items/Weapons/Ranged/FlarewingBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/FlurrystormCannon.cs b/Items/Weapons/Ranged/FlurrystormCannon.cs index d3827b1b3e..d2d1e03035 100644 --- a/Items/Weapons/Ranged/FlurrystormCannon.cs +++ b/Items/Weapons/Ranged/FlurrystormCannon.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 1.2f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/FreedomStar.cs b/Items/Weapons/Ranged/FreedomStar.cs index 17cc258a39..b97730696b 100644 --- a/Items/Weapons/Ranged/FreedomStar.cs +++ b/Items/Weapons/Ranged/FreedomStar.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.channel = true; Item.noUseGraphic = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); modItem.donorItem = true; Item.UseSound = SoundID.Item75; diff --git a/Items/Weapons/Ranged/FrostbiteBlaster.cs b/Items/Weapons/Ranged/FrostbiteBlaster.cs index cd45564483..470c62ed7a 100644 --- a/Items/Weapons/Ranged/FrostbiteBlaster.cs +++ b/Items/Weapons/Ranged/FrostbiteBlaster.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTurn = false; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.useAmmo = AmmoID.Bullet; Item.UseSound = SoundID.Item36; diff --git a/Items/Weapons/Ranged/Fungicide.cs b/Items/Weapons/Ranged/Fungicide.cs index 19109ff99c..b7142eaa2b 100644 --- a/Items/Weapons/Ranged/Fungicide.cs +++ b/Items/Weapons/Ranged/Fungicide.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item61; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Galeforce.cs b/Items/Weapons/Ranged/Galeforce.cs index b4841cddbf..8fbc80de2b 100644 --- a/Items/Weapons/Ranged/Galeforce.cs +++ b/Items/Weapons/Ranged/Galeforce.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/GoldenEagle.cs b/Items/Weapons/Ranged/GoldenEagle.cs index 39392dd8d8..87466ac4f7 100644 --- a/Items/Weapons/Ranged/GoldenEagle.cs +++ b/Items/Weapons/Ranged/GoldenEagle.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAnimation = 19; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item41; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Goobow.cs b/Items/Weapons/Ranged/Goobow.cs index f3817b0bb1..6b51c5ba4b 100644 --- a/Items/Weapons/Ranged/Goobow.cs +++ b/Items/Weapons/Ranged/Goobow.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/GunkShot.cs b/Items/Weapons/Ranged/GunkShot.cs index 0df66d0695..9db3fecab5 100644 --- a/Items/Weapons/Ranged/GunkShot.cs +++ b/Items/Weapons/Ranged/GunkShot.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item36; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/HalibutCannon.cs b/Items/Weapons/Ranged/HalibutCannon.cs index 0f202575db..7dc5bc4243 100644 --- a/Items/Weapons/Ranged/HalibutCannon.cs +++ b/Items/Weapons/Ranged/HalibutCannon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.UseSound = null; Item.autoReuse = true; Item.shoot = ProjectileID.Bullet; diff --git a/Items/Weapons/Ranged/HalleysInferno.cs b/Items/Weapons/Ranged/HalleysInferno.cs index a537d6413d..3348115c70 100644 --- a/Items/Weapons/Ranged/HalleysInferno.cs +++ b/Items/Weapons/Ranged/HalleysInferno.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = ShootSound; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Ranged/HandheldTank.cs b/Items/Weapons/Ranged/HandheldTank.cs index ab7672a40e..f332f79ce0 100644 --- a/Items/Weapons/Ranged/HandheldTank.cs +++ b/Items/Weapons/Ranged/HandheldTank.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = UseSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/HavocsBreath.cs b/Items/Weapons/Ranged/HavocsBreath.cs index b7322e7aa7..efad9edd1e 100644 --- a/Items/Weapons/Ranged/HavocsBreath.cs +++ b/Items/Weapons/Ranged/HavocsBreath.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 1.5f; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/Hellborn.cs b/Items/Weapons/Ranged/Hellborn.cs index ca194d6bc6..6ec064fecf 100644 --- a/Items/Weapons/Ranged/Hellborn.cs +++ b/Items/Weapons/Ranged/Hellborn.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAnimation = Item.useTime = 20; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Helstorm.cs b/Items/Weapons/Ranged/Helstorm.cs index 219390e9f5..0dbfca56dd 100644 --- a/Items/Weapons/Ranged/Helstorm.cs +++ b/Items/Weapons/Ranged/Helstorm.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAnimation = 9; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/HoarfrostBow.cs b/Items/Weapons/Ranged/HoarfrostBow.cs index cb2811f6d4..6dcc2a5750 100644 --- a/Items/Weapons/Ranged/HoarfrostBow.cs +++ b/Items/Weapons/Ranged/HoarfrostBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Hydra.cs b/Items/Weapons/Ranged/Hydra.cs index f5f2fc5ff7..600a509958 100644 --- a/Items/Weapons/Ranged/Hydra.cs +++ b/Items/Weapons/Ranged/Hydra.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 10f; Item.knockBack = 10f; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = null; //does so in Shoot Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/Karasawa.cs b/Items/Weapons/Ranged/Karasawa.cs index e062a7c395..65b84fc6fa 100644 --- a/Items/Weapons/Ranged/Karasawa.cs +++ b/Items/Weapons/Ranged/Karasawa.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = FireSound; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Ranged/Kingsbane.cs b/Items/Weapons/Ranged/Kingsbane.cs index c7eff292c6..69fd57af7d 100644 --- a/Items/Weapons/Ranged/Kingsbane.cs +++ b/Items/Weapons/Ranged/Kingsbane.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.UseSound = null; Item.autoReuse = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Ranged/Leviatitan.cs b/Items/Weapons/Ranged/Leviatitan.cs index 23cdeb2cd2..2e83fff9d7 100644 --- a/Items/Weapons/Ranged/Leviatitan.cs +++ b/Items/Weapons/Ranged/Leviatitan.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item92; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/LunarianBow.cs b/Items/Weapons/Ranged/LunarianBow.cs index 6d4c03557b..73882fcfb2 100644 --- a/Items/Weapons/Ranged/LunarianBow.cs +++ b/Items/Weapons/Ranged/LunarianBow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item75; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/MagnaCannon.cs b/Items/Weapons/Ranged/MagnaCannon.cs index 6347398a53..4a320fba08 100644 --- a/Items/Weapons/Ranged/MagnaCannon.cs +++ b/Items/Weapons/Ranged/MagnaCannon.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noUseGraphic = true; Item.channel = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = null; Item.autoReuse = false; diff --git a/Items/Weapons/Ranged/MagnomalyCannon.cs b/Items/Weapons/Ranged/MagnomalyCannon.cs index 093f7dee8a..f23f2fe0e1 100644 --- a/Items/Weapons/Ranged/MagnomalyCannon.cs +++ b/Items/Weapons/Ranged/MagnomalyCannon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 9.5f; Item.UseSound = SoundID.Item11; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Ranged/Malevolence.cs b/Items/Weapons/Ranged/Malevolence.cs index edbc8bed86..b436e97fcf 100644 --- a/Items/Weapons/Ranged/Malevolence.cs +++ b/Items/Weapons/Ranged/Malevolence.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item97; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 39095f90ad..80d0526b43 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Meowthrower.cs b/Items/Weapons/Ranged/Meowthrower.cs index c0488a31ca..69e8cbe036 100644 --- a/Items/Weapons/Ranged/Meowthrower.cs +++ b/Items/Weapons/Ranged/Meowthrower.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 0.4f; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/MidasPrime.cs b/Items/Weapons/Ranged/MidasPrime.cs index f7178b3802..6ded773f4d 100644 --- a/Items/Weapons/Ranged/MidasPrime.cs +++ b/Items/Weapons/Ranged/MidasPrime.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = ShootSound; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/MineralMortar.cs b/Items/Weapons/Ranged/MineralMortar.cs index 4ee5118555..aef7481495 100644 --- a/Items/Weapons/Ranged/MineralMortar.cs +++ b/Items/Weapons/Ranged/MineralMortar.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noUseGraphic = true; Item.channel = true; Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.9f, PitchVariance = 0.1f }; diff --git a/Items/Weapons/Ranged/MolecularManipulator.cs b/Items/Weapons/Ranged/MolecularManipulator.cs index b348c50e40..76e1a08c05 100644 --- a/Items/Weapons/Ranged/MolecularManipulator.cs +++ b/Items/Weapons/Ranged/MolecularManipulator.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item33; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Monsoon.cs b/Items/Weapons/Ranged/Monsoon.cs index 47fe112f7f..1b018e6854 100644 --- a/Items/Weapons/Ranged/Monsoon.cs +++ b/Items/Weapons/Ranged/Monsoon.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Needler.cs b/Items/Weapons/Ranged/Needler.cs index 8d172e30ff..748da471f9 100644 --- a/Items/Weapons/Ranged/Needler.cs +++ b/Items/Weapons/Ranged/Needler.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item108; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/NettlevineGreatbow.cs b/Items/Weapons/Ranged/NettlevineGreatbow.cs index 9f0b616084..db0811ac93 100644 --- a/Items/Weapons/Ranged/NettlevineGreatbow.cs +++ b/Items/Weapons/Ranged/NettlevineGreatbow.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index 631771c471..c458a0d099 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -11,39 +11,43 @@ namespace CalamityMod.Items.Weapons.Ranged public class Norfleet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; + public int loadedShots = 3; public override void SetDefaults() { Item.width = 140; Item.height = 42; - Item.damage = 354; + Item.damage = 7077; Item.knockBack = 15f; Item.shootSpeed = 30f; Item.useStyle = ItemUseStyleID.Shoot; - Item.useAnimation = 75; - Item.useTime = 75; - Item.UseSound = SoundID.Item92; + Item.useAnimation = 70; + Item.useTime = 70; + Item.UseSound = null; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.noMelee = true; Item.noUseGraphic = true; Item.DamageType = DamageClass.Ranged; Item.channel = true; - Item.useTurn = false; - Item.useAmmo = AmmoID.FallenStar; Item.autoReuse = true; } public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } + // Makes the rotation of the mouse around the player sync in multiplayer. + public override void HoldItem(Player player) => player.Calamity().mouseRotationListener = true; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ModContent.ProjectileType(), 0, 0f, player.whoAmI); + Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 0, loadedShots); + + // We set the rotation to the direction to the mouse so the first frame doesn't appear bugged out. + holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); + + loadedShots--; + if (loadedShots <= 0) + loadedShots = 3; return false; } } diff --git a/Items/Weapons/Ranged/NullificationPistol.cs b/Items/Weapons/Ranged/NullificationPistol.cs index 3ae5a5eaaf..cca4e3d8c1 100644 --- a/Items/Weapons/Ranged/NullificationPistol.cs +++ b/Items/Weapons/Ranged/NullificationPistol.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item33; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/OnyxChainBlaster.cs b/Items/Weapons/Ranged/OnyxChainBlaster.cs index ec7b4d58a2..590aa09ec2 100644 --- a/Items/Weapons/Ranged/OnyxChainBlaster.cs +++ b/Items/Weapons/Ranged/OnyxChainBlaster.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item36; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Onyxia.cs b/Items/Weapons/Ranged/Onyxia.cs index 78af6272dd..dd8f167c67 100644 --- a/Items/Weapons/Ranged/Onyxia.cs +++ b/Items/Weapons/Ranged/Onyxia.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item36; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/OpalStriker.cs b/Items/Weapons/Ranged/OpalStriker.cs index a551e1c845..b7add585c2 100644 --- a/Items/Weapons/Ranged/OpalStriker.cs +++ b/Items/Weapons/Ranged/OpalStriker.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.noUseGraphic = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = null; Item.autoReuse = false; diff --git a/Items/Weapons/Ranged/OverloadedBlaster.cs b/Items/Weapons/Ranged/OverloadedBlaster.cs index aee58e0fc0..509277d994 100644 --- a/Items/Weapons/Ranged/OverloadedBlaster.cs +++ b/Items/Weapons/Ranged/OverloadedBlaster.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/P90.cs b/Items/Weapons/Ranged/P90.cs index 377f6af761..0ffc14bb2c 100644 --- a/Items/Weapons/Ranged/P90.cs +++ b/Items/Weapons/Ranged/P90.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item11 with { Volume = 0.6f }; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/PearlGod.cs b/Items/Weapons/Ranged/PearlGod.cs index 0687c8cc4b..6ef984f96e 100644 --- a/Items/Weapons/Ranged/PearlGod.cs +++ b/Items/Weapons/Ranged/PearlGod.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item41; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/PestilentDefiler.cs b/Items/Weapons/Ranged/PestilentDefiler.cs index 8bc3453ccb..7abf74ebcb 100644 --- a/Items/Weapons/Ranged/PestilentDefiler.cs +++ b/Items/Weapons/Ranged/PestilentDefiler.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 9.5f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item40; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/PlagueTaintedSMG.cs b/Items/Weapons/Ranged/PlagueTaintedSMG.cs index 78a9e0c001..1eb3e132a5 100644 --- a/Items/Weapons/Ranged/PlagueTaintedSMG.cs +++ b/Items/Weapons/Ranged/PlagueTaintedSMG.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; Item.UseSound = SoundID.Item11; diff --git a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs index 09b3db5ea1..b66a15f653 100644 --- a/Items/Weapons/Ranged/PlanetaryAnnihilation.cs +++ b/Items/Weapons/Ranged/PlanetaryAnnihilation.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item75; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/PolarisParrotfish.cs b/Items/Weapons/Ranged/PolarisParrotfish.cs index 2b1b5835d1..45db5d8234 100644 --- a/Items/Weapons/Ranged/PolarisParrotfish.cs +++ b/Items/Weapons/Ranged/PolarisParrotfish.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = null; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs b/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs index e67d7dc081..a1645ba6c6 100644 --- a/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs +++ b/Items/Weapons/Ranged/PridefulHuntersPlanarRipper.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Bullet; Item.shootSpeed = 15f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/PristineFury.cs b/Items/Weapons/Ranged/PristineFury.cs index 70706aad46..056f567798 100644 --- a/Items/Weapons/Ranged/PristineFury.cs +++ b/Items/Weapons/Ranged/PristineFury.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Gel; Item.consumeAmmoOnFirstShotOnly = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Ranged/Pumpler.cs b/Items/Weapons/Ranged/Pumpler.cs index d8c742135b..bf87eb6146 100644 --- a/Items/Weapons/Ranged/Pumpler.cs +++ b/Items/Weapons/Ranged/Pumpler.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.25f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.noUseGraphic = true; Item.UseSound = SoundID.Item20; diff --git a/Items/Weapons/Ranged/RealmRavager.cs b/Items/Weapons/Ranged/RealmRavager.cs index 0252e2cf02..2f0bbf6805 100644 --- a/Items/Weapons/Ranged/RealmRavager.cs +++ b/Items/Weapons/Ranged/RealmRavager.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item38; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ReedBlowgun.cs b/Items/Weapons/Ranged/ReedBlowgun.cs index ac9c75de25..fa3902328f 100644 --- a/Items/Weapons/Ranged/ReedBlowgun.cs +++ b/Items/Weapons/Ranged/ReedBlowgun.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.holdStyle = 16; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = null; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/RubicoPrime.cs b/Items/Weapons/Ranged/RubicoPrime.cs index 632a59ffa1..01025b4751 100644 --- a/Items/Weapons/Ranged/RubicoPrime.cs +++ b/Items/Weapons/Ranged/RubicoPrime.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 12f; Item.useAmmo = AmmoID.Bullet; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/SandstormGun.cs b/Items/Weapons/Ranged/SandstormGun.cs index 90c6812bb7..0a5727550b 100644 --- a/Items/Weapons/Ranged/SandstormGun.cs +++ b/Items/Weapons/Ranged/SandstormGun.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/ScorchedEarth.cs b/Items/Weapons/Ranged/ScorchedEarth.cs index 01ee573e89..1a71fcc78e 100644 --- a/Items/Weapons/Ranged/ScorchedEarth.cs +++ b/Items/Weapons/Ranged/ScorchedEarth.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8.7f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.autoReuse = true; Item.shootSpeed = 12.6f; diff --git a/Items/Weapons/Ranged/Scorpio.cs b/Items/Weapons/Ranged/Scorpio.cs index ca2d7a0803..3f01345339 100644 --- a/Items/Weapons/Ranged/Scorpio.cs +++ b/Items/Weapons/Ranged/Scorpio.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.channel = true; Item.noUseGraphic = true; Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.9f, PitchVariance = 0.1f }; diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 100044db41..7c1dc1426b 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index f2094ebd3d..c714e4e168 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Ranged/SepticSkewer.cs b/Items/Weapons/Ranged/SepticSkewer.cs index a9141e778d..739a0214ff 100644 --- a/Items/Weapons/Ranged/SepticSkewer.cs +++ b/Items/Weapons/Ranged/SepticSkewer.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 20f; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().canFirePointBlankShots = true; } diff --git a/Items/Weapons/Ranged/Shadethrower.cs b/Items/Weapons/Ranged/Shadethrower.cs index 782d5885a3..a212cfe9d1 100644 --- a/Items/Weapons/Ranged/Shadethrower.cs +++ b/Items/Weapons/Ranged/Shadethrower.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 1.5f; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/Shellshooter.cs b/Items/Weapons/Ranged/Shellshooter.cs index c025c7af6b..bca4b94f92 100644 --- a/Items/Weapons/Ranged/Shellshooter.cs +++ b/Items/Weapons/Ranged/Shellshooter.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Shredder.cs b/Items/Weapons/Ranged/Shredder.cs index ee0c61e05f..6665770842 100644 --- a/Items/Weapons/Ranged/Shredder.cs +++ b/Items/Weapons/Ranged/Shredder.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item31; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Shroomer.cs b/Items/Weapons/Ranged/Shroomer.cs index 8275492187..4d103f929b 100644 --- a/Items/Weapons/Ranged/Shroomer.cs +++ b/Items/Weapons/Ranged/Shroomer.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 9.75f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item40; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/SlagMagnum.cs b/Items/Weapons/Ranged/SlagMagnum.cs index 99a365dd4a..4005da80e6 100644 --- a/Items/Weapons/Ranged/SlagMagnum.cs +++ b/Items/Weapons/Ranged/SlagMagnum.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item41; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/SomaPrime.cs b/Items/Weapons/Ranged/SomaPrime.cs index 7d4ded63b8..e4723469c2 100644 --- a/Items/Weapons/Ranged/SomaPrime.cs +++ b/Items/Weapons/Ranged/SomaPrime.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 9f; Item.useAmmo = AmmoID.Bullet; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/SparkSpreader.cs b/Items/Weapons/Ranged/SparkSpreader.cs index 075f91625e..8b292401c2 100644 --- a/Items/Weapons/Ranged/SparkSpreader.cs +++ b/Items/Weapons/Ranged/SparkSpreader.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = SoundID.Item34; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; } diff --git a/Items/Weapons/Ranged/SpectralstormCannon.cs b/Items/Weapons/Ranged/SpectralstormCannon.cs index 0f1ffe8447..fc161fa028 100644 --- a/Items/Weapons/Ranged/SpectralstormCannon.cs +++ b/Items/Weapons/Ranged/SpectralstormCannon.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 1.5f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/SpeedBlaster.cs b/Items/Weapons/Ranged/SpeedBlaster.cs index 536d7a6f7a..83a303c0bb 100644 --- a/Items/Weapons/Ranged/SpeedBlaster.cs +++ b/Items/Weapons/Ranged/SpeedBlaster.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = Shot; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Spyker.cs b/Items/Weapons/Ranged/Spyker.cs index fdb04ef671..52c0aa0e0a 100644 --- a/Items/Weapons/Ranged/Spyker.cs +++ b/Items/Weapons/Ranged/Spyker.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 6f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item108; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Starfleet.cs b/Items/Weapons/Ranged/Starfleet.cs index 3055bb0d24..debf9c5790 100644 --- a/Items/Weapons/Ranged/Starfleet.cs +++ b/Items/Weapons/Ranged/Starfleet.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 15f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item92; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/StellarCannon.cs b/Items/Weapons/Ranged/StellarCannon.cs index 2b0b81bf28..c35aae9dab 100644 --- a/Items/Weapons/Ranged/StellarCannon.cs +++ b/Items/Weapons/Ranged/StellarCannon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item92; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/StormDragoon.cs b/Items/Weapons/Ranged/StormDragoon.cs index 0cbf543473..9e9c0301dc 100644 --- a/Items/Weapons/Ranged/StormDragoon.cs +++ b/Items/Weapons/Ranged/StormDragoon.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item31; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/StormSurge.cs b/Items/Weapons/Ranged/StormSurge.cs index fd88ef871d..a55535b3a7 100644 --- a/Items/Weapons/Ranged/StormSurge.cs +++ b/Items/Weapons/Ranged/StormSurge.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 5f; Item.UseSound = SoundID.Item122; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.autoReuse = true; //GRRRRRRRRRRRRRRRR false begone Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/Svantechnical.cs b/Items/Weapons/Ranged/Svantechnical.cs index cb687cfd87..efb03041fc 100644 --- a/Items/Weapons/Ranged/Svantechnical.cs +++ b/Items/Weapons/Ranged/Svantechnical.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Ranged/TelluricGlare.cs b/Items/Weapons/Ranged/TelluricGlare.cs index 2cad0011e1..95485b137b 100644 --- a/Items/Weapons/Ranged/TelluricGlare.cs +++ b/Items/Weapons/Ranged/TelluricGlare.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item102; diff --git a/Items/Weapons/Ranged/TerraFlameburster.cs b/Items/Weapons/Ranged/TerraFlameburster.cs index bc37feb1cd..c75a9dbec1 100644 --- a/Items/Weapons/Ranged/TerraFlameburster.cs +++ b/Items/Weapons/Ranged/TerraFlameburster.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noUseGraphic = true; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Ranged/TheBallista.cs b/Items/Weapons/Ranged/TheBallista.cs index 7fcc04f132..f6219b4d3e 100644 --- a/Items/Weapons/Ranged/TheBallista.cs +++ b/Items/Weapons/Ranged/TheBallista.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 8f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/TheHive.cs b/Items/Weapons/Ranged/TheHive.cs index 059479309e..2092626a5c 100644 --- a/Items/Weapons/Ranged/TheHive.cs +++ b/Items/Weapons/Ranged/TheHive.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.channel = true; Item.noUseGraphic = true; Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = new SoundStyle("CalamityMod/Sounds/Item/DudFire") with { Volume = .4f, Pitch = -.9f, PitchVariance = 0.1f }; diff --git a/Items/Weapons/Ranged/TheMaelstrom.cs b/Items/Weapons/Ranged/TheMaelstrom.cs index ffe2f5acd6..f00ed388bd 100644 --- a/Items/Weapons/Ranged/TheMaelstrom.cs +++ b/Items/Weapons/Ranged/TheMaelstrom.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAnimation = 45; Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Ranged/ThePack.cs b/Items/Weapons/Ranged/ThePack.cs index 047bd4aa2e..97cbdb97e5 100644 --- a/Items/Weapons/Ranged/ThePack.cs +++ b/Items/Weapons/Ranged/ThePack.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shoot = ModContent.ProjectileType(); Item.useAmmo = AmmoID.Rocket; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Ranged/TheSevensStriker.cs b/Items/Weapons/Ranged/TheSevensStriker.cs index 51215e2da1..745e017d1c 100644 --- a/Items/Weapons/Ranged/TheSevensStriker.cs +++ b/Items/Weapons/Ranged/TheSevensStriker.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Coin; Item.shootSpeed = 24f; Item.shoot = ProjectileID.PlatinumCoin; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Ranged/TheStorm.cs b/Items/Weapons/Ranged/TheStorm.cs index 761011f7c7..b9fd74ee14 100644 --- a/Items/Weapons/Ranged/TheStorm.cs +++ b/Items/Weapons/Ranged/TheStorm.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item122; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/TitaniumRailgun.cs b/Items/Weapons/Ranged/TitaniumRailgun.cs index ed2a5d2218..02fd415f1e 100644 --- a/Items/Weapons/Ranged/TitaniumRailgun.cs +++ b/Items/Weapons/Ranged/TitaniumRailgun.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.channel = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item77 with { Volume = SoundID.Item77.Volume * 0.7f }; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/Toxibow.cs b/Items/Weapons/Ranged/Toxibow.cs index 19a04dc081..a9c20c62dc 100644 --- a/Items/Weapons/Ranged/Toxibow.cs +++ b/Items/Weapons/Ranged/Toxibow.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item5; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/TyrannysEnd.cs b/Items/Weapons/Ranged/TyrannysEnd.cs index 81b6545f39..2dec620a10 100644 --- a/Items/Weapons/Ranged/TyrannysEnd.cs +++ b/Items/Weapons/Ranged/TyrannysEnd.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.UseSound = CommonCalamitySounds.LargeWeaponFireSound; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/Ultima.cs b/Items/Weapons/Ranged/Ultima.cs index 83b486303c..8337f72a27 100644 --- a/Items/Weapons/Ranged/Ultima.cs +++ b/Items/Weapons/Ranged/Ultima.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTurn = false; Item.autoReuse = true; Item.noUseGraphic = true; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/UniversalGenesis.cs b/Items/Weapons/Ranged/UniversalGenesis.cs index 820c63b376..0526d67ad4 100644 --- a/Items/Weapons/Ranged/UniversalGenesis.cs +++ b/Items/Weapons/Ranged/UniversalGenesis.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.noMelee = true; Item.UseSound = SoundID.Item38; Item.useStyle = ItemUseStyleID.Shoot; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/Voidragon.cs b/Items/Weapons/Ranged/Voidragon.cs index 0b11e67705..d1077a7bd5 100644 --- a/Items/Weapons/Ranged/Voidragon.cs +++ b/Items/Weapons/Ranged/Voidragon.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.shootSpeed = 18f; Item.useAmmo = AmmoID.Bullet; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; Item.Calamity().canFirePointBlankShots = true; diff --git a/Items/Weapons/Ranged/Vortexpopper.cs b/Items/Weapons/Ranged/Vortexpopper.cs index 30b19dcbe6..fdf74ca9a2 100644 --- a/Items/Weapons/Ranged/Vortexpopper.cs +++ b/Items/Weapons/Ranged/Vortexpopper.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 3.25f; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.UseSound = SoundID.Item95; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/WulfrumBlunderbuss.cs b/Items/Weapons/Ranged/WulfrumBlunderbuss.cs index 3ea72c0bd1..69d9acf480 100644 --- a/Items/Weapons/Ranged/WulfrumBlunderbuss.cs +++ b/Items/Weapons/Ranged/WulfrumBlunderbuss.cs @@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = ShootSound; Item.autoReuse = false; diff --git a/Items/Weapons/Rogue/AcidicRainBarrel.cs b/Items/Weapons/Rogue/AcidicRainBarrel.cs index 62d75271a2..162324b036 100644 --- a/Items/Weapons/Rogue/AcidicRainBarrel.cs +++ b/Items/Weapons/Rogue/AcidicRainBarrel.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; diff --git a/Items/Weapons/Rogue/AlphaVirus.cs b/Items/Weapons/Rogue/AlphaVirus.cs index ee22cf22e4..2cedc925c2 100644 --- a/Items/Weapons/Rogue/AlphaVirus.cs +++ b/Items/Weapons/Rogue/AlphaVirus.cs @@ -25,10 +25,10 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Purple; Item.DamageType = RogueDamageClass.Instance; } diff --git a/Items/Weapons/Rogue/Apoctolith.cs b/Items/Weapons/Rogue/Apoctolith.cs index 9f54c2c43e..a2227f99dc 100644 --- a/Items/Weapons/Rogue/Apoctolith.cs +++ b/Items/Weapons/Rogue/Apoctolith.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 26; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 10f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.noMelee = true; diff --git a/Items/Weapons/Rogue/AshenStalactite.cs b/Items/Weapons/Rogue/AshenStalactite.cs index 848bcbf503..50d0e9b31b 100644 --- a/Items/Weapons/Rogue/AshenStalactite.cs +++ b/Items/Weapons/Rogue/AshenStalactite.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice / 4; // This buy price is intentionally reduced due to how common this item is. Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/AuroradicalThrow.cs b/Items/Weapons/Rogue/AuroradicalThrow.cs index 77de367fbb..3bc3e7e79c 100644 --- a/Items/Weapons/Rogue/AuroradicalThrow.cs +++ b/Items/Weapons/Rogue/AuroradicalThrow.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6f; Item.UseSound = SoundID.Item117; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/BallisticPoisonBomb.cs b/Items/Weapons/Rogue/BallisticPoisonBomb.cs index 3a025b0eec..8e0c21d98a 100644 --- a/Items/Weapons/Rogue/BallisticPoisonBomb.cs +++ b/Items/Weapons/Rogue/BallisticPoisonBomb.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/BlastBarrel.cs b/Items/Weapons/Rogue/BlastBarrel.cs index 819e65bdfa..5eecae653c 100644 --- a/Items/Weapons/Rogue/BlastBarrel.cs +++ b/Items/Weapons/Rogue/BlastBarrel.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; //2 gold 40 silver sellprice + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/BlazingStar.cs b/Items/Weapons/Rogue/BlazingStar.cs index 9c7ff1b0fd..871115b9eb 100644 --- a/Items/Weapons/Rogue/BlazingStar.cs +++ b/Items/Weapons/Rogue/BlazingStar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 15; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BloodsoakedCrasher.cs b/Items/Weapons/Rogue/BloodsoakedCrasher.cs index 4e1729a61e..f2387e8a45 100644 --- a/Items/Weapons/Rogue/BloodsoakedCrasher.cs +++ b/Items/Weapons/Rogue/BloodsoakedCrasher.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/BouncingEyeball.cs b/Items/Weapons/Rogue/BouncingEyeball.cs index 15fe25568a..8ccc7e6781 100644 --- a/Items/Weapons/Rogue/BouncingEyeball.cs +++ b/Items/Weapons/Rogue/BouncingEyeball.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 3.5f; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.DamageType = RogueDamageClass.Instance; Item.noUseGraphic = true; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/BrackishFlask.cs b/Items/Weapons/Rogue/BrackishFlask.cs index 5f241102df..cb85473023 100644 --- a/Items/Weapons/Rogue/BrackishFlask.cs +++ b/Items/Weapons/Rogue/BrackishFlask.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6.5f; Item.UseSound = SoundID.Item106; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/Brimblade.cs b/Items/Weapons/Rogue/Brimblade.cs index 88c0e0e807..a6cd12bcf6 100644 --- a/Items/Weapons/Rogue/Brimblade.cs +++ b/Items/Weapons/Rogue/Brimblade.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 18; Item.knockBack = 6.5f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/BurningStrife.cs b/Items/Weapons/Rogue/BurningStrife.cs index 89e046fd1f..592522b026 100644 --- a/Items/Weapons/Rogue/BurningStrife.cs +++ b/Items/Weapons/Rogue/BurningStrife.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.height = 28; Item.UseSound = SoundID.Item1; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.autoReuse = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/CelestialReaper.cs b/Items/Weapons/Rogue/CelestialReaper.cs index 5e1021b3ac..946d0cf61e 100644 --- a/Items/Weapons/Rogue/CelestialReaper.cs +++ b/Items/Weapons/Rogue/CelestialReaper.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item71; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/Celestus.cs b/Items/Weapons/Rogue/Celestus.cs index 55efc42dec..5c1696590e 100644 --- a/Items/Weapons/Rogue/Celestus.cs +++ b/Items/Weapons/Rogue/Celestus.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.autoReuse = true; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/Cinquedea.cs b/Items/Weapons/Rogue/Cinquedea.cs index 11bed87be1..ff5b5ab84a 100644 --- a/Items/Weapons/Rogue/Cinquedea.cs +++ b/Items/Weapons/Rogue/Cinquedea.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.DamageType = RogueDamageClass.Instance; } diff --git a/Items/Weapons/Rogue/ConsecratedWater.cs b/Items/Weapons/Rogue/ConsecratedWater.cs index 8811ff1354..d0dc2db3e9 100644 --- a/Items/Weapons/Rogue/ConsecratedWater.cs +++ b/Items/Weapons/Rogue/ConsecratedWater.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item106; Item.autoReuse = true; diff --git a/Items/Weapons/Rogue/ContaminatedBile.cs b/Items/Weapons/Rogue/ContaminatedBile.cs index 7235e1f4bc..a4fee1163e 100644 --- a/Items/Weapons/Rogue/ContaminatedBile.cs +++ b/Items/Weapons/Rogue/ContaminatedBile.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4.5f; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.UseSound = SoundID.Item106; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/CosmicKunai.cs b/Items/Weapons/Rogue/CosmicKunai.cs index 1bab5234b9..39a5b4a75d 100644 --- a/Items/Weapons/Rogue/CosmicKunai.cs +++ b/Items/Weapons/Rogue/CosmicKunai.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item109; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 28f; diff --git a/Items/Weapons/Rogue/CraniumSmasher.cs b/Items/Weapons/Rogue/CraniumSmasher.cs index e28fd910a8..f85e68d5dd 100644 --- a/Items/Weapons/Rogue/CraniumSmasher.cs +++ b/Items/Weapons/Rogue/CraniumSmasher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 15; Item.knockBack = 4f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; diff --git a/Items/Weapons/Rogue/CrushsawCrasher.cs b/Items/Weapons/Rogue/CrushsawCrasher.cs index eb748b79bb..418c4dc373 100644 --- a/Items/Weapons/Rogue/CrushsawCrasher.cs +++ b/Items/Weapons/Rogue/CrushsawCrasher.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 7f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13.5f; diff --git a/Items/Weapons/Rogue/Crystalline.cs b/Items/Weapons/Rogue/Crystalline.cs index 80e0650595..41d9c078e2 100644 --- a/Items/Weapons/Rogue/Crystalline.cs +++ b/Items/Weapons/Rogue/Crystalline.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 3f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/CursedDagger.cs b/Items/Weapons/Rogue/CursedDagger.cs index 26f985f185..289fc8c55c 100644 --- a/Items/Weapons/Rogue/CursedDagger.cs +++ b/Items/Weapons/Rogue/CursedDagger.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.DamageType = RogueDamageClass.Instance; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = ThrowSound; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.autoReuse = true; Item.noMelee = true; diff --git a/Items/Weapons/Rogue/DeepSeaDumbbell.cs b/Items/Weapons/Rogue/DeepSeaDumbbell.cs index 0cb63826da..b16f478362 100644 --- a/Items/Weapons/Rogue/DeepSeaDumbbell.cs +++ b/Items/Weapons/Rogue/DeepSeaDumbbell.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 20f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Rogue/DeepWounder.cs b/Items/Weapons/Rogue/DeepWounder.cs index a28357d962..17b75bd37d 100644 --- a/Items/Weapons/Rogue/DeepWounder.cs +++ b/Items/Weapons/Rogue/DeepWounder.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.autoReuse = true; Item.maxStack = 1; Item.rare = ItemRarityID.Lime; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/DesecratedWater.cs b/Items/Weapons/Rogue/DesecratedWater.cs index 386e06ff3a..65c2008659 100644 --- a/Items/Weapons/Rogue/DesecratedWater.cs +++ b/Items/Weapons/Rogue/DesecratedWater.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item106; Item.autoReuse = true; diff --git a/Items/Weapons/Rogue/DukesDecapitator.cs b/Items/Weapons/Rogue/DukesDecapitator.cs index 9ee118c39d..729455366d 100644 --- a/Items/Weapons/Rogue/DukesDecapitator.cs +++ b/Items/Weapons/Rogue/DukesDecapitator.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 30; Item.knockBack = 2f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/DuststormInABottle.cs b/Items/Weapons/Rogue/DuststormInABottle.cs index d063c61152..cb31651c19 100644 --- a/Items/Weapons/Rogue/DuststormInABottle.cs +++ b/Items/Weapons/Rogue/DuststormInABottle.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 4f; Item.UseSound = SoundID.Item106; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; diff --git a/Items/Weapons/Rogue/DynamicPursuer.cs b/Items/Weapons/Rogue/DynamicPursuer.cs index aa0fb4e1d5..b1dfd66b28 100644 --- a/Items/Weapons/Rogue/DynamicPursuer.cs +++ b/Items/Weapons/Rogue/DynamicPursuer.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTurn = false; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/EclipsesFall.cs b/Items/Weapons/Rogue/EclipsesFall.cs index aecb31b016..e0c8ca091d 100644 --- a/Items/Weapons/Rogue/EclipsesFall.cs +++ b/Items/Weapons/Rogue/EclipsesFall.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = true; Item.noUseGraphic = true; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/ElementalDisk.cs b/Items/Weapons/Rogue/ElementalDisk.cs index 7739292c28..19d7497731 100644 --- a/Items/Weapons/Rogue/ElementalDisk.cs +++ b/Items/Weapons/Rogue/ElementalDisk.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 16; Item.knockBack = 9f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/EnchantedAxe.cs b/Items/Weapons/Rogue/EnchantedAxe.cs index 1bb8ed4329..d4f014dab9 100644 --- a/Items/Weapons/Rogue/EnchantedAxe.cs +++ b/Items/Weapons/Rogue/EnchantedAxe.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.maxStack = 1; Item.value = 1000; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/EpidemicShredder.cs b/Items/Weapons/Rogue/EpidemicShredder.cs index 49473dcacb..4e755faed2 100644 --- a/Items/Weapons/Rogue/EpidemicShredder.cs +++ b/Items/Weapons/Rogue/EpidemicShredder.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4.5f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 18f; diff --git a/Items/Weapons/Rogue/Equanimity.cs b/Items/Weapons/Rogue/Equanimity.cs index 33234037ed..d05c0a4635 100644 --- a/Items/Weapons/Rogue/Equanimity.cs +++ b/Items/Weapons/Rogue/Equanimity.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; diff --git a/Items/Weapons/Rogue/Eradicator.cs b/Items/Weapons/Rogue/Eradicator.cs index 6c17c89cf7..7d6589d230 100644 --- a/Items/Weapons/Rogue/Eradicator.cs +++ b/Items/Weapons/Rogue/Eradicator.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 33; Item.knockBack = 7f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = Speed; diff --git a/Items/Weapons/Rogue/Exorcism.cs b/Items/Weapons/Rogue/Exorcism.cs index 2760755b8b..0ae4de8476 100644 --- a/Items/Weapons/Rogue/Exorcism.cs +++ b/Items/Weapons/Rogue/Exorcism.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/FishboneBoomerang.cs b/Items/Weapons/Rogue/FishboneBoomerang.cs index c0e2a21c43..a6d0facb12 100644 --- a/Items/Weapons/Rogue/FishboneBoomerang.cs +++ b/Items/Weapons/Rogue/FishboneBoomerang.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 15; Item.knockBack = 5.5f; Item.UseSound = null; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 3f; diff --git a/Items/Weapons/Rogue/FrostcrushValari.cs b/Items/Weapons/Rogue/FrostcrushValari.cs index 9d27d65a10..4b41108386 100644 --- a/Items/Weapons/Rogue/FrostcrushValari.cs +++ b/Items/Weapons/Rogue/FrostcrushValari.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.damage = 89; Item.knockBack = 12; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.useTime = 21; Item.useAnimation = 21; diff --git a/Items/Weapons/Rogue/GacruxianMollusk.cs b/Items/Weapons/Rogue/GacruxianMollusk.cs index e40cd8c200..eefd917f1f 100644 --- a/Items/Weapons/Rogue/GacruxianMollusk.cs +++ b/Items/Weapons/Rogue/GacruxianMollusk.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = Speed; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; } diff --git a/Items/Weapons/Rogue/GhoulishGouger.cs b/Items/Weapons/Rogue/GhoulishGouger.cs index 3aa60549dd..e3b26d6f38 100644 --- a/Items/Weapons/Rogue/GhoulishGouger.cs +++ b/Items/Weapons/Rogue/GhoulishGouger.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 16f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/GildedDagger.cs b/Items/Weapons/Rogue/GildedDagger.cs index 5b486949bc..b111c30627 100644 --- a/Items/Weapons/Rogue/GildedDagger.cs +++ b/Items/Weapons/Rogue/GildedDagger.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/Glaive.cs b/Items/Weapons/Rogue/Glaive.cs index da562f247c..b76b2ab6d9 100644 --- a/Items/Weapons/Rogue/Glaive.cs +++ b/Items/Weapons/Rogue/Glaive.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 15; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 3; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/GleamingDagger.cs b/Items/Weapons/Rogue/GleamingDagger.cs index 7fa309fd00..0677be07ca 100644 --- a/Items/Weapons/Rogue/GleamingDagger.cs +++ b/Items/Weapons/Rogue/GleamingDagger.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/GraveGrimreaver.cs b/Items/Weapons/Rogue/GraveGrimreaver.cs index 35c8182181..9d1664b32b 100644 --- a/Items/Weapons/Rogue/GraveGrimreaver.cs +++ b/Items/Weapons/Rogue/GraveGrimreaver.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16.5f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Rogue/HeavenfallenStardisk.cs b/Items/Weapons/Rogue/HeavenfallenStardisk.cs index fb8c1a5f56..feedf4ed5c 100644 --- a/Items/Weapons/Rogue/HeavenfallenStardisk.cs +++ b/Items/Weapons/Rogue/HeavenfallenStardisk.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/HellsSun.cs b/Items/Weapons/Rogue/HellsSun.cs index 29cefb43b0..9d23b85f76 100644 --- a/Items/Weapons/Rogue/HellsSun.cs +++ b/Items/Weapons/Rogue/HellsSun.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 15; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 5; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Rogue/Icebreaker.cs b/Items/Weapons/Rogue/Icebreaker.cs index 18052276e3..2e7bee34db 100644 --- a/Items/Weapons/Rogue/Icebreaker.cs +++ b/Items/Weapons/Rogue/Icebreaker.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 14; Item.knockBack = 6.75f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Rogue/IchorSpear.cs b/Items/Weapons/Rogue/IchorSpear.cs index 4f36181c99..251e1e2d00 100644 --- a/Items/Weapons/Rogue/IchorSpear.cs +++ b/Items/Weapons/Rogue/IchorSpear.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 7f; Item.UseSound = ThrowSound; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 17f; diff --git a/Items/Weapons/Rogue/InfestedClawmerang.cs b/Items/Weapons/Rogue/InfestedClawmerang.cs index 46e68dd5c2..829c59c962 100644 --- a/Items/Weapons/Rogue/InfestedClawmerang.cs +++ b/Items/Weapons/Rogue/InfestedClawmerang.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/JawsOfOblivion.cs b/Items/Weapons/Rogue/JawsOfOblivion.cs index 053121059c..0d32fde57a 100644 --- a/Items/Weapons/Rogue/JawsOfOblivion.cs +++ b/Items/Weapons/Rogue/JawsOfOblivion.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 25f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/KelvinCatalyst.cs b/Items/Weapons/Rogue/KelvinCatalyst.cs index 472f41febd..4f5b30cf01 100644 --- a/Items/Weapons/Rogue/KelvinCatalyst.cs +++ b/Items/Weapons/Rogue/KelvinCatalyst.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/Kylie.cs b/Items/Weapons/Rogue/Kylie.cs index 94d2d1f6e4..8184726764 100644 --- a/Items/Weapons/Rogue/Kylie.cs +++ b/Items/Weapons/Rogue/Kylie.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.damage = 63; Item.knockBack = 12; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.useTime = 25; Item.useAnimation = 25; diff --git a/Items/Weapons/Rogue/LeonidProgenitor.cs b/Items/Weapons/Rogue/LeonidProgenitor.cs index a46788ff0b..46d509b1ad 100644 --- a/Items/Weapons/Rogue/LeonidProgenitor.cs +++ b/Items/Weapons/Rogue/LeonidProgenitor.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.UseSound = SoundID.Item61; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Rogue/LeviathanTeeth.cs b/Items/Weapons/Rogue/LeviathanTeeth.cs index aaa4d17b03..f013288b68 100644 --- a/Items/Weapons/Rogue/LeviathanTeeth.cs +++ b/Items/Weapons/Rogue/LeviathanTeeth.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/Lionfish.cs b/Items/Weapons/Rogue/Lionfish.cs index 7ef415c25b..8d692e8cb1 100644 --- a/Items/Weapons/Rogue/Lionfish.cs +++ b/Items/Weapons/Rogue/Lionfish.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 2.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/Malachite.cs b/Items/Weapons/Rogue/Malachite.cs index bff2398081..30060d64a7 100644 --- a/Items/Weapons/Rogue/Malachite.cs +++ b/Items/Weapons/Rogue/Malachite.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 10f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; } diff --git a/Items/Weapons/Rogue/MangroveChakram.cs b/Items/Weapons/Rogue/MangroveChakram.cs index 91197691c1..2ffec7ef94 100644 --- a/Items/Weapons/Rogue/MangroveChakram.cs +++ b/Items/Weapons/Rogue/MangroveChakram.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 14; Item.knockBack = 7.5f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Rogue/MetalMonstrosity.cs b/Items/Weapons/Rogue/MetalMonstrosity.cs index 405b89eb0d..f0f50260f1 100644 --- a/Items/Weapons/Rogue/MetalMonstrosity.cs +++ b/Items/Weapons/Rogue/MetalMonstrosity.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = true; Item.UseSound = SoundID.Item1; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.damage = 30; Item.useAnimation = 40; diff --git a/Items/Weapons/Rogue/MeteorFist.cs b/Items/Weapons/Rogue/MeteorFist.cs index b220e68740..d1b4b08094 100644 --- a/Items/Weapons/Rogue/MeteorFist.cs +++ b/Items/Weapons/Rogue/MeteorFist.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5.75f; Item.UseSound = SoundID.Item20; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/Rogue/MoltenAmputator.cs b/Items/Weapons/Rogue/MoltenAmputator.cs index 9d9a1a8078..4f81f42ffc 100644 --- a/Items/Weapons/Rogue/MoltenAmputator.cs +++ b/Items/Weapons/Rogue/MoltenAmputator.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 18; Item.knockBack = 9f; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = Speed; diff --git a/Items/Weapons/Rogue/Mycoroot.cs b/Items/Weapons/Rogue/Mycoroot.cs index ac8559c46f..dd6856efe8 100644 --- a/Items/Weapons/Rogue/Mycoroot.cs +++ b/Items/Weapons/Rogue/Mycoroot.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/NanoblackReaper.cs b/Items/Weapons/Rogue/NanoblackReaper.cs index 10367f8607..cc1a2987ba 100644 --- a/Items/Weapons/Rogue/NanoblackReaper.cs +++ b/Items/Weapons/Rogue/NanoblackReaper.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item18; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; diff --git a/Items/Weapons/Rogue/NightsGaze.cs b/Items/Weapons/Rogue/NightsGaze.cs index 696745f1e5..4b05fd1732 100644 --- a/Items/Weapons/Rogue/NightsGaze.cs +++ b/Items/Weapons/Rogue/NightsGaze.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.maxStack = 1; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 30f; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.DamageType = RogueDamageClass.Instance; } diff --git a/Items/Weapons/Rogue/Nychthemeron.cs b/Items/Weapons/Rogue/Nychthemeron.cs index 336cdc6863..8cf3c076fb 100644 --- a/Items/Weapons/Rogue/Nychthemeron.cs +++ b/Items/Weapons/Rogue/Nychthemeron.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 1f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 6f; diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index d88753b6c1..c00e7059f6 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; } diff --git a/Items/Weapons/Rogue/PoisonPack.cs b/Items/Weapons/Rogue/PoisonPack.cs index bf836919b4..858e9aff61 100644 --- a/Items/Weapons/Rogue/PoisonPack.cs +++ b/Items/Weapons/Rogue/PoisonPack.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 19; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = baseKnockback; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/Prismalline.cs b/Items/Weapons/Rogue/Prismalline.cs index 555793eb6e..140007da3d 100644 --- a/Items/Weapons/Rogue/Prismalline.cs +++ b/Items/Weapons/Rogue/Prismalline.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; diff --git a/Items/Weapons/Rogue/ProfanedPartisan.cs b/Items/Weapons/Rogue/ProfanedPartisan.cs index ac64b0d2f5..1a0b20520d 100644 --- a/Items/Weapons/Rogue/ProfanedPartisan.cs +++ b/Items/Weapons/Rogue/ProfanedPartisan.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 18; Item.useAnimation = 18; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/RadiantStar.cs b/Items/Weapons/Rogue/RadiantStar.cs index 8410b1f9e1..8fafb6889e 100644 --- a/Items/Weapons/Rogue/RadiantStar.cs +++ b/Items/Weapons/Rogue/RadiantStar.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.rare = ItemRarityID.Cyan; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 20f; diff --git a/Items/Weapons/Rogue/RealityRupture.cs b/Items/Weapons/Rogue/RealityRupture.cs index 3deca20ee6..27b1129ff6 100644 --- a/Items/Weapons/Rogue/RealityRupture.cs +++ b/Items/Weapons/Rogue/RealityRupture.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 9f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/RegulusRiot.cs b/Items/Weapons/Rogue/RegulusRiot.cs index 5afc6c5ffb..ce2b201f5e 100644 --- a/Items/Weapons/Rogue/RegulusRiot.cs +++ b/Items/Weapons/Rogue/RegulusRiot.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = true; Item.noUseGraphic = true; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.useTime = 26; Item.useAnimation = 26; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/SandDollar.cs b/Items/Weapons/Rogue/SandDollar.cs index e2ea8bafce..c7110b796b 100644 --- a/Items/Weapons/Rogue/SandDollar.cs +++ b/Items/Weapons/Rogue/SandDollar.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 3.5f; Item.autoReuse = true; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 14f; diff --git a/Items/Weapons/Rogue/Sandslasher.cs b/Items/Weapons/Rogue/Sandslasher.cs index 3d8e86d93a..84486e2e08 100644 --- a/Items/Weapons/Rogue/Sandslasher.cs +++ b/Items/Weapons/Rogue/Sandslasher.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Rogue/ScarletDevil.cs b/Items/Weapons/Rogue/ScarletDevil.cs index 17aa26466f..9d53380866 100644 --- a/Items/Weapons/Rogue/ScarletDevil.cs +++ b/Items/Weapons/Rogue/ScarletDevil.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 30f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Rogue/ScourgeoftheDesert.cs b/Items/Weapons/Rogue/ScourgeoftheDesert.cs index 52cb4e3a20..c39e7906bd 100644 --- a/Items/Weapons/Rogue/ScourgeoftheDesert.cs +++ b/Items/Weapons/Rogue/ScourgeoftheDesert.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 3.5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/ScourgeoftheSeas.cs b/Items/Weapons/Rogue/ScourgeoftheSeas.cs index 1a1e0d389a..73754f4fb0 100644 --- a/Items/Weapons/Rogue/ScourgeoftheSeas.cs +++ b/Items/Weapons/Rogue/ScourgeoftheSeas.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item1; Item.rare = ItemRarityID.Pink; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; } public override float StealthDamageMultiplier => 1.55f; diff --git a/Items/Weapons/Rogue/SeafoamBomb.cs b/Items/Weapons/Rogue/SeafoamBomb.cs index 80de21b4c3..84afb918e9 100644 --- a/Items/Weapons/Rogue/SeafoamBomb.cs +++ b/Items/Weapons/Rogue/SeafoamBomb.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 8f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 8f; diff --git a/Items/Weapons/Rogue/SealedSingularity.cs b/Items/Weapons/Rogue/SealedSingularity.cs index c59d05c494..9eb6db81d9 100644 --- a/Items/Weapons/Rogue/SealedSingularity.cs +++ b/Items/Weapons/Rogue/SealedSingularity.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = Item.noUseGraphic = true; Item.UseSound = SoundID.Item106; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Rogue/SearedPan.cs b/Items/Weapons/Rogue/SearedPan.cs index 4e2d6e41d0..411e55ba23 100644 --- a/Items/Weapons/Rogue/SearedPan.cs +++ b/Items/Weapons/Rogue/SearedPan.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useLimitPerAnimation = 1; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 15f; diff --git a/Items/Weapons/Rogue/ShatteredSun.cs b/Items/Weapons/Rogue/ShatteredSun.cs index d441ff6f37..a6c682cd9d 100644 --- a/Items/Weapons/Rogue/ShatteredSun.cs +++ b/Items/Weapons/Rogue/ShatteredSun.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 25f; diff --git a/Items/Weapons/Rogue/ShinobiBlade.cs b/Items/Weapons/Rogue/ShinobiBlade.cs index fdc448bb2a..deab1b3dc7 100644 --- a/Items/Weapons/Rogue/ShinobiBlade.cs +++ b/Items/Weapons/Rogue/ShinobiBlade.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/SkyStabber.cs b/Items/Weapons/Rogue/SkyStabber.cs index d7fa7bdb55..21446160b0 100644 --- a/Items/Weapons/Rogue/SkyStabber.cs +++ b/Items/Weapons/Rogue/SkyStabber.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useAnimation = 15; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = knockBack; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Rogue/SkyfinBombers.cs b/Items/Weapons/Rogue/SkyfinBombers.cs index 963e0814bd..f03534a050 100644 --- a/Items/Weapons/Rogue/SkyfinBombers.cs +++ b/Items/Weapons/Rogue/SkyfinBombers.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6.5f; Item.UseSound = SoundID.Item11; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/SlickCane.cs b/Items/Weapons/Rogue/SlickCane.cs index 8d09496521..09d437d088 100644 --- a/Items/Weapons/Rogue/SlickCane.cs +++ b/Items/Weapons/Rogue/SlickCane.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.DD2_GhastlyGlaivePierce; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 22f; diff --git a/Items/Weapons/Rogue/SnapClam.cs b/Items/Weapons/Rogue/SnapClam.cs index 88cdbfa297..31c3e263d9 100644 --- a/Items/Weapons/Rogue/SnapClam.cs +++ b/Items/Weapons/Rogue/SnapClam.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 3f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/SpearofDestiny.cs b/Items/Weapons/Rogue/SpearofDestiny.cs index c9ece8b9f0..292c1b9aef 100644 --- a/Items/Weapons/Rogue/SpearofDestiny.cs +++ b/Items/Weapons/Rogue/SpearofDestiny.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 2f; Item.UseSound = ThrowSound; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/SpearofPaleolith.cs b/Items/Weapons/Rogue/SpearofPaleolith.cs index 86a3661448..519c1c8cb2 100644 --- a/Items/Weapons/Rogue/SpearofPaleolith.cs +++ b/Items/Weapons/Rogue/SpearofPaleolith.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 6f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 35f; diff --git a/Items/Weapons/Rogue/SpentFuelContainer.cs b/Items/Weapons/Rogue/SpentFuelContainer.cs index 041c7e5d28..cb5c4c8ad0 100644 --- a/Items/Weapons/Rogue/SpentFuelContainer.cs +++ b/Items/Weapons/Rogue/SpentFuelContainer.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item106; Item.autoReuse = true; diff --git a/Items/Weapons/Rogue/StarofDestruction.cs b/Items/Weapons/Rogue/StarofDestruction.cs index d5235c412a..ea2e50ca8e 100644 --- a/Items/Weapons/Rogue/StarofDestruction.cs +++ b/Items/Weapons/Rogue/StarofDestruction.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 10f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5f; diff --git a/Items/Weapons/Rogue/StellarKnife.cs b/Items/Weapons/Rogue/StellarKnife.cs index 190c357465..38f8dc355d 100644 --- a/Items/Weapons/Rogue/StellarKnife.cs +++ b/Items/Weapons/Rogue/StellarKnife.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 4f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Rogue/StormfrontRazor.cs b/Items/Weapons/Rogue/StormfrontRazor.cs index e55d8b337f..cbfac2a18a 100644 --- a/Items/Weapons/Rogue/StormfrontRazor.cs +++ b/Items/Weapons/Rogue/StormfrontRazor.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Swing; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.useAnimation = 20; Item.useTime = 20; diff --git a/Items/Weapons/Rogue/Supernova.cs b/Items/Weapons/Rogue/Supernova.cs index d28468be3b..775fcbac13 100644 --- a/Items/Weapons/Rogue/Supernova.cs +++ b/Items/Weapons/Rogue/Supernova.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 18f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/TerrorTalons.cs b/Items/Weapons/Rogue/TerrorTalons.cs index 2c1e93c1e3..ae55c3601e 100644 --- a/Items/Weapons/Rogue/TerrorTalons.cs +++ b/Items/Weapons/Rogue/TerrorTalons.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 3f; Item.UseSound = SoundID.Item39; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10.5f; diff --git a/Items/Weapons/Rogue/TheFinalDawn.cs b/Items/Weapons/Rogue/TheFinalDawn.cs index 6480bf2ef8..45f45c9fe6 100644 --- a/Items/Weapons/Rogue/TheFinalDawn.cs +++ b/Items/Weapons/Rogue/TheFinalDawn.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 4; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Rogue/TheOldReaper.cs b/Items/Weapons/Rogue/TheOldReaper.cs index 6c4a547b44..dffec98bbb 100644 --- a/Items/Weapons/Rogue/TheOldReaper.cs +++ b/Items/Weapons/Rogue/TheOldReaper.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 16f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/TheSyringe.cs b/Items/Weapons/Rogue/TheSyringe.cs index 8f4f3a5cfc..0275281647 100644 --- a/Items/Weapons/Rogue/TheSyringe.cs +++ b/Items/Weapons/Rogue/TheSyringe.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noUseGraphic = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = Speed; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.DamageType = RogueDamageClass.Instance; } diff --git a/Items/Weapons/Rogue/TimeBolt.cs b/Items/Weapons/Rogue/TimeBolt.cs index 312444fdc0..35937393a0 100644 --- a/Items/Weapons/Rogue/TimeBolt.cs +++ b/Items/Weapons/Rogue/TimeBolt.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 4f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/TotalityBreakers.cs b/Items/Weapons/Rogue/TotalityBreakers.cs index ac72d39b52..d531ffe9ce 100644 --- a/Items/Weapons/Rogue/TotalityBreakers.cs +++ b/Items/Weapons/Rogue/TotalityBreakers.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item106; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/ToxicantTwister.cs b/Items/Weapons/Rogue/ToxicantTwister.cs index fc845b701b..d5dce99ce1 100644 --- a/Items/Weapons/Rogue/ToxicantTwister.cs +++ b/Items/Weapons/Rogue/ToxicantTwister.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 18f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/Turbulance.cs b/Items/Weapons/Rogue/Turbulance.cs index ac2cf5d500..00536460cd 100644 --- a/Items/Weapons/Rogue/Turbulance.cs +++ b/Items/Weapons/Rogue/Turbulance.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 5f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/TwistingThunder.cs b/Items/Weapons/Rogue/TwistingThunder.cs index 6d955aa7ea..aa3d36d2b3 100644 --- a/Items/Weapons/Rogue/TwistingThunder.cs +++ b/Items/Weapons/Rogue/TwistingThunder.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 21; Item.useAnimation = 21; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.DamageType = RogueDamageClass.Instance; diff --git a/Items/Weapons/Rogue/UtensilPoker.cs b/Items/Weapons/Rogue/UtensilPoker.cs index b5f80bd708..01742616dc 100644 --- a/Items/Weapons/Rogue/UtensilPoker.cs +++ b/Items/Weapons/Rogue/UtensilPoker.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useLimitPerAnimation = 3; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/Valediction.cs b/Items/Weapons/Rogue/Valediction.cs index 3cd01e2616..41462166f4 100644 --- a/Items/Weapons/Rogue/Valediction.cs +++ b/Items/Weapons/Rogue/Valediction.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 20f; Item.DamageType = RogueDamageClass.Instance; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Rogue/WaveSkipper.cs b/Items/Weapons/Rogue/WaveSkipper.cs index b8479582e8..7abed0d80a 100644 --- a/Items/Weapons/Rogue/WaveSkipper.cs +++ b/Items/Weapons/Rogue/WaveSkipper.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.knockBack = 4f; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; diff --git a/Items/Weapons/Rogue/Wrathwing.cs b/Items/Weapons/Rogue/Wrathwing.cs index a85d213904..f8f71d8eb5 100644 --- a/Items/Weapons/Rogue/Wrathwing.cs +++ b/Items/Weapons/Rogue/Wrathwing.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = Item.useAnimation = 13; Item.autoReuse = true; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 28f; diff --git a/Items/Weapons/Summon/AbandonedSlimeStaff.cs b/Items/Weapons/Summon/AbandonedSlimeStaff.cs index a9542311a9..baf024b006 100644 --- a/Items/Weapons/Summon/AbandonedSlimeStaff.cs +++ b/Items/Weapons/Summon/AbandonedSlimeStaff.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Summon/AncientIceChunk.cs b/Items/Weapons/Summon/AncientIceChunk.cs index f3077b8825..9554bd8e42 100644 --- a/Items/Weapons/Summon/AncientIceChunk.cs +++ b/Items/Weapons/Summon/AncientIceChunk.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item30; diff --git a/Items/Weapons/Summon/AquasScepter.cs b/Items/Weapons/Summon/AquasScepter.cs index 25d4b6952b..40ac018f06 100644 --- a/Items/Weapons/Summon/AquasScepter.cs +++ b/Items/Weapons/Summon/AquasScepter.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useAnimation = 30; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 6; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; Item.UseSound = SoundID.Item66; diff --git a/Items/Weapons/Summon/BelladonnaSpiritStaff.cs b/Items/Weapons/Summon/BelladonnaSpiritStaff.cs index 2c13c6e70b..43e4bb72cc 100644 --- a/Items/Weapons/Summon/BelladonnaSpiritStaff.cs +++ b/Items/Weapons/Summon/BelladonnaSpiritStaff.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item44; Item.rare = ItemRarityID.Blue; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.noMelee = true; Item.autoReuse = true; } diff --git a/Items/Weapons/Summon/BlackHawkRemote.cs b/Items/Weapons/Summon/BlackHawkRemote.cs index ef125afca4..9900da3a9b 100644 --- a/Items/Weapons/Summon/BlackHawkRemote.cs +++ b/Items/Weapons/Summon/BlackHawkRemote.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.UseSound = SoundID.Item15; //phaseblade sound effect Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/BorealisBomber.cs b/Items/Weapons/Summon/BorealisBomber.cs index 20c4d8972b..ae8716c368 100644 --- a/Items/Weapons/Summon/BorealisBomber.cs +++ b/Items/Weapons/Summon/BorealisBomber.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/BrittleStarStaff.cs b/Items/Weapons/Summon/BrittleStarStaff.cs index b3472f0921..927726bba0 100644 --- a/Items/Weapons/Summon/BrittleStarStaff.cs +++ b/Items/Weapons/Summon/BrittleStarStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = Knockback; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item44 with { Pitch = 0.5f }; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/CadaverousCarrion.cs b/Items/Weapons/Summon/CadaverousCarrion.cs index 0b632d317d..dc563c4d6c 100644 --- a/Items/Weapons/Summon/CadaverousCarrion.cs +++ b/Items/Weapons/Summon/CadaverousCarrion.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = SoundID.NPCDeath13; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Summon/CalamarisLament.cs b/Items/Weapons/Summon/CalamarisLament.cs index d9d6b02456..c477f89bdc 100644 --- a/Items/Weapons/Summon/CalamarisLament.cs +++ b/Items/Weapons/Summon/CalamarisLament.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = SoundID.Item85; Item.useStyle = ItemUseStyleID.Shoot; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; // This does nothing, it's just here so it's able to act like a staff. Item.shootSpeed = 1f; diff --git a/Items/Weapons/Summon/CausticCroakerStaff.cs b/Items/Weapons/Summon/CausticCroakerStaff.cs index 70129da1ee..b3e9e1083a 100644 --- a/Items/Weapons/Summon/CausticCroakerStaff.cs +++ b/Items/Weapons/Summon/CausticCroakerStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/CausticStaff.cs b/Items/Weapons/Summon/CausticStaff.cs index ab648b87df..dfe5605cd4 100644 --- a/Items/Weapons/Summon/CausticStaff.cs +++ b/Items/Weapons/Summon/CausticStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = SoundID.Item77; Item.useAnimation = Item.useTime = 25; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Summon/CinderBlossomStaff.cs b/Items/Weapons/Summon/CinderBlossomStaff.cs index f57dec0aa9..0c5b883154 100644 --- a/Items/Weapons/Summon/CinderBlossomStaff.cs +++ b/Items/Weapons/Summon/CinderBlossomStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item34; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.noMelee = true; } diff --git a/Items/Weapons/Summon/Cnidarian.cs b/Items/Weapons/Summon/Cnidarian.cs index 1cde5af8bc..836c151c26 100644 --- a/Items/Weapons/Summon/Cnidarian.cs +++ b/Items/Weapons/Summon/Cnidarian.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.rare = ItemRarityID.Green; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; } public override bool CanUseItem(Player player) diff --git a/Items/Weapons/Summon/CorroslimeStaff.cs b/Items/Weapons/Summon/CorroslimeStaff.cs index 66e9aa1623..81c6b7689f 100644 --- a/Items/Weapons/Summon/CorroslimeStaff.cs +++ b/Items/Weapons/Summon/CorroslimeStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/CosmicImmaterializer.cs b/Items/Weapons/Summon/CosmicImmaterializer.cs index 1ec1d1ca43..477e19cd22 100644 --- a/Items/Weapons/Summon/CosmicImmaterializer.cs +++ b/Items/Weapons/Summon/CosmicImmaterializer.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useTime = Item.useAnimation = 10; Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.UseSound = SoundID.Item60; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; diff --git a/Items/Weapons/Summon/CosmicViperEngine.cs b/Items/Weapons/Summon/CosmicViperEngine.cs index 4c8f196bab..2f1cacf427 100644 --- a/Items/Weapons/Summon/CosmicViperEngine.cs +++ b/Items/Weapons/Summon/CosmicViperEngine.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; // Affects bullet speed Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Summon/Cosmilamp.cs b/Items/Weapons/Summon/Cosmilamp.cs index b6f081e7c8..231bd38e69 100644 --- a/Items/Weapons/Summon/Cosmilamp.cs +++ b/Items/Weapons/Summon/Cosmilamp.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/CrimslimeStaff.cs b/Items/Weapons/Summon/CrimslimeStaff.cs index fd46514fc2..65ef4d76a8 100644 --- a/Items/Weapons/Summon/CrimslimeStaff.cs +++ b/Items/Weapons/Summon/CrimslimeStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/CryogenicStaff.cs b/Items/Weapons/Summon/CryogenicStaff.cs index 7547a25018..3d189ee3b0 100644 --- a/Items/Weapons/Summon/CryogenicStaff.cs +++ b/Items/Weapons/Summon/CryogenicStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.autoReuse = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.Calamity().devItem = true; diff --git a/Items/Weapons/Summon/DaedalusGolemStaff.cs b/Items/Weapons/Summon/DaedalusGolemStaff.cs index 20d759eae9..57461c8924 100644 --- a/Items/Weapons/Summon/DaedalusGolemStaff.cs +++ b/Items/Weapons/Summon/DaedalusGolemStaff.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Summon/DankStaff.cs b/Items/Weapons/Summon/DankStaff.cs index d5e20a6c3e..3a40da3bcc 100644 --- a/Items/Weapons/Summon/DankStaff.cs +++ b/Items/Weapons/Summon/DankStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2.25f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/DazzlingStabberStaff.cs b/Items/Weapons/Summon/DazzlingStabberStaff.cs index 63e9915dff..bab08f23e9 100644 --- a/Items/Weapons/Summon/DazzlingStabberStaff.cs +++ b/Items/Weapons/Summon/DazzlingStabberStaff.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 13f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Summon/DeathstareRod.cs b/Items/Weapons/Summon/DeathstareRod.cs index 5553c15fdf..2d1c16e302 100644 --- a/Items/Weapons/Summon/DeathstareRod.cs +++ b/Items/Weapons/Summon/DeathstareRod.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.NPCHit8; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/DeepseaStaff.cs b/Items/Weapons/Summon/DeepseaStaff.cs index f3c4e01df6..86b85473b1 100644 --- a/Items/Weapons/Summon/DeepseaStaff.cs +++ b/Items/Weapons/Summon/DeepseaStaff.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/DormantBrimseeker.cs b/Items/Weapons/Summon/DormantBrimseeker.cs index 454e76604e..ae2b2695e9 100644 --- a/Items/Weapons/Summon/DormantBrimseeker.cs +++ b/Items/Weapons/Summon/DormantBrimseeker.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Summon/DragonbloodDisgorger.cs b/Items/Weapons/Summon/DragonbloodDisgorger.cs index d29ba9d3ce..cd4ee73ef3 100644 --- a/Items/Weapons/Summon/DragonbloodDisgorger.cs +++ b/Items/Weapons/Summon/DragonbloodDisgorger.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.DD2_SkeletonDeath; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/DreadmineStaff.cs b/Items/Weapons/Summon/DreadmineStaff.cs index ee746f3cb5..a2aa36d7e8 100644 --- a/Items/Weapons/Summon/DreadmineStaff.cs +++ b/Items/Weapons/Summon/DreadmineStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item113; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/ElementalAxe.cs b/Items/Weapons/Summon/ElementalAxe.cs index 50ef36effd..50fb9ea940 100644 --- a/Items/Weapons/Summon/ElementalAxe.cs +++ b/Items/Weapons/Summon/ElementalAxe.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/EnchantedConch.cs b/Items/Weapons/Summon/EnchantedConch.cs index b860cb85b7..422f7c7233 100644 --- a/Items/Weapons/Summon/EnchantedConch.cs +++ b/Items/Weapons/Summon/EnchantedConch.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item44; diff --git a/Items/Weapons/Summon/Endogenesis.cs b/Items/Weapons/Summon/Endogenesis.cs index 27b87f9ef9..de42c89bb1 100644 --- a/Items/Weapons/Summon/Endogenesis.cs +++ b/Items/Weapons/Summon/Endogenesis.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Summon/EntropysVigil.cs b/Items/Weapons/Summon/EntropysVigil.cs index f12a179d01..dd0c9287de 100644 --- a/Items/Weapons/Summon/EntropysVigil.cs +++ b/Items/Weapons/Summon/EntropysVigil.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item82; diff --git a/Items/Weapons/Summon/EtherealSubjugator.cs b/Items/Weapons/Summon/EtherealSubjugator.cs index dd261e5728..9abf615c95 100644 --- a/Items/Weapons/Summon/EtherealSubjugator.cs +++ b/Items/Weapons/Summon/EtherealSubjugator.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.rare = ModContent.RarityType(); Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item82; diff --git a/Items/Weapons/Summon/EyeOfNight.cs b/Items/Weapons/Summon/EyeOfNight.cs index 7e9c82b6bc..009e3325a1 100644 --- a/Items/Weapons/Summon/EyeOfNight.cs +++ b/Items/Weapons/Summon/EyeOfNight.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.NPCHit1; diff --git a/Items/Weapons/Summon/FleshOfInfidelity.cs b/Items/Weapons/Summon/FleshOfInfidelity.cs index 3f3351a3fe..a0ed0e586b 100644 --- a/Items/Weapons/Summon/FleshOfInfidelity.cs +++ b/Items/Weapons/Summon/FleshOfInfidelity.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Zombie24; diff --git a/Items/Weapons/Summon/FlowersOfMortality.cs b/Items/Weapons/Summon/FlowersOfMortality.cs index 89298bcf27..e40bf2ed65 100644 --- a/Items/Weapons/Summon/FlowersOfMortality.cs +++ b/Items/Weapons/Summon/FlowersOfMortality.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item44; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/ForgottenApexWand.cs b/Items/Weapons/Summon/ForgottenApexWand.cs index 3f7f7f3fa5..377c934395 100644 --- a/Items/Weapons/Summon/ForgottenApexWand.cs +++ b/Items/Weapons/Summon/ForgottenApexWand.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = SoundID.Item89; Item.noMelee = true; Item.rare = ItemRarityID.Pink; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.autoReuse = true; Item.knockBack = 4f; diff --git a/Items/Weapons/Summon/FrostBlossomStaff.cs b/Items/Weapons/Summon/FrostBlossomStaff.cs index 394f63d323..928fbdfa4b 100644 --- a/Items/Weapons/Summon/FrostBlossomStaff.cs +++ b/Items/Weapons/Summon/FrostBlossomStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item28; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/FuelCellBundle.cs b/Items/Weapons/Summon/FuelCellBundle.cs index 4fa21cbe29..1083ecfd3b 100644 --- a/Items/Weapons/Summon/FuelCellBundle.cs +++ b/Items/Weapons/Summon/FuelCellBundle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useTime = Item.useAnimation = 20; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item106; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/GastricBelcherStaff.cs b/Items/Weapons/Summon/GastricBelcherStaff.cs index 0405bd4bd8..e5befad427 100644 --- a/Items/Weapons/Summon/GastricBelcherStaff.cs +++ b/Items/Weapons/Summon/GastricBelcherStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item76; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/GlacialEmbrace.cs b/Items/Weapons/Summon/GlacialEmbrace.cs index 530ce9e93e..bce8284a37 100644 --- a/Items/Weapons/Summon/GlacialEmbrace.cs +++ b/Items/Weapons/Summon/GlacialEmbrace.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; } diff --git a/Items/Weapons/Summon/GuidelightofOblivion.cs b/Items/Weapons/Summon/GuidelightofOblivion.cs index ed18d73630..6525ba6f3e 100644 --- a/Items/Weapons/Summon/GuidelightofOblivion.cs +++ b/Items/Weapons/Summon/GuidelightofOblivion.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/HarvestStaff.cs b/Items/Weapons/Summon/HarvestStaff.cs index 0277f9c46d..53a28e34f1 100644 --- a/Items/Weapons/Summon/HarvestStaff.cs +++ b/Items/Weapons/Summon/HarvestStaff.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.height = 46; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Grass with { Volume = 0.6f, Pitch = -0.4f }; diff --git a/Items/Weapons/Summon/HauntedScroll.cs b/Items/Weapons/Summon/HauntedScroll.cs index 1140484afe..ae22914112 100644 --- a/Items/Weapons/Summon/HauntedScroll.cs +++ b/Items/Weapons/Summon/HauntedScroll.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SoundID.Item60; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/HerringStaff.cs b/Items/Weapons/Summon/HerringStaff.cs index 5c25f7b9be..ba118cfcf5 100644 --- a/Items/Weapons/Summon/HerringStaff.cs +++ b/Items/Weapons/Summon/HerringStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item21; Item.rare = ItemRarityID.Orange; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.autoReuse = true; Item.noMelee = true; } diff --git a/Items/Weapons/Summon/HivePod.cs b/Items/Weapons/Summon/HivePod.cs index 93d93fe6df..7175515232 100644 --- a/Items/Weapons/Summon/HivePod.cs +++ b/Items/Weapons/Summon/HivePod.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 4f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item78; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/IgneousExaltation.cs b/Items/Weapons/Summon/IgneousExaltation.cs index 6bcede2ead..f0ae80e6cc 100644 --- a/Items/Weapons/Summon/IgneousExaltation.cs +++ b/Items/Weapons/Summon/IgneousExaltation.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4.5f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item71; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/InfectedRemote.cs b/Items/Weapons/Summon/InfectedRemote.cs index 7c7c6f0c69..080093f247 100644 --- a/Items/Weapons/Summon/InfectedRemote.cs +++ b/Items/Weapons/Summon/InfectedRemote.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; } diff --git a/Items/Weapons/Summon/KingofConstellationsTenryu.cs b/Items/Weapons/Summon/KingofConstellationsTenryu.cs index 364e25227a..92b2903ebf 100644 --- a/Items/Weapons/Summon/KingofConstellationsTenryu.cs +++ b/Items/Weapons/Summon/KingofConstellationsTenryu.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = Flare.FlareSound; Item.useAnimation = Item.useTime = 25; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Summon/LiliesOfFinality.cs b/Items/Weapons/Summon/LiliesOfFinality.cs index 07bb650e25..7d3f3abdf9 100644 --- a/Items/Weapons/Summon/LiliesOfFinality.cs +++ b/Items/Weapons/Summon/LiliesOfFinality.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.width = 36; Item.height = 50; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = RarityType(); Item.useStyle = ItemUseStyleID.HoldUp; } diff --git a/Items/Weapons/Summon/Metastasis.cs b/Items/Weapons/Summon/Metastasis.cs index 472922284a..6f8e1fbdf2 100644 --- a/Items/Weapons/Summon/Metastasis.cs +++ b/Items/Weapons/Summon/Metastasis.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.DD2_BetsySummon; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/MidnightSunBeacon.cs b/Items/Weapons/Summon/MidnightSunBeacon.cs index a3bbda8aaa..bce9216ba8 100644 --- a/Items/Weapons/Summon/MidnightSunBeacon.cs +++ b/Items/Weapons/Summon/MidnightSunBeacon.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.shootSpeed = 10f; Item.DamageType = DamageClass.Summon; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Summon/MirrorofKalandra.cs b/Items/Weapons/Summon/MirrorofKalandra.cs index 2951daa19b..be74192042 100644 --- a/Items/Weapons/Summon/MirrorofKalandra.cs +++ b/Items/Weapons/Summon/MirrorofKalandra.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item4; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; } public override Vector2? HoldoutOffset() => new Vector2(-15, 0); diff --git a/Items/Weapons/Summon/MutatedTruffle.cs b/Items/Weapons/Summon/MutatedTruffle.cs index afa59f5fa9..8284dd30e0 100644 --- a/Items/Weapons/Summon/MutatedTruffle.cs +++ b/Items/Weapons/Summon/MutatedTruffle.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.NPCHit14; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Summon/OrthoceraShell.cs b/Items/Weapons/Summon/OrthoceraShell.cs index 0570361821..0642fb536b 100644 --- a/Items/Weapons/Summon/OrthoceraShell.cs +++ b/Items/Weapons/Summon/OrthoceraShell.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item42; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/PlantationStaff.cs b/Items/Weapons/Summon/PlantationStaff.cs index b31bb6c409..be0241b999 100644 --- a/Items/Weapons/Summon/PlantationStaff.cs +++ b/Items/Weapons/Summon/PlantationStaff.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.useTime = Item.useAnimation = 20; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item76; diff --git a/Items/Weapons/Summon/PolypLauncher.cs b/Items/Weapons/Summon/PolypLauncher.cs index a7e1caf4e3..b6d1591389 100644 --- a/Items/Weapons/Summon/PolypLauncher.cs +++ b/Items/Weapons/Summon/PolypLauncher.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 0f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/PuffShroom.cs b/Items/Weapons/Summon/PuffShroom.cs index 1c1546f61e..bee58b18d1 100644 --- a/Items/Weapons/Summon/PuffShroom.cs +++ b/Items/Weapons/Summon/PuffShroom.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item42; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/ResurrectionButterfly.cs b/Items/Weapons/Summon/ResurrectionButterfly.cs index d787d89c73..d91f467d4c 100644 --- a/Items/Weapons/Summon/ResurrectionButterfly.cs +++ b/Items/Weapons/Summon/ResurrectionButterfly.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.noMelee = true; Item.knockBack = 1f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Summon/RustyBeaconPrototype.cs b/Items/Weapons/Summon/RustyBeaconPrototype.cs index a9db7fe23d..e17e158a74 100644 --- a/Items/Weapons/Summon/RustyBeaconPrototype.cs +++ b/Items/Weapons/Summon/RustyBeaconPrototype.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item15; // Phaseblade sound effect Item.autoReuse = true; diff --git a/Items/Weapons/Summon/SanctifiedSpark.cs b/Items/Weapons/Summon/SanctifiedSpark.cs index a423dda256..c1d0f28176 100644 --- a/Items/Weapons/Summon/SanctifiedSpark.cs +++ b/Items/Weapons/Summon/SanctifiedSpark.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/SandSharknadoStaff.cs b/Items/Weapons/Summon/SandSharknadoStaff.cs index fd05c1ce5c..ff780b7dd0 100644 --- a/Items/Weapons/Summon/SandSharknadoStaff.cs +++ b/Items/Weapons/Summon/SandSharknadoStaff.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item44; Item.rare = ItemRarityID.Lime; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.noMelee = true; Item.autoReuse = true; } diff --git a/Items/Weapons/Summon/SarosPossession.cs b/Items/Weapons/Summon/SarosPossession.cs index 0d325749de..8d6dbc6405 100644 --- a/Items/Weapons/Summon/SarosPossession.cs +++ b/Items/Weapons/Summon/SarosPossession.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.DD2_BetsyFlameBreath; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.noMelee = true; } diff --git a/Items/Weapons/Summon/ScabRipper.cs b/Items/Weapons/Summon/ScabRipper.cs index ace9bb2c60..d83cf2574e 100644 --- a/Items/Weapons/Summon/ScabRipper.cs +++ b/Items/Weapons/Summon/ScabRipper.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = SoundID.Item83; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/ShellfishStaff.cs b/Items/Weapons/Summon/ShellfishStaff.cs index a64f0b61cd..2487b3034c 100644 --- a/Items/Weapons/Summon/ShellfishStaff.cs +++ b/Items/Weapons/Summon/ShellfishStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/Sirius.cs b/Items/Weapons/Summon/Sirius.cs index 48df40ad2e..3a178abe56 100644 --- a/Items/Weapons/Summon/Sirius.cs +++ b/Items/Weapons/Summon/Sirius.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item44; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity13BuyPrice; + Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice; Item.noMelee = true; } diff --git a/Items/Weapons/Summon/SlimePuppetStaff.cs b/Items/Weapons/Summon/SlimePuppetStaff.cs index c5cd621fe8..c00379c4e0 100644 --- a/Items/Weapons/Summon/SlimePuppetStaff.cs +++ b/Items/Weapons/Summon/SlimePuppetStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 3.6f; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.UseSound = SlimeGodCore.PossessionSound; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/SpikecragStaff.cs b/Items/Weapons/Summon/SpikecragStaff.cs index aad441db76..2bb4846b0b 100644 --- a/Items/Weapons/Summon/SpikecragStaff.cs +++ b/Items/Weapons/Summon/SpikecragStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shootSpeed = 20f; diff --git a/Items/Weapons/Summon/SquirrelSquireStaff.cs b/Items/Weapons/Summon/SquirrelSquireStaff.cs index fff576bcf5..897e3a5ef3 100644 --- a/Items/Weapons/Summon/SquirrelSquireStaff.cs +++ b/Items/Weapons/Summon/SquirrelSquireStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity0BuyPrice; + Item.value = CalamityGlobalItem.RarityWhiteBuyPrice; Item.rare = ItemRarityID.White; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/StaffOfNecrosteocytes.cs b/Items/Weapons/Summon/StaffOfNecrosteocytes.cs index 7d05f3fae9..5c08cfc5bc 100644 --- a/Items/Weapons/Summon/StaffOfNecrosteocytes.cs +++ b/Items/Weapons/Summon/StaffOfNecrosteocytes.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 3.5f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/StaffoftheMechworm.cs b/Items/Weapons/Summon/StaffoftheMechworm.cs index 09cfdd22c1..c3555dbd4b 100644 --- a/Items/Weapons/Summon/StaffoftheMechworm.cs +++ b/Items/Weapons/Summon/StaffoftheMechworm.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item113; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/StarspawnHelixStaff.cs b/Items/Weapons/Summon/StarspawnHelixStaff.cs index 239b6eba42..867e824854 100644 --- a/Items/Weapons/Summon/StarspawnHelixStaff.cs +++ b/Items/Weapons/Summon/StarspawnHelixStaff.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item44; Item.rare = ItemRarityID.Cyan; - Item.value = CalamityGlobalItem.Rarity9BuyPrice; + Item.value = CalamityGlobalItem.RarityCyanBuyPrice; Item.noMelee = true; Item.autoReuse = true; } diff --git a/Items/Weapons/Summon/StellarTorusStaff.cs b/Items/Weapons/Summon/StellarTorusStaff.cs index 342ba5cbfd..07741b3cad 100644 --- a/Items/Weapons/Summon/StellarTorusStaff.cs +++ b/Items/Weapons/Summon/StellarTorusStaff.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.UseSound = SoundID.Item15; Item.rare = ModContent.RarityType(); - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Summon/StormjawStaff.cs b/Items/Weapons/Summon/StormjawStaff.cs index b43d49fbea..99f5a062b4 100644 --- a/Items/Weapons/Summon/StormjawStaff.cs +++ b/Items/Weapons/Summon/StormjawStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.UseSound = Stormlion.DeathSound; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/SunSpiritStaff.cs b/Items/Weapons/Summon/SunSpiritStaff.cs index 5c917d2890..0c2c0315e1 100644 --- a/Items/Weapons/Summon/SunSpiritStaff.cs +++ b/Items/Weapons/Summon/SunSpiritStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 1.15f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item44; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 095393bffa..0f24df1f31 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item14; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/TemporalUmbrella.cs b/Items/Weapons/Summon/TemporalUmbrella.cs index 0cfdc77681..165a7abad0 100644 --- a/Items/Weapons/Summon/TemporalUmbrella.cs +++ b/Items/Weapons/Summon/TemporalUmbrella.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.UseSound = SoundID.Item68; - Item.value = CalamityGlobalItem.Rarity16BuyPrice; + Item.value = CalamityGlobalItem.RarityHotPinkBuyPrice; Item.rare = ModContent.RarityType(); Item.Calamity().devItem = true; } diff --git a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs index 95391bcc9e..8695293f73 100644 --- a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs +++ b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity5BuyPrice; + Item.value = CalamityGlobalItem.RarityPinkBuyPrice; Item.rare = ItemRarityID.Pink; Item.UseSound = SoundID.Item46; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/VengefulSunStaff.cs b/Items/Weapons/Summon/VengefulSunStaff.cs index 922c78bb38..1638072b13 100644 --- a/Items/Weapons/Summon/VengefulSunStaff.cs +++ b/Items/Weapons/Summon/VengefulSunStaff.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 1.25f; - Item.value = CalamityGlobalItem.Rarity6BuyPrice; + Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.UseSound = SoundID.Item44; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/VileFeeder.cs b/Items/Weapons/Summon/VileFeeder.cs index 2286372a4a..7e02720664 100644 --- a/Items/Weapons/Summon/VileFeeder.cs +++ b/Items/Weapons/Summon/VileFeeder.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.mana = 10; Item.noMelee = true; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity2BuyPrice; + Item.value = CalamityGlobalItem.RarityGreenBuyPrice; Item.rare = ItemRarityID.Green; Item.useStyle = ItemUseStyleID.Shoot; Item.UseSound = SoundID.Item2; diff --git a/Items/Weapons/Summon/ViralSprout.cs b/Items/Weapons/Summon/ViralSprout.cs index 0f9f63ade8..b8562622b7 100644 --- a/Items/Weapons/Summon/ViralSprout.cs +++ b/Items/Weapons/Summon/ViralSprout.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity7BuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item44; Item.autoReuse = true; diff --git a/Items/Weapons/Summon/VoidConcentrationStaff.cs b/Items/Weapons/Summon/VoidConcentrationStaff.cs index 0a2193a741..4d0ecae6ad 100644 --- a/Items/Weapons/Summon/VoidConcentrationStaff.cs +++ b/Items/Weapons/Summon/VoidConcentrationStaff.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useTime = Item.useAnimation = 15; // 14 because of useStyle 1 Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 10f; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.rare = ModContent.RarityType(); } diff --git a/Items/Weapons/Summon/WitherBlossomsStaff.cs b/Items/Weapons/Summon/WitherBlossomsStaff.cs index 235bbb453d..e7a264c7cc 100644 --- a/Items/Weapons/Summon/WitherBlossomsStaff.cs +++ b/Items/Weapons/Summon/WitherBlossomsStaff.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.Swing; Item.noMelee = true; Item.knockBack = 3f; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item46; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs index 7b0aa4075e..82f79133b8 100644 --- a/Items/Weapons/Summon/WulfrumController.cs +++ b/Items/Weapons/Summon/WulfrumController.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useStyle = ItemUseStyleID.HoldUp; Item.noMelee = true; Item.knockBack = 0.5f; - Item.value = CalamityGlobalItem.Rarity1BuyPrice; + Item.value = CalamityGlobalItem.RarityBlueBuyPrice; Item.rare = ItemRarityID.Blue; Item.UseSound = SoundID.Item15; //phaseblade sound effect Item.autoReuse = true; diff --git a/Items/Weapons/Summon/YharonsKindleStaff.cs b/Items/Weapons/Summon/YharonsKindleStaff.cs index a8416807f2..577f76f719 100644 --- a/Items/Weapons/Summon/YharonsKindleStaff.cs +++ b/Items/Weapons/Summon/YharonsKindleStaff.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.useTime = Item.useAnimation = 10; Item.noMelee = true; Item.knockBack = 7f; - Item.value = CalamityGlobalItem.Rarity15BuyPrice; + Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); Item.UseSound = CommonCalamitySounds.FlareSound; Item.autoReuse = true; diff --git a/Items/Weapons/Typeless/Aestheticus.cs b/Items/Weapons/Typeless/Aestheticus.cs index 66d257ad81..b03b538f9a 100644 --- a/Items/Weapons/Typeless/Aestheticus.cs +++ b/Items/Weapons/Typeless/Aestheticus.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.UseSound = SoundID.Item109; Item.autoReuse = true; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.Calamity().donorItem = true; diff --git a/Items/Weapons/Typeless/EyeofMagnus.cs b/Items/Weapons/Typeless/EyeofMagnus.cs index 614f5540c6..03c034f810 100644 --- a/Items/Weapons/Typeless/EyeofMagnus.cs +++ b/Items/Weapons/Typeless/EyeofMagnus.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.UseSound = CommonCalamitySounds.LaserCannonSound; Item.autoReuse = true; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity10BuyPrice; + Item.value = CalamityGlobalItem.RarityRedBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 12f; } diff --git a/Items/Weapons/Typeless/GoldenGun.cs b/Items/Weapons/Typeless/GoldenGun.cs index 5dd21f7e45..76981c921b 100644 --- a/Items/Weapons/Typeless/GoldenGun.cs +++ b/Items/Weapons/Typeless/GoldenGun.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2f; - Item.value = CalamityGlobalItem.Rarity3BuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item11; Item.autoReuse = true; diff --git a/Items/Weapons/Typeless/LunicEye.cs b/Items/Weapons/Typeless/LunicEye.cs index 13fe59440c..c1382ea084 100644 --- a/Items/Weapons/Typeless/LunicEye.cs +++ b/Items/Weapons/Typeless/LunicEye.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.height = 36; Item.DamageType = AverageDamageClass.Instance; Item.damage = 9; - Item.value = CalamityGlobalItem.Rarity4BuyPrice; + Item.value = CalamityGlobalItem.RarityLightRedBuyPrice; Item.rare = ItemRarityID.LightRed; Item.useAnimation = 15; Item.useTime = 15; diff --git a/Items/Weapons/Typeless/RelicOfDeliverance.cs b/Items/Weapons/Typeless/RelicOfDeliverance.cs index 4d8f7a9e81..18fa4a63c8 100644 --- a/Items/Weapons/Typeless/RelicOfDeliverance.cs +++ b/Items/Weapons/Typeless/RelicOfDeliverance.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.Calamity().CannotBeEnchanted = true; diff --git a/Items/Weapons/Typeless/RelicOfResilience.cs b/Items/Weapons/Typeless/RelicOfResilience.cs index 9b432b3565..a86f3f278e 100644 --- a/Items/Weapons/Typeless/RelicOfResilience.cs +++ b/Items/Weapons/Typeless/RelicOfResilience.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.UseSound = SoundID.Item45; Item.autoReuse = true; Item.noMelee = true; - Item.value = CalamityGlobalItem.Rarity11BuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 0f; diff --git a/Items/Weapons/Typeless/Skynamite.cs b/Items/Weapons/Typeless/Skynamite.cs index 4f87ae7bb4..351f6072f8 100644 --- a/Items/Weapons/Typeless/Skynamite.cs +++ b/Items/Weapons/Typeless/Skynamite.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.noMelee = true; Item.noUseGraphic = true; Item.UseSound = SoundID.Item1; - Item.value = CalamityGlobalItem.Rarity3BuyPrice / 10; // Crafted 10 at a time + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice / 10; // Crafted 10 at a time Item.rare = ItemRarityID.Orange; } diff --git a/Items/Weapons/Typeless/YanmeisKnife.cs b/Items/Weapons/Typeless/YanmeisKnife.cs index f56773d0b7..42b934e108 100644 --- a/Items/Weapons/Typeless/YanmeisKnife.cs +++ b/Items/Weapons/Typeless/YanmeisKnife.cs @@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Typeless Item.useStyle = ItemUseStyleID.Shoot; Item.knockBack = 4.5f; Item.autoReuse = false; - Item.value = CalamityGlobalItem.Rarity8BuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.Calamity().donorItem = true; Item.UseSound = SoundID.Item71; diff --git a/Localization/en-US/Mods.CalamityMod.Condition.hjson b/Localization/en-US/Mods.CalamityMod.Condition.hjson index b8d5dadc72..79c5627b6e 100644 --- a/Localization/en-US/Mods.CalamityMod.Condition.hjson +++ b/Localization/en-US/Mods.CalamityMod.Condition.hjson @@ -96,3 +96,5 @@ PostPolter: After Polterghast has been defeated PostOD: After the Old Duke has been defeated PostDoG: After the Devourer of Gods has been defeated PostYharon: After Yharon has been defeated +DownedPerfs: After the Perforator Hive has been defeated +DownedHM: After the Hive Mind has been defeated diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index c7df946292..330e1005fc 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -641,6 +641,11 @@ AstralFountainItem: { Tooltip: "" } +BrimstoneLavaFountainItem: { + DisplayName: Brimstone Lava Fountain + Tooltip: "" +} + SulphurousFountainItem: { DisplayName: Sulphuric Water Fountain Tooltip: "" diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 1f03c47b51..087c68b8d7 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -144,7 +144,9 @@ BarracudaGun: { BladedgeRailbow: { DisplayName: Bladedge Railbow - Tooltip: Fires a spread of 4 arrows and 2 leaves at once + Tooltip: "[GFB]" + TooltipNormal: Fires a spread of 4 arrows and 2 leaves at once + TooltipGFB: Fires a spread of 4 arrows... along with other various things } BlightSpewer: { @@ -805,7 +807,12 @@ NettlevineGreatbow: { Norfleet: { DisplayName: Norfleet - Tooltip: Fire everything! + Tooltip: + ''' + Fires a cluster of erratic energy spheres that each contain a different element + Every three shots the weapon must recharge its energy to reload + [c/FF9900:'Blows up everything!'] + ''' } NullificationPistol: { diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index 748a1025a2..fe9b1df044 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -319,3 +319,4 @@ AbyssBladeProjectile.DisplayName: Abyss Blade AbyssBladeSplitProjectile.DisplayName: Abyss Blade Jet NeptunesBountyProjectile.DisplayName: Neptune's Bounty NeptunesBountySplitProjectile.DisplayName: Neptune's Bounty Jet +AtaraxiaBoom.DisplayName: Ataraxia Boom diff --git a/Localization/en-US/Mods.CalamityMod.Tiles.hjson b/Localization/en-US/Mods.CalamityMod.Tiles.hjson index 5a7ad68da1..b0ecb2d5e2 100644 --- a/Localization/en-US/Mods.CalamityMod.Tiles.hjson +++ b/Localization/en-US/Mods.CalamityMod.Tiles.hjson @@ -8,6 +8,7 @@ Stalactite: Stalactite PirateCrate: Abandoned Crate // Basic Calamity Furniture Basin: Basin +LavaFountain: Lava Fountain PipeOrgan: Pipe Organ Sconce: Sconce // Draedon Lab Furniture diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 7c4de20acc..a9b8439125 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -136,6 +136,21 @@ ThanatosIcon: Thanatos, a serpentine terror with impervious armor and innumerabl AresIcon: Ares, a heavyweight, diabolical monstrosity with four Exo superweapons. ArtemisApolloIcon: Artemis and Apollo, a pair of extremely persistent automatons with unstable energy reserves. +// Debuff System +DebuffSystem: { + Title: Debuff Resistances + Description: NPCs take increased or decreased damage from certain debuff types + Heat: Heat + Cold: Cold + Sickness: Sickness + Water: Water + Electricity: Electricity + To: to + Weak: Weak + Neutral: Neutral + Resistant: Resistant +} + // Draedon Contact UI. Repeated newlines indicate pauses in Draedon's speaking. As a result, newline characters may be explicitly defined. // The code that interprets these strings will transform them. Communication: { diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ca39c97f07..1621ac6548 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -58,6 +58,7 @@ using CalamityMod.Systems; using CalamityMod.Tiles.FurnitureAuric; using CalamityMod.Tiles.Ores; using CalamityMod.UI; +using CalamityMod.UI.DebuffSystem; using CalamityMod.Walls.DraedonStructures; using CalamityMod.World; using Microsoft.CodeAnalysis; @@ -223,6 +224,10 @@ namespace CalamityMod.NPCs public const int knockbackResistanceMin = 180; public int knockbackResistanceTimer = 0; + // Used for particle drawing on NPCs affected by vanilla Cobalt/Mythril weapons + public bool isNerfedByCobalt = false; + public bool isNerfedByMythril = false; + // Debuffs public int vaporfied = 0; public int timeSlow = 0; @@ -434,6 +439,9 @@ namespace CalamityMod.NPCs myClone.bossCanBeKnockedBack = bossCanBeKnockedBack; myClone.knockbackResistanceTimer = knockbackResistanceTimer; + myClone.isNerfedByCobalt = isNerfedByCobalt; + myClone.isNerfedByMythril = isNerfedByMythril; + myClone.vaporfied = vaporfied; myClone.timeSlow = timeSlow; myClone.gState = gState; @@ -6354,6 +6362,31 @@ namespace CalamityMod.NPCs } } + // Cobalt and Mythril weapon particle effects + if (isNerfedByCobalt) + { + if (Main.rand.NextBool(5)) + { + Vector2 spawnLocation = new Vector2(Main.rand.NextFloat(npc.position.X, npc.position.X + npc.width), Main.rand.NextFloat(npc.position.Y, npc.position.Y + npc.height)); + Vector2 velocity = new Vector2(0f, MathHelper.Max(Main.rand.NextFloat(4f, 6f) * ((npc.height - (spawnLocation.Y - npc.position.Y)) / 65), 0.6f)); + + Particle cobaltArrow = new StatDownArrow(spawnLocation, velocity, new Color(27, 141, 235), new Color(0, 94, 181), 0.75f, 15); + GeneralParticleHandler.SpawnParticle(cobaltArrow); + } + } + + if (isNerfedByMythril) + { + if (Main.rand.NextBool(5)) + { + Vector2 spawnLocation = new Vector2(Main.rand.NextFloat(npc.position.X, npc.position.X + npc.width), Main.rand.NextFloat(npc.position.Y, npc.position.Y + npc.height)); + Vector2 velocity = new Vector2(0f, MathHelper.Max(Main.rand.NextFloat(4f, 6f) * ((npc.height - (spawnLocation.Y - npc.position.Y)) / 65), 0.6f)); + + Particle mythrilArrow = new StatDownArrow(spawnLocation, velocity, new Color(35, 217, 144), new Color(23, 145, 97), 0.75f, 15); + GeneralParticleHandler.SpawnParticle(mythrilArrow); + } + } + // Some extraneous and probably undocumented visual effect caused by the heart lad pet thing if (ladHearts > 0 && !npc.loveStruck && Main.netMode != NetmodeID.Server) { @@ -8455,5 +8488,38 @@ namespace CalamityMod.NPCs npc.knockBackResist += knockBackResistReduction; } #endregion + + #region Bestiary + public override void SetBestiary(NPC npc, Terraria.GameContent.Bestiary.BestiaryDatabase database, Terraria.GameContent.Bestiary.BestiaryEntry bestiaryEntry) + { + // Create a string array containing all an NPC's debuff resistances + string[] elements = new string[5] + { + NPCDebuffResistText(npc.Calamity().VulnerableToHeat, CalamityUtils.GetTextValue("UI.DebuffSystem.Heat")), + NPCDebuffResistText(npc.Calamity().VulnerableToSickness, CalamityUtils.GetTextValue("UI.DebuffSystem.Sickness")), + NPCDebuffResistText(npc.Calamity().VulnerableToCold, CalamityUtils.GetTextValue("UI.DebuffSystem.Cold")), + NPCDebuffResistText(npc.Calamity().VulnerableToElectricity, CalamityUtils.GetTextValue("UI.DebuffSystem.Electricity")), + NPCDebuffResistText(npc.Calamity().VulnerableToWater, CalamityUtils.GetTextValue("UI.DebuffSystem.Water")) + }; + + // Insert the debuff info into the NPC's bestiary entry + bestiaryEntry.Info.Insert(0, new BestiaryDebuffInfo(elements)); + } + + public static string NPCDebuffResistText(bool? effectiveness, string name) + { + string result = CalamityUtils.GetTextValue("UI.DebuffSystem.Neutral"); + if (effectiveness == true) + { + result = CalamityUtils.GetTextValue("UI.DebuffSystem.Weak"); + } + else if (effectiveness == false) + { + result = CalamityUtils.GetTextValue("UI.DebuffSystem.Resistant"); + } + result += " " + CalamityUtils.GetTextValue("UI.DebuffSystem.To") + " " + name; + return result; + } + #endregion } } diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 4efd5a9980..6c0ef216ba 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1082,7 +1082,7 @@ namespace CalamityMod.NPCs if (type == NPCID.Merchant) { shop.AddWithCustomValue(ItemID.Bottle, Item.buyPrice(copper: 20), potionSells, Condition.HappyEnough) - .AddWithCustomValue(ItemID.WormholePotion, Item.buyPrice(copper: 25), potionSells, Condition.HappyEnough); + .AddWithCustomValue(ItemID.WormholePotion, Item.buyPrice(silver: 5), potionSells, Condition.HappyEnough); shop.Add(ItemID.HealingPotion, potionSells, Condition.HappyEnough, Condition.DownedEowOrBoc) .Add(ItemID.ManaPotion, potionSells, Condition.HappyEnough, Condition.DownedEowOrBoc) .Add(ItemID.Flare, hasFlareGunUpgrade) @@ -1181,9 +1181,9 @@ namespace CalamityMod.NPCs if (type == NPCID.Wizard) { - shop.Add(ItemType()) + shop.AddWithCustomValue(ItemType(), CalamityGlobalItem.RarityLightRedBuyPrice * 3) .AddWithCustomValue(ItemID.MagicMissile, Item.buyPrice(gold: 5)) - .AddWithCustomValue(ItemID.RodofDiscord, Item.buyPrice(gold: 12, silver: 50), Condition.Hardmode, Condition.InHallow) + .AddWithCustomValue(ItemID.RodofDiscord, Item.buyPrice(gold: 50), Condition.Hardmode, Condition.InHallow) .AddWithCustomValue(ItemID.SpectreStaff, Item.buyPrice(gold: 25), Condition.DownedGolem) .AddWithCustomValue(ItemID.InfernoFork, Item.buyPrice(gold: 25), Condition.DownedGolem) .AddWithCustomValue(ItemID.ShadowbeamStaff, Item.buyPrice(gold: 25), Condition.DownedGolem) @@ -1194,8 +1194,9 @@ namespace CalamityMod.NPCs { shop.Add(ItemType()) .Add(ItemType()) - .Add(ItemType(), Condition.Hardmode) - .Add(ItemType(), Condition.Hardmode) + .Add(ItemType()) + .Add(ItemType()) + .Add(ItemType()) .AddWithCustomValue(ItemID.ButterflyDust, Item.buyPrice(gold: 10), Condition.DownedGolem) .AddWithCustomValue(ItemID.FriedEgg, Item.buyPrice(gold: 2, silver: 50), Condition.HappyEnough); } diff --git a/Particles/StatDownArrow.cs b/Particles/StatDownArrow.cs new file mode 100644 index 0000000000..29624d1cd8 --- /dev/null +++ b/Particles/StatDownArrow.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Particles +{ + public class StatDownArrow : Particle + { + public override string Texture => "CalamityMod/Particles/StatDownArrow"; + public override bool UseAdditiveBlend => true; + public override bool UseCustomDraw => true; + public override bool SetLifetime => true; + + public Color StartColor; + public Color EndColor; + + public StatDownArrow(Vector2 position, Vector2 velocity, Color startColor, Color endColor, float scale, int lifetime) + { + Position = position; + Velocity = velocity; + Color = startColor; + StartColor = startColor; + EndColor = endColor; + Scale = scale; + Lifetime = lifetime; + Rotation = 0; + } + + public override void Update() + { + Color = Color.Lerp(StartColor, EndColor, LifetimeCompletion); + Lighting.AddLight(Position, Color.ToVector3() * 0.2f); + } + + public override void CustomDraw(SpriteBatch spriteBatch) + { + Texture2D texture = ModContent.Request(Texture).Value; + Vector2 DrawSize = new Vector2(Scale); + Vector2 Origin = new Vector2(texture.Width, texture.Height); + + Vector2 PositionAdjust = new Vector2(-5, -11); + + spriteBatch.Draw(texture, Position - Main.screenPosition - PositionAdjust, null, Color, Rotation, Origin, DrawSize, SpriteEffects.None, 0); + } + } +} diff --git a/Particles/StatDownArrow.png b/Particles/StatDownArrow.png new file mode 100644 index 0000000000..1119f1534b Binary files /dev/null and b/Particles/StatDownArrow.png differ diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 0425409c89..e6488377ba 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3646,12 +3646,12 @@ namespace CalamityMod.Projectiles if ((player.Calamity().flaskBrimstone || player.Calamity().flaskCrumbling || player.Calamity().flaskHoly) && !projectile.noEnchantments && !projectile.noEnchantmentVisuals) { int dustType = player.Calamity().flaskHoly ? (Main.rand.NextBool() ? 87 : (int)CalamityDusts.ProfanedFire) : player.Calamity().flaskBrimstone ? (Main.rand.NextBool() ? 114 : ModContent.DustType()) : (Main.rand.NextBool() ? 121 : DustID.Stone); - if (Main.rand.NextBool(4)) + if (Main.rand.NextBool(player.Calamity().flaskCrumbling ? 5 : 4)) { Dust dust = Dust.NewDustDirect(projectile.position, projectile.width, projectile.height, dustType, 0f, 0f, 100, default, Main.rand.NextFloat(0.6f, 0.9f)); dust.noGravity = dust.type == 121 ? false : true; - if (!player.Calamity().flaskHoly) - dust.fadeIn = 1f; + if (player.Calamity().flaskBrimstone) + dust.fadeIn = 0.8f; dust.velocity = player.Calamity().flaskHoly && Main.rand.NextBool(3) ? new Vector2(Main.rand.NextFloat(-0.9f, 0.9f), Main.rand.NextFloat(-6.6f, -9.8f)) : dust.type == 121 ? new Vector2(Main.rand.NextFloat(-0.7f, 0.7f), Main.rand.NextFloat(0.6f, 1.8f)) : -projectile.velocity * 0.2f; } } diff --git a/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs index cdb9e452ff..af6256b14a 100644 --- a/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheAncients_ParryHoldout.cs @@ -65,9 +65,13 @@ namespace CalamityMod.Projectiles.Melee GeneralParryEffects(); - //only get iframes if the enemy has contact damage :) + // 17APR2024: Ozzatron: Ark of the Ancients is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + // However, iframes are only granted if the target has contact damage. This means it won't work on Providence. Too bad. I have no sympathy for you if you are using this weapon line. if (target.damage > 0) - Owner.GiveIFrames(35); + { + int arkParryIFrames = Owner.ComputeParryIFrames(); + Owner.GiveUniversalIFrames(arkParryIFrames, false); + } Vector2 particleOrigin = target.Hitbox.Size().Length() < 140 ? target.Center : Projectile.Center + Projectile.rotation.ToRotationVector2() * 60f; Particle spark = new GenericSparkle(particleOrigin, Vector2.Zero, Color.White, Color.HotPink, 1.2f, 35, 0.1f, 2); diff --git a/Projectiles/Melee/ArkOfTheCosmos_BlastAttack.cs b/Projectiles/Melee/ArkOfTheCosmos_BlastAttack.cs index 6bbe56582f..e2b1ac7c17 100644 --- a/Projectiles/Melee/ArkOfTheCosmos_BlastAttack.cs +++ b/Projectiles/Melee/ArkOfTheCosmos_BlastAttack.cs @@ -121,9 +121,9 @@ namespace CalamityMod.Projectiles.Melee //Check for the up arrow once more so if the player has good reflexes they can avoid the dash. Gives them more control if (Owner.controlUp && Charge >= 5) { - Owner.GiveIFrames(ArkoftheCosmos.DashIframes); + // 17APR2024: Ozzatron: Dash iframes are not boosted by Cross Necklace at all and are fixed. + Owner.GiveUniversalIFrames(ArkoftheCosmos.DashIframes); Dashing = true; - } for (int i = 0; i < 20; i++) diff --git a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs index fca0947b30..3e652c4683 100644 --- a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs @@ -82,9 +82,13 @@ namespace CalamityMod.Projectiles.Melee GeneralParryEffects(); - //only get iframes if the enemy has contact damage :) + // 17APR2024: Ozzatron: Ark of the Cosmos is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + // However, iframes are only granted if the target has contact damage. This means it won't work on Providence. Too bad. I have no sympathy for you if you are using this weapon line. if (target.damage > 0) - Owner.GiveIFrames(35); + { + int arkParryIFrames = Owner.ComputeParryIFrames(); + Owner.GiveUniversalIFrames(arkParryIFrames, false); + } Vector2 particleOrigin = target.Hitbox.Size().Length() < 140 ? target.Center : Projectile.Center + Projectile.rotation.ToRotationVector2() * 60f; Particle spark = new GenericSparkle(particleOrigin, Vector2.Zero, Color.White, Color.HotPink, 1.2f, 35, 0.1f, 2); diff --git a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs index a9049e3f6f..d2d6ff0273 100644 --- a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs @@ -82,9 +82,13 @@ namespace CalamityMod.Projectiles.Melee GeneralParryEffects(); - //only get iframes if the enemy has contact damage :) + // 17APR2024: Ozzatron: Ark of the Elements is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + // However, iframes are only granted if the target has contact damage. This means it won't work on Providence. Too bad. I have no sympathy for you if you are using this weapon line. if (target.damage > 0) - Owner.GiveIFrames(35); + { + int arkParryIFrames = Owner.ComputeParryIFrames(); + Owner.GiveUniversalIFrames(arkParryIFrames, false); + } Vector2 particleOrigin = target.Hitbox.Size().Length() < 140 ? target.Center : Projectile.Center + Projectile.rotation.ToRotationVector2() * 60f; Particle spark = new GenericSparkle(particleOrigin, Vector2.Zero, Color.White, Color.HotPink, 1.2f, 35, 0.1f, 2); diff --git a/Projectiles/Melee/AtaraxiaBoom.cs b/Projectiles/Melee/AtaraxiaBoom.cs new file mode 100644 index 0000000000..e3aed7c831 --- /dev/null +++ b/Projectiles/Melee/AtaraxiaBoom.cs @@ -0,0 +1,79 @@ +using System; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + // TODO -- Abstract away most of the direct vector math away in here into things like SafeDirectionTo calls. + public class AtaraxiaBoom : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Melee"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + + public override void SetDefaults() + { + Projectile.width = 8; + Projectile.height = 8; + Projectile.friendly = true; + Projectile.DamageType = DamageClass.Melee; + Projectile.penetrate = -1; + Projectile.timeLeft = 1; + Projectile.tileCollide = false; + Projectile.ignoreWater = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + } + public override void AI() + { + Player Owner = Main.player[Projectile.owner]; + float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); + + // Light + Lighting.AddLight(Projectile.Center, 0.3f, 0.1f, 0.45f); + + } + public override void OnKill(int timeLeft) + { + if (Projectile.ai[0] == 0) + { + int flowerPetalCount = 6; + float thetaDelta = new Vector2(3, 3).RotatedByRandom(100).ToRotation(); + float weaveDistanceMin = 0.5f; + float weaveDistanceOutwardMax = 10f; + float weaveDistanceInner = 0.5f; + for (float theta = 0f; theta < MathHelper.TwoPi; theta += 0.05f) + { + float colorRando = Main.rand.NextFloat(0, 1); + Vector2 velocity = theta.ToRotationVector2() * + (weaveDistanceMin + + // The 0.5 in here is to prevent the petal from looping back into itself. With a 0.5 addition, it is perfect, coming back to (0,0) + // instead of weaving backwards. + (float)(Math.Sin(thetaDelta + theta * flowerPetalCount) + 0.5f + weaveDistanceInner) * + weaveDistanceOutwardMax); + Dust dust = Dust.NewDustPerfect(Projectile.Center, 267, velocity); + dust.noGravity = true; + dust.scale = 1.15f; + dust.color = Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando); + } + for (int k = 0; k < 5; k++) + { + Vector2 velocity = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.6f, 1.2f); + float colorRando = Main.rand.NextFloat(0, 1); + Particle spark = new SparkParticle(Projectile.Center + velocity, velocity, true, 50, Main.rand.NextFloat(0.7f, 0.95f), Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando)); + GeneralParticleHandler.SpawnParticle(spark); + } + } + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.numHits > 0) + Projectile.damage = (int)(Projectile.damage * 0.88f); + if (Projectile.damage < 1) + Projectile.damage = 1; + } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Projectile.ai[0] == 1 ? 130 : 200, targetHitbox); + } +} diff --git a/Projectiles/Melee/AtaraxiaHoming.cs b/Projectiles/Melee/AtaraxiaHoming.cs deleted file mode 100644 index f7fa79c5ff..0000000000 --- a/Projectiles/Melee/AtaraxiaHoming.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Projectiles.Melee -{ - // TODO -- Abstract away most of the direct vector math away in here into things like SafeDirectionTo calls. - public class AtaraxiaHoming : ModProjectile, ILocalizedModType - { - public new string LocalizationCategory => "Projectiles.Melee"; - private static int NumAnimationFrames = 5; - private static int AnimationFrameTime = 9; - private static float HomingStartRange = 300f; - private static float HomingBreakRange = 1000f; - - private static int Lifespan = 180; - private static int IntangibleFrames = 12; - - public override void SetStaticDefaults() - { - Main.projFrames[Projectile.type] = NumAnimationFrames; - } - - public override void SetDefaults() - { - Projectile.width = 8; - Projectile.height = 8; - Projectile.friendly = true; - Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 1; - Projectile.extraUpdates = 1; - Projectile.timeLeft = Lifespan; - Projectile.ignoreWater = true; - } - - private bool HomingAI() - { - // Save current speed to AI variables - float speed = Projectile.velocity.Length(); - if (Projectile.ai[0] == 0f) - Projectile.ai[0] = speed; - - // Variables for choosing an NPC to home in on - float posX = Projectile.position.X; - float posY = Projectile.position.Y; - float homingRange = HomingStartRange; - bool foundTarget = false; - int targetIndex = 0; - - // ai[1] stores the index of the current target plus one. 0 is none. - if (Projectile.ai[1] == 0f) - { - // Find the closest target. The range decreases each time you find a closer target. - for (int i = 0; i < Main.maxNPCs; ++i) - { - if (Main.npc[i].CanBeChasedBy(Projectile, false)) - { - // Chlorophyte Bullets actually home in a diamond instead of a circle because they don't perform a square root here. - float d = Math.Abs(Projectile.Center.X - Main.npc[i].Center.X) + Math.Abs(Projectile.Center.Y - Main.npc[i].Center.Y); - if (d < homingRange && Collision.CanHit(Projectile.Center, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height)) - { - homingRange = d; - posX = Main.npc[i].Center.X; - posY = Main.npc[i].Center.Y; - foundTarget = true; - targetIndex = i; - } - } - } - - // If at least one valid target was found, set ai[1] to store its index plus one. - if (foundTarget) - Projectile.ai[1] = (float)(targetIndex + 1); - } - - // This is always the case after that loop for some reason. - foundTarget = false; - - // Ensure the current target is still valid - if (Projectile.ai[1] > 0f) - { - targetIndex = (int)(Projectile.ai[1] - 1f); - - // Chlorophyte Bullets will continue homing in unless their target is invincible. - if (Main.npc[targetIndex].active && Main.npc[targetIndex].CanBeChasedBy(Projectile, false)) - { - float targetX = Main.npc[targetIndex].Center.X; - float targetY = Main.npc[targetIndex].Center.Y; - float d = Math.Abs(Projectile.Center.X - targetX) + Math.Abs(Projectile.Center.Y - targetY); - if (d < HomingBreakRange) - { - foundTarget = true; - posX = targetX; - posY = targetY; - } - } - else - Projectile.ai[1] = 0f; - } - - // Non-friendly Chlorophyte Bullets will never actually home in, despite maintaining a target. - if (foundTarget && Projectile.friendly) - { - float dx = posX - Projectile.Center.X; - float dy = posY - Projectile.Center.Y; - float distance = (float)Math.Sqrt(dx * dx + dy * dy); - float homingFactor = speed / distance; - dx *= homingFactor; - dy *= homingFactor; - - // The projectile loses 1/5th of its current velocity and replaces it with homing power. - float homingStrength = 5f; - Projectile.velocity.X = (Projectile.velocity.X * (homingStrength - 1f) + dx) / homingStrength; - Projectile.velocity.Y = (Projectile.velocity.Y * (homingStrength - 1f) + dy) / homingStrength; - - // And then approaches the homing velocity by an increment of 0.3. - Projectile.velocity = Projectile.velocity.MoveTowards(new Vector2(dx, dy), 0.3f); - - // Re-scale resulting velocity to the projectile's set maximum speed - Projectile.velocity.Normalize(); - Projectile.velocity *= speed; - return true; - } - return false; - } - - public override void AI() - { - DrawOffsetX = -28; - DrawOriginOffsetY = -2; - DrawOriginOffsetX = 12; - Projectile.rotation = Projectile.velocity.ToRotation(); - - // Run homing code - bool homing = HomingAI(); - - // Light - Lighting.AddLight(Projectile.Center, 0.3f, 0.1f, 0.45f); - - // Spawn dust with a 3/4 chance if currently homing in - if (homing && !Main.rand.NextBool(4)) - { - int idx = Dust.NewDust(Projectile.Center, 1, 1, DustID.PurpleCrystalShard); - Main.dust[idx].position = Projectile.Center; - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 0.25f; - } - - // Update animation - Projectile.frameCounter++; - if (Projectile.frameCounter > AnimationFrameTime) - { - Projectile.frame++; - Projectile.frameCounter = 0; - } - if (Projectile.frame >= NumAnimationFrames) - Projectile.frame = 0; - } - - // Cannot deal damage for the first several frames of existence. - public override bool? CanDamage() - { - return Projectile.timeLeft < Lifespan - IntangibleFrames; - } - } -} diff --git a/Projectiles/Melee/AtaraxiaHoming.png b/Projectiles/Melee/AtaraxiaHoming.png deleted file mode 100644 index 47e460cede..0000000000 Binary files a/Projectiles/Melee/AtaraxiaHoming.png and /dev/null differ diff --git a/Projectiles/Melee/AtaraxiaMain.cs b/Projectiles/Melee/AtaraxiaMain.cs index 32c899409b..b359302337 100644 --- a/Projectiles/Melee/AtaraxiaMain.cs +++ b/Projectiles/Melee/AtaraxiaMain.cs @@ -1,4 +1,8 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Items.Ammo; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Mono.Cecil; +using SteelSeries.GameSense; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -11,6 +15,7 @@ namespace CalamityMod.Projectiles.Melee public new string LocalizationCategory => "Projectiles.Melee"; private static int NumAnimationFrames = 5; private static int AnimationFrameTime = 9; + public int time = 0; public override void SetStaticDefaults() { @@ -25,12 +30,18 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.ignoreWater = true; Projectile.penetrate = 1; - Projectile.extraUpdates = 3; - Projectile.timeLeft = 180; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; + Projectile.tileCollide = false; + Projectile.extraUpdates = 5; + Projectile.timeLeft = 300; } public override void AI() { + Player Owner = Main.player[Projectile.owner]; + float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); + DrawOffsetX = -40; DrawOriginOffsetY = -3; DrawOriginOffsetX = 18; @@ -39,13 +50,23 @@ namespace CalamityMod.Projectiles.Melee // Light Lighting.AddLight(Projectile.Center, 0.45f, 0.1f, 0.1f); - // Spawn dust with a 1/2 chance - if (Main.rand.NextBool()) + if (time > 8f && targetDist < 1400f) { - int idx = Dust.NewDust(Projectile.Center, 1, 1, DustID.GemRuby); - Main.dust[idx].position = Projectile.Center; - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 0.6f; + SparkParticle spark = new SparkParticle(Projectile.Center - Projectile.velocity * 1.5f, -Projectile.velocity * Main.rand.NextFloat(0.3f, 1.5f), false, 8, 0.8f, Color.Lerp(Color.DarkOrchid, Color.IndianRed, Main.rand.NextFloat(0, 1)) * 0.7f); + GeneralParticleHandler.SpawnParticle(spark); + } + if (time > 8f && targetDist < 1400f) + { + Particle spark = new SparkParticle(Projectile.Center + Projectile.velocity * 2f, Projectile.velocity, false, 2, 1.9f, Color.Lerp(Color.DarkOrchid, Color.IndianRed, Main.rand.NextFloat(0, 1)) * 0.85f); + GeneralParticleHandler.SpawnParticle(spark); + } + + if (time > 8 && Main.rand.NextBool()) + { + Vector2 dustvel = -Projectile.velocity; + Dust dust = Dust.NewDustPerfect(Projectile.Center, 267, dustvel * Main.rand.NextFloat(0.1f, 1.2f), 0, default, Main.rand.NextFloat(0.7f, 0.9f)); + dust.noGravity = true; + dust.color = Color.Lerp(Color.DarkOrchid, Color.IndianRed, Main.rand.NextFloat(0, 1)); } // Update animation @@ -57,6 +78,8 @@ namespace CalamityMod.Projectiles.Melee } if (Projectile.frame >= NumAnimationFrames) Projectile.frame = 0; + + time++; } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) @@ -69,34 +92,38 @@ namespace CalamityMod.Projectiles.Melee { SoundEngine.PlaySound(SoundID.NPCDeath55, Projectile.Center); - // Transform the projectile's hitbox into a big explosion - Projectile.position = Projectile.Center; - Projectile.width = Projectile.height = 140; - Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); - Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - - Vector2 corner = Projectile.position; - for (int i = 0; i < 50; i++) + if (Projectile.owner == Main.myPlayer) { - int idx = Dust.NewDust(corner, Projectile.width, Projectile.height, DustID.GemAmethyst, 0f, 0f, 0, new Color(210, 0, 255), 2.2f); - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 2.5f; - - idx = Dust.NewDust(corner, Projectile.width, Projectile.height, DustID.Ice_Purple, 0f, 0f, 100, new Color(210, 0, 255), 1.8f); - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 1.8f; - - idx = Dust.NewDust(corner, Projectile.width, Projectile.height, DustID.UndergroundHallowedEnemies, 0f, 0f, 100, new Color(210, 0, 255), 1.0f); - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 4.0f; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage / 2, 0, Projectile.owner, 1f, 0f, 0f); + } + for (int k = 0; k < 10; k++) + { + Vector2 velocity = new Vector2(20, 20).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + float colorRando = Main.rand.NextFloat(0, 1); + Dust dust = Dust.NewDustPerfect(Projectile.Center + velocity, 278, velocity * Main.rand.NextFloat(0.2f, 1f)); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.3f, 0.65f); + dust.color = Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando); + dust.noLight = true; + dust.noLightEmittence = true; + } + for (int k = 0; k < 10; k++) + { + Vector2 velocity = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + float colorRando = Main.rand.NextFloat(0, 1); + Particle spark = new GlowSparkParticle(Projectile.Center + velocity, velocity, false, 11, Main.rand.NextFloat(0.015f, 0.025f), Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando), new Vector2(2.2f, 0.9f), true); + GeneralParticleHandler.SpawnParticle(spark); + } + for (float k = 0; k < 3; k++) + { + float colorRando = Main.rand.NextFloat(0, 1); + int partLifetime = Main.rand.Next(13, 15 + 1); + float scale = Main.rand.NextFloat(0.12f, 0.18f); + Vector2 spawnPos = Projectile.Center + (Main.rand.NextVector2Circular(20, 20) * (k + 1)); + Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando) * 0.6f, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing); } - - // Make the projectile ignore iframes while exploding - Projectile.maxPenetrate = -1; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.Damage(); } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 30, targetHitbox); } } diff --git a/Projectiles/Melee/AtaraxiaSide.cs b/Projectiles/Melee/AtaraxiaSide.cs index 11f7d2fdd2..9af813ba37 100644 --- a/Projectiles/Melee/AtaraxiaSide.cs +++ b/Projectiles/Melee/AtaraxiaSide.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Particles; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -11,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee public new string LocalizationCategory => "Projectiles.Melee"; private static int NumAnimationFrames = 5; private static int AnimationFrameTime = 9; + public int time = 0; public override void SetStaticDefaults() { @@ -25,27 +27,38 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.ignoreWater = true; Projectile.penetrate = 1; - Projectile.extraUpdates = 3; - Projectile.timeLeft = 180; + Projectile.tileCollide = false; + Projectile.extraUpdates = 5; + Projectile.timeLeft = 300; } public override void AI() { + Player Owner = Main.player[Projectile.owner]; + float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); + DrawOffsetX = -28; DrawOriginOffsetY = -2; DrawOriginOffsetX = 12; - Projectile.rotation = Projectile.velocity.ToRotation(); + if (Projectile.ai[1] == 2) + { + Projectile.rotation = (Projectile.velocity.RotatedBy(0.2f)).ToRotation(); + } + else + { + Projectile.rotation = (Projectile.velocity.RotatedBy(-0.2f)).ToRotation(); + } // Light Lighting.AddLight(Projectile.Center, 0.3f, 0.1f, 0.45f); - // Spawn dust with a 3/4 chance - if (!Main.rand.NextBool(4)) + if (time > 8 && Main.rand.NextBool()) { - int idx = Dust.NewDust(Projectile.Center, 1, 1, DustID.PurpleCrystalShard); - Main.dust[idx].position = Projectile.Center; - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 0.25f; + float colorRando = Main.rand.NextFloat(0, 1); + Vector2 dustvel = Projectile.ai[1] == 2 ? Projectile.velocity.RotatedBy(0.2f) : Projectile.velocity.RotatedBy(-0.2f); + Dust dust = Dust.NewDustPerfect(Projectile.Center + Projectile.velocity, 261, -dustvel * Main.rand.NextFloat(0.2f, 1.2f), 0, default, Main.rand.NextFloat(0.4f, 0.6f)); + dust.noGravity = true; + dust.color = Color.Lerp(Color.DarkOrchid, Color.IndianRed, colorRando); } // Update animation @@ -57,6 +70,8 @@ namespace CalamityMod.Projectiles.Melee } if (Projectile.frame >= NumAnimationFrames) Projectile.frame = 0; + + time++; } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) @@ -69,10 +84,10 @@ namespace CalamityMod.Projectiles.Melee { SoundEngine.PlaySound(SoundID.Item89, Projectile.Center); - // Individual split projectiles deal 5% damage per hit. + // Individual split projectiles deal 2% damage per hit. int numSplits = 6; int splitID = ModContent.ProjectileType(); - int damage = (int)(Projectile.damage * 0.05f); + int damage = (int)(Projectile.damage * 0.02f); float angleVariance = MathHelper.TwoPi / numSplits; Vector2 projVec = new Vector2(4.5f, 0f).RotatedByRandom(MathHelper.TwoPi); @@ -83,5 +98,6 @@ namespace CalamityMod.Projectiles.Melee Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, projVec, splitID, damage, 1.5f, Main.myPlayer); } } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 15, targetHitbox); } } diff --git a/Projectiles/Melee/AtaraxiaSplit.cs b/Projectiles/Melee/AtaraxiaSplit.cs index c83f67bd8e..f31f690d52 100644 --- a/Projectiles/Melee/AtaraxiaSplit.cs +++ b/Projectiles/Melee/AtaraxiaSplit.cs @@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.penetrate = -1; + Projectile.extraUpdates = 2; Projectile.usesIDStaticNPCImmunity = true; Projectile.idStaticNPCHitCooldown = 6; Projectile.timeLeft = 25; diff --git a/Projectiles/Melee/BrokenBiomeBlade_AridGrandeur.cs b/Projectiles/Melee/BrokenBiomeBlade_AridGrandeur.cs index 107ac41320..52e1b475a3 100644 --- a/Projectiles/Melee/BrokenBiomeBlade_AridGrandeur.cs +++ b/Projectiles/Melee/BrokenBiomeBlade_AridGrandeur.cs @@ -182,7 +182,11 @@ namespace CalamityMod.Projectiles.Melee Shred += 62; //Augment the shredspeed if (Owner.velocity.Y > 0) Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly - Owner.GiveIFrames(BrokenBiomeBlade.HotAttunement_ShredIFrames); // i framez. + + // 17APR2024: Ozzatron: Broken Biome Blade's pogo gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(BrokenBiomeBlade.HotAttunement_ShredIFrames); + PogoCooldown = 20; } } diff --git a/Projectiles/Melee/BrokenBiomeBlade_DecaysRetort.cs b/Projectiles/Melee/BrokenBiomeBlade_DecaysRetort.cs index 270fc9796e..805df34b78 100644 --- a/Projectiles/Melee/BrokenBiomeBlade_DecaysRetort.cs +++ b/Projectiles/Melee/BrokenBiomeBlade_DecaysRetort.cs @@ -113,7 +113,10 @@ namespace CalamityMod.Projectiles.Melee bounceStrength *= Owner.velocity.Y == 0 ? 0.2f : 1f; //Reduce the bounce if the player is on the ground Owner.velocity = -direction.SafeNormalize(Vector2.Zero) * MathHelper.Clamp(bounceStrength, 0f, 22f); CanBounce = 0f; - Owner.GiveIFrames(BrokenBiomeBlade.EvilAttunement_BounceIFrames); // i frames for free! + + // 17APR2024: Ozzatron: Broken Biome Blade's lunge gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(BrokenBiomeBlade.EvilAttunement_BounceIFrames); } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Melee/Galaxia_AndromedasStride.cs b/Projectiles/Melee/Galaxia_AndromedasStride.cs index 4dee359b04..63dde30024 100644 --- a/Projectiles/Melee/Galaxia_AndromedasStride.cs +++ b/Projectiles/Melee/Galaxia_AndromedasStride.cs @@ -261,7 +261,9 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - Owner.GiveIFrames(FourSeasonsGalaxia.AndromedaAttunement_DashHitIFrames); + // 17APR2024: Ozzatron: Galaxia's dash gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(FourSeasonsGalaxia.AndromedaAttunement_DashHitIFrames); } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) diff --git a/Projectiles/Melee/Galaxia_PolarisGaze.cs b/Projectiles/Melee/Galaxia_PolarisGaze.cs index 0f0d6f1402..fc1201ae05 100644 --- a/Projectiles/Melee/Galaxia_PolarisGaze.cs +++ b/Projectiles/Melee/Galaxia_PolarisGaze.cs @@ -82,7 +82,11 @@ namespace CalamityMod.Projectiles.Melee Dashing = true; DashStart = Owner.Center; Wheel.timeLeft = 60; - Owner.GiveIFrames(FourSeasonsGalaxia.PolarisAttunement_SlashIFrames); + + // 17APR2024: Ozzatron: Galaxia's spiral gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(FourSeasonsGalaxia.PolarisAttunement_SlashIFrames); + break; } } @@ -269,7 +273,11 @@ namespace CalamityMod.Projectiles.Melee Shred += 80; //Augment the shredspeed if (Owner.velocity.Y > 0) Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly - Owner.GiveIFrames(FourSeasonsGalaxia.PolarisAttunement_ShredIFrames); // i framez. + + // 17APR2024: Ozzatron: Galaxia's pogo gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(FourSeasonsGalaxia.PolarisAttunement_ShredIFrames); + HitChargeCooldown = 20; } } diff --git a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs index 898512a111..54251e3ace 100644 --- a/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs +++ b/Projectiles/Melee/MendedBiomeBlade_ExtantAbhorrence.cs @@ -235,7 +235,9 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - Owner.GiveIFrames(TrueBiomeBlade.AstralAttunement_DashHitIFrames); + // 17APR2024: Ozzatron: Biome Blade's astral slam gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(TrueBiomeBlade.AstralAttunement_DashHitIFrames); } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) diff --git a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeur.cs b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeur.cs index 6962226acb..f5e092058f 100644 --- a/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeur.cs +++ b/Projectiles/Melee/MendedBiomeBlade_TrueAridGrandeur.cs @@ -202,7 +202,10 @@ namespace CalamityMod.Projectiles.Melee Shred += 62; //Augment the shredspeed if (Owner.velocity.Y > 0) Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly - Owner.GiveIFrames(TrueBiomeBlade.HotAttunement_ShredIFrames); // i framez. Do 5 iframes even matter? idk but you get a lot of em so lol... + + // 17APR2024: Ozzatron: Biome Blade's pogo gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(TrueBiomeBlade.HotAttunement_ShredIFrames); PogoCooldown = 20; } } diff --git a/Projectiles/Melee/MendedBiomeBlade_TrueDecaysRetort.cs b/Projectiles/Melee/MendedBiomeBlade_TrueDecaysRetort.cs index df30ba3975..43accf8d45 100644 --- a/Projectiles/Melee/MendedBiomeBlade_TrueDecaysRetort.cs +++ b/Projectiles/Melee/MendedBiomeBlade_TrueDecaysRetort.cs @@ -132,7 +132,10 @@ namespace CalamityMod.Projectiles.Melee Owner.Calamity().LungingDown = true; PowerLungeStart = Owner.Center; dashTimer = 1f; - Owner.GiveIFrames(TrueBiomeBlade.EvilAttunement_SlashIFrames); + + // 17APR2024: Ozzatron: Biome Blade's lunge gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(TrueBiomeBlade.EvilAttunement_SlashIFrames); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => OnHitEffects(Main.player[Projectile.owner].moonLeech); @@ -160,7 +163,11 @@ namespace CalamityMod.Projectiles.Melee bounceStrength *= Owner.velocity.Y == 0 ? 0.2f : 1f; //Reduce the bounce if the player is on the ground Owner.velocity = -direction.SafeNormalize(Vector2.Zero) * MathHelper.Clamp(bounceStrength, 0f, 22f); CanBounce = 0f; - Owner.GiveIFrames(TrueBiomeBlade.EvilAttunement_BounceIFrames); // i frames for free! + + // 17APR2024: Ozzatron: Biome Blade's bounce gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(TrueBiomeBlade.EvilAttunement_BounceIFrames); + if (Owner.whoAmI == Main.myPlayer) { if (Owner.HeldItem.ModItem is TrueBiomeBlade sword) diff --git a/Projectiles/Melee/PhosphorescentGauntletPunches.cs b/Projectiles/Melee/PhosphorescentGauntletPunches.cs index 61eff43989..7a9214bfd4 100644 --- a/Projectiles/Melee/PhosphorescentGauntletPunches.cs +++ b/Projectiles/Melee/PhosphorescentGauntletPunches.cs @@ -73,7 +73,9 @@ namespace CalamityMod.Projectiles.Melee internal void ReelBack() { - Owner.GiveIFrames(PhosphorescentGauntlet.OnHitIFrames); + // 17APR2024: Ozzatron: Phosphorescent Gauntlet gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(PhosphorescentGauntlet.OnHitIFrames); // Create some visual effects. if (!Main.dedServ) diff --git a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs index 10c628b7f9..b887c914cc 100644 --- a/Projectiles/Melee/Spears/RedtideSpearProjectile.cs +++ b/Projectiles/Melee/Spears/RedtideSpearProjectile.cs @@ -307,9 +307,13 @@ namespace CalamityMod.Projectiles.Melee.Spears target.AddBuff(BuffID.Poisoned, 180); - //Give a sliver of iframes to the player so its safer to ram into hordes (which is fun and should be encouraged) if (CurrentAttackState == AttackState.RunAttack) - Owner.GiveIFrames(5); + { + // 17APR2024: Ozzatron: Redtide Spear's charge gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + int redtideRamIFrames = 5; + Owner.GiveUniversalIFrames(redtideRamIFrames); + } } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) diff --git a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs index 63ca3d30d8..1bd5336742 100644 --- a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs +++ b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs @@ -65,9 +65,13 @@ namespace CalamityMod.Projectiles.Melee GeneralParryEffects(); - //only get iframes if the enemy has contact damage :) + // 17APR2024: Ozzatron: True Ark of the Ancients is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + // However, iframes are only granted if the target has contact damage. This means it won't work on Providence. Too bad. I have no sympathy for you if you are using this weapon line. if (target.damage > 0) - Owner.GiveIFrames(35); + { + int arkParryIFrames = Owner.ComputeParryIFrames(); + Owner.GiveUniversalIFrames(arkParryIFrames, false); + } Vector2 particleOrigin = target.Hitbox.Size().Length() < 140 ? target.Center : Projectile.Center + Projectile.rotation.ToRotationVector2() * 60f; Particle spark = new GenericSparkle(particleOrigin, Vector2.Zero, Color.White, Color.HotPink, 1.2f, 35, 0.1f, 2); diff --git a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs index 24dafd7d89..a0183dbc9b 100644 --- a/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs +++ b/Projectiles/Melee/TrueBiomeBlade_MercurialTides.cs @@ -234,7 +234,9 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - Owner.GiveIFrames(OmegaBiomeBlade.ShockwaveAttunement_DashHitIFrames); + // 17APR2024: Ozzatron: True Biome Blade's shockwave slam gives iframes when striking enemies in a similar manner to a ram dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(OmegaBiomeBlade.ShockwaveAttunement_DashHitIFrames); } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) diff --git a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs index 518562598a..e7b182dc10 100644 --- a/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs +++ b/Projectiles/Melee/TrueBiomeBlade_SanguineFury.cs @@ -116,7 +116,11 @@ namespace CalamityMod.Projectiles.Melee Dashing = true; DashStart = Owner.Center; Wheel.timeLeft = 60; - Owner.GiveIFrames(OmegaBiomeBlade.SuperPogoAttunement_SlashIFrames); + + // 17APR2024: Ozzatron: True Biome Blade's pogo gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_SlashIFrames); + break; } } @@ -256,7 +260,11 @@ namespace CalamityMod.Projectiles.Melee Shred += 62; //Augment the shredspeed if (Owner.velocity.Y > 0) Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly - Owner.GiveIFrames(OmegaBiomeBlade.SuperPogoAttunement_ShredIFrames); // i framez. + + // 17APR2024: Ozzatron: True Biome Blade's shred pogo gives iframes when striking enemies in a similar manner to a bonk dash. + // This is a fixed and intentionally very low number of iframes, and is not boosted by Cross Necklace. + Owner.GiveUniversalIFrames(OmegaBiomeBlade.SuperPogoAttunement_ShredIFrames); + PogoCooldown = 20; } } diff --git a/Projectiles/Ranged/ElementalEruptionHouldout.cs b/Projectiles/Ranged/ElementalEruptionHouldout.cs index 382c5fd4e6..e3c445aa01 100644 --- a/Projectiles/Ranged/ElementalEruptionHouldout.cs +++ b/Projectiles/Ranged/ElementalEruptionHouldout.cs @@ -1,145 +1,95 @@ using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; +using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class ElementalEruptionHoldout : ModProjectile + public class ElementalEruptionHoldout : BaseGunHoldoutProjectile { - // Take the name and texture from the weapon - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/ElementalEruption"; - private Player Owner => Main.player[Projectile.owner]; + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 15f; + public override float OffsetXUpwards => -10f; + public override float BaseOffsetY => -5f; + public override float OffsetYDownwards => 10f; + + private ref float ShotCooldown => ref Projectile.ai[0]; private ref float ShotsFired => ref Projectile.ai[1]; private ref float ShootTimer => ref Projectile.ai[2]; - private ref int ShotDelay => ref Owner.ActiveItem().useTime; // 6 - public int ShotCooldown; public int FireBlobs = 0; - public int Time = 0; - public override void SetDefaults() + public override void KillHoldoutLogic() { - Projectile.width = 64; - Projectile.height = 34; - Projectile.friendly = true; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Ranged; - Projectile.ignoreWater = true; + base.KillHoldoutLogic(); + if (ShotsFired >= 24) + { + Projectile.Kill(); + Projectile.netUpdate = true; + } } - public override void AI() + public override void HoldoutAI() { - Time++; - if (Time == 1) - Projectile.alpha = 255; - else - Projectile.alpha = 0; - - if (Owner.dead || ShotsFired >= 24) // destroy the holdout if the player dies or is out of shots + var effectcolor = Main.rand.Next(4) switch { - Projectile.Kill(); - return; - } + 0 => Color.DeepSkyBlue, + 1 => Color.MediumSpringGreen, + 2 => Color.DarkOrange, + _ => Color.Violet, + }; - Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true); - Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.8f; - - // Kill if the owner stops channeling or otherwise cannot use the weapon. - if (Owner.CantUseHoldout()) - Projectile.Kill(); - else + ShootTimer++; + if (ShootTimer >= 60) { - var effectcolor = Main.rand.Next(4) switch + if (ShotCooldown == 0) { - 0 => Color.DeepSkyBlue, - 1 => Color.MediumSpringGreen, - 2 => Color.DarkOrange, - _ => Color.Violet, - }; - - // While channeled, keep refreshing the projectile lifespan - Projectile.timeLeft = 2; - - ShootTimer++; - if (ShootTimer >= 60) - { - if (ShotCooldown == 0) - { - SoundEngine.PlaySound(SoundID.Item34, Projectile.Center); - Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextFloat() < 0.70f); - for (int i = 0; i < 2; i++) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, (Projectile.velocity * 10).RotatedByRandom(0.12f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); - } - ShotsFired++; - ShotCooldown = ShotDelay; - if (FireBlobs == 0) - { - Vector2 newVel = (Projectile.velocity * 9); - Vector2 newPos = tipPosition + Projectile.velocity.SafeNormalize(Vector2.UnitX) * 36f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), -1f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), 1f); - FireBlobs = 3; - } - else - FireBlobs--; - } - else - ShotCooldown--; - } - else - { - if (ShootTimer == 1) - SoundEngine.PlaySound(SoundID.Item73 with { Volume = 0.7f }, Projectile.Center); - ShotsFired = 0; + SoundEngine.PlaySound(SoundID.Item34, Projectile.Center); + Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextFloat() < 0.70f); for (int i = 0; i < 2; i++) { - int dustType = Main.rand.NextBool() ? 66 : 247; - float rotMulti = Main.rand.NextFloat(0.3f, 1f); - Dust dust = Dust.NewDustPerfect(tipPosition, dustType); - dust.scale = Main.rand.NextFloat(1.2f, 1.8f) * (ShootTimer * 0.025f) - rotMulti * 0.1f; - dust.noGravity = true; - dust.velocity = new Vector2(0, -2).RotatedByRandom(rotMulti * 0.3f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (ShootTimer * 0.025f); - dust.alpha = Main.rand.Next(90, 150); - dust.color = effectcolor; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 10).RotatedByRandom(0.12f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); } + ShotsFired++; + ShotCooldown = HeldItem.useTime; + if (FireBlobs == 0) + { + Vector2 newVel = (Projectile.velocity * 9); + Vector2 newPos = GunTipPosition + Projectile.velocity.SafeNormalize(Vector2.UnitX) * 36f; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), -1f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), newPos, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner, newVel.Length(), 1f); + FireBlobs = 3; + } + else + FireBlobs--; } - + else + ShotCooldown--; } - UpdateProjectileHeldVariables(armPosition); - ManipulatePlayerVariables(); - } - - private void UpdateProjectileHeldVariables(Vector2 armPosition) - { - if (Main.myPlayer == Projectile.owner) + else { - float interpolant = Utils.GetLerpValue(5f, 35f, Projectile.Distance(Main.MouseWorld), true); - Vector2 oldVelocity = Projectile.velocity; - Projectile.velocity = Vector2.Lerp(Projectile.velocity, Projectile.SafeDirectionTo(Main.MouseWorld), interpolant); - if (Projectile.velocity != oldVelocity) + ShotsFired = 0; + for (int i = 0; i < 2; i++) { - Projectile.netSpam = 0; - Projectile.netUpdate = true; + int dustType = Main.rand.NextBool() ? 66 : 247; + float rotMulti = Main.rand.NextFloat(0.3f, 1f); + Dust dust = Dust.NewDustPerfect(GunTipPosition, dustType); + dust.scale = Main.rand.NextFloat(1.2f, 1.8f) * (ShootTimer * 0.025f) - rotMulti * 0.1f; + dust.noGravity = true; + dust.velocity = new Vector2(0, -2).RotatedByRandom(rotMulti * 0.3f) * (Main.rand.NextFloat(1f, 3.2f) - rotMulti) * (ShootTimer * 0.025f); + dust.alpha = Main.rand.Next(90, 150); + dust.color = effectcolor; } } - Projectile.Center = armPosition + Projectile.velocity * 20; - Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); - Projectile.spriteDirection = Projectile.direction; } - private void ManipulatePlayerVariables() + public override void OnSpawn(IEntitySource source) { - Owner.ChangeDir(Projectile.direction); - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = 2; - Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); + base.OnSpawn(source); + SoundEngine.PlaySound(SoundID.Item73 with { Volume = 0.7f }, Projectile.Center); } - public override bool? CanDamage() => false; } } diff --git a/Projectiles/Ranged/FlakKrakenHoldout.cs b/Projectiles/Ranged/FlakKrakenHoldout.cs index 88ad21ae67..2eaeff6f2a 100644 --- a/Projectiles/Ranged/FlakKrakenHoldout.cs +++ b/Projectiles/Ranged/FlakKrakenHoldout.cs @@ -1,76 +1,52 @@ using System; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; -using Terraria.ModLoader; using static CalamityMod.Items.Weapons.Ranged.FlakKraken; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Projectiles.Ranged { - public class FlakKrakenHoldout : ModProjectile + public class FlakKrakenHoldout : BaseGunHoldoutProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/FlakKraken"; + public override int AssociatedItemID => ItemType(); + public override float RecoilResolveSpeed => 0.05f; + public override float MaxOffsetLengthFromArm => 30f; + public override float OffsetXUpwards => -18f; + public override float OffsetXDownwards => 15f; + public override float BaseOffsetY => -20f; + public override float OffsetYUpwards => 20f; + public override float OffsetYDownwards => 10f; - public Player Owner { get; set; } public ref float ShootingTimer => ref Projectile.ai[0]; public ref float TimerBetweenBursts => ref Projectile.ai[1]; - public ref float OffsetLengthScalar => ref Projectile.localAI[0]; // The type of dust used in the effects and the color of the particles that it'll use depending on the type of rocket used. // It'll carry over to the projectiles that it shoots. public static int DustEffectsID { get; set; } public static Color EffectsColor { get; set; } - public override void SetDefaults() + public override void HoldoutAI() { - Projectile.width = Projectile.height = 152; - Projectile.tileCollide = false; - Projectile.ignoreWater = true; - Projectile.netImportant = true; - } - - public override void AI() - { - // If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout. - if (Owner.CantUseHoldout()) - { - Projectile.Kill(); - NetUpdate(); - return; - } - - // The center of the player, taking into account if they have a mount or not. - Vector2 mountedCenter = Owner.MountedCenter; - // The vector between the player and the mouse. - Vector2 ownerToMouse = Owner.Calamity().mouseWorld - mountedCenter; - - // Deals with the holdout's rotation and direction, the owner's arms, etc. - ManageHoldout(mountedCenter, ownerToMouse); + Vector2 ownerToMouse = Owner.Calamity().mouseWorld - Owner.MountedCenter; // If the timer reaches Item.useTime, it'll shoot. // It'll shoot once immediately as the timer reaches. - Item heldItem = Owner.ActiveItem(); - if (ShootingTimer >= heldItem.useAnimation) + if (ShootingTimer >= HeldItem.useAnimation) { - float adaptiveTimeBetweenShots = MathF.Floor(TimeBetweenShots * heldItem.useAnimation / OriginalUseTime); + float adaptiveTimeBetweenShots = MathF.Floor(TimeBetweenShots * HeldItem.useAnimation / OriginalUseTime); // Every X frames it'll shoot a projectile. if (ShootingTimer % adaptiveTimeBetweenShots == 0f) { // We use the velocity of this projectile as its direction vector. Vector2 direction = Projectile.velocity.SafeNormalize(Vector2.Zero); - // The position of the tip of the gun. - Vector2 nuzzlePosition = Projectile.Center + direction * Projectile.width / 2f; - // Every time we shoot we use ammo. // With this method we also use the item's stats, like the shoot speed, or the type of ammo it was used. Owner.PickAmmo(Owner.ActiveItem(), out _, out float itemShootSpeed, out int itemDamage, out float itemKnockback, out int rocketTypeShot); @@ -99,7 +75,7 @@ namespace CalamityMod.Projectiles.Ranged // Spawns the projectile. Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - nuzzlePosition, + GunTipPosition, direction * itemShootSpeed, ProjectileType(), itemDamage, @@ -116,11 +92,11 @@ namespace CalamityMod.Projectiles.Ranged if (!Main.dedServ) { // By decreasing the offset length of the gun from the arms, we give an effect of recoil. - OffsetLengthScalar = 10f; + OffsetLengthFromArm = 10f; Owner.Calamity().GeneralScreenShakePower = 3.5f; - Particle shootPulse = new DirectionalPulseRing(nuzzlePosition, + Particle shootPulse = new DirectionalPulseRing(GunTipPosition, Vector2.Zero, Color.Gray * 0.7f, new Vector2(0.5f, 1f), @@ -134,7 +110,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < smokeAmount; i++) { Particle smoke = new HeavySmokeParticle( - nuzzlePosition, + GunTipPosition, direction.RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(2f, 30f), EffectsColor * 0.1f, Main.rand.Next(45, 61), @@ -147,7 +123,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < dustAmount; i++) { Dust shootDust = Dust.NewDustPerfect( - nuzzlePosition, + GunTipPosition, DustEffectsID, direction.RotatedByRandom(MathHelper.PiOver4 * 0.5f) * Main.rand.NextFloat(2f, 12f), Scale: Main.rand.NextFloat(0.8f, 1f)); @@ -156,14 +132,14 @@ namespace CalamityMod.Projectiles.Ranged shootDust.noLightEmittence = false; } - SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") { Volume = 0.6f }, nuzzlePosition); + SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") { Volume = 0.6f }, GunTipPosition); } NetUpdate(); } // When it has shot all the projectiles in the burst, reset all the variables and back to shooting. - if (ShootingTimer >= heldItem.useAnimation + adaptiveTimeBetweenShots * (ProjectilesPerBurst - 1)) + if (ShootingTimer >= HeldItem.useAnimation + adaptiveTimeBetweenShots * (ProjectilesPerBurst - 1)) { ShootingTimer = 0f; TimerBetweenBursts = 0f; @@ -171,41 +147,13 @@ namespace CalamityMod.Projectiles.Ranged } } - // When we change the distance of the gun from the arms for the recoil, - // recover to the original position smoothly. - if (OffsetLengthScalar != 30f) - OffsetLengthScalar = MathHelper.Lerp(OffsetLengthScalar, 30f, 0.05f); - ShootingTimer++; } - #region AI Methods - - public void ManageHoldout(Vector2 mountedCenter, Vector2 ownerToMouse) + public override void OnSpawn(IEntitySource source) { - Vector2 rotationVector = Projectile.rotation.ToRotationVector2(); - float velocityRotation = Projectile.velocity.ToRotation(); - float proximityLookingUpwards = Vector2.Dot(ownerToMouse.SafeNormalize(Vector2.Zero), -Vector2.UnitY); - int direction = MathF.Sign(ownerToMouse.X); - - Vector2 armPosition = Owner.RotatedRelativePoint(mountedCenter, true); - Vector2 lengthOffset = rotationVector * OffsetLengthScalar; - Vector2 armOffset = new Vector2(Utils.Remap(proximityLookingUpwards, -1f, 1f, 15f, -18f) * direction, -20f + Utils.Remap(MathF.Abs(proximityLookingUpwards), 0f, 1f, 0f, proximityLookingUpwards > 0f ? 20f : 10f)); - Projectile.Center = armPosition + lengthOffset + armOffset; - Projectile.velocity = velocityRotation.AngleTowards(ownerToMouse.ToRotation(), 0.2f).ToRotationVector2(); - Projectile.rotation = velocityRotation; - Projectile.timeLeft = 2; - - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - - Projectile.spriteDirection = Projectile.direction = direction; - Owner.ChangeDir(direction); - - float armRotation = Projectile.rotation - MathHelper.PiOver2; // -Pi/2 because the arms rotation starts with arms pointing down. - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.ThreeQuarters, armRotation); - Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation); + base.OnSpawn(source); + FrontArmStretch = Player.CompositeArmStretchAmount.ThreeQuarters; } public void NetUpdate() @@ -214,32 +162,5 @@ namespace CalamityMod.Projectiles.Ranged if (Projectile.netSpam >= 10) Projectile.netSpam = 9; } - - #endregion - - public override void OnSpawn(IEntitySource source) - { - Owner = Main.player[Projectile.owner]; - OffsetLengthScalar = 30f; - } - - // Because we use the velocity as a direction, we don't need it to change its position. - public override bool ShouldUpdatePosition() => false; - - public override bool? CanDamage() => false; - - public override bool PreDraw(ref Color lightColor) - { - Texture2D texture = Request(Texture).Value; - Vector2 drawPosition = Projectile.Center - Main.screenPosition; - Color drawColor = Projectile.GetAlpha(lightColor); - float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); - Vector2 rotationPoint = texture.Size() * 0.5f; - SpriteEffects flipSprite = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - - Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); - - return false; - } } } diff --git a/Projectiles/Ranged/FlakToxicannonHoldout.cs b/Projectiles/Ranged/FlakToxicannonHoldout.cs index 7b192a5220..05b47dfeeb 100644 --- a/Projectiles/Ranged/FlakToxicannonHoldout.cs +++ b/Projectiles/Ranged/FlakToxicannonHoldout.cs @@ -1,72 +1,49 @@ -using System; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; -using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; -using Terraria.ModLoader; using static CalamityMod.Items.Weapons.Ranged.FlakToxicannon; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Projectiles.Ranged { - public class FlakToxicannonHoldout : ModProjectile, ILocalizedModType + public class FlakToxicannonHoldout : BaseGunHoldoutProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/FlakToxicannon"; + public override int AssociatedItemID => ItemType(); + public override float MaxOffsetLengthFromArm => 38f; + public override float RecoilResolveSpeed => 0.1f; + public override float OffsetXUpwards => -10f; + public override float OffsetXDownwards => 2f; + public override float BaseOffsetY => -10f; + public override float OffsetYUpwards => 10f; + public override float OffsetYDownwards => 5f; - public Player Owner { get; set; } public ref float ShootingTimer => ref Projectile.ai[0]; public ref float TimerBetweenBursts => ref Projectile.ai[1]; - public ref float OffsetLengthScalar => ref Projectile.localAI[0]; // The type of dust used in the effects and the color of the particles that it'll use depending on the type of rocket used. // It'll carry over to the projectiles that it shoots. public static int DustEffectsID { get; set; } public static Color EffectsColor { get; set; } - public override void SetDefaults() + public override void HoldoutAI() { - Projectile.width = Projectile.height = 88; - Projectile.tileCollide = false; - Projectile.ignoreWater = true; - Projectile.netImportant = true; - } - - public override void AI() - { - // If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout. - if (Owner.CantUseHoldout()) - { - Projectile.Kill(); - NetUpdate(); - return; - } - // The center of the player, taking into account if they have a mount or not. Vector2 mountedCenter = Owner.MountedCenter; // The vector between the player and the mouse. Vector2 ownerToMouse = Owner.Calamity().mouseWorld - mountedCenter; - // Deals with the holdout's rotation and direction, the owner's arms, etc. - ManageHoldout(mountedCenter, ownerToMouse); - // If the timer reaches Item.useTime, it'll shoot. // It'll shoot once immediately as the timer reaches. - Item heldItem = Owner.ActiveItem(); - if (ShootingTimer >= heldItem.useAnimation) + if (ShootingTimer >= HeldItem.useAnimation) { // We use the velocity of this projectile as its direction vector. Vector2 direction = Projectile.velocity.SafeNormalize(Vector2.Zero); - // The position of the tip of the gun. - Vector2 nuzzlePosition = Projectile.Center + direction * Projectile.width / 2f; - // Every time we shoot we use ammo. // With this method we also use the item's stats, like the shoot speed, or the type of ammo it was used. Owner.PickAmmo(Owner.ActiveItem(), out _, out float itemShootSpeed, out int itemDamage, out float itemKnockback, out int rocketTypeShot); @@ -95,7 +72,7 @@ namespace CalamityMod.Projectiles.Ranged // Spawns the projectile. Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - nuzzlePosition, + GunTipPosition, direction * itemShootSpeed, ProjectileType(), itemDamage, @@ -112,11 +89,11 @@ namespace CalamityMod.Projectiles.Ranged if (!Main.dedServ) { // By decreasing the offset length of the gun from the arms, we give an effect of recoil. - OffsetLengthScalar = 25f; + OffsetLengthFromArm = 25f; Owner.Calamity().GeneralScreenShakePower = 2f; - Particle shootPulse = new DirectionalPulseRing(nuzzlePosition, + Particle shootPulse = new DirectionalPulseRing(GunTipPosition, Vector2.Zero, Color.Gray * 0.7f, new Vector2(0.5f, 1f), @@ -130,7 +107,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < smokeAmount; i++) { Particle smoke = new HeavySmokeParticle( - nuzzlePosition, + GunTipPosition, direction.RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(2f, 30f), EffectsColor * 0.4f, Main.rand.Next(45, 61), @@ -145,7 +122,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < dustAmount; i++) { Dust shootDust = Dust.NewDustPerfect( - nuzzlePosition, + GunTipPosition, DustEffectsID, direction.RotatedByRandom(MathHelper.PiOver4 * 0.5f) * Main.rand.NextFloat(2f, 12f), Scale: Main.rand.NextFloat(0.8f, 1f)); @@ -154,83 +131,14 @@ namespace CalamityMod.Projectiles.Ranged shootDust.noLightEmittence = false; } - SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") { Pitch = 0.65f, Volume = 0.5f }, nuzzlePosition); + SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Item/FlakKrakenShoot") { Pitch = 0.65f, Volume = 0.5f }, GunTipPosition); } ShootingTimer = 0f; - - NetUpdate(); + Projectile.netUpdate = true; } - // When we change the distance of the gun from the arms for the recoil, - // recover to the original position smoothly. - if (OffsetLengthScalar != 38f) - OffsetLengthScalar = MathHelper.Lerp(OffsetLengthScalar, 38f, 0.1f); - ShootingTimer++; } - - #region AI Methods - - public void ManageHoldout(Vector2 mountedCenter, Vector2 ownerToMouse) - { - Vector2 rotationVector = Projectile.rotation.ToRotationVector2(); - float velocityRotation = Projectile.velocity.ToRotation(); - float proximityLookingUpwards = Vector2.Dot(ownerToMouse.SafeNormalize(Vector2.Zero), -Vector2.UnitY); - int direction = MathF.Sign(ownerToMouse.X); - - Vector2 armPosition = Owner.RotatedRelativePoint(mountedCenter, true); - Vector2 lengthOffset = rotationVector * OffsetLengthScalar; - Vector2 armOffset = new Vector2(Utils.Remap(proximityLookingUpwards, -1f, 1f, 2f, -10f) * direction, -10f + Utils.Remap(MathF.Abs(proximityLookingUpwards), 0f, 1f, 0f, proximityLookingUpwards > 0f ? 10f : 5f)); - Projectile.Center = armPosition + lengthOffset + armOffset; - Projectile.velocity = velocityRotation.AngleTowards(ownerToMouse.ToRotation(), 0.2f).ToRotationVector2(); - Projectile.rotation = velocityRotation; - Projectile.timeLeft = 2; - - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - - Projectile.spriteDirection = Projectile.direction = direction; - Owner.ChangeDir(direction); - - float armRotation = Projectile.rotation - MathHelper.PiOver2; // -Pi/2 because the arms rotation starts with arms pointing down. - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.ThreeQuarters, armRotation); - Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation + MathHelper.ToRadians(25f) * direction); - } - - public void NetUpdate() - { - Projectile.netUpdate = true; - if (Projectile.netSpam >= 10) - Projectile.netSpam = 9; - } - - #endregion - - public override void OnSpawn(IEntitySource source) - { - Owner = Main.player[Projectile.owner]; - OffsetLengthScalar = 38f; - } - - // Because we use the velocity as a direction, we don't need it to change its position. - public override bool ShouldUpdatePosition() => false; - - public override bool? CanDamage() => false; - - public override bool PreDraw(ref Color lightColor) - { - Texture2D texture = Request(Texture).Value; - Vector2 drawPosition = Projectile.Center - Main.screenPosition; - Color drawColor = Projectile.GetAlpha(lightColor); - float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); - Vector2 rotationPoint = texture.Size() * 0.5f; - SpriteEffects flipSprite = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; - - Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); - - return false; - } } } diff --git a/Projectiles/Ranged/MineralMortarHoldout.cs b/Projectiles/Ranged/MineralMortarHoldout.cs index 1e7e8dc5ed..84311c0d89 100644 --- a/Projectiles/Ranged/MineralMortarHoldout.cs +++ b/Projectiles/Ranged/MineralMortarHoldout.cs @@ -1,55 +1,37 @@ -using System; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; -using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class MineralMortarHoldout : ModProjectile, ILocalizedModType + public class MineralMortarHoldout : BaseGunHoldoutProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/MineralMortar"; + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 15f; + public override float OffsetXUpwards => -10f; + public override float BaseOffsetY => -10f; + public override float OffsetYDownwards => 5f; - public Player Owner { get; set; } public ref float Time => ref Projectile.ai[0]; - public ref float OffsetLength => ref Projectile.localAI[0]; - public override void SetDefaults() + public override void HoldoutAI() { - Projectile.width = Projectile.height = 68; - Projectile.tileCollide = false; - Projectile.ignoreWater = true; - Projectile.netImportant = true; - } - - public override void AI() - { - if (Owner.CantUseHoldout()) - { - Projectile.Kill(); - return; - } - Vector2 mouse = Owner.Calamity().mouseWorld; Time++; // If the time reaches Item.useTime, it'll shoot the projectile, consume ammo and reset the timer. - if (Time >= Owner.itemTimeMax) + if (Time >= Owner.itemTimeMax && Main.myPlayer == Projectile.owner) { Owner.PickAmmo(Owner.ActiveItem(), out _, out float speed, out int damage, out float knockback, out int usedItemAmmoId); - Vector2 position = Projectile.Center + Vector2.UnitX.RotatedBy(Projectile.rotation) * Projectile.Size.Length() * 0.5f; - - if (Main.myPlayer == Projectile.owner) - Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), position, Owner.SafeDirectionTo(mouse) * speed, ModContent.ProjectileType(), damage, knockback, Projectile.owner, usedItemAmmoId); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitX) * speed, ModContent.ProjectileType(), damage, knockback, Projectile.owner, usedItemAmmoId); // Doesn't sync this to the server, it's just effects. if (!Main.dedServ) @@ -57,7 +39,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < 20; i++) { Vector2 randomDirectionToMouse = Owner.SafeDirectionTo(mouse).RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(8f, 10f); - Dust shootDust = Dust.NewDustPerfect(position, DustID.Torch, randomDirectionToMouse, Scale: Main.rand.NextFloat(1.5f, 2.5f)); + Dust shootDust = Dust.NewDustPerfect(GunTipPosition, DustID.Torch, randomDirectionToMouse, Scale: Main.rand.NextFloat(1.5f, 2.5f)); shootDust.noGravity = true; shootDust.noLight = true; shootDust.noLightEmittence = true; @@ -66,14 +48,14 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < 8; i++) { Vector2 randomDirectionToMouse = Owner.SafeDirectionTo(mouse).RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(8f, 10f); - Particle shootMist = new MediumMistParticle(position, randomDirectionToMouse, new Color(255, 100, 0), Color.Transparent, Main.rand.NextFloat(.3f, 1f), Main.rand.NextFloat(200f, 400f)); + Particle shootMist = new MediumMistParticle(GunTipPosition, randomDirectionToMouse, new Color(255, 100, 0), Color.Transparent, Main.rand.NextFloat(.3f, 1f), Main.rand.NextFloat(200f, 400f)); GeneralParticleHandler.SpawnParticle(shootMist); } for (int i = 0; i < 6; i++) { Vector2 randomDirectionToMouse = Owner.SafeDirectionTo(mouse).RotatedByRandom(MathHelper.PiOver2) * Main.rand.NextFloat(2f, 6f); - Particle shootDebri = new StoneDebrisParticle(position, randomDirectionToMouse, Color.Lerp(Color.White, Color.LightGray, Main.rand.NextFloat()), Main.rand.NextFloat(.6f, .8f), Main.rand.Next(30, 45 + 1)); + Particle shootDebri = new StoneDebrisParticle(GunTipPosition, randomDirectionToMouse, Color.Lerp(Color.White, Color.LightGray, Main.rand.NextFloat()), Main.rand.NextFloat(.6f, .8f), Main.rand.Next(30, 45 + 1)); GeneralParticleHandler.SpawnParticle(shootDebri); } @@ -81,55 +63,11 @@ namespace CalamityMod.Projectiles.Ranged } // Makes the distance between the projectile and the player 0, this gives a recoil effect. - OffsetLength = 0f; - + OffsetLengthFromArm = 0f; Time = 0f; } - - // If the recoil happened, reset smoothly to default position. - if (OffsetLength != 15f) - OffsetLength = MathHelper.SmoothStep(OffsetLength, 15f, .2f); - - Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true); - Vector2 offset = Projectile.rotation.ToRotationVector2() * OffsetLength; - Vector2 armOffset = -Vector2.UnitY.RotatedBy(Projectile.rotation) * Utils.Remap(Vector2.Dot(Projectile.rotation.ToRotationVector2(), -Vector2.UnitY), 0f, -1f, 10f, 3f) * Projectile.direction; - Projectile.Center = armPosition + offset + armOffset; - - Projectile.velocity = Vector2.SmoothStep(Projectile.velocity, (mouse - Owner.MountedCenter).SafeNormalize(Vector2.Zero) * Projectile.Size.Length(), .4f); - Projectile.rotation = Projectile.velocity.ToRotation(); - Projectile.timeLeft = 2; - - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - - int direction = MathF.Sign(mouse.X - Owner.MountedCenter.X); - Projectile.spriteDirection = Projectile.direction = direction; - Owner.ChangeDir(direction); - - float armRotation = Projectile.rotation - MathHelper.PiOver2; - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, armRotation); - Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation); - - // Multiplayer syncing every second. - if (Time % 60 == 0) - { - Projectile.netUpdate = true; - if (Projectile.netSpam >= 10) - Projectile.netSpam = 9; - } } - public override void OnSpawn(IEntitySource source) - { - Owner = Main.player[Projectile.owner]; - OffsetLength = 15f; - } - - public override bool ShouldUpdatePosition() => false; - - public override bool? CanDamage() => false; - public override bool PreDraw(ref Color lightColor) { Texture2D texture = ModContent.Request(Texture).Value; diff --git a/Projectiles/Ranged/NorfleetCannon.cs b/Projectiles/Ranged/NorfleetCannon.cs index 45db0b0097..82638e84c5 100644 --- a/Projectiles/Ranged/NorfleetCannon.cs +++ b/Projectiles/Ranged/NorfleetCannon.cs @@ -1,8 +1,13 @@ using System; using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; +using Humanizer; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using ReLogic.Utilities; using Terraria; using Terraria.Audio; +using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; @@ -14,116 +19,332 @@ namespace CalamityMod.Projectiles.Ranged public override LocalizedText DisplayName => CalamityUtils.GetItemName(); public override string Texture => "CalamityMod/Items/Weapons/Ranged/Norfleet"; + public Color StaticEffectsColor = Color.Gray; + private ref float ShootingTimer => ref Projectile.ai[0]; + private float PostFireCooldown = 0; + private bool HasLetGo = false; + private SlotId NorfleetRecharge; + + private ref float OffsetLength => ref Projectile.localAI[0]; + private ref float loadedShots => ref Projectile.ai[2]; + + private Player Owner; + + private float MaxOffsetLength = 5f; + private const float MaxCharge = 237f; + public bool recharging = false; + public Color variedColor = Color.White; + public Color mainColor = Color.White; + public Color randomColor = Color.White; + public int colorTimer = 0; + public override void SetDefaults() { - Projectile.width = 140; - Projectile.height = 42; - Projectile.friendly = true; - Projectile.penetrate = -1; + Projectile.width = Projectile.height = 142; Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Ranged; Projectile.ignoreWater = true; + Projectile.netImportant = true; } public override void AI() { - Player player = Main.player[Projectile.owner]; - Projectile.ai[1]--; - if (Projectile.ai[0] >= 0f) + Item heldItem = Owner.ActiveItem(); + + randomColor = Main.rand.Next(3) switch { - Projectile.ai[0] += 1f; - switch ((int)Projectile.ai[0]) + 0 => Color.OrangeRed, + 1 => Color.Aqua, + _ => Color.GreenYellow, + }; + if (mainColor == Color.White) + { + mainColor = randomColor; + } + + if (ShootingTimer % 15 == 0) + { + variedColor = colorTimer switch { - case 90: - case 180: - case 270: - case 360: - case 450: - Projectile.localAI[0] += 1f; - break; - case 540: - Projectile.localAI[0] += 1f; - Projectile.ai[0] = -1f; - SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); - int dustAmt = 36; - for (int d = 0; d < dustAmt; d++) - { - Vector2 source = Vector2.Normalize(Projectile.velocity) * 9f; - source = source.RotatedBy((d - (dustAmt / 2 - 1)) * MathHelper.TwoPi / dustAmt, default) + player.Center; - Vector2 dustVel = source - player.Center; - int index = Dust.NewDust(source + dustVel, 0, 0, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 0, default, 4f); - Main.dust[index].noGravity = true; - Main.dust[index].velocity = dustVel; - } - break; + 0 => Color.OrangeRed, + 1 => Color.Aqua, + _ => Color.GreenYellow, + }; + colorTimer++; + if (colorTimer >= 3) + colorTimer = 0; + } + + mainColor = Color.Lerp(mainColor, variedColor, (PostFireCooldown <= 20 || recharging) ? 0.07f : 0); + + // If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout. + if (Owner.CantUseHoldout() && !HasLetGo || heldItem.type != ModContent.ItemType()) + { + if (SoundEngine.TryGetActiveSound(NorfleetRecharge, out var hum) && hum.IsPlaying) + { + hum?.Stop(); } - } - int baseUseTime = 75; //Ranges from 75 to 63 use time - int modifier = 2; - bool timeToFire = false; - if (Projectile.ai[1] <= 0f) - { - Projectile.ai[1] = baseUseTime - modifier * Projectile.localAI[0]; - timeToFire = true; - } - bool canFire = !player.CantUseHoldout() && player.HasAmmo(player.ActiveItem()); - if (Projectile.soundDelay <= 0 && canFire) - { - Projectile.soundDelay = baseUseTime - modifier * (int)Projectile.localAI[0]; - if (Projectile.ai[0] != 1f) - SoundEngine.PlaySound(SoundID.Item92, Projectile.Center); - } - if (timeToFire && Main.myPlayer == Projectile.owner) - { - if (canFire) + if (loadedShots > 1) { - int type = ProjectileID.FallingStar; //Gets changed below anyways - float shootSpeed = 30f; - int damage = player.GetWeaponDamage(player.ActiveItem()); - float knockBack = player.ActiveItem().knockBack; - for (int i = 0; i < 5; i++) - { - player.PickAmmo(player.ActiveItem(), out type, out shootSpeed, out damage, out knockBack, out _); - knockBack = player.GetWeaponKnockback(player.ActiveItem(), knockBack); - Vector2 playerPosition = player.RotatedRelativePoint(player.MountedCenter, true); - Projectile.velocity = Main.screenPosition - playerPosition; - Projectile.velocity.X += Main.mouseX; - Projectile.velocity.Y += Main.mouseY; - if (player.gravDir == -1f) - Projectile.velocity.Y = Main.screenHeight - Main.mouseY + Main.screenPosition.Y - playerPosition.Y; - Projectile.velocity.Normalize(); - float variation = (1f + Projectile.localAI[0]) * 3f; - Vector2 position = playerPosition + Utils.RandomVector2(Main.rand, -variation, variation); - Vector2 speed = Projectile.velocity * shootSpeed * Main.rand.NextFloat(0.6f, 1.2f); - type = ModContent.ProjectileType(); - speed.X += Main.rand.NextFloat(-1.5f, 1.5f); - speed.Y += Main.rand.NextFloat(-1.5f, 1.5f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), position, speed, type, damage, knockBack, Projectile.owner); - speed.X += Main.rand.NextFloat(-1.5f, 1.5f); - speed.Y += Main.rand.NextFloat(-1.5f, 1.5f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), position, speed, type, damage, knockBack, Projectile.owner); - Projectile.netUpdate = true; - } + ShootRocket(heldItem); + PostFireCooldown = 55; + ShootingTimer = 1; + mainColor = Color.MediumOrchid; } else { - Projectile.Kill(); + ShootRocket(heldItem); + PostFireCooldown = 262; + ShootingTimer = 1; + mainColor = Color.MediumOrchid; } + + + NetUpdate(); + HasLetGo = true; } - Projectile.rotation = Projectile.velocity.ToRotation(); - Vector2 displayOffset = new Vector2(0f, -10f * Projectile.direction).RotatedBy(Projectile.rotation); - Projectile.Center = player.RotatedRelativePoint(player.MountedCenter, true) + displayOffset; - if (Projectile.spriteDirection == -1) - Projectile.rotation += MathHelper.Pi; - Projectile.spriteDirection = Projectile.direction; - Projectile.timeLeft = 2; - player.ChangeDir(Projectile.direction); - player.heldProj = Projectile.whoAmI; - player.itemTime = 2; - player.itemAnimation = 2; - player.itemRotation = (float)Math.Atan2(Projectile.velocity.Y * Projectile.direction, Projectile.velocity.X * Projectile.direction); + if (HasLetGo) + { + PostFiringCooldown(); + } + + // The center of the player, taking into account if they have a mount or not. + Vector2 ownerPosition = Owner.MountedCenter; + + // The vector between the player and the mouse. + Vector2 ownerToMouse = Owner.Calamity().mouseWorld - ownerPosition; + + // Deals with the holdout's rotation and direction, the owner's arms, etc. + ManageHoldout(ownerPosition, ownerToMouse); + + // When we change the distance of the gun from the arms for the recoil, + // recover to the original position smoothly. + if (OffsetLength != MaxOffsetLength) + OffsetLength = MathHelper.Lerp(OffsetLength, MaxOffsetLength, 0.1f); + + ShootingTimer++; + + // Inside here go all the things that dedicated servers shouldn't spend resources on. + // Like visuals and sounds. + if (Main.dedServ) + return; + + Vector2 shootDirection = Projectile.velocity.SafeNormalize(Vector2.Zero) * 20; } + private void ManageHoldout(Vector2 mountedCenter, Vector2 ownerToMouse) + { + Vector2 rotationVector = Projectile.rotation.ToRotationVector2(); + float velocityRotation = Projectile.velocity.ToRotation(); + float proximityLookingUpwards = Vector2.Dot(ownerToMouse.SafeNormalize(Vector2.Zero), -Vector2.UnitY); + int direction = MathF.Sign(ownerToMouse.X); + + Vector2 armPosition = Owner.RotatedRelativePoint(mountedCenter, true); + Vector2 lengthOffset = rotationVector * OffsetLength; + Vector2 armOffset = new Vector2(Utils.Remap(proximityLookingUpwards, -1f, 1f, 0f, -12f) * direction, -10f + Utils.Remap(MathF.Abs(proximityLookingUpwards), 0f, 1f, 0f, proximityLookingUpwards > 0f ? 15f : 0f)); + Projectile.Center = armPosition + lengthOffset + armOffset; + Projectile.velocity = velocityRotation.AngleTowards(ownerToMouse.ToRotation(), 0.2f).ToRotationVector2(); + Projectile.rotation = velocityRotation; + Projectile.timeLeft = 2; + + Owner.heldProj = Projectile.whoAmI; + Owner.itemTime = Owner.itemAnimation = 2; + Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); + + Projectile.spriteDirection = Projectile.direction = direction; + Owner.ChangeDir(direction); + + float armRotation = Projectile.rotation - MathHelper.PiOver2; // -Pi/2 because the arms rotation starts with arms pointing down. + Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Quarter, armRotation); + Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation + MathHelper.ToRadians(15f) * direction); + + // Rumble (only while channeling) + float rumble = 1f; + if (!Owner.CantUseHoldout()) + Projectile.Center += Main.rand.NextVector2Circular(rumble, rumble); + if (PostFireCooldown < 297 && PostFireCooldown > 15 && recharging) + { + rumble = 5f * Utils.GetLerpValue(297, 0, PostFireCooldown, true); + Projectile.Center += Main.rand.NextVector2Circular(rumble, rumble); + } + } + + private void ShootRocket(Item item) + { + // We use the velocity of this projectile as its direction vector. + Vector2 shootDirection = Projectile.velocity.SafeNormalize(Vector2.Zero); + + // The position of the tip of the gun. + Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-0.05f * Projectile.direction) * 73f; + + // Spawns the projectile. + SoundStyle fire = new("CalamityMod/Sounds/Item/NorfleetFire"); + SoundEngine.PlaySound(fire with { Volume = 0.9f, PitchVariance = 0.25f }, Projectile.Center); + + for (int i = 0; i < 3; i++) + { + Vector2 firingVelocity = shootDirection.RotatedByRandom((0.2f * i) + 0.02f) * 5f * Main.rand.NextFloat(0.7f, 1.3f); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), tipPosition, firingVelocity, ModContent.ProjectileType(), Projectile.damage / 3, Projectile.knockBack, Projectile.owner, 0, i); + } + + NetUpdate(); + + // Inside here go all the things that dedicated servers shouldn't spend resources on. + // Like visuals and sounds. + if (Main.dedServ) + return; + + for (int k = 0; k < 30; k++) + { + Vector2 shootVel = (shootDirection * 10).RotatedByRandom(0.5f) * Main.rand.NextFloat(0.1f, 1.8f); + + Dust dust2 = Dust.NewDustPerfect(tipPosition, Main.rand.NextBool(4) ? 264 : 66, shootVel); + dust2.scale = Main.rand.NextFloat(1.15f, 1.45f); + dust2.noGravity = true; + if (dust2.type == 66) + dust2.color = Main.rand.NextBool() ? Color.DarkViolet : Color.MediumOrchid; + else + dust2.color = Color.White; + } + for (int k = 0; k < 15; k++) + { + Particle pulse = new GlowSparkParticle((tipPosition - shootDirection * 14) + Main.rand.NextVector2Circular(12, 12), shootDirection * 17 * Main.rand.NextFloat(0.35f, 1.35f), false, Main.rand.Next(7, 11 + 1), 0.025f * Main.rand.NextFloat(0.45f, 1.25f), Color.MediumOrchid, new Vector2(1.5f, 0.9f), true); + GeneralParticleHandler.SpawnParticle(pulse); + } + + // By decreasing the offset length of the gun from the arms, we give an effect of recoil. + OffsetLength -= 34f; + } + private void PostFiringCooldown() + { + Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-0.05f * Projectile.direction) * 73f; + + if (PostFireCooldown == 207) + { + OffsetLength -= 24f; + SoundStyle charge = new("CalamityMod/Sounds/Item/NorfleetRecharge"); + NorfleetRecharge = SoundEngine.PlaySound(charge with { Volume = 1f }, Projectile.Center); + recharging = true; + } + if (PostFireCooldown > 0 && !recharging) + { + Vector2 smokeVel = new Vector2(0, -8) * Main.rand.NextFloat(0.1f, 1.1f); + Particle smoke = new HeavySmokeParticle(tipPosition, smokeVel, StaticEffectsColor, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + GeneralParticleHandler.SpawnParticle(smoke); + + Dust dust = Dust.NewDustPerfect(tipPosition, 303, smokeVel.RotatedByRandom(0.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + dust.noGravity = false; + dust.color = Color.White; + } + else if (!recharging) + { + if (SoundEngine.TryGetActiveSound(NorfleetRecharge, out var hum) && hum.IsPlaying) + { + hum?.Stop(); + } + Projectile.Kill(); + NetUpdate(); + } + else + { + if (PostFireCooldown == 297) + { + OffsetLength -= 18f; + } + if (PostFireCooldown == 15) + { + OffsetLength -= 11f; + + int points = 3; + float radians = MathHelper.TwoPi / points; + float randRot = Main.rand.NextFloat(-5, 5); + Vector2 spinningPoint = Vector2.Normalize(new Vector2(-1f, -1f).RotatedBy(randRot)); + for (int k = 0; k < points; k++) + { + Color glowColor = k == 0 ? Color.OrangeRed : k == 1 ? Color.Aqua : Color.GreenYellow; + Vector2 velocity = spinningPoint.RotatedBy(radians * k).RotatedBy(-0.45f); + Particle pulse = new GlowSparkParticle(tipPosition, velocity, false, 10, 0.065f, glowColor, new Vector2(1.3f, 0.2f), true); + GeneralParticleHandler.SpawnParticle(pulse); + } + + SoundStyle click = new("CalamityMod/Sounds/Item/DudFire"); + SoundEngine.PlaySound(click with { Volume = 1f, Pitch = 0.7f }, Projectile.Center); + } + if (PostFireCooldown > 15) + { + Vector2 dustVel = Projectile.velocity.RotatedByRandom(100) * Main.rand.NextFloat(5.1f, 25.8f); + Dust dust = Dust.NewDustPerfect(tipPosition + dustVel * 5, 267, -dustVel * 0.5f, 0, default, Main.rand.NextFloat(0.5f, 1f)); + dust.noGravity = true; + dust.color = mainColor; + } + + if (PostFireCooldown <= 0) + recharging = false; + } + PostFireCooldown--; + + if (SoundEngine.TryGetActiveSound(NorfleetRecharge, out var hum2) && hum2.IsPlaying) + { + hum2.Position = Projectile.Center; + } + } + + private void NetUpdate() + { + Projectile.netUpdate = true; + if (Projectile.netSpam >= 10) + Projectile.netSpam = 9; + } + + public override void OnSpawn(IEntitySource source) + { + Owner = Main.player[Projectile.owner]; + OffsetLength = MaxOffsetLength; + } + + // Because we use the velocity as a direction, we don't need it to change its position. + public override bool ShouldUpdatePosition() => false; + public override bool? CanDamage() => false; + + public override bool PreDraw(ref Color lightColor) + { + if (ShootingTimer <= 0) + return false; + + Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-0.05f * Projectile.direction) * 73f; + + Texture2D glowTexture = ModContent.Request("CalamityMod/Projectiles/Ranged/NorfleetGhostGlowmask").Value; + Texture2D texture = ModContent.Request("CalamityMod/Items/Weapons/Ranged/Norfleet").Value; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + Color drawColor = Projectile.GetAlpha(lightColor); + float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); + Vector2 rotationPoint = texture.Size() * 0.5f; + SpriteEffects flipSprite = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + + if (recharging) + { + for (int i = 0; i < 3; i++) + { + Color auraColor = mainColor * 0.25f; + Texture2D centerTexture = ModContent.Request("CalamityMod/Projectiles/Ranged/NorfleetGhost").Value; + Vector2 rotationalDrawOffset = (MathHelper.TwoPi * i / 7f + Main.GlobalTimeWrappedHourly * 50f).ToRotationVector2(); + rotationalDrawOffset *= MathHelper.Lerp(3f, 5.25f, (float)Math.Cos(Main.GlobalTimeWrappedHourly * 4f) * 0.5f + 0.5f); + Main.EntitySpriteDraw(centerTexture, Projectile.Center - Main.screenPosition + rotationalDrawOffset, null, auraColor, drawRotation, centerTexture.Size() * 0.5f, Projectile.scale * MathHelper.Clamp(1.35f * Utils.GetLerpValue(-200, 297, PostFireCooldown, true), 1, 1.35f), flipSprite, 0f); + } + } + + Texture2D rechargeTexture = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + + Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); + Main.EntitySpriteDraw(glowTexture, drawPosition, null, mainColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); + if (PostFireCooldown > 15 && recharging) + { + float randSize = Main.rand.NextFloat(0.8f, 1.2f); + Main.EntitySpriteDraw(rechargeTexture, tipPosition - Main.screenPosition, null, mainColor with { A = 0 }, Projectile.rotation, rechargeTexture.Size() * 0.5f, 0.55f * Utils.GetLerpValue(-100, 297, PostFireCooldown, true) * randSize, SpriteEffects.None, 0); + Main.EntitySpriteDraw(rechargeTexture, tipPosition - Main.screenPosition, null, Color.White with { A = 0 }, Projectile.rotation, rechargeTexture.Size() * 0.5f, 0.35f * Utils.GetLerpValue(-100, 297, PostFireCooldown, true) * randSize, SpriteEffects.None, 0); + } + return false; + } + } } diff --git a/Projectiles/Ranged/NorfleetComet.cs b/Projectiles/Ranged/NorfleetComet.cs index 4f06515192..ef0dbb752f 100644 --- a/Projectiles/Ranged/NorfleetComet.cs +++ b/Projectiles/Ranged/NorfleetComet.cs @@ -2,128 +2,170 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; +using CalamityMod.Particles; using Terraria.ID; using Terraria.ModLoader; +using Microsoft.Xna.Framework.Graphics; +using SteelSeries.GameSense; namespace CalamityMod.Projectiles.Ranged { public class NorfleetComet : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; - public override string Texture => "CalamityMod/Projectiles/Melee/GalacticaComet"; + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; private int noTileHitCounter = 120; + public int time = 0; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15; - ProjectileID.Sets.TrailingMode[Projectile.type] = 0; + ProjectileID.Sets.TrailingMode[Projectile.type] = 2; } public override void SetDefaults() { Projectile.width = 34; Projectile.height = 34; - Projectile.alpha = 255; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; Projectile.tileCollide = false; Projectile.penetrate = 1; - Projectile.timeLeft = 600; + Projectile.extraUpdates = 5; + Projectile.timeLeft = 1200; Projectile.ignoreWater = true; } public override void AI() { - int randomToSubtract = Main.rand.Next(1, 4); - noTileHitCounter -= randomToSubtract; - if (noTileHitCounter == 0) + float rotationRando = Main.rand.NextFloat(-0.02f, 0.02f); + Projectile.velocity = Projectile.velocity.RotatedBy(rotationRando); + Projectile.rotation += 0.05f; + if (time > 25) { - Projectile.tileCollide = true; - } - if (Projectile.soundDelay == 0) - { - Projectile.soundDelay = 20 + Main.rand.Next(40); - if (Main.rand.NextBool(5)) + for (int i = 0; i < 2; i++) { - SoundEngine.PlaySound(SoundID.Item9, Projectile.position); + Vector2 dustPos = Projectile.Center + (i * MathHelper.Pi + Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * 30f; + Dust dust = Dust.NewDustPerfect(dustPos, Main.rand.NextBool(3) ? 272 : 86, (i * MathHelper.Pi + Projectile.rotation * Math.Sign(Projectile.velocity.X)).ToRotationVector2() * 3f); + dust.noGravity = true; + dust.scale = Main.rand.NextFloat(0.6f, 0.9f); } } - Projectile.localAI[0] += 1f; - if (Projectile.localAI[0] == 18f) - { - Projectile.localAI[0] = 0f; - for (int l = 0; l < 12; l++) - { - Vector2 dustOffset = Vector2.UnitX * (float)-(float)Projectile.width / 2f; - dustOffset += -Vector2.UnitY.RotatedBy((double)((float)l * MathHelper.Pi / 6f), default) * new Vector2(8f, 16f); - dustOffset = dustOffset.RotatedBy((double)(Projectile.rotation - MathHelper.PiOver2), default); - int idx = Dust.NewDust(Projectile.Center, 0, 0, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 160, default, 1f); - Main.dust[idx].scale = 1.1f; - Main.dust[idx].noGravity = true; - Main.dust[idx].position = Projectile.Center + dustOffset; - Main.dust[idx].velocity = Projectile.velocity * 0.1f; - Main.dust[idx].velocity = Vector2.Normalize(Projectile.Center - Projectile.velocity * 3f - Main.dust[idx].position) * 1.25f; - } - } - Projectile.alpha -= 15; - int alphaLimit = 150; - if (Projectile.alpha < alphaLimit) - { - Projectile.alpha = alphaLimit; - } - Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2; - if (Main.rand.NextBool(16)) - { - Vector2 dustOffset = Vector2.UnitX.RotatedByRandom(Math.PI * 0.5).RotatedBy((double)Projectile.velocity.ToRotation(), default); - int idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f, 150, default, 1.2f); - Main.dust[idx].velocity = dustOffset * 0.66f; - Main.dust[idx].position = Projectile.Center + dustOffset * 12f; - } - if (Projectile.ai[1] == 1f) - { - Projectile.light = 0.5f; - if (Main.rand.NextBool(10)) - { - Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f, 150, default, 1.2f); - } - } - } - public override Color? GetAlpha(Color lightColor) + // Projectile ai 1 decides the type, 0 is fire, 1 is electricity, and 2 is poison + + time++; + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { - return new Color(Main.DiscoR, 100, 255, Projectile.alpha); + Player Owner = Main.player[Projectile.owner]; + Owner.Calamity().GeneralScreenShakePower = 7.5f; + SoundStyle fire = new("CalamityMod/Sounds/Item/ScorpioNukeHit"); + SoundEngine.PlaySound(fire with { Volume = 0.75f, Pitch = 0.6f, PitchVariance = 0.2f }, Projectile.Center); } public override void OnKill(int timeLeft) { - if (Projectile.owner == Main.myPlayer) + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack, Projectile.owner, 0, Projectile.ai[1]); + + if (Projectile.ai[1] == 0) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 0.3), Projectile.knockBack * 0.1f, Projectile.owner); + Color partColor = Color.OrangeRed; + int partLifetime = 10; + float scale = 0.1f; + Vector2 spawnPos = Projectile.Center; + Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, partColor, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing); + Particle blastRing2 = new CustomPulse(spawnPos, Vector2.Zero, partColor * 0.4f, "CalamityMod/Particles/HighResHollowCircleHardEdge", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale * 4, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing2); + for (int k = 0; k < 15; k++) + { + Vector2 velocity = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Particle spark = new SparkParticle(Projectile.Center + velocity, velocity, false, 45, Main.rand.NextFloat(0.95f, 1.35f), partColor); + GeneralParticleHandler.SpawnParticle(spark); + } + for (int k = 0; k < 30; k++) + { + Vector2 velocity = new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Dust dust2 = Dust.NewDustPerfect(Projectile.Center + velocity, 259, velocity); + dust2.scale = Main.rand.NextFloat(1.15f, 1.45f); + dust2.noGravity = true; + } } - SoundEngine.PlaySound(SoundID.Item10, Projectile.Center); - Projectile.ExpandHitboxBy(144); - for (int d = 0; d < 4; d++) + if (Projectile.ai[1] == 1) { - Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 50, default, 1.5f); + Color partColor = Color.Cyan; + int partLifetime = 10; + float scale = 0.1f; + Vector2 spawnPos = Projectile.Center; + Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, partColor, "CalamityMod/Particles/PlasmaExplosion", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing); + Particle blastRing2 = new CustomPulse(spawnPos, Vector2.Zero, partColor * 0.4f, "CalamityMod/Particles/HighResHollowCircleHardEdge", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale * 4, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing2); + for (int k = 0; k < 15; k++) + { + Vector2 velocity = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Particle spark = new CritSpark(Projectile.Center + velocity, velocity, Color.White, partColor, Main.rand.NextFloat(0.45f, 0.65f), 45, Main.rand.NextFloat(-2, 2), 2); + GeneralParticleHandler.SpawnParticle(spark); + } + for (int k = 0; k < 30; k++) + { + Vector2 velocity = new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Dust dust2 = Dust.NewDustPerfect(Projectile.Center + velocity, 226, velocity); + dust2.scale = Main.rand.NextFloat(1.15f, 1.45f); + dust2.noGravity = false; + } } - for (int d = 0; d < 20; d++) + if (Projectile.ai[1] == 2) { - int idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 0, default, 2.5f); - Main.dust[idx].noGravity = true; - Main.dust[idx].velocity *= 3f; - idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 50, default, 1.5f); - Main.dust[idx].velocity *= 2f; - Main.dust[idx].noGravity = true; + Color partColor = Color.GreenYellow; + int partLifetime = 10; + float scale = 0.1f; + Vector2 spawnPos = Projectile.Center; + Particle blastRing = new CustomPulse(spawnPos, Vector2.Zero, partColor, "CalamityMod/Particles/DustyCircleHardEdge", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing); + Particle blastRing2 = new CustomPulse(spawnPos, Vector2.Zero, partColor * 0.4f, "CalamityMod/Particles/HighResHollowCircleHardEdge", Vector2.One, Main.rand.NextFloat(-10, 10), 0.07f, scale * 4, partLifetime); + GeneralParticleHandler.SpawnParticle(blastRing2); + for (int k = 0; k < 15; k++) + { + Vector2 velocity = new Vector2(15, 15).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Particle smoke = new HeavySmokeParticle(Projectile.Center + velocity, velocity, partColor, 45, Main.rand.NextFloat(0.9f, 2.3f), 0.7f); + GeneralParticleHandler.SpawnParticle(smoke); + } + for (int k = 0; k < 30; k++) + { + Vector2 velocity = new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1.2f); + Dust dust2 = Dust.NewDustPerfect(Projectile.Center + velocity, Main.rand.NextBool() ? 39 : 298, velocity); + dust2.scale = Main.rand.NextFloat(1.15f, 1.45f); + dust2.noGravity = true; + } } } public override bool PreDraw(ref Color lightColor) { - if (Projectile.timeLeft >= 600) - return false; - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); + Texture2D vortexTexture = ModContent.Request("CalamityMod/ExtraTextures/SoulVortex").Value; + for (int i = 0; i < 4; i++) + { + float angle = MathHelper.TwoPi * i / 3f + Main.GlobalTimeWrappedHourly * MathHelper.TwoPi; + Color outerColor = Color.Lerp(Color.Purple, Color.MediumOrchid, i * 0.2f); + Color drawColor = outerColor; + drawColor.A = 0; + Vector2 drawPosition = Projectile.Center - Main.screenPosition; + + Main.EntitySpriteDraw(vortexTexture, drawPosition, null, drawColor * Projectile.Opacity, -angle + MathHelper.PiOver2, vortexTexture.Size() * 0.5f, ((Projectile.scale * (1 - i * 0.07f)) * 0.18f) * Utils.GetLerpValue(0, 25, time, true), SpriteEffects.None, 0); + } + + Texture2D rechargeTexture = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; + float randSize = Main.rand.NextFloat(0.8f, 1.2f); + Color drawColor2 = Projectile.ai[1] == 0 ? Color.OrangeRed : Projectile.ai[1] == 1 ? Color.Cyan : Color.GreenYellow; + Main.EntitySpriteDraw(rechargeTexture, Projectile.Center - Main.screenPosition, null, drawColor2 with { A = 0 }, Projectile.rotation, rechargeTexture.Size() * 0.5f, 0.25f * Utils.GetLerpValue(0, 25, time, true) * randSize, SpriteEffects.None, 0); + Main.EntitySpriteDraw(rechargeTexture, Projectile.Center - Main.screenPosition, null, Color.White with { A = 0 }, Projectile.rotation, rechargeTexture.Size() * 0.5f, 0.1f * Utils.GetLerpValue(0, 25, time, true) * randSize, SpriteEffects.None, 0); + + //CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); return false; } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 75, targetHitbox); } } diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index 04d4ab5def..d0a0bf3fde 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -1,5 +1,9 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; +using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { @@ -16,24 +20,35 @@ namespace CalamityMod.Projectiles.Ranged Projectile.ignoreWater = false; Projectile.tileCollide = false; Projectile.penetrate = -1; - Projectile.timeLeft = 30; + Projectile.timeLeft = 2; Projectile.DamageType = DamageClass.Ranged; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.localNPCHitCooldown = -1; + } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.ai[1] == 0) + target.AddBuff(BuffID.Daybreak, 300); + if (Projectile.ai[1] == 1) + target.AddBuff(BuffID.Electrified, 300); + if (Projectile.ai[1] == 2) + target.AddBuff(ModContent.BuffType(), 300); + + if (Projectile.numHits > 0) + Projectile.damage = (int)(Projectile.damage * 0.8f); + if (Projectile.damage < 1) + Projectile.damage = 1; } - public override void AI() + public override void OnKill(int timeLeft) { - Lighting.AddLight(Projectile.Center, (255 - Projectile.alpha) * 0.75f / 255f, (255 - Projectile.alpha) * 0.5f / 255f, (255 - Projectile.alpha) * 0.01f / 255f); - Vector2 dustVel = CalamityUtils.RandomVelocity(120f, 36f, 108f, 1f); - int idx = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, Main.rand.NextBool() ? 221 : 244, 0f, 0f, 100, default, 2f); - Dust dust = Main.dust[idx]; - dust.noGravity = true; - dust.position.X = Projectile.Center.X; - dust.position.Y = Projectile.Center.Y; - dust.position.X += Main.rand.NextFloat(-10f, 10f); - dust.position.Y += Main.rand.NextFloat(-10f, 10f); - dust.velocity = dustVel; + } + + public override bool PreDraw(ref Color lightColor) + { + return false; + } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 400, targetHitbox); } } diff --git a/Projectiles/Ranged/NorfleetGhost.png b/Projectiles/Ranged/NorfleetGhost.png new file mode 100644 index 0000000000..7c5729e630 Binary files /dev/null and b/Projectiles/Ranged/NorfleetGhost.png differ diff --git a/Projectiles/Ranged/NorfleetGhostGlowmask.png b/Projectiles/Ranged/NorfleetGhostGlowmask.png new file mode 100644 index 0000000000..bced156557 Binary files /dev/null and b/Projectiles/Ranged/NorfleetGhostGlowmask.png differ diff --git a/Projectiles/Ranged/ScorpioHoldout.cs b/Projectiles/Ranged/ScorpioHoldout.cs index ba60966ccb..f80d1b38bf 100644 --- a/Projectiles/Ranged/ScorpioHoldout.cs +++ b/Projectiles/Ranged/ScorpioHoldout.cs @@ -1,32 +1,29 @@ -using System; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; -using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; -using Terraria.ModLoader; using static CalamityMod.Items.Weapons.Ranged.Scorpio; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Projectiles.Ranged { - public class ScorpioHoldout : ModProjectile, ILocalizedModType + public class ScorpioHoldout : BaseGunHoldoutProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/Scorpio"; + public override int AssociatedItemID => ItemType(); + public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitY.RotatedBy(Projectile.rotation) * 10f * Projectile.direction; + public override float RecoilResolveSpeed => 0.1f; + public override float MaxOffsetLengthFromArm => 15f; + public override float OffsetXUpwards => -12f; + public override float BaseOffsetY => -10f; + public override float OffsetYDownwards => 10f; - public Player Owner { get; set; } public ref float ShootingTimer => ref Projectile.ai[0]; public ref float TimerBetweenBursts => ref Projectile.ai[1]; public ref float ChargeLV => ref Projectile.ai[2]; - public ref float OffsetLengthScalar => ref Projectile.localAI[0]; - - // The maximum amount that the gun is away from the player's hands. - public const float MaxOffsetScalarLength = 15f; // The type of dust used in the effects and the color of the particles that it'll use depending on the type of rocket used. // It'll carry over to the projectiles that it shoots. @@ -34,59 +31,30 @@ namespace CalamityMod.Projectiles.Ranged public static Color EffectsColor { get; set; } public static Color StaticEffectsColor = Color.Turquoise; - public override void SetDefaults() + public override void HoldoutAI() { - Projectile.width = Projectile.height = 96; - Projectile.tileCollide = false; - Projectile.ignoreWater = true; - Projectile.netImportant = true; - } - - public override void AI() - { - // If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout. - if (Owner.CantUseHoldout()) - { - Projectile.Kill(); - NetUpdate(); - return; - } - - // The center of the player, taking into account if they have a mount or not. - Vector2 ownerPosition = Owner.MountedCenter; - - // The vector between the player and the mouse. - Vector2 ownerToMouse = Owner.Calamity().mouseWorld - ownerPosition; - - // Deals with the holdout's rotation and direction, the owner's arms, etc. - ManageHoldout(ownerPosition, ownerToMouse); - - // If the timer reaches Item.useTime, it'll shoot. - // It'll shoot once immediately as the timer reaches. - Item heldItem = Owner.ActiveItem(); - // If the player's pressing RMB, it'll shoot the big rocket. if (Owner.Calamity().mouseRight && ChargeLV >= 3) { - ShootRocket(heldItem, true); - ShootingTimer = heldItem.useAnimation; // If you time your nukes well, you can reset the burst rocket cooldown + ShootRocket(HeldItem, true); + ShootingTimer = HeldItem.useAnimation; // If you time your nukes well, you can reset the burst rocket cooldown ChargeLV = -1; } - if (ShootingTimer >= heldItem.useAnimation) + if (ShootingTimer >= HeldItem.useAnimation) { - if (ShootingTimer == heldItem.useAnimation && ChargeLV < 3) + if (ShootingTimer == HeldItem.useAnimation && ChargeLV < 3) ChargeLV++; // Shooting the burst of small rockets. // The time is adapted to the speed modifier from the reforge. - int adaptedTimeBetweenBursts = TimeBetweenBursts * heldItem.useAnimation / OriginalUseTime; + int adaptedTimeBetweenBursts = TimeBetweenBursts * HeldItem.useAnimation / OriginalUseTime; if (ShootingTimer % adaptedTimeBetweenBursts == 0f) - ShootRocket(heldItem, false); + ShootRocket(HeldItem, false); // Resets the timers when everything has been shot. - if (ShootingTimer >= heldItem.useAnimation + adaptedTimeBetweenBursts * (ProjectilesPerBurst - 1)) + if (ShootingTimer >= HeldItem.useAnimation + adaptedTimeBetweenBursts * (ProjectilesPerBurst - 1)) { ShootingTimer = 0f; TimerBetweenBursts = 0f; @@ -94,52 +62,15 @@ namespace CalamityMod.Projectiles.Ranged } } - // When we change the distance of the gun from the arms for the recoil, - // recover to the original position smoothly. - if (OffsetLengthScalar != MaxOffsetScalarLength) - OffsetLengthScalar = MathHelper.Lerp(OffsetLengthScalar, MaxOffsetScalarLength, 0.1f); - ShootingTimer++; - } - #region AI Methods - - public void ManageHoldout(Vector2 mountedCenter, Vector2 ownerToMouse) - { - Vector2 rotationVector = Projectile.rotation.ToRotationVector2(); - float velocityRotation = Projectile.velocity.ToRotation(); - float proximityLookingUpwards = Vector2.Dot(ownerToMouse.SafeNormalize(Vector2.Zero), -Vector2.UnitY); - int direction = MathF.Sign(ownerToMouse.X); - - Vector2 armPosition = Owner.RotatedRelativePoint(mountedCenter, true); - Vector2 lengthOffset = rotationVector * OffsetLengthScalar; - Vector2 armOffset = new Vector2(Utils.Remap(proximityLookingUpwards, -1f, 1f, 0f, -12f) * direction, -10f + Utils.Remap(MathF.Abs(proximityLookingUpwards), 0f, 1f, 0f, proximityLookingUpwards > 0f ? 0f : 10f)); - Projectile.Center = armPosition + lengthOffset + armOffset; - Projectile.velocity = velocityRotation.AngleTowards(ownerToMouse.ToRotation(), 0.2f).ToRotationVector2(); - Projectile.rotation = velocityRotation; - Projectile.timeLeft = 2; - - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - - Projectile.spriteDirection = Projectile.direction = direction; - Owner.ChangeDir(direction); - - float armRotation = Projectile.rotation - MathHelper.PiOver2; // -Pi/2 because the arms rotation starts with arms pointing down. - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Quarter, armRotation); - Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation + MathHelper.ToRadians(15f) * direction); - - // Inside here go all the things that dedicated servers shouldn't spend resources on. - // Like visuals and sounds. if (Main.dedServ) return; // Charge level visuals here - Vector2 nuzzlePosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero) * 48f + (-Vector2.UnitY.RotatedBy(Projectile.rotation) * 10f) * Projectile.direction; if (ChargeLV == 1 && ShootingTimer % 3 == 0) { - Vector2 position = nuzzlePosition - Projectile.velocity * 95; + Vector2 position = GunTipPosition - Projectile.velocity * 95; Vector2 velocity = (-Projectile.velocity * 5).RotatedByRandom(0.3f) * Main.rand.NextFloat(0.6f, 1.4f); SquishyLightParticle energy = new(position, velocity, Main.rand.NextFloat(0.12f, 0.14f), StaticEffectsColor, Main.rand.Next(3, 5 + 1), 1, 1.5f); GeneralParticleHandler.SpawnParticle(energy); @@ -148,7 +79,7 @@ namespace CalamityMod.Projectiles.Ranged } if (ChargeLV == 2 & ShootingTimer % 2 == 0) { - Vector2 position = nuzzlePosition - Projectile.velocity * 95; + Vector2 position = GunTipPosition - Projectile.velocity * 95; Vector2 velocity = (-Projectile.velocity * 5).RotatedByRandom(0.5f) * Main.rand.NextFloat(0.9f, 1.9f); SquishyLightParticle energy = new(position, velocity, Main.rand.NextFloat(0.18f, 0.22f), StaticEffectsColor, Main.rand.Next(3, 5 + 1), 1, 1.5f); GeneralParticleHandler.SpawnParticle(energy); @@ -157,7 +88,7 @@ namespace CalamityMod.Projectiles.Ranged } if (ChargeLV >= 3) { - Vector2 position = nuzzlePosition - Projectile.velocity * 95; + Vector2 position = GunTipPosition - Projectile.velocity * 95; Vector2 velocity = (-Projectile.velocity * 5).RotatedByRandom(0.75f) * Main.rand.NextFloat(1.2f, 2.3f); SquishyLightParticle energy = new(position, velocity, Main.rand.NextFloat(0.24f, 0.34f), StaticEffectsColor, Main.rand.Next(3, 5 + 1), 1, 1.5f); GeneralParticleHandler.SpawnParticle(energy); @@ -169,7 +100,7 @@ namespace CalamityMod.Projectiles.Ranged } if (ChargeLV == 0 && ShootingTimer % 3 == 0) { - Vector2 position = nuzzlePosition - Projectile.velocity * 95; + Vector2 position = GunTipPosition - Projectile.velocity * 95; Vector2 velocity = (-Projectile.velocity * 4).RotatedByRandom(0.5f) * Main.rand.NextFloat(0.9f, 2f); Particle smoke = new HeavySmokeParticle(position, velocity, Color.SlateGray, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), true, required: true); GeneralParticleHandler.SpawnParticle(smoke); @@ -187,9 +118,6 @@ namespace CalamityMod.Projectiles.Ranged // We use the velocity of this projectile as its direction vector. Vector2 projectileVelocity = Projectile.velocity.SafeNormalize(Vector2.Zero); - // The position of the tip of the gun. - Vector2 nuzzlePosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero) * 48f + (-Vector2.UnitY.RotatedBy(Projectile.rotation) * 10f) * Projectile.direction; - // Every time we shoot we use ammo. // With this method we also use the item's stats, like the shoot speed, or the type of ammo it was used. Owner.PickAmmo(item, out _, out float projSpeed, out int damage, out float knockback, out int rocketType, Main.rand.Next(100) > 70); // 70% ammo conservation @@ -218,7 +146,7 @@ namespace CalamityMod.Projectiles.Ranged // Spawns the projectile. Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - nuzzlePosition, + GunTipPosition, projectileVelocity.RotatedByRandom(isRMB ? 0f : MathHelper.PiOver4) * projSpeed * (isRMB ? 1f : Main.rand.NextFloat(0.8f, 1f)), isRMB ? ProjectileType() : ProjectileType(), damage, @@ -241,13 +169,13 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(RocketShoot with { Pitch = ChargeLV * 0.055f }, Projectile.Center); // By decreasing the offset length of the gun from the arms, we give an effect of recoil. - OffsetLengthScalar -= isRMB ? 30f : 5f; + OffsetLengthFromArm -= isRMB ? 30f : 5f; int dustAmount = Main.rand.Next(10, 15 + 1); for (int i = 0; i < dustAmount; i++) { Dust shootDust = Dust.NewDustPerfect( - nuzzlePosition, + GunTipPosition, DustEffectsID, projectileVelocity.RotatedByRandom(MathHelper.PiOver2 - MathHelper.ToRadians(15f)) * Main.rand.NextFloat(6f, 10f)); shootDust.noGravity = true; @@ -256,7 +184,7 @@ namespace CalamityMod.Projectiles.Ranged } Particle shootPulse = new DirectionalPulseRing( - nuzzlePosition, + GunTipPosition, Vector2.Zero, Color.Gray * 0.7f, new Vector2(0.5f, 1f), @@ -274,23 +202,10 @@ namespace CalamityMod.Projectiles.Ranged Projectile.netSpam = 9; } - #endregion - - public override void OnSpawn(IEntitySource source) - { - Owner = Main.player[Projectile.owner]; - OffsetLengthScalar = MaxOffsetScalarLength; - } - - // Because we use the velocity as a direction, we don't need it to change its position. - public override bool ShouldUpdatePosition() => false; - - public override bool? CanDamage() => false; - public override bool PreDraw(ref Color lightColor) { Texture2D texture = Request(Texture).Value; - Texture2D glowTexture = Request("CalamityMod/Projectiles/Ranged/ScorpioHoldout_Glow").Value; + Texture2D glowTexture = Request(GlowTexture).Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; Color drawColor = Projectile.GetAlpha(lightColor); float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); diff --git a/Projectiles/Ranged/TerraFlamebursterHouldout.cs b/Projectiles/Ranged/TerraFlamebursterHouldout.cs index aa3645be19..33d3beefda 100644 --- a/Projectiles/Ranged/TerraFlamebursterHouldout.cs +++ b/Projectiles/Ranged/TerraFlamebursterHouldout.cs @@ -1,127 +1,82 @@ using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; +using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class TerraFlamebursterHoldout : ModProjectile + public class TerraFlamebursterHoldout : BaseGunHoldoutProjectile { - // Take the name and texture from the weapon - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/TerraFlameburster"; - private Player Owner => Main.player[Projectile.owner]; + public override int AssociatedItemID => ModContent.ItemType(); + public override float MaxOffsetLengthFromArm => 20f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -5f; + public override float OffsetYDownwards => 5f; + + private ref float ShotCooldown => ref Projectile.ai[0]; private ref float ShotsFired => ref Projectile.ai[1]; private ref float ShootTimer => ref Projectile.ai[2]; - private ref int ShotDelay => ref Owner.ActiveItem().useTime; // 8 - public int ShotCooldown; public int FireBlobs = 0; - public int Time = 0; - public override void SetDefaults() + public override void KillHoldoutLogic() { - Projectile.width = 68; - Projectile.height = 26; - Projectile.friendly = true; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Ranged; - Projectile.ignoreWater = true; + base.KillHoldoutLogic(); + if (ShotsFired >= 16) + { + Projectile.Kill(); + Projectile.netUpdate = true; + } } - public override void AI() + public override void HoldoutAI() { - Time++; - if (Time == 1) - Projectile.alpha = 255; - else - Projectile.alpha = 0; - - if (Owner.dead || ShotsFired >= 16) // destroy the holdout if the player dies or is out of shots + ShootTimer++; + if (ShootTimer >= 60) { - Projectile.Kill(); - return; - } - - Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true); - Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.8f; - - // Kill if the owner stops channeling or otherwise cannot use the weapon. - if (Owner.CantUseHoldout()) - Projectile.Kill(); - else - { - // While channeled, keep refreshing the projectile lifespan - Projectile.timeLeft = 2; - - ShootTimer++; - if (ShootTimer >= 60) + if (ShotCooldown == 0) { - if (ShotCooldown == 0) + SoundEngine.PlaySound(SoundID.Item34, Projectile.Center); + Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextBool(2)); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, (Projectile.velocity * 9).RotatedByRandom(0.08f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); + ShotsFired++; + ShotCooldown = HeldItem.useTime; + if (FireBlobs == 0) { - SoundEngine.PlaySound(SoundID.Item34, Projectile.Center); - Owner.PickAmmo(Owner.ActiveItem(), out _, out float shootSpeed, out int damage, out float knockback, out _, Main.rand.NextBool(2) ? true : false); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, (Projectile.velocity * 9).RotatedByRandom(0.08f), ModContent.ProjectileType(), damage, knockback, Projectile.owner); - ShotsFired++; - ShotCooldown = ShotDelay; - if (FireBlobs == 0) - { - float randAngle = Main.rand.NextFloat(8f, 15f); - Vector2 newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(randAngle)) * 2f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner); - newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(-randAngle)) * 2f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner); - FireBlobs = 3; - } - else - FireBlobs--; + float randAngle = Main.rand.NextFloat(8f, 15f); + Vector2 newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(randAngle)) * 2f; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner); + newVel = (Projectile.velocity * 9).RotatedBy(MathHelper.ToRadians(-randAngle)) * 2f; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, newVel, ModContent.ProjectileType(), damage, knockback, Projectile.owner); + FireBlobs = 3; } else - ShotCooldown--; + FireBlobs--; } else - { - if (ShootTimer == 1) - SoundEngine.PlaySound(SoundID.Item73 with { Volume = 0.7f }, Projectile.Center); - ShotsFired = 0; - for (int i = 0; i < 2; i++) - { - float rotMulti = Main.rand.NextFloat(0.3f, 1f); - Dust dust2 = Dust.NewDustPerfect(tipPosition, Main.rand.NextBool(5) ? 135 : 107); - dust2.noGravity = true; - dust2.velocity = new Vector2(0, -2).RotatedByRandom(rotMulti * 0.3f) * (Main.rand.NextFloat(1f, 2.9f) - rotMulti); - dust2.scale = Main.rand.NextFloat(1.2f, 1.8f) * (ShootTimer * 0.015f); - } - } - + ShotCooldown--; } - UpdateProjectileHeldVariables(armPosition); - ManipulatePlayerVariables(); - } - - private void UpdateProjectileHeldVariables(Vector2 armPosition) - { - if (Main.myPlayer == Projectile.owner) + else { - float interpolant = Utils.GetLerpValue(5f, 40f, Projectile.Distance(Main.MouseWorld), true); - Vector2 oldVelocity = Projectile.velocity; - Projectile.velocity = Vector2.Lerp(Projectile.velocity, Projectile.SafeDirectionTo(Main.MouseWorld), interpolant); + ShotsFired = 0; + for (int i = 0; i < 2; i++) + { + float rotMulti = Main.rand.NextFloat(0.3f, 1f); + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(5) ? 135 : 107); + dust2.noGravity = true; + dust2.velocity = new Vector2(0, -2).RotatedByRandom(rotMulti * 0.3f) * (Main.rand.NextFloat(1f, 2.9f) - rotMulti); + dust2.scale = Main.rand.NextFloat(1.2f, 1.8f) * (ShootTimer * 0.015f); + } } - Projectile.Center = armPosition + Projectile.velocity * 20; - Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); - Projectile.spriteDirection = Projectile.direction; } - private void ManipulatePlayerVariables() + public override void OnSpawn(IEntitySource source) { - Owner.ChangeDir(Projectile.direction); - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = 2; - Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); + base.OnSpawn(source); + SoundEngine.PlaySound(SoundID.Item73 with { Volume = 0.7f }, Projectile.Center); } - public override bool? CanDamage() => false; } } diff --git a/Projectiles/Ranged/TheHiveHoldout.cs b/Projectiles/Ranged/TheHiveHoldout.cs index f32760f22a..25fe631bd0 100644 --- a/Projectiles/Ranged/TheHiveHoldout.cs +++ b/Projectiles/Ranged/TheHiveHoldout.cs @@ -1,92 +1,66 @@ -using System; -using System.Runtime.InteropServices; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; -using Mono.Cecil; using ReLogic.Utilities; using Terraria; using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; -using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Projectiles.Ranged { - public class TheHiveHoldout : ModProjectile, ILocalizedModType + public class TheHiveHoldout : BaseGunHoldoutProjectile { - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - - public override string Texture => "CalamityMod/Items/Weapons/Ranged/TheHive"; + public override int AssociatedItemID => ItemType(); + public override float RecoilResolveSpeed => 0.1f; + public override float MaxOffsetLengthFromArm => 15f; + public override float OffsetXUpwards => -12f; + public override float BaseOffsetY => -10f; + public override float OffsetYUpwards => 15f; // The type of dust used in the effects and the color of the particles that it'll use depending on the type of rocket used. // It'll carry over to the projectiles that it shoots. public static int DustEffectsID { get; set; } public static Color EffectsColor { get; set; } public static Color StaticEffectsColor = Color.Lime; + private ref float ShootingTimer => ref Projectile.ai[0]; private bool FireNuke; private float PostFireCooldown = 0; private bool HasLetGo = false; private SlotId HiveHum; - - private ref float OffsetLength => ref Projectile.localAI[0]; - - private Player Owner; - - private const float MaxOffsetLength = 15f; private const float MaxCharge = 90f; - public override void SetDefaults() + public override void KillHoldoutLogic() { - Projectile.width = Projectile.height = 66; - Projectile.tileCollide = false; - Projectile.ignoreWater = true; - Projectile.netImportant = true; + if (HeldItem.type != ItemType()) + { + Projectile.Kill(); + Projectile.netUpdate = true; + } + + if (HasLetGo) + PostFiringCooldown(); } - public override void AI() + public override void HoldoutAI() { FireNuke = ShootingTimer > MaxCharge; - Item heldItem = Owner.ActiveItem(); - if (ShootingTimer == 0) - { - SoundStyle charge = new("CalamityMod/Sounds/Item/LowHum"); - HiveHum = SoundEngine.PlaySound(charge with { Volume = 1.6f, IsLooped = true }, Projectile.Center); - } // If there's no player, or the player is the server, or the owner's stunned, there'll be no holdout. - if (Owner.CantUseHoldout() && !HasLetGo || heldItem.type != ItemType()) + if (Owner.CantUseHoldout() && !HasLetGo) { if (SoundEngine.TryGetActiveSound(HiveHum, out var hum) && hum.IsPlaying) { hum?.Stop(); } - ShootRocket(heldItem); + ShootRocket(); NetUpdate(); HasLetGo = true; } - if (HasLetGo) - { - PostFiringCooldown(); - } - - // The center of the player, taking into account if they have a mount or not. - Vector2 ownerPosition = Owner.MountedCenter; - - // The vector between the player and the mouse. - Vector2 ownerToMouse = Owner.Calamity().mouseWorld - ownerPosition; - - // Deals with the holdout's rotation and direction, the owner's arms, etc. - ManageHoldout(ownerPosition, ownerToMouse); - - // When we change the distance of the gun from the arms for the recoil, - // recover to the original position smoothly. - if (OffsetLength != MaxOffsetLength) - OffsetLength = MathHelper.Lerp(OffsetLength, MaxOffsetLength, 0.1f); if (!HasLetGo) { @@ -103,18 +77,17 @@ namespace CalamityMod.Projectiles.Ranged if (Main.dedServ) return; - Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero) * 33f; Vector2 shootDirection = Projectile.velocity.SafeNormalize(Vector2.Zero) * 20; if (ShootingTimer >= MaxCharge && !HasLetGo) { for (int k = 0; k < 2; k++) { - GlowOrbParticle spark = new GlowOrbParticle(tipPosition + Projectile.velocity * 1.5f, Vector2.Zero, false, 2, Main.rand.NextFloat(0.5f, 1.1f), Color.Red); + GlowOrbParticle spark = new GlowOrbParticle(GunTipPosition + Projectile.velocity * 1.5f, Vector2.Zero, false, 2, Main.rand.NextFloat(0.5f, 1.1f), Color.Red); GeneralParticleHandler.SpawnParticle(spark); } for (int e = 0; e < 2; e++) { - Dust dust2 = Dust.NewDustPerfect(tipPosition + Projectile.velocity * 1.5f, 90, shootDirection * Main.rand.NextFloat(0.01f, 0.8f)); + Dust dust2 = Dust.NewDustPerfect(GunTipPosition + Projectile.velocity * 1.5f, 90, shootDirection * Main.rand.NextFloat(0.01f, 0.8f)); dust2.scale = Main.rand.NextFloat(0.45f, 0.75f); dust2.noGravity = true; } @@ -123,60 +96,25 @@ namespace CalamityMod.Projectiles.Ranged if (ShootingTimer == MaxCharge && !HasLetGo) { SoundStyle fullCharge = new("CalamityMod/Sounds/Custom/PlagueSounds/PBGAttackSwitchShort"); - SoundEngine.PlaySound(fullCharge with { Volume = 0.9f}, Projectile.Center); + SoundEngine.PlaySound(fullCharge with { Volume = 0.9f }, Projectile.Center); for (int k = 0; k < 15; k++) { - Dust dust2 = Dust.NewDustPerfect(tipPosition, 90, new Vector2(4, 4).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 0.8f)); + Dust dust2 = Dust.NewDustPerfect(GunTipPosition, 90, new Vector2(4, 4).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 0.8f)); dust2.scale = Main.rand.NextFloat(0.85f, 1.15f); dust2.noGravity = true; } } } - private void ManageHoldout(Vector2 mountedCenter, Vector2 ownerToMouse) - { - Vector2 rotationVector = Projectile.rotation.ToRotationVector2(); - float velocityRotation = Projectile.velocity.ToRotation(); - float proximityLookingUpwards = Vector2.Dot(ownerToMouse.SafeNormalize(Vector2.Zero), -Vector2.UnitY); - int direction = MathF.Sign(ownerToMouse.X); - - Vector2 armPosition = Owner.RotatedRelativePoint(mountedCenter, true); - Vector2 lengthOffset = rotationVector * OffsetLength; - Vector2 armOffset = new Vector2(Utils.Remap(proximityLookingUpwards, -1f, 1f, 0f, -12f) * direction, -10f + Utils.Remap(MathF.Abs(proximityLookingUpwards), 0f, 1f, 0f, proximityLookingUpwards > 0f ? 15f : 0f)); - Projectile.Center = armPosition + lengthOffset + armOffset; - Projectile.velocity = velocityRotation.AngleTowards(ownerToMouse.ToRotation(), 0.2f).ToRotationVector2(); - Projectile.rotation = velocityRotation; - Projectile.timeLeft = 2; - - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - - Projectile.spriteDirection = Projectile.direction = direction; - Owner.ChangeDir(direction); - - float armRotation = Projectile.rotation - MathHelper.PiOver2; // -Pi/2 because the arms rotation starts with arms pointing down. - Owner.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Quarter, armRotation); - Owner.SetCompositeArmBack(true, Player.CompositeArmStretchAmount.Full, armRotation + MathHelper.ToRadians(15f) * direction); - - // Rumble (only while channeling) - float rumble = Utils.GetLerpValue(0f, MaxCharge, ShootingTimer, true) * ShootingTimer >= MaxCharge ? 2 : 0.8f; - if (!Owner.CantUseHoldout()) - Projectile.Center += Main.rand.NextVector2Circular(rumble, rumble); - } - - private void ShootRocket(Item item) + private void ShootRocket() { // We use the velocity of this projectile as its direction vector. Vector2 shootDirection = Projectile.velocity.SafeNormalize(Vector2.Zero); float VelocityMultiplier = MathHelper.Lerp(0.5f, 1.5f, Utils.GetLerpValue(0f, MaxCharge, ShootingTimer, true)); - // The position of the tip of the gun. - Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero) * 33f; - // Every time we shoot we use ammo. // With this method we also use the item's stats, like the shoot speed, or the type of ammo it was used. - Owner.PickAmmo(item, out _, out float projSpeed, out int damage, out float knockback, out int rocketType); + Owner.PickAmmo(HeldItem, out _, out float projSpeed, out int damage, out float knockback, out int rocketType); // Decides the color of the effects depending on the type of rocket used. switch (rocketType) @@ -207,7 +145,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - tipPosition, + GunTipPosition, shootDirection * projSpeed * 0.3f, ProjectileType(), damage * 10, @@ -228,7 +166,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 perturbedSpeed = (shootDirection).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - tipPosition, + GunTipPosition, perturbedSpeed * projSpeed * VelocityMultiplier, ProjectileType(), damage, @@ -251,12 +189,12 @@ namespace CalamityMod.Projectiles.Ranged for (int k = 0; k < 10; k++) { float pulseScale = Main.rand.NextFloat(0.35f, 0.55f); - DirectionalPulseRing pulse = new DirectionalPulseRing(tipPosition, (shootDirection * 25).RotatedByRandom(0.5f) * Main.rand.NextFloat(0.5f, 1.2f), (Main.rand.NextBool(3) ? EffectsColor : StaticEffectsColor) * 0.8f, new Vector2(1, 1), pulseScale - 0.25f, pulseScale, 0f, 20); + DirectionalPulseRing pulse = new DirectionalPulseRing(GunTipPosition, (shootDirection * 25).RotatedByRandom(0.5f) * Main.rand.NextFloat(0.5f, 1.2f), (Main.rand.NextBool(3) ? EffectsColor : StaticEffectsColor) * 0.8f, new Vector2(1, 1), pulseScale - 0.25f, pulseScale, 0f, 20); GeneralParticleHandler.SpawnParticle(pulse); } for (int i = 0; i <= 15; i++) { - Dust dust = Dust.NewDustPerfect(tipPosition, Main.rand.NextBool(3) ? DustEffectsID : 303, (shootDirection * 20).RotatedByRandom(0.3f) * Main.rand.NextFloat(0.5f, 1.2f), 0, default, Main.rand.NextFloat(0.5f, 0.9f)); + Dust dust = Dust.NewDustPerfect(GunTipPosition, Main.rand.NextBool(3) ? DustEffectsID : 303, (shootDirection * 20).RotatedByRandom(0.3f) * Main.rand.NextFloat(0.5f, 1.2f), 0, default, Main.rand.NextFloat(0.5f, 0.9f)); dust.noGravity = false; if (dust.type != DustEffectsID) dust.color = Main.rand.NextBool(3) ? EffectsColor : StaticEffectsColor; @@ -267,26 +205,25 @@ namespace CalamityMod.Projectiles.Ranged for (int k = 0; k < 6; k++) { float pulseScale = Main.rand.NextFloat(0.2f, 0.4f); - DirectionalPulseRing pulse = new DirectionalPulseRing(tipPosition, (shootDirection * 20).RotatedByRandom(0.25f) * Main.rand.NextFloat(0.5f, 1.2f), (Main.rand.NextBool(3) ? EffectsColor : StaticEffectsColor) * 0.8f, new Vector2(1, 1), pulseScale - 0.25f, pulseScale, 0f, 20); + DirectionalPulseRing pulse = new DirectionalPulseRing(GunTipPosition, (shootDirection * 20).RotatedByRandom(0.25f) * Main.rand.NextFloat(0.5f, 1.2f), (Main.rand.NextBool(3) ? EffectsColor : StaticEffectsColor) * 0.8f, new Vector2(1, 1), pulseScale - 0.25f, pulseScale, 0f, 20); GeneralParticleHandler.SpawnParticle(pulse); } } // By decreasing the offset length of the gun from the arms, we give an effect of recoil. - OffsetLength -= FireNuke ? 16f : 6f; + OffsetLengthFromArm -= FireNuke ? 16f : 6f; } + private void PostFiringCooldown() { - Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero) * 33f; - if (PostFireCooldown > 0) { PostFireCooldown--; Vector2 smokeVel = new Vector2(0, -8) * Main.rand.NextFloat(0.1f, 1.1f); - Particle smoke = new HeavySmokeParticle(tipPosition, smokeVel, StaticEffectsColor, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + Particle smoke = new HeavySmokeParticle(GunTipPosition, smokeVel, StaticEffectsColor, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); GeneralParticleHandler.SpawnParticle(smoke); - Dust dust = Dust.NewDustPerfect(tipPosition, 303, smokeVel.RotatedByRandom(0.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); + Dust dust = Dust.NewDustPerfect(GunTipPosition, 303, smokeVel.RotatedByRandom(0.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); dust.noGravity = false; dust.color = StaticEffectsColor; } @@ -310,28 +247,32 @@ namespace CalamityMod.Projectiles.Ranged public override void OnSpawn(IEntitySource source) { - Owner = Main.player[Projectile.owner]; - OffsetLength = MaxOffsetLength; + base.OnSpawn(source); + SoundStyle charge = new("CalamityMod/Sounds/Item/LowHum"); + FrontArmStretch = Player.CompositeArmStretchAmount.Quarter; + ExtraBackArmRotation = MathHelper.ToRadians(15f); + HiveHum = SoundEngine.PlaySound(charge with { Volume = 1.6f, IsLooped = true }, Projectile.Center); } - // Because we use the velocity as a direction, we don't need it to change its position. - public override bool ShouldUpdatePosition() => false; - - public override bool? CanDamage() => false; - public override bool PreDraw(ref Color lightColor) { if (ShootingTimer <= 0) return false; Texture2D texture = Request(Texture).Value; - Texture2D glowTexture = Request(Texture + "_Glow").Value; + Texture2D glowTexture = Request(GlowTexture).Value; Vector2 drawPosition = Projectile.Center - Main.screenPosition; Color drawColor = Projectile.GetAlpha(lightColor); float drawRotation = Projectile.rotation + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); Vector2 rotationPoint = texture.Size() * 0.5f; SpriteEffects flipSprite = Projectile.spriteDirection == -1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None; + if (!Owner.CantUseHoldout()) + { + float rumble = Utils.GetLerpValue(0f, MaxCharge, ShootingTimer, true) * ShootingTimer >= MaxCharge ? 2 : 0.8f; + drawPosition += Main.rand.NextVector2Circular(rumble, rumble); + } + Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); Main.EntitySpriteDraw(glowTexture, drawPosition, null, Color.White, drawRotation, rotationPoint, Projectile.scale, flipSprite); diff --git a/Sounds/Item/NorfleetFire.ogg b/Sounds/Item/NorfleetFire.ogg new file mode 100644 index 0000000000..3fbc3a1589 Binary files /dev/null and b/Sounds/Item/NorfleetFire.ogg differ diff --git a/Sounds/Item/NorfleetRecharge.ogg b/Sounds/Item/NorfleetRecharge.ogg new file mode 100644 index 0000000000..3910343d59 Binary files /dev/null and b/Sounds/Item/NorfleetRecharge.ogg differ diff --git a/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.cs b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.cs new file mode 100644 index 0000000000..6222f06535 --- /dev/null +++ b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.cs @@ -0,0 +1,69 @@ +using CalamityMod.Items.Placeables.Furniture.Fountains; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.Audio; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Tiles.Furniture.Fountains +{ + public class BrimstoneLavaFountainTile : ModTile + { + public override void SetStaticDefaults() => this.SetUpFountain(ModContent.ItemType(), new Color(251, 136, 130), true); + + public override void NearbyEffects(int i, int j, bool closer) + { + Player player = Main.LocalPlayer; + if (player is null || Main.dedServ) + return; + + if (Main.tile[i, j].TileFrameX >= 36) + player.Calamity().BrimstoneLavaFountainCounter = 5; + } + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Stone, 0f, 0f, 1, new Color(119, 102, 255), 1f); + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Lava, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void AnimateTile(ref int frame, ref int frameCounter) + { + frameCounter++; + if (frameCounter >= 6) + { + frame = (frame + 1) % 6; + frameCounter = 0; + } + } + + public override void HitWire(int i, int j) + { + CalamityUtils.LightHitWire(Type, i, j, 2, 4); + } + + public override bool RightClick(int i, int j) + { + CalamityUtils.LightHitWire(Type, i, j, 2, 4); + SoundEngine.PlaySound(SoundID.Mech, new Vector2(i * 16, j * 16)); + return true; + } + + public override void MouseOver(int i, int j) + { + Player player = Main.LocalPlayer; + player.noThrow = 2; + player.cursorItemIconEnabled = true; + player.cursorItemIconID = ModContent.ItemType(); + } + } +} diff --git a/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.png b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.png new file mode 100644 index 0000000000..666b7cd742 Binary files /dev/null and b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.png differ diff --git a/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png new file mode 100644 index 0000000000..32314cd9c7 Binary files /dev/null and b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png differ diff --git a/UI/DebuffSystem/BestiaryDebuffInfo.cs b/UI/DebuffSystem/BestiaryDebuffInfo.cs new file mode 100644 index 0000000000..1a08b81c3f --- /dev/null +++ b/UI/DebuffSystem/BestiaryDebuffInfo.cs @@ -0,0 +1,115 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.GameContent.Bestiary; +using Terraria.GameContent.UI.Elements; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.UI; + +namespace CalamityMod.UI.DebuffSystem +{ + public class BestiaryDebuffInfo : IBestiaryInfoElement + { + public string[] elements; + + public BestiaryDebuffInfo(string[] elements) + { + this.elements = elements; + } + + public UIElement ProvideUIElement(BestiaryUICollectionInfo info) + { + // Don't show debuff info until stats are unlocked + if (info.UnlockState < BestiaryEntryUnlockState.CanShowStats_2) + { + return null; + } + // The main background panel + UIPanel backgroundPanel = new UIPanel(Main.Assets.Request("Images/UI/Bestiary/Stat_Panel"), null, 12, 7) + { + Width = new StyleDimension(-11f, 1f), + Height = new StyleDimension(180f, 0f), + BackgroundColor = new Color(43, 56, 101), + BorderColor = Color.Transparent, + Left = new StyleDimension(2.5f, 0f), + PaddingLeft = 4f, + PaddingRight = 4f + }; + + // The title of the panel + UIText titleText = new UIText(CalamityUtils.GetTextValue("UI.DebuffSystem.Title"), 1f) + { + HAlign = 0f, + VAlign = 0f, + Width = StyleDimension.FromPixelsAndPercent(0f, 1f), + Height = StyleDimension.FromPixelsAndPercent(0f, 1f), + IsWrapped = true + }; + + backgroundPanel.Append(titleText); + + // Add all five elements to the panel, each one below the previous + for (int i = 0; i < 5; i++) + { + string path = "CalamityMod/UI/DebuffSystem/"; + switch (i) + { + case 0: + path += "Heat"; + break; + case 1: + path += "Sickness"; + break; + case 2: + path += "Cold"; + break; + case 3: + path += "Electricity"; + break; + case 4: + path += "Water"; + break; + } + path += "DebuffType"; + float topPos = 0.2f + i * 0.175f; + // Icon + UIImage elementImage = new UIImage(ModContent.Request(path)) + { + HAlign = 0f, + VAlign = 0f, + Width = StyleDimension.FromPixelsAndPercent(0f, 1f), + Height = StyleDimension.FromPixelsAndPercent(0f, 1f), + Top = new StyleDimension(0f, topPos - 0.0525f), + Left = new StyleDimension(8f, 0f), + ImageScale = 0.8f, + }; + backgroundPanel.Append(elementImage); + + // Text + UIText elementText = new UIText(Language.GetText(elements[i]), 0.8f) + { + HAlign = 0f, + VAlign = 0f, + Width = StyleDimension.FromPixelsAndPercent(0f, 1f), + Height = StyleDimension.FromPixelsAndPercent(0f, 1f), + Top = new StyleDimension(0f, topPos), + Left = new StyleDimension(0f, 0.05f), + }; + backgroundPanel.Append(elementText); + } + + // Summarize the debuff resistance system when hovering over the panel + backgroundPanel.OnUpdate += ElementDescription; + return backgroundPanel; + } + + public static void ElementDescription(UIElement uelement) + { + if (uelement.IsMouseHovering) + { + Main.instance.MouseText(CalamityUtils.GetTextValue("UI.DebuffSystem.Description"), 0, 0); + } + } + } +} diff --git a/UI/DebuffSystem/ColdDebuffType.png b/UI/DebuffSystem/ColdDebuffType.png new file mode 100644 index 0000000000..eb0a88f11a Binary files /dev/null and b/UI/DebuffSystem/ColdDebuffType.png differ diff --git a/UI/DebuffSystem/ElectricityDebuffType.png b/UI/DebuffSystem/ElectricityDebuffType.png new file mode 100644 index 0000000000..30539636b2 Binary files /dev/null and b/UI/DebuffSystem/ElectricityDebuffType.png differ diff --git a/UI/DebuffSystem/HeatDebuffType.png b/UI/DebuffSystem/HeatDebuffType.png new file mode 100644 index 0000000000..8b25d715bb Binary files /dev/null and b/UI/DebuffSystem/HeatDebuffType.png differ diff --git a/UI/DebuffSystem/SicknessDebuffType.png b/UI/DebuffSystem/SicknessDebuffType.png new file mode 100644 index 0000000000..db56ba8449 Binary files /dev/null and b/UI/DebuffSystem/SicknessDebuffType.png differ diff --git a/UI/DebuffSystem/WaterDebuffType.png b/UI/DebuffSystem/WaterDebuffType.png new file mode 100644 index 0000000000..1e41f4d471 Binary files /dev/null and b/UI/DebuffSystem/WaterDebuffType.png differ diff --git a/UI/FlightBar/FlightBar.cs b/UI/FlightBar/FlightBar.cs index 08c79a505d..e02535a7dd 100644 --- a/UI/FlightBar/FlightBar.cs +++ b/UI/FlightBar/FlightBar.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Text; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; @@ -6,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using ReLogic.Content; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.UI @@ -29,9 +31,9 @@ namespace CalamityMod.UI private static Texture2D GetApplicableBorder(CalamityPlayer modPlayer) { - if (modPlayer.Player.equippedWings != null && modPlayer.Player.wingTimeMax == 0) + if (modPlayer.Player.equippedWings != null && modPlayer.Player.wingTimeMax == 0 && modPlayer.Player.mount._data.flightTimeMax == 0) return disabledBarTexture; - if (modPlayer.infiniteFlight && completedAnimation) + if ((modPlayer.infiniteFlight || RidingInfiniteFlightMount(modPlayer.Player)) && completedAnimation) return infiniteBarTexture; if (modPlayer.weakPetrification || modPlayer.vHex || modPlayer.icarusFolly || modPlayer.DoGExtremeGravity) return limitedBarTexture; @@ -42,16 +44,16 @@ namespace CalamityMod.UI { Player player = modPlayer.Player; object result; - if (player.equippedWings != null && player.wingTimeMax == 0) + if (player.equippedWings != null && !player.mount.Active && player.wingTimeMax == 0 && modPlayer.Player.mount._data.flightTimeMax == 0) result = 0; - if (modPlayer.infiniteFlight && completedAnimation) + if ((modPlayer.infiniteFlight || RidingInfiniteFlightMount(modPlayer.Player)) && completedAnimation) { result = "∞"; //infinite flight } else { - int currentFlight = (int)player.wingTime; - int maxFlight = player.wingTimeMax; + int currentFlight = modPlayer.Player.mount._data.flightTimeMax > 0 ? player.mount._flyTime : (int)player.wingTime; + int maxFlight = modPlayer.Player.mount._data.flightTimeMax > 0 ? player.mount._data.flightTimeMax : player.wingTimeMax; return (Math.Min(100f * currentFlight / maxFlight, 100f)).ToString("0.00"); // why the FUCK can wingtime be higher than max wingtime????????? } @@ -101,7 +103,7 @@ namespace CalamityMod.UI CalamityPlayer modPlayer = player.Calamity(); // If not drawing the flight bar, save its latest position to config and leave. - if (CalamityConfig.Instance.FlightBar && player.wingsLogic > 0) + if (CalamityConfig.Instance.FlightBar && (player.wingsLogic > 0 || (player.mount.Active && player.mount._data.flightTimeMax > 0))) { DrawFlightBar(spriteBatch, modPlayer, screenPos); } @@ -136,7 +138,7 @@ namespace CalamityMod.UI if (!CalamityConfig.Instance.MeterPosLock) Main.LocalPlayer.mouseInterface = true; - if (modPlayer.Player.equippedWings != null && modPlayer.Player.wingTimeMax > 0) //equipped wings and max wingtime above 0 (so not disabled bar) + if (modPlayer.Player.equippedWings != null && modPlayer.Player.wingTimeMax > 0 || (player.mount.Active && modPlayer.Player.mount._data.flightTimeMax > 0)) //equipped wings or riding a flying mount and max wingtime/flighttime above 0 (so not disabled bar) { string textToDisplay = CalamityUtils.GetText("UI.Flight").Format((GetFlightTime(modPlayer).ToString() + (modPlayer.infiniteFlight ? "" : "%"))); //the percent is here and not in localisation otherwise it looks like a dick when it's infinite flight Main.instance.MouseText(textToDisplay, 0, 0, -1, -1, -1, -1); @@ -186,8 +188,8 @@ namespace CalamityMod.UI { float uiScale = Main.UIScale; Player player = modPlayer.Player; - float flightRatio = Math.Min(player.wingTime / player.wingTimeMax, 1f); // why the FUCK can wingtime be higher than max wingtime????????? - if (!completedAnimation && FlightAnimFrame == -1 && modPlayer.infiniteFlight) + float flightRatio = player.mount.Active && player.mount._data.flightTimeMax > 0 ? Math.Min((float)player.mount._flyTime / player.mount._data.flightTimeMax, 1f) : Math.Min(player.wingTime / player.wingTimeMax, 1f); // why the FUCK can wingtime be higher than max wingtime????????? + if (!completedAnimation && FlightAnimFrame == -1 && (modPlayer.infiniteFlight || RidingInfiniteFlightMount(modPlayer.Player))) FlightAnimFrame++; if (FlightAnimFrame > -1) //animation started, complete it. { @@ -198,7 +200,7 @@ namespace CalamityMod.UI { FlightAnimFrame = -1; FlightAnimTimer = 0; - completedAnimation = modPlayer.infiniteFlight; //completed animation sets to true if infinite flight still exists + completedAnimation = modPlayer.infiniteFlight || RidingInfiniteFlightMount(modPlayer.Player); //completed animation sets to true if infinite flight still exists } else { @@ -236,5 +238,17 @@ namespace CalamityMod.UI spriteBatch.Draw(flightBarAnimTexture, screenPos + sizeDiffOffset, animCropRect, Color.White, 0f, origin * Main.UIScale, uiScale, SpriteEffects.None, 0); } } + + private static bool RidingInfiniteFlightMount(Player player) + { + if (player.mount.Active && (player.mount._data.fatigueMax >= int.MaxValue - 1 || infiniteFlightMounts.Contains(player.mount.Type))) + return true; + return false; + } + + public static List infiniteFlightMounts = new List + { + MountID.UFO, MountID.Drill, MountID.PirateShip, MountID.WitchBroom, MountID.CuteFishron + }; } } diff --git a/Utilities/FurnitureSetupUtils.cs b/Utilities/FurnitureSetupUtils.cs index ffc769bd1c..78a2fe683f 100644 --- a/Utilities/FurnitureSetupUtils.cs +++ b/Utilities/FurnitureSetupUtils.cs @@ -1179,7 +1179,8 @@ namespace CalamityMod /// The ModTile which is being initialized. /// The ID of the item this tile drops when broken. /// The map color of the tile. - internal static void SetUpFountain(this ModTile mt, int itemDropID, Color mapColor) + /// Whether or not the type of fountain is lava. + internal static void SetUpFountain(this ModTile mt, int itemDropID, Color mapColor, bool lava = false) { mt.RegisterItemDrop(itemDropID); @@ -1203,7 +1204,7 @@ namespace CalamityMod TileObjectData.newTile.StyleLineSkip = 2; TileObjectData.addTile(mt.Type); - mt.AddMapEntry(mapColor, Language.GetText("MapObject.WaterFountain")); + mt.AddMapEntry(mapColor, lava ? CalamityUtils.GetText("Tiles.LavaFountain") : Language.GetText("MapObject.WaterFountain")); mt.AnimationFrameHeight = 72; } diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index a42f871bb0..a471077f7b 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -1,9 +1,11 @@ using System.Collections.Generic; using System.Linq; +using System.Reflection; using CalamityMod.Balancing; using CalamityMod.CalPlayer; using CalamityMod.Cooldowns; using CalamityMod.Events; +using CalamityMod.Items.Accessories; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.World; using Microsoft.Xna.Framework; @@ -412,6 +414,103 @@ namespace CalamityMod #endregion #region Immunity Frames + /// + /// Computes the appropriate amount of immunity frames to grant a player when they are struck by an attack.
+ /// Accounts for all Calamity effects, but not effects from other mods. + ///
+ /// The player whose immunity frames are being computed. + /// The amount of immunity frames the player should receive if struck. + public static int ComputeHitIFrames(this Player player, HurtInfo hurtInfo) + { + // Start with vanilla immunity frames. + int iframes = BalancingConstants.VanillaDefaultIFrames + (player.longInvince ? BalancingConstants.CrossNecklaceIFrameBoost : 0); + + // Add on all Calamity effects. + int calBonusIFrames = player.GetExtraHitIFrames(hurtInfo); + + return iframes + calBonusIFrames; + } + + /// + /// Gets the total amount of extra immunity frames from a hit granted by various Calamity effects. + /// + /// The player whose extra immunity frames are being computed. + /// The amount of extra immunity frames to grant. + public static int GetExtraHitIFrames(this Player player, HurtInfo hurtInfo) + { + CalamityPlayer modPlayer = player.Calamity(); + + int extraIFrames = 0; + if (modPlayer.godSlayerThrowing && hurtInfo.Damage > 80) + extraIFrames += 30; + if (modPlayer.statigelSet && hurtInfo.Damage > 100) + extraIFrames += 30; + + // Deific Amulet provides 10 to 40 bonus immunity frames when you get hit which scale with your missing health. + // If you only take 1 damage, you get 5 iframes. + // This effect is inherited by Rampart of Deities. + if (modPlayer.dAmulet) + { + if (hurtInfo.Damage > 1) + { + float lifeRatio = (float)player.statLife / player.statLifeMax2; + float iframeEffectivenessRatio = Utils.GetLerpValue(1.0f, 0.25f, lifeRatio, true); + + extraIFrames += (int)(iframeEffectivenessRatio * DeificAmulet.MaxBonusIFrames); + } + else + extraIFrames += 5; + } + + // Ozzatron 20FEB2024: Moved extra iframes from Seraph Tracers to Rampart of Deities to counteract its loss of Charm of Myths + // This stacks with the above Deific Amulet effect + if (modPlayer.rampartOfDeities && hurtInfo.Damage > 200) + extraIFrames += 30; + + if (modPlayer.fabsolVodka) + { + if (hurtInfo.Damage == 1) + extraIFrames += 5; + else + extraIFrames += 10; + } + + return extraIFrames; + } + + /// + /// Computes the appropriate amount of immunity frames to grant a player when they activate a dodge.
+ /// Accounts for all Calamity effects, but not effects from other mods. + ///
+ /// The player whose immunity frames are being computed. + /// The amount of immunity frames the player should receive upon dodging. + public static int ComputeDodgeIFrames(this Player player) + { + int iframes = BalancingConstants.VanillaDodgeIFrames + (player.longInvince ? BalancingConstants.CrossNecklaceIFrameBoost : 0); + return iframes; + } + + /// + /// Computes the appropriate amount of immunity frames to grant a player when they activate a parry.
+ /// Accounts for all Calamity effects, but not effects from other mods. + ///
+ /// The player whose immunity frames are being computed. + /// The amount of immunity frames the player should receive upon parrying. + public static int ComputeParryIFrames(this Player player) + { + int iframes = BalancingConstants.VanillaParryIFrames + (player.longInvince ? BalancingConstants.CrossNecklaceIFrameBoost_Parry : 0); + return iframes; + } + + // Currently, reflects are functionally equivalent to dodges. + /// + /// Computes the appropriate amount of immunity frames to grant a player when they activate a reflect.
+ /// Accounts for all Calamity effects, but not effects from other mods. + ///
+ /// The player whose immunity frames are being computed. + /// The amount of immunity frames the player should receive upon reflecting an attack. + public static int ComputeReflectIFrames(this Player player) => player.ComputeDodgeIFrames(); + /// /// Checks whether the player has any kind of immunity frames (or "iframes" for short) available. /// @@ -432,13 +531,47 @@ namespace CalamityMod } /// - /// Gives the player the specified number of immunity frames (or "iframes" for short).
If the player already has more iframes than you want to give them, this function does nothing. + /// Gives the player the specified number of immunity frames (or "iframes" for short) to a specific cooldown slot.
+ /// If the player already has more iframes than you want to give them, this function does nothing.
+ ///
+ /// This should be used for effects that need to mock or mimic the iframes that would be granted by getting hit. + ///
+ /// The player who should be given immunity frames. + /// The immunity cooldown slot to use. See TML documentation for which is which. + /// The number of immunity frames to give. + /// Whether or not the player should be blinking during this time. + /// Whether or not any immunity frames were given. + public static bool GiveIFrames(this Player player, int cooldownSlot, int frames, bool blink = false) + { + // Check to see if there is any way for the player to get iframes from this operation. + bool anyIFramesWouldBeGiven = (cooldownSlot < 0) ? player.immuneTime < frames : player.hurtCooldowns[cooldownSlot] < frames; + + // If they would get nothing, don't do it. + if (!anyIFramesWouldBeGiven) + return false; + + // Apply iframes thoroughly. Player.AddImmuneTime is not used because iframes should not exceed the intended amount. + player.immune = true; + player.immuneNoBlink = !blink; + if (cooldownSlot < 0) + player.immuneTime = frames; + else + player.hurtCooldowns[cooldownSlot] = frames; + + return true; + } + + /// + /// Gives the player the specified number of immunity frames (or "iframes" for short) to all cooldown slots.
+ /// If the player already has more iframes than you want to give them, this function does nothing.
+ ///
+ /// This should be used for effects like dodges or true invulnerability that should prevent the player from being hit for a predetermined time. ///
/// The player who should be given immunity frames. /// The number of immunity frames to give. /// Whether or not the player should be blinking during this time. /// Whether or not any immunity frames were given. - public static bool GiveIFrames(this Player player, int frames, bool blink = false) + public static bool GiveUniversalIFrames(this Player player, int frames, bool blink = false) { // Check to see if there is any way for the player to get iframes from this operation. bool anyIFramesWouldBeGiven = false; @@ -450,8 +583,7 @@ namespace CalamityMod if (!anyIFramesWouldBeGiven) return false; - // Apply iframes thoroughly. - // Player.AddImmuneTime does exist, but is equivalent to the below code. + // Apply iframes thoroughly. Player.AddImmuneTime is not used because iframes should not exceed the intended amount. player.immune = true; player.immuneNoBlink = !blink; player.immuneTime = frames; @@ -474,6 +606,20 @@ namespace CalamityMod for (int i = 0; i < player.hurtCooldowns.Length; ++i) player.hurtCooldowns[i] = 0; } + + private static readonly FieldInfo hurtInfoDamageField = typeof(HurtInfo).GetField("_damage", BindingFlags.Instance | BindingFlags.NonPublic); + + /// + /// Lifted from Fargo's. Sets the damage and knockback of an incoming hit to zero, making it not affect the player. + /// + /// The HurtInfo instance to nullify. + public static void NullifyHit(ref this HurtInfo hurtInfo) + { + object unboxedHurtInfo = hurtInfo; + hurtInfoDamageField.SetValue(unboxedHurtInfo, 0); + hurtInfo = (Player.HurtInfo)unboxedHurtInfo; + hurtInfo.Knockback = 0; + } #endregion #region Rage and Adrenaline diff --git a/Waters/CragsLavaStyle.cs b/Waters/CragsLavaStyle.cs index 86c150e699..6ffe68bed0 100644 --- a/Waters/CragsLavaStyle.cs +++ b/Waters/CragsLavaStyle.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Waters public override string SlopeTexturePath => LavaTexturePath + "_Slope"; - public override bool ChooseLavaStyle() => Main.LocalPlayer.Calamity().ZoneCalamity; + public override bool ChooseLavaStyle() => Main.LocalPlayer.Calamity().ZoneCalamity || Main.LocalPlayer.Calamity().BrimstoneLavaFountainCounter > 0; public override int ChooseWaterfallStyle() => ModContent.Find("CalamityMod/CragsLavaflow").Slot;