From 82763b0761ce9f749ed074711f93301ac877ac95 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 23 Mar 2024 09:56:26 -0700 Subject: [PATCH 01/43] Started The Rework --- Items/Weapons/DraedonsArsenal/PulsePistol.cs | 2 +- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 20 +- .../Mods.CalamityMod.Vanilla.Armor.hjson | 20 +- Projectiles/DraedonsArsenal/PulseRifleShot.cs | 408 ++++++++++-------- 4 files changed, 230 insertions(+), 220 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PulsePistol.cs b/Items/Weapons/DraedonsArsenal/PulsePistol.cs index a362516040..07d23661c8 100644 --- a/Items/Weapons/DraedonsArsenal/PulsePistol.cs +++ b/Items/Weapons/DraedonsArsenal/PulsePistol.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.value = CalamityGlobalItem.Rarity3BuyPrice; Item.rare = ItemRarityID.Orange; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates. modItem.UsesCharge = true; diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index a055ed9cfe..a05e4b75b5 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -19,7 +19,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); - private int BaseDamage = 1200; + private int BaseDamage = 2000; + public int FiringTimer = 30; public override void SetDefaults() { @@ -30,12 +31,12 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.DamageType = DamageClass.Ranged; Item.damage = BaseDamage; Item.knockBack = 0f; - Item.useTime = 35; - Item.useAnimation = 35; + Item.useTime = 55; + Item.useAnimation = 55; Item.autoReuse = true; Item.useStyle = ItemUseStyleID.Shoot; - Item.UseSound = FireSound; + Item.UseSound = null; Item.noMelee = true; Item.value = CalamityGlobalItem.Rarity14BuyPrice; @@ -51,16 +52,9 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - if (velocity.Length() > 5f) - { - velocity.Normalize(); - velocity *= 5f; - } + SoundEngine.PlaySound(FireSound with { Pitch = 0.2f }); + Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); - float SpeedX = velocity.X + (float)Main.rand.Next(-1, 2) * 0.05f; - float SpeedY = velocity.Y + (float)Main.rand.Next(-1, 2) * 0.05f; - - Projectile.NewProjectile(source, position, new Vector2(SpeedX, SpeedY), ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); return false; } diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson index 1135396e85..83680263c0 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.Armor.hjson @@ -130,14 +130,8 @@ SetBonus: { 15% increased minion damage and 10% increased melee critical strike chance Negates the summon damage penalty while wielding non-summon weapons ''' - HuntressTier2: - ''' - 10% increased minion and ranged damage - ''' - ApprenticeTier2: - ''' - 5% increased minion damage and 15% increased magic critical strike chance - ''' + HuntressTier2: 10% increased minion and ranged damage + ApprenticeTier2: 5% increased minion damage and 15% increased magic critical strike chance MonkTier3: ''' 10% increased melee damage, melee critical strike chance and melee speed @@ -148,14 +142,8 @@ SetBonus: { Massively increased life regeneration 10% increased minion damage and melee critical strike chance ''' - HuntressTier3: - ''' - 10% increased minion and ranged damage - ''' - ApprenticeTier3: - ''' - 10% increased minion damage and 15% increased magic critical strike chance - ''' + HuntressTier3: 10% increased minion and ranged damage + ApprenticeTier3: 10% increased minion damage and 15% increased magic critical strike chance SpectreHealing: ''' Converts magic damage to healing force diff --git a/Projectiles/DraedonsArsenal/PulseRifleShot.cs b/Projectiles/DraedonsArsenal/PulseRifleShot.cs index 5dec088568..5ce8b9211a 100644 --- a/Projectiles/DraedonsArsenal/PulseRifleShot.cs +++ b/Projectiles/DraedonsArsenal/PulseRifleShot.cs @@ -1,10 +1,17 @@ using System; +using System.Net.NetworkInformation; +using System.Net.Sockets; +using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Particles; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; + namespace CalamityMod.Projectiles.DraedonsArsenal { public class PulseRifleShot : ModProjectile, ILocalizedModType @@ -12,241 +19,262 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public new string LocalizationCategory => "Projectiles.Misc"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; - private int dust1 = 27; //purple - private int dust2 = 173; //shortlived purple - private int dust3 = 234; //cyan and pink - private bool hasHit = false; - + private Color mainColor = Color.Orchid; + private bool notSplit; + private bool doDamage = false; + private NPC closestTarget = null; + private NPC lastTarget = null; + private float distance; public override void SetDefaults() { - Projectile.width = 4; - Projectile.height = 4; + Projectile.width = 16; + Projectile.height = 16; Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; - Projectile.penetrate = 1; - Projectile.extraUpdates = 100; - Projectile.timeLeft = 500; + Projectile.penetrate = -1; + Projectile.timeLeft = 900; + Projectile.tileCollide = false; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 20; } public override void AI() { - bool notSplitProjectile = Projectile.ai[1] == 0f; + notSplit = Projectile.ai[1] == 0f; Lighting.AddLight(Projectile.Center, 0.3f, 0f, 0.5f); + Player Owner = Main.player[Projectile.owner]; + float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); + Projectile.rotation = Projectile.velocity.ToRotation(); float createDustVar = 10f; - Projectile.localAI[0] += 1f; - if (Projectile.localAI[0] > createDustVar) - { - for (int i = 0; i < 2; i++) - { - Vector2 projPos = Projectile.position; - projPos -= Projectile.velocity * (i * 0.25f); - int purpleDust = Dust.NewDust(projPos, 1, 1, dust1, 0f, 0f, 0, default, 1f); - Main.dust[purpleDust].noGravity = true; - Main.dust[purpleDust].position = projPos; - Main.dust[purpleDust].scale = Main.rand.Next(70, 110) * 0.013f; - int pinkDust = Dust.NewDust(projPos, 1, 1, dust3, 0f, 0f, 0, default, 1f); - Main.dust[pinkDust].noGravity = true; - Main.dust[pinkDust].position = projPos; - Main.dust[pinkDust].scale = Main.rand.Next(70, 110) * 0.013f; + // Set split projectile stats + if (Projectile.localAI[0] == 0 && !notSplit) + { + Projectile.extraUpdates = 1; + Projectile.timeLeft = 1240; + Projectile.penetrate = 3; + if (Projectile.ai[1] == 1) + SoundEngine.PlaySound(SoundID.DD2_DarkMageCastHeal with { Volume = 1.4f, Pitch = 0.6f }, Projectile.Center); + } + if (notSplit) + { + doDamage = true; + Projectile.extraUpdates = 100; + } + + Projectile.localAI[0] += 1f; + if (Projectile.localAI[0] > createDustVar && notSplit) + { + float sizeBonus = MathHelper.Clamp(Projectile.localAI[0] * 0.009f, 0, 3.5f); + if (targetDist < 1400f) + { + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 30, 1.1f - Projectile.ai[1] + sizeBonus, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); + GeneralParticleHandler.SpawnParticle(spark); } - if (notSplitProjectile) + if (targetDist < 1400f && Main.rand.NextBool()) { - Vector2 dustRotateVector = new Vector2(5f, 10f); - Vector2 dustRotate = Vector2.UnitX * -12f; + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center + Projectile.velocity * Main.rand.NextFloat(-2f, 2f), -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 30, 1.1f - Projectile.ai[1] + sizeBonus, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); + GeneralParticleHandler.SpawnParticle(spark); + } - for (int k = 0; k < 2; k++) - { - dustRotate = -Vector2.UnitY.RotatedBy(24f * 0.1308997f + 0f * MathHelper.Pi) * dustRotateVector; - int darkPurpDust = Dust.NewDust(Projectile.Center, 0, 0, dust2, 0f, 0f, 160, default, 1f); - Main.dust[darkPurpDust].scale = 1.5f; - Main.dust[darkPurpDust].noGravity = true; - Main.dust[darkPurpDust].position = Projectile.Center + dustRotate; - } - - for (int k = 0; k < 2; k++) - { - dustRotate = -Vector2.UnitY.RotatedBy(24f * 0.1308997f + 1f * MathHelper.Pi) * dustRotateVector; - int darkPurpDust = Dust.NewDust(Projectile.Center, 0, 0, dust2, 0f, 0f, 160, default, 1f); - Main.dust[darkPurpDust].scale = 1.5f; - Main.dust[darkPurpDust].noGravity = true; - Main.dust[darkPurpDust].position = Projectile.Center + dustRotate; - } + if (Projectile.localAI[0] > 20) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); + dust.scale = Main.rand.NextFloat(0.9f, 1.7f); + dust.velocity = Projectile.velocity * Main.rand.NextFloat(-3, 3); + dust.noGravity = true; + dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; + dust.noLight = true; } } - if (Projectile.localAI[0] == createDustVar && notSplitProjectile) + #region Split Projectile AI + if (!notSplit) + { + if (targetDist < 1400f) + { + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 5, 1.7f - Projectile.ai[1] * 0.18f, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); + GeneralParticleHandler.SpawnParticle(spark); + } + if (targetDist < 1400f && Main.rand.NextBool()) + { + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center + Projectile.velocity * Main.rand.NextFloat(-2f, 2f), -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 5, 1.7f - Projectile.ai[1] * 0.18f, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); + GeneralParticleHandler.SpawnParticle(spark); + } + if (Projectile.localAI[0] > 90) + { + if (Projectile.localAI[0] == 91) + Projectile.velocity *= 0.001f; + + if (Projectile.localAI[0] == 120) + { + doDamage = true; + distance = 1500; + if (Projectile.ai[1] == 1) + { + SoundStyle fire = new("CalamityMod/Sounds/Item/OpalFire"); + SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = 1f }, Projectile.Center); + } + + + Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, mainColor, new Vector2(1f, 1f), Main.rand.NextFloat(12f, 25f), 0f, 0.5f, 15); + GeneralParticleHandler.SpawnParticle(pulse); + + for (int k = 0; k < 6; k++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center, 66); + dust.scale = Main.rand.NextFloat(0.6f, 1.1f); + dust.velocity = new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(0.05f, 0.8f); + dust.noGravity = true; + dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; + dust.noLight = true; + } + } + if (Projectile.localAI[0] > 120) + { + Projectile.extraUpdates = 5; + NPC prevTarg = null; + { + for (int index = 0; index < Main.npc.Length; index++) + { + if (Main.npc[index].CanBeChasedBy(null, false) || Main.npc[index] == lastTarget) + { + float extraDistance = (Main.npc[index].width / 2) + (Main.npc[index].height / 2); + + if (Vector2.Distance(Projectile.Center, Main.npc[index].Center) < (distance + extraDistance)) + { + closestTarget = prevTarg == null ? Main.npc[index] : Main.npc[index] == lastTarget ? prevTarg : Main.npc[index]; + if (closestTarget == prevTarg && closestTarget == lastTarget) + closestTarget = null; + prevTarg = closestTarget; + + distance = Vector2.Distance(Projectile.Center, Main.npc[index].Center); + } + } + } + } + + float projectileSpeed = 9.5f; + if (closestTarget is not null) + { + float targetDirectionRotation = Projectile.SafeDirectionTo(closestTarget.Center).ToRotation(); + float turningRate = 10f + Projectile.localAI[0] * 0.00008f; + Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(targetDirectionRotation, turningRate).ToRotationVector2() * projectileSpeed; + } + else + { + Projectile.velocity = Projectile.rotation.ToRotationVector2() * projectileSpeed; + Projectile.velocity *= 0.99f; + Projectile.timeLeft--; + } + } + } + else + { + if (Main.rand.NextBool(3)) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); + dust.scale = Main.rand.NextFloat(0.8f, 1.4f); + dust.velocity = -Projectile.velocity * Main.rand.NextFloat(0.2f, 0.5f); + dust.noGravity = true; + dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; + dust.noLight = true; + } + Projectile.velocity *= 0.98f; + } + } + #endregion + + // Visuals for the shot as it exits the tip of the rifle + if (Projectile.localAI[0] == createDustVar && notSplit) PulseBurst(4f, 5f); } - public override bool? CanHitNPC(NPC target) => Projectile.timeLeft < 480 && target.CanBeChasedBy(Projectile); + public override bool? CanHitNPC(NPC target) => doDamage ? null : false; - public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - if (Projectile.ai[1] < 3f && !hasHit && Main.myPlayer == Projectile.owner) + bool onKill = target.life <= 0; + if (notSplit) { - hasHit = true; + Projectile.Kill(); - int alreadyTargetedNPCType = 0; - if (Projectile.ai[1] > 0f) - alreadyTargetedNPCType = (int)Projectile.ai[0]; - else - alreadyTargetedNPCType = target.whoAmI; - - for (int i = 0; i < Main.maxNPCs; i++) + for (int i = 0; i <= 15; i++) { - if (!Main.npc[i].CanBeChasedBy(Projectile, false) || !Collision.CanHit(Projectile.Center, 1, 1, Main.npc[i].Center, 1, 1)) - continue; - - if (alreadyTargetedNPCType != Main.npc[i].whoAmI && Projectile.Center.ManhattanDistance(Main.npc[i].Center) < 600f) - { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.SafeDirectionTo(Main.npc[i].Center) * 5f, Projectile.type, (int)(Projectile.damage * 0.4f), 0f, Projectile.owner, Main.npc[i].whoAmI, Projectile.ai[1] + 1f); - break; - } + Dust dust = Dust.NewDustPerfect(Projectile.Center, 66); + dust.scale = Main.rand.NextFloat(0.4f, 1.1f); + dust.velocity = (Projectile.velocity * 4).RotateRandom(0.6f) * Main.rand.NextFloat(0.2f, 0.9f); + dust.noGravity = true; + dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; + dust.noLight = true; } + + float sizeBonus = MathHelper.Clamp(Projectile.localAI[0] * 0.01f, 0, 3.5f); + for (int k = 0; k < 9; k++) + { + SparkParticle spark = new SparkParticle(Projectile.Center + Main.rand.NextVector2Circular(8, 8) - Projectile.velocity * 7, Projectile.velocity * Main.rand.NextFloat(0.7f, 3.1f), false, 30, 0.9f * Main.rand.NextFloat(0.9f, 1.1f) + sizeBonus, mainColor); + GeneralParticleHandler.SpawnParticle(spark); + } + + int numProj = 4; + for (int i = 0; i < numProj; i++) + { + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity.SafeNormalize(Vector2.Zero) * (14f - i * 0.7f)) * ((i + 1) * 0.25f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), Projectile.knockBack, Projectile.owner, 0f, 1f + i); + } + } + else + { + lastTarget = target; + distance = 1500; + Projectile.localAI[0] = 60; + Projectile.velocity *= MathHelper.Clamp(1.5f - Projectile.numHits * 0.5f, 1f, 1.5f); + + for (int i = 0; i <= 3; i++) + { + SquishyLightParticle energy = new SquishyLightParticle(Projectile.Center, (Projectile.velocity * 2).RotatedByRandom(0.7f) * Main.rand.NextFloat(0.1f, 0.4f), Main.rand.NextFloat(0.2f, 0.5f), Main.rand.NextBool(3) ? Color.DarkViolet : mainColor, Main.rand.Next(20, 30 + 1), 0.25f, 2f); + GeneralParticleHandler.SpawnParticle(energy); + } + + if (onKill) + { + Projectile.penetrate++; + } + + if (hit.Damage <= 2) + Projectile.penetrate++; } } public override void OnKill(int timeLeft) { - int timesSplit = (int)Projectile.ai[1]; - - int height = 40; - int totalDust = 400; - float speed1 = 10f; - switch (timesSplit) + if (notSplit) { - case 1: - height = 35; - totalDust = 350; - speed1 = 8.5f; - break; - case 2: - height = 30; - totalDust = 300; - speed1 = 7f; - break; - case 3: - height = 25; - totalDust = 250; - speed1 = 5.5f; - break; - default: - break; + } - - Projectile.position = Projectile.Center; - Projectile.width = Projectile.height = height; - Projectile.Center = Projectile.position; - Projectile.maxPenetrate = -1; - Projectile.penetrate = -1; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; - Projectile.Damage(); - - SoundEngine.PlaySound(SoundID.Item93, Projectile.Center); - - int fourth = totalDust / 4; - int half = totalDust / 2; - int x = (int)(totalDust * 0.625f); - - for (int i = 0; i < totalDust; i++) + else { - float dustSpeed = 2f * (i / (float)fourth); - int dustType = dust1; - if (i > fourth) - { - dustSpeed = speed1; - } - if (i > x) - { - dustSpeed = speed1 * 1.3f; - dustType = dust3; - } - - int killDust = Dust.NewDust(Projectile.Center, 6, 6, dustType, 0f, 0f, 100, default, 1f); - float killDustX = Main.dust[killDust].velocity.X; - float killDustY = Main.dust[killDust].velocity.Y; - if (killDustX == 0f && killDustY == 0f) - { - killDustX = 1f; - } - - float killDustYVel = (float)Math.Sqrt(killDustX * killDustX + killDustY * killDustY); - killDustYVel = dustSpeed / killDustYVel; - if (i <= half) - { - killDustX *= killDustYVel; - killDustY *= killDustYVel; - } - else - { - killDustX = killDustX * killDustYVel * 1.25f; - killDustY = killDustY * killDustYVel * 0.75f; - } - - Dust dust2 = Main.dust[killDust]; - dust2.velocity *= 0.5f; - dust2.velocity.X = dust2.velocity.X + killDustX; - dust2.velocity.Y = dust2.velocity.Y + killDustY; - - if (i > fourth) - { - dust2.scale = 1.3f; - } - - dust2.noGravity = true; + //SoundEngine.PlaySound(SoundID.Item93, Projectile.Center); } } private void PulseBurst(float speed1, float speed2) { - float angleRandom = 0.05f; - - for (int i = 0; i < 50; i++) + for (int i = 0; i <= 25; i++) { - float dustSpeed = Main.rand.NextFloat(speed1, speed2); - Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(Projectile.velocity.ToRotation()); - dustVel = dustVel.RotatedBy(-angleRandom); - dustVel = dustVel.RotatedByRandom(2.0f * angleRandom); - - int pulseDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, dust3, dustVel.X, dustVel.Y, 200, default, 1.7f); - Main.dust[pulseDust].position = Projectile.Center + Vector2.UnitY.RotatedByRandom(MathHelper.Pi) * (float)Main.rand.NextDouble() * Projectile.width / 2f; - Main.dust[pulseDust].noGravity = true; - - Dust dust = Main.dust[pulseDust]; - dust.velocity *= 3f; - dust = Main.dust[pulseDust]; - - pulseDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, dust1, dustVel.X, dustVel.Y, 100, default, 1f); - Main.dust[pulseDust].position = Projectile.Center + Vector2.UnitY.RotatedByRandom(MathHelper.Pi) * (float)Main.rand.NextDouble() * Projectile.width / 2f; - - dust = Main.dust[pulseDust]; - dust.velocity *= 2f; - - Main.dust[pulseDust].noGravity = true; - Main.dust[pulseDust].fadeIn = 1f; - Main.dust[pulseDust].color = Color.Green * 0.5f; - - dust = Main.dust[pulseDust]; + Dust dust = Dust.NewDustPerfect(Projectile.Center, 66); + dust.scale = Main.rand.NextFloat(0.4f, 1.4f); + dust.velocity = (Projectile.velocity * 4).RotateRandom(0.6f) * Main.rand.NextFloat(0.2f, 0.9f); + dust.noGravity = true; + dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; + dust.noLight = true; } - for (int j = 0; j < 25; j++) + for (int i = 0; i <= 15; i++) { - float dustSpeed = Main.rand.NextFloat(speed1, speed2); - Vector2 dustVel = new Vector2(dustSpeed, 0.0f).RotatedBy(Projectile.velocity.ToRotation()); - dustVel = dustVel.RotatedBy(-angleRandom); - dustVel = dustVel.RotatedByRandom(2.0f * angleRandom); - - int pulseDust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, dust2, dustVel.X, dustVel.Y, 0, default, 3f); - Main.dust[pulseDust2].position = Projectile.Center + Vector2.UnitX.RotatedByRandom(3.1415927410125732).RotatedBy(Projectile.velocity.ToRotation()) * Projectile.width / 3f; - Main.dust[pulseDust2].noGravity = true; - - Dust dust = Main.dust[pulseDust2]; - dust.velocity *= 0.5f; - dust = Main.dust[pulseDust2]; + SquishyLightParticle energy = new SquishyLightParticle(Projectile.Center, (Projectile.velocity * 4).RotatedByRandom(0.6f) * Main.rand.NextFloat(0.1f, 0.4f), Main.rand.NextFloat(0.2f, 0.6f), Main.rand.NextBool(3) ? Color.DarkViolet : mainColor, Main.rand.Next(30, 40 + 1), 0.25f, 2f); + GeneralParticleHandler.SpawnParticle(energy); } } } From cc59e0244d7b6c53ba51b6197e5d836b8021b690 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 24 Mar 2024 00:29:32 -0700 Subject: [PATCH 02/43] Pulse Rifle finalization "Fires an enhanced pulse that arcs to a new target on enemy hits Fires an enhanced pulse beam that dissipates into 4 high-frequency pulse orbs on hit Pulse orbs aggressively track nearby targets and track faster the more they hit Pulse orb pierce will not decrease when killing enemies or dealing low damage (less than 2)" --- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 4 +- ...ityMod.Items.Weapons.DraedonsArsenal.hjson | 4 +- Projectiles/DraedonsArsenal/PulseRifleShot.cs | 65 ++++++++++--------- 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index a05e4b75b5..15fbbce2ab 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); - private int BaseDamage = 2000; + private int BaseDamage = 1700; public int FiringTimer = 30; public override void SetDefaults() @@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - SoundEngine.PlaySound(FireSound with { Pitch = 0.2f }); + SoundEngine.PlaySound(FireSound with { Volume = 0.7f, Pitch = 0.3f }); Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0f, 0f); return false; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson index b05c68bd64..bccef2915e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson @@ -146,7 +146,9 @@ PulseRifle: { DisplayName: Pulse Rifle Tooltip: ''' - Fires an enhanced pulse that arcs to a new target on enemy hits + Fires an enhanced pulse beam that dissipates into 4 high-frequency pulse orbs on hit + Pulse orbs aggressively track nearby targets and track faster the more they hit + Pulse orb pierce will not decrease when killing enemies or dealing low damage [c/1FFBFF:'My own personal weapon, used to stamp out failed creations.] [c/1FFBFF:I have backed up the schematics in the event of the original's destruction.'] ''' diff --git a/Projectiles/DraedonsArsenal/PulseRifleShot.cs b/Projectiles/DraedonsArsenal/PulseRifleShot.cs index 5ce8b9211a..23856876cf 100644 --- a/Projectiles/DraedonsArsenal/PulseRifleShot.cs +++ b/Projectiles/DraedonsArsenal/PulseRifleShot.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal private NPC closestTarget = null; private NPC lastTarget = null; private float distance; + private int timesItCanHit = 3; public override void SetDefaults() { Projectile.width = 16; @@ -40,6 +41,9 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override void AI() { + if (timesItCanHit <= 0) + Projectile.Kill(); + notSplit = Projectile.ai[1] == 0f; Lighting.AddLight(Projectile.Center, 0.3f, 0f, 0.5f); @@ -54,9 +58,8 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { Projectile.extraUpdates = 1; Projectile.timeLeft = 1240; - Projectile.penetrate = 3; if (Projectile.ai[1] == 1) - SoundEngine.PlaySound(SoundID.DD2_DarkMageCastHeal with { Volume = 1.4f, Pitch = 0.6f }, Projectile.Center); + SoundEngine.PlaySound(SoundID.DD2_DarkMageCastHeal with { Volume = 1.7f, Pitch = 0.3f }, Projectile.Center); } if (notSplit) { @@ -113,11 +116,9 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { doDamage = true; distance = 1500; - if (Projectile.ai[1] == 1) - { - SoundStyle fire = new("CalamityMod/Sounds/Item/OpalFire"); - SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = 1f }, Projectile.Center); - } + + SoundStyle fire = new("CalamityMod/Sounds/Item/OpalFire"); + SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = 1f }, Projectile.Center); Particle pulse = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, mainColor, new Vector2(1f, 1f), Main.rand.NextFloat(12f, 25f), 0f, 0.5f, 15); @@ -135,8 +136,25 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } if (Projectile.localAI[0] > 120) { - Projectile.extraUpdates = 5; - NPC prevTarg = null; + float projectileSpeed = 9.5f; + if (closestTarget is not null && closestTarget.active) + { + float targetDirectionRotation = Projectile.SafeDirectionTo(closestTarget.Center).ToRotation(); + float turningRate = 10f + Projectile.localAI[0] * 0.00008f; + Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(targetDirectionRotation, turningRate).ToRotationVector2() * projectileSpeed; + } + else + { + Projectile.velocity = Projectile.rotation.ToRotationVector2() * projectileSpeed; + Projectile.velocity *= 0.998f; + } + if (closestTarget is not null && Vector2.Distance(Projectile.Center, closestTarget.Center) < 10) + { + closestTarget = null; + distance = 1500; + } + + Projectile.extraUpdates = 5 + (int)(Projectile.numHits * 0.3f); { for (int index = 0; index < Main.npc.Length; index++) { @@ -146,30 +164,12 @@ namespace CalamityMod.Projectiles.DraedonsArsenal if (Vector2.Distance(Projectile.Center, Main.npc[index].Center) < (distance + extraDistance)) { - closestTarget = prevTarg == null ? Main.npc[index] : Main.npc[index] == lastTarget ? prevTarg : Main.npc[index]; - if (closestTarget == prevTarg && closestTarget == lastTarget) - closestTarget = null; - prevTarg = closestTarget; - + closestTarget = Main.npc[index]; distance = Vector2.Distance(Projectile.Center, Main.npc[index].Center); } } } } - - float projectileSpeed = 9.5f; - if (closestTarget is not null) - { - float targetDirectionRotation = Projectile.SafeDirectionTo(closestTarget.Center).ToRotation(); - float turningRate = 10f + Projectile.localAI[0] * 0.00008f; - Projectile.velocity = Projectile.velocity.ToRotation().AngleTowards(targetDirectionRotation, turningRate).ToRotationVector2() * projectileSpeed; - } - else - { - Projectile.velocity = Projectile.rotation.ToRotationVector2() * projectileSpeed; - Projectile.velocity *= 0.99f; - Projectile.timeLeft--; - } } } else @@ -238,13 +238,14 @@ namespace CalamityMod.Projectiles.DraedonsArsenal GeneralParticleHandler.SpawnParticle(energy); } + if (hit.Damage > 2 && target == closestTarget) + timesItCanHit--; + if (onKill) { - Projectile.penetrate++; + timesItCanHit += 1; + Projectile.timeLeft += 90; } - - if (hit.Damage <= 2) - Projectile.penetrate++; } } From ba5464e025ef512912f25fead888dbc0742dca70 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 24 Mar 2024 02:20:12 -0700 Subject: [PATCH 03/43] Comments and some tweaks Added comments and tweaked some numbers --- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 2 +- Projectiles/DraedonsArsenal/PulseRifleShot.cs | 43 ++++++++++++------- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index 15fbbce2ab..4c98b83607 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); - private int BaseDamage = 1700; + private int BaseDamage = 1000; public int FiringTimer = 30; public override void SetDefaults() diff --git a/Projectiles/DraedonsArsenal/PulseRifleShot.cs b/Projectiles/DraedonsArsenal/PulseRifleShot.cs index 23856876cf..6f14a461f6 100644 --- a/Projectiles/DraedonsArsenal/PulseRifleShot.cs +++ b/Projectiles/DraedonsArsenal/PulseRifleShot.cs @@ -41,6 +41,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal public override void AI() { + // If it's hit targeted enemies enough, kill it if (timesItCanHit <= 0) Projectile.Kill(); @@ -70,6 +71,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal Projectile.localAI[0] += 1f; if (Projectile.localAI[0] > createDustVar && notSplit) { + // Main projectile visual float sizeBonus = MathHelper.Clamp(Projectile.localAI[0] * 0.009f, 0, 3.5f); if (targetDist < 1400f) { @@ -83,6 +85,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal GeneralParticleHandler.SpawnParticle(spark); } + // A lingering trail of dust you can see after the particle trail disipates if (Projectile.localAI[0] > 20) { Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); @@ -97,6 +100,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal #region Split Projectile AI if (!notSplit) { + // Split projectile visuals if (targetDist < 1400f) { GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 5, 1.7f - Projectile.ai[1] * 0.18f, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); @@ -107,14 +111,16 @@ namespace CalamityMod.Projectiles.DraedonsArsenal GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center + Projectile.velocity * Main.rand.NextFloat(-2f, 2f), -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 5, 1.7f - Projectile.ai[1] * 0.18f, Main.rand.NextBool(3) ? Color.DarkViolet : mainColor); GeneralParticleHandler.SpawnParticle(spark); } + if (Projectile.localAI[0] > 90) { + // Velocity must look like it has stoped, but can't actually be zero otherwise homing code doesn't work if (Projectile.localAI[0] == 91) Projectile.velocity *= 0.001f; + // When they begin the homing after a hit of spawning, do a few visuals if (Projectile.localAI[0] == 120) { - doDamage = true; distance = 1500; SoundStyle fire = new("CalamityMod/Sounds/Item/OpalFire"); @@ -134,8 +140,17 @@ namespace CalamityMod.Projectiles.DraedonsArsenal dust.noLight = true; } } + // Homing code if (Projectile.localAI[0] > 120) { + // Do damage if it's near its target otherwise don't, this is to prevent excessive hits as orbs rail through worm bosses and such + if (closestTarget is not null) + doDamage = Vector2.Distance(Projectile.Center, closestTarget.Center) < 10; + else + doDamage = false; + + // Tracking code, originally was going to try only tracking the closest target not including the last target you hit, but I couldn't make it work + // Eventually I settled on how it works now and it seems to home consistently so I'm happy enough there float projectileSpeed = 9.5f; if (closestTarget is not null && closestTarget.active) { @@ -146,7 +161,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal else { Projectile.velocity = Projectile.rotation.ToRotationVector2() * projectileSpeed; - Projectile.velocity *= 0.998f; + Projectile.velocity *= 0.999f; } if (closestTarget is not null && Vector2.Distance(Projectile.Center, closestTarget.Center) < 10) { @@ -154,8 +169,10 @@ namespace CalamityMod.Projectiles.DraedonsArsenal distance = 1500; } + // Add extra updates as it hits more times, this smoothy increases the speed without destroying velocity based visual effects Projectile.extraUpdates = 5 + (int)(Projectile.numHits * 0.3f); { + // Actual homing movement for (int index = 0; index < Main.npc.Length; index++) { if (Main.npc[index].CanBeChasedBy(null, false) || Main.npc[index] == lastTarget) @@ -174,6 +191,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } else { + // Minor dust trail for when they first spawn if (Main.rand.NextBool(3)) { Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); @@ -212,6 +230,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal dust.noLight = true; } + // Since the beam looks wider as it travels, these hit particles scale a bit to fit that float sizeBonus = MathHelper.Clamp(Projectile.localAI[0] * 0.01f, 0, 3.5f); for (int k = 0; k < 9; k++) { @@ -219,14 +238,19 @@ namespace CalamityMod.Projectiles.DraedonsArsenal GeneralParticleHandler.SpawnParticle(spark); } + // Spawn the 4 energy orbs + // These should do a large fraction of the beam's damage so they will easily kill even some decently bulky enemies regular enemies in one hit + // This is so it can better proc its on kill effect int numProj = 4; for (int i = 0; i < numProj; i++) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity.SafeNormalize(Vector2.Zero) * (14f - i * 0.7f)) * ((i + 1) * 0.25f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), Projectile.knockBack, Projectile.owner, 0f, 1f + i); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity.SafeNormalize(Vector2.Zero) * (14f - i * 0.7f)) * ((i + 1) * 0.25f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0f, 1f + i); } } + // Split projectile on hit effects else { + // Set some values to get ready foir it to home again for its next hit lastTarget = target; distance = 1500; Projectile.localAI[0] = 60; @@ -248,19 +272,6 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } } } - - public override void OnKill(int timeLeft) - { - if (notSplit) - { - - } - else - { - //SoundEngine.PlaySound(SoundID.Item93, Projectile.Center); - } - } - private void PulseBurst(float speed1, float speed2) { for (int i = 0; i <= 25; i++) From a7ca9ce1901237c2fd259c02a11e49ae1ca93c41 Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 25 Mar 2024 17:08:29 -0700 Subject: [PATCH 04/43] Reduced dust Per Triangle's request --- Projectiles/DraedonsArsenal/PulseRifleShot.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Projectiles/DraedonsArsenal/PulseRifleShot.cs b/Projectiles/DraedonsArsenal/PulseRifleShot.cs index 6f14a461f6..aabdd2c12e 100644 --- a/Projectiles/DraedonsArsenal/PulseRifleShot.cs +++ b/Projectiles/DraedonsArsenal/PulseRifleShot.cs @@ -86,10 +86,10 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } // A lingering trail of dust you can see after the particle trail disipates - if (Projectile.localAI[0] > 20) + if (Projectile.localAI[0] > 20 && Main.rand.NextBool()) { Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); - dust.scale = Main.rand.NextFloat(0.9f, 1.7f); + dust.scale = Main.rand.NextFloat(0.7f, 1.5f); dust.velocity = Projectile.velocity * Main.rand.NextFloat(-3, 3); dust.noGravity = true; dust.color = Main.rand.NextBool(3) ? Color.DarkViolet : mainColor; @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal // When they begin the homing after a hit of spawning, do a few visuals if (Projectile.localAI[0] == 120) { - distance = 1500; + distance = 3000; SoundStyle fire = new("CalamityMod/Sounds/Item/OpalFire"); SoundEngine.PlaySound(fire with { Volume = 0.35f, Pitch = 1f }, Projectile.Center); @@ -166,7 +166,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal if (closestTarget is not null && Vector2.Distance(Projectile.Center, closestTarget.Center) < 10) { closestTarget = null; - distance = 1500; + distance = 3000; } // Add extra updates as it hits more times, this smoothy increases the speed without destroying velocity based visual effects @@ -192,7 +192,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal else { // Minor dust trail for when they first spawn - if (Main.rand.NextBool(3)) + if (Main.rand.NextBool(5)) { Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5), 66); dust.scale = Main.rand.NextFloat(0.8f, 1.4f); @@ -220,7 +220,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { Projectile.Kill(); - for (int i = 0; i <= 15; i++) + for (int i = 0; i <= 9; i++) { Dust dust = Dust.NewDustPerfect(Projectile.Center, 66); dust.scale = Main.rand.NextFloat(0.4f, 1.1f); @@ -252,13 +252,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { // Set some values to get ready foir it to home again for its next hit lastTarget = target; - distance = 1500; + distance = 3000; Projectile.localAI[0] = 60; Projectile.velocity *= MathHelper.Clamp(1.5f - Projectile.numHits * 0.5f, 1f, 1.5f); - for (int i = 0; i <= 3; i++) + for (int i = 0; i <= 2; i++) { - SquishyLightParticle energy = new SquishyLightParticle(Projectile.Center, (Projectile.velocity * 2).RotatedByRandom(0.7f) * Main.rand.NextFloat(0.1f, 0.4f), Main.rand.NextFloat(0.2f, 0.5f), Main.rand.NextBool(3) ? Color.DarkViolet : mainColor, Main.rand.Next(20, 30 + 1), 0.25f, 2f); + SquishyLightParticle energy = new SquishyLightParticle(Projectile.Center, (Projectile.velocity * 2).RotatedByRandom(0.7f) * Main.rand.NextFloat(0.1f, 0.4f), Main.rand.NextFloat(0.1f, 0.25f), Main.rand.NextBool(3) ? Color.DarkViolet : mainColor, Main.rand.Next(20, 30 + 1), 0.25f, 2f); GeneralParticleHandler.SpawnParticle(energy); } @@ -274,7 +274,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal } private void PulseBurst(float speed1, float speed2) { - for (int i = 0; i <= 25; i++) + for (int i = 0; i <= 15; i++) { Dust dust = Dust.NewDustPerfect(Projectile.Center, 66); dust.scale = Main.rand.NextFloat(0.4f, 1.4f); From 0e203e2b8aeaff0ec90b26593b4e17575fae08a6 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Wed, 17 Apr 2024 03:47:20 -0700 Subject: [PATCH 05/43] flight bar now supports mounts --- UI/FlightBar/FlightBar.cs | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) 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 + }; } } From 92e53536e0cb0878ce420b8c715d8fb24af08e83 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:21:37 -0700 Subject: [PATCH 06/43] debuff resists now appear in the bestiary --- Localization/en-US/Mods.CalamityMod.UI.hjson | 15 ++++ NPCs/CalamityGlobalNPC.cs | 33 +++++++ UI/BestiaryDebuffInfo.cs | 94 ++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 UI/BestiaryDebuffInfo.cs 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..f888f91cbc 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -8455,5 +8455,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/UI/BestiaryDebuffInfo.cs b/UI/BestiaryDebuffInfo.cs new file mode 100644 index 0000000000..e22956d6ce --- /dev/null +++ b/UI/BestiaryDebuffInfo.cs @@ -0,0 +1,94 @@ +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.UI; + +namespace CalamityMod.UI +{ + 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++) + { + float topPos = 0.2f + i * 0.175f; + // Icon + UIImage elementImage = new UIImage(Main.Assets.Request("Images/UI/Bestiary/Stat_Knockback")) + { + HAlign = 0f, + VAlign = 0f, + Width = StyleDimension.FromPixelsAndPercent(0f, 1f), + Height = StyleDimension.FromPixelsAndPercent(0f, 1f), + Top = new StyleDimension(0f, topPos - 0.0525f), + Left = new StyleDimension(0f, 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); + } + } + } +} From ea3f29b244cb7b2ff285a0bb6613be767c9d98c3 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:06:03 -0700 Subject: [PATCH 07/43] custom icons --- NPCs/CalamityGlobalNPC.cs | 1 + UI/{ => DebuffSystem}/BestiaryDebuffInfo.cs | 27 +++++++++++++++++--- UI/DebuffSystem/ColdDebuffType.png | Bin 0 -> 255 bytes UI/DebuffSystem/ElectricityDebuffType.png | Bin 0 -> 234 bytes UI/DebuffSystem/HeatDebuffType.png | Bin 0 -> 259 bytes UI/DebuffSystem/SicknessDebuffType.png | Bin 0 -> 262 bytes UI/DebuffSystem/WaterDebuffType.png | Bin 0 -> 247 bytes 7 files changed, 25 insertions(+), 3 deletions(-) rename UI/{ => DebuffSystem}/BestiaryDebuffInfo.cs (79%) create mode 100644 UI/DebuffSystem/ColdDebuffType.png create mode 100644 UI/DebuffSystem/ElectricityDebuffType.png create mode 100644 UI/DebuffSystem/HeatDebuffType.png create mode 100644 UI/DebuffSystem/SicknessDebuffType.png create mode 100644 UI/DebuffSystem/WaterDebuffType.png diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index f888f91cbc..e90c4502bf 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; diff --git a/UI/BestiaryDebuffInfo.cs b/UI/DebuffSystem/BestiaryDebuffInfo.cs similarity index 79% rename from UI/BestiaryDebuffInfo.cs rename to UI/DebuffSystem/BestiaryDebuffInfo.cs index e22956d6ce..1a08b81c3f 100644 --- a/UI/BestiaryDebuffInfo.cs +++ b/UI/DebuffSystem/BestiaryDebuffInfo.cs @@ -4,9 +4,10 @@ using Terraria; using Terraria.GameContent.Bestiary; using Terraria.GameContent.UI.Elements; using Terraria.Localization; +using Terraria.ModLoader; using Terraria.UI; -namespace CalamityMod.UI +namespace CalamityMod.UI.DebuffSystem { public class BestiaryDebuffInfo : IBestiaryInfoElement { @@ -51,16 +52,36 @@ namespace CalamityMod.UI // 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(Main.Assets.Request("Images/UI/Bestiary/Stat_Knockback")) + 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(0f, 0f), + Left = new StyleDimension(8f, 0f), ImageScale = 0.8f, }; backgroundPanel.Append(elementImage); diff --git a/UI/DebuffSystem/ColdDebuffType.png b/UI/DebuffSystem/ColdDebuffType.png new file mode 100644 index 0000000000000000000000000000000000000000..eb0a88f11a4aef5fa48ab549419c5bc63996b16e GIT binary patch literal 255 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9R!3-o1bjN}y#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvVv3w_=LEs*4+R6^Z)X@->sH>mWbWfe)0dQxBr2Xik@0>K#HRz$S?Rm1Tfrd z-Wv%N<1FxqEM{QfI}E~%$MaXD00m<_T^vI+g17cMaxoZkFmHAH{a;=`@I%1u$80=l z8Ef7w+%FjF?VhD@^|Jb-$6L>28QBXoYdz%NxJ)-JKO_IZ8QVj5c}_%&s~ifrY%j;r nF`>jkjX)S3j3^P6!lvI6=10X`wFN)4xr&)mNB|5xGf|3I-VYnP=0Db|u8zu^Bs!0>w;UocRBv%n*= zn1O-sFbFdq&tH)O6b$xsaSYK2u00pc#h}39a`EHF|E9+?0w+}Mf7BxOXSK4;SCvIs z6SFcL8)mwsRc}y`n_T4UdLVM|^v#p*Stb3+aa!}gWMtr$B-(^ W{IKc!x4S^&89ZJ6T-G@yGywo(TvdMn literal 0 HcmV?d00001 diff --git a/UI/DebuffSystem/HeatDebuffType.png b/UI/DebuffSystem/HeatDebuffType.png new file mode 100644 index 0000000000000000000000000000000000000000..8b25d715bb4dc37b19812f8b2e54523043c10ff5 GIT binary patch literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9R!3-o1bjN}y#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;{0X`wFJFFyrl{5Ul&G5s7;s0i}|9^h~WrDU?WC1Dmk|4j}|6sr%<<0B{ z6yhxKh%9Dc;5!V$jK}j=qyPm|JY5_^G=f{tI|?-@@Hk)Gmbvr)#HZbQE*El6*|aHc zEjxDR?z_*XX-rCaF_UMCOw_EMTs`%>N43-pNyEPuf}*Q_G%U|vHxHl!PC{xWt~$(69CQSTVMbH literal 0 HcmV?d00001 diff --git a/UI/DebuffSystem/SicknessDebuffType.png b/UI/DebuffSystem/SicknessDebuffType.png new file mode 100644 index 0000000000000000000000000000000000000000..db56ba844955181a82e20d6f327aeb8ffb6cb113 GIT binary patch literal 262 zcmeAS@N?(olHy`uVBq!ia0vp^LO?9R!3-o1bjN}y#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6d34x4LxK`F!|xFLRoD!6rSE21NlU1)%&Zi=R3`inAohFZe$c zFa-NofNbF`@Q5sCVBk9p!i>lBSEK+1<2_v*Lo|Z-p7Z8wP~c&?@bC0r|24rKiX3`# zc|Ul}Uij^lz01@>`Qu(LXNs0Tp2x82Oxn8x!kq~QkGhRq&nOwps8pKr!lvI6;{0X`wFoVNQ_L!TOF|16yT`^2|@lQ;ea%KX^G@*GI9mjw9*{|5sGDQ{*s zpb%$)M`SSr1K(i~W;~w1A_XWI;pyTSq7htsu95420tZXL)-V6`vLL+`gtvWs{iPhb-TQy^R*aigE8dB*PoB{QIgt{S0?Z fztd@Z%sEZ`Rv$ZSYeq~W&<+MqS3j3^P6 Date: Wed, 17 Apr 2024 19:52:12 +0200 Subject: [PATCH 08/43] Mineral Mortar uses BaseGunHoldoutProjectile. --- Projectiles/Ranged/MineralMortarHoldout.cs | 92 ++++------------------ 1 file changed, 15 insertions(+), 77 deletions(-) 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; From 4f0602bd542fbb539b508f523b1b6a17451a0131 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:02:01 +0200 Subject: [PATCH 09/43] Flak Toxicannon uses BaseGunHoldoutProjectile --- Projectiles/Ranged/FlakToxicannonHoldout.cs | 132 +++----------------- 1 file changed, 19 insertions(+), 113 deletions(-) diff --git a/Projectiles/Ranged/FlakToxicannonHoldout.cs b/Projectiles/Ranged/FlakToxicannonHoldout.cs index 7b192a5220..6e4e8c1777 100644 --- a/Projectiles/Ranged/FlakToxicannonHoldout.cs +++ b/Projectiles/Ranged/FlakToxicannonHoldout.cs @@ -1,72 +1,47 @@ -using System; -using CalamityMod.Items.Weapons.Ranged; -using CalamityMod.Particles; +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 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 +70,7 @@ namespace CalamityMod.Projectiles.Ranged // Spawns the projectile. Projectile.NewProjectileDirect( Projectile.GetSource_FromThis(), - nuzzlePosition, + GunTipPosition, direction * itemShootSpeed, ProjectileType(), itemDamage, @@ -112,11 +87,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 +105,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 +120,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 +129,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; - } } } From 8485f677a5e0b8aa2214fbc3c5f4d4b1dbe82d74 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:03:06 +0200 Subject: [PATCH 10/43] Fixed the mod not compiling. --- Projectiles/Ranged/FlakToxicannonHoldout.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Projectiles/Ranged/FlakToxicannonHoldout.cs b/Projectiles/Ranged/FlakToxicannonHoldout.cs index 6e4e8c1777..05b47dfeeb 100644 --- a/Projectiles/Ranged/FlakToxicannonHoldout.cs +++ b/Projectiles/Ranged/FlakToxicannonHoldout.cs @@ -1,4 +1,5 @@ -using CalamityMod.Particles; +using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using Terraria; @@ -11,6 +12,7 @@ namespace CalamityMod.Projectiles.Ranged { public class FlakToxicannonHoldout : BaseGunHoldoutProjectile { + public override int AssociatedItemID => ItemType(); public override float MaxOffsetLengthFromArm => 38f; public override float RecoilResolveSpeed => 0.1f; public override float OffsetXUpwards => -10f; From de38fc717a77ea794eb520f4dcf3a3a9fa397c9a Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Thu, 18 Apr 2024 01:10:19 +0700 Subject: [PATCH 11/43] Added Brimstone Lava Fountain also made abyss/astral fountain sales phm also also water fountains apparently have blue rarity ok changing that?? --- CalPlayer/CalamityPlayer.cs | 4 + CalPlayer/CalamityPlayerMiscEffects.cs | 2 + .../Furniture/Fountains/AbyssFountainItem.cs | 2 +- .../Furniture/Fountains/AstralFountainItem.cs | 2 +- .../Fountains/BrimstoneLavaFountainItem.cs | 27 +++++++ .../Fountains/BrimstoneLavaFountainItem.png | Bin 0 -> 744 bytes .../Fountains/SulphurousFountainItem.cs | 2 +- .../Furniture/Fountains/SunkenSeaFountain.cs | 2 +- .../Mods.CalamityMod.Items.Placeables.hjson | 5 ++ .../en-US/Mods.CalamityMod.Tiles.hjson | 1 + NPCs/CalamityGlobalTownNPC.cs | 5 +- .../Fountains/BrimstoneLavaFountainTile.cs | 69 ++++++++++++++++++ .../Fountains/BrimstoneLavaFountainTile.png | Bin 0 -> 5559 bytes .../BrimstoneLavaFountainTile_Highlight.png | Bin 0 -> 3957 bytes Utilities/FurnitureSetupUtils.cs | 5 +- Waters/CragsLavaStyle.cs | 2 +- 16 files changed, 119 insertions(+), 9 deletions(-) create mode 100644 Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.cs create mode 100644 Items/Placeables/Furniture/Fountains/BrimstoneLavaFountainItem.png create mode 100644 Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.cs create mode 100644 Tiles/Furniture/Fountains/BrimstoneLavaFountainTile.png create mode 100644 Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 130c695930..26762303ef 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 diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index c38a5ded33..e969f0e30c 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) 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 0000000000000000000000000000000000000000..6e5bbcab48e8319605e9187f059984ba0d9e7bbe GIT binary patch literal 744 zcmVP)<00085Nklym6>$V^8VkLGHdSeA$M3gsm7f1^VqpM(8 z5MES5g01Lh_;aD+re<5s*%oCKMJ#;YUg;d?WPRsc?Ad$H_dV}(p7%Z9(eiQ}$?lHy z!YiTYpYdj6SC_Vc_{n9gNW>2mI9G#LtG*;8Nx!`aC3$Wypzq9s%!-r|J#A@0#)cb* zX{UohL0S5DFV<7{o?+f}vQtpJ7$_rR!{#U?P@3pN7l z3x5E&)~%<^f6vyH;HcnH^4mL6k!~WkhPQa$TY)JySN5*&<}9Y}P7vOC5)iAVn}`Wc z>^&+ZKjey0)sF23@)>(LWJ4UDj!^Ydl1Ivj>NZyi8MseaCa;&5mXSw~15{19kCYK{ z`MC|RXW3zP=$$i4H&siy)!N{sYEL}D32bw)}<~Ciw zo&EIdCSrmM`#gf!%V8^G|E{mVBY{a^&%mS1ij)yewKc<=(&KhyJka_E*yQv9cUraq z2jVn;`c_kBMaqbHYwr#8T`IA-fM=bpf)ZKTl3V1ziMVsQL?t%r7am1Lr0ANj12_}> z0(); } } 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/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.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/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 4efd5a9980..db99850501 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -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/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 0000000000000000000000000000000000000000..666b7cd742553ab0c5cc68de3c44a8d25a894ebd GIT binary patch literal 5559 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 U0UXCt8S9(t)!+Otj*9C40EjHJtN;K2 literal 0 HcmV?d00001 diff --git a/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png b/Tiles/Furniture/Fountains/BrimstoneLavaFountainTile_Highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..32314cd9c743a4707043d03d5e44dc8bd2c53407 GIT binary patch literal 3957 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 literal 0 HcmV?d00001 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/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; From 4c04846e58d6e5583dc33f897081a77fa852dc30 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:11:20 +0200 Subject: [PATCH 12/43] Flak Kraken uses BaseGunHoldoutProjectile --- Projectiles/Ranged/FlakKrakenHoldout.cs | 127 ++++-------------------- 1 file changed, 22 insertions(+), 105 deletions(-) diff --git a/Projectiles/Ranged/FlakKrakenHoldout.cs b/Projectiles/Ranged/FlakKrakenHoldout.cs index 88ad21ae67..47de113d41 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,42 +147,10 @@ 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) - { - 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); - } + public override void OnSpawn(IEntitySource source) => FrontArmStretch = Player.CompositeArmStretchAmount.ThreeQuarters; public void NetUpdate() { @@ -214,32 +158,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; - } } } From d3e3135ec24ad6b07ab6d1e9aedb19ab1bfa0f32 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:30:07 +0200 Subject: [PATCH 13/43] Scorpio uses BaseGunHoldoutProjectile. --- Projectiles/Ranged/ScorpioHoldout.cs | 139 ++++++--------------------- 1 file changed, 27 insertions(+), 112 deletions(-) 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); From 010c052e6b007587236a9333fd1629bd63f597ed Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:30:43 +0200 Subject: [PATCH 14/43] Fixed Flak Kraken not working. --- Projectiles/Ranged/FlakKrakenHoldout.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Projectiles/Ranged/FlakKrakenHoldout.cs b/Projectiles/Ranged/FlakKrakenHoldout.cs index 47de113d41..2eaeff6f2a 100644 --- a/Projectiles/Ranged/FlakKrakenHoldout.cs +++ b/Projectiles/Ranged/FlakKrakenHoldout.cs @@ -150,7 +150,11 @@ namespace CalamityMod.Projectiles.Ranged ShootingTimer++; } - public override void OnSpawn(IEntitySource source) => FrontArmStretch = Player.CompositeArmStretchAmount.ThreeQuarters; + public override void OnSpawn(IEntitySource source) + { + base.OnSpawn(source); + FrontArmStretch = Player.CompositeArmStretchAmount.ThreeQuarters; + } public void NetUpdate() { From 1145671989f0295f2a5c6b65cc7ac10956657ec1 Mon Sep 17 00:00:00 2001 From: Memes Date: Wed, 17 Apr 2024 20:51:47 +0200 Subject: [PATCH 15/43] The Hive uses BaseGunHoldoutProjectile. --- Projectiles/Ranged/TheHiveHoldout.cs | 157 +++++++++------------------ 1 file changed, 49 insertions(+), 108 deletions(-) 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); From 9a6dcd5f1b1b1f516d0555807dc674f7176348cd Mon Sep 17 00:00:00 2001 From: JavyzTaken <36089970+JavyzTaken@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:09:28 +0200 Subject: [PATCH 16/43] Made Bloody Worm Food and Teratoma only shimmerable after the respective boss is killed. (#30) --- Items/SummonItems/BloodyWormFood.cs | 2 ++ Items/SummonItems/Teratoma.cs | 2 ++ 2 files changed, 4 insertions(+) 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(); } } From 879fc6ddcb9fa845eb1b3a53e357df178739325d Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 17:32:37 -0400 Subject: [PATCH 17/43] Fix shield iframe abuse. Fix localization error introduced by new HM/Perfs shimmer lock. --- CalPlayer/CalamityPlayer.cs | 1 - CalPlayer/CalamityPlayerHitHurt.cs | 27 +++++------ .../en-US/Mods.CalamityMod.Condition.hjson | 2 + Utilities/PlayerUtils.cs | 46 ++++++++++++++++++- 4 files changed, 58 insertions(+), 18 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 26762303ef..8c7a662f4c 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -415,7 +415,6 @@ namespace CalamityMod.CalPlayer #region Energy Shields public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || ((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) || sponge; - public bool freeDodgeFromShieldAbsorption = false; public bool drawnAnyShieldThisFrame = false; // TODO -- Some way to show the player their total shield points. diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index cbcb1a724a..ba60ac2d1c 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1467,17 +1467,6 @@ namespace CalamityMod.CalPlayer if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */) return true; - // If this hit was marked to be completely ignored due to shield absorption, then process Adrenaline changes and ignore it. - if (freeDodgeFromShieldAbsorption) - { - freeDodgeFromShieldAbsorption = false; - - // 20FEB2024: Ozzatron: Hits fully absorbed by shields remove half of your current Adrenaline. - // If using Draedon's Heart, it pauses for half the typical duration. - LoseAdrenalineOnHurt(info, true); - return true; - } - // Gravistar Sabaton fall ram gives you a free dodge as long as you're slamming through NPCs // This also strikes the NPCs as a side effect if (gSabatonFalling) @@ -1736,9 +1725,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; @@ -1954,13 +1943,21 @@ 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. + // 17APR2024: Ozzatron: Use Fargo's hit-nulling methodology instead of a Free Dodge so improper iframes are not granted if (shieldsFullyAbsorbedHit) { - freeDodgeFromShieldAbsorption = true; + info.NullifyHit(); + + // Give the appropriate immunity frames. + Player.GiveIFrames(info.CooldownCounter, Player.longInvince ? 100 : 60, true); // Cancel defense damage, if it was going to occur this frame. nextHitDealsDefenseDamage = false; + + // 20FEB2024: Ozzatron: Hits fully absorbed by shields remove half of your current Adrenaline. + // If using Draedon's Heart, it pauses for half the typical duration. + LoseAdrenalineOnHurt(info, true); } } @@ -1970,7 +1967,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; 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/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index a42f871bb0..dc0f5bbe5d 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using System.Reflection; using CalamityMod.Balancing; using CalamityMod.CalPlayer; using CalamityMod.Cooldowns; @@ -431,6 +432,34 @@ namespace CalamityMod return false; } + /// + /// 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. + ///
+ /// 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).
If the player already has more iframes than you want to give them, this function does nothing. ///
@@ -450,8 +479,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 +502,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 From 430ba4bcbe862bc2a8292467f9f34612214151d7 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 19:29:37 -0400 Subject: [PATCH 18/43] 1 - Reverted Fargo's based shield iframe exploit fix and replaced it with an actual bugfix instead of a rewrite. 2 - Made the application of all immunity frames consistent with vanilla rules. 3 - Added balancing constants and utility helper functions for all immunity frame calculations. 4 - Buffed many dodges, reflects, and other dodge-like effects to benefit from Cross Necklace like vanilla dodges. 5 - Permafrost's Concoction now is buffed by Cross Necklace. 6 - Significantly buffed the immunity frames granted by Spectral Veil and all reflects by making them consistent with vanilla. 7 - Significantly buffed the immunity frames granted by Ark line parries by making them consistent with vanilla. --- Balancing/BalancingConstants.cs | 12 ++ Buffs/StatBuffs/Encased.cs | 9 +- CalPlayer/CalamityPlayer.cs | 3 +- CalPlayer/CalamityPlayerDashEffects.cs | 4 +- CalPlayer/CalamityPlayerHitHurt.cs | 121 +++++++++--------- CalPlayer/CalamityPlayerMiscEffects.cs | 4 +- ILEditing/MechanicILChanges.cs | 3 +- Items/Accessories/GravistarSabaton.cs | 1 + Items/Accessories/PermafrostsConcoction.cs | 3 + Items/Accessories/SpectralVeil.cs | 6 +- .../Melee/ArkOfTheAncients_ParryHoldout.cs | 8 +- .../Melee/ArkOfTheCosmos_BlastAttack.cs | 4 +- .../Melee/ArkOfTheCosmos_ParryHoldout.cs | 8 +- .../Melee/ArkOfTheElements_ParryHoldout.cs | 8 +- .../Melee/BrokenBiomeBlade_AridGrandeur.cs | 6 +- .../Melee/BrokenBiomeBlade_DecaysRetort.cs | 5 +- Projectiles/Melee/Galaxia_AndromedasStride.cs | 4 +- Projectiles/Melee/Galaxia_PolarisGaze.cs | 12 +- .../MendedBiomeBlade_ExtantAbhorrence.cs | 4 +- .../MendedBiomeBlade_TrueAridGrandeur.cs | 5 +- .../MendedBiomeBlade_TrueDecaysRetort.cs | 11 +- .../Melee/PhosphorescentGauntletPunches.cs | 4 +- .../Melee/Spears/RedtideSpearProjectile.cs | 8 +- .../TrueArkOfTheAncients_ParryHoldout.cs | 8 +- .../Melee/TrueBiomeBlade_MercurialTides.cs | 4 +- .../Melee/TrueBiomeBlade_SanguineFury.cs | 12 +- Utilities/PlayerUtils.cs | 110 +++++++++++++++- 27 files changed, 291 insertions(+), 96 deletions(-) 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 8c7a662f4c..ab0614aa70 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -415,6 +415,7 @@ namespace CalamityMod.CalPlayer #region Energy Shields public bool HasAnyEnergyShield => roverDrive || lunicCorpsSet || ((pSoulArtifact && !profanedCrystal) || profanedCrystalBuffs) || sponge; + public bool freeDodgeFromShieldAbsorption = false; public bool drawnAnyShieldThisFrame = false; // TODO -- Some way to show the player their total shield points. @@ -2801,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 ba60ac2d1c..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); @@ -1467,6 +1483,17 @@ namespace CalamityMod.CalPlayer if (info.Damage < 1 /* || (godSlayerDamage && info.Damage <= 80) */) return true; + // If this hit was marked to be completely ignored due to shield absorption, then process Adrenaline changes and ignore it. + if (freeDodgeFromShieldAbsorption) + { + freeDodgeFromShieldAbsorption = false; + + // 20FEB2024: Ozzatron: Hits fully absorbed by shields remove half of your current Adrenaline. + // If using Draedon's Heart, it pauses for half the typical duration. + LoseAdrenalineOnHurt(info, true); + return true; + } + // Gravistar Sabaton fall ram gives you a free dodge as long as you're slamming through NPCs // This also strikes the NPCs as a side effect if (gSabatonFalling) @@ -1488,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; } } @@ -1668,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 } @@ -1688,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(); } @@ -1872,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. @@ -1915,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. @@ -1944,20 +1983,12 @@ namespace CalamityMod.CalPlayer } // If the shields completely absorbed the hit, then delete the hit using reflection. - // 17APR2024: Ozzatron: Use Fargo's hit-nulling methodology instead of a Free Dodge so improper iframes are not granted if (shieldsFullyAbsorbedHit) { - info.NullifyHit(); - - // Give the appropriate immunity frames. - Player.GiveIFrames(info.CooldownCounter, Player.longInvince ? 100 : 60, true); + freeDodgeFromShieldAbsorption = true; // Cancel defense damage, if it was going to occur this frame. nextHitDealsDefenseDamage = false; - - // 20FEB2024: Ozzatron: Hits fully absorbed by shields remove half of your current Adrenaline. - // If using Draedon's Heart, it pauses for half the typical duration. - LoseAdrenalineOnHurt(info, true); } } @@ -2372,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 e969f0e30c..7f57930ad9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1656,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/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/GravistarSabaton.cs b/Items/Accessories/GravistarSabaton.cs index 2c85b5f2c1..75426f282b 100644 --- a/Items/Accessories/GravistarSabaton.cs +++ b/Items/Accessories/GravistarSabaton.cs @@ -11,6 +11,7 @@ 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() { diff --git a/Items/Accessories/PermafrostsConcoction.cs b/Items/Accessories/PermafrostsConcoction.cs index bba253f32d..281ad986d6 100644 --- a/Items/Accessories/PermafrostsConcoction.cs +++ b/Items/Accessories/PermafrostsConcoction.cs @@ -6,6 +6,9 @@ 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() { diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index 5fe959bfda..f09b8a8ee7 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,6 +10,10 @@ 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; 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/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/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index dc0f5bbe5d..a471077f7b 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -5,6 +5,7 @@ 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; @@ -413,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. /// @@ -433,7 +531,10 @@ 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. @@ -461,13 +562,16 @@ 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 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; From f7e4af51fc4f7373505b13bbb3611774ab366725 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 21:17:25 -0400 Subject: [PATCH 19/43] Raised Wizard RoD sell price to prevent money laundering --- NPCs/CalamityGlobalTownNPC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index db99850501..f716237859 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1183,7 +1183,7 @@ namespace CalamityMod.NPCs { shop.Add(ItemType()) .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) From 22afdd3933ca98c2a7273e99a3812ad62b30059c Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 21:20:17 -0400 Subject: [PATCH 20/43] 1 - Calamity sell prices increase much more sharply with rarity. 2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold. 3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum. 4 - Privated numeric rarity item values. 5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice. --- Items/Accessories/Abaddon.cs | 2 +- Items/Accessories/AbyssalAmulet.cs | 2 +- Items/Accessories/AbyssalDivingGear.cs | 2 +- Items/Accessories/AbyssalDivingSuit.cs | 2 +- Items/Accessories/AbyssalMirror.cs | 2 +- Items/Accessories/AeroStone.cs | 2 +- Items/Accessories/Affliction.cs | 2 +- Items/Accessories/AlchemicalFlask.cs | 2 +- Items/Accessories/AlluringBait.cs | 2 +- Items/Accessories/AmalgamatedBrain.cs | 2 +- Items/Accessories/AmbrosialAmpoule.cs | 2 +- Items/Accessories/AmidiasPendant.cs | 2 +- Items/Accessories/AmidiasSpark.cs | 2 +- Items/Accessories/AncientFossil.cs | 2 +- Items/Accessories/AnechoicPlating.cs | 2 +- Items/Accessories/AngelTreads.cs | 2 +- Items/Accessories/AquaticEmblem.cs | 2 +- Items/Accessories/AquaticHeart.cs | 2 +- Items/Accessories/ArchaicPowder.cs | 2 +- Items/Accessories/AscendantInsignia.cs | 2 +- Items/Accessories/AsgardianAegis.cs | 2 +- Items/Accessories/AsgardsValor.cs | 2 +- Items/Accessories/AuricSoulArtifact.cs | 2 +- Items/Accessories/BadgeofBravery.cs | 2 +- Items/Accessories/Baroclaw.cs | 2 +- Items/Accessories/BlazingCore.cs | 2 +- Items/Accessories/BloodPact.cs | 2 +- Items/Accessories/BloodflareCore.cs | 2 +- Items/Accessories/BloodstainedGlove.cs | 2 +- Items/Accessories/BloodyWormScarf.cs | 2 +- Items/Accessories/BloodyWormTooth.cs | 2 +- Items/Accessories/BloomStone.cs | 2 +- Items/Accessories/BlunderBooster.cs | 2 +- Items/Accessories/ChaliceOfTheBloodGod.cs | 2 +- Items/Accessories/ChaosStone.cs | 2 +- Items/Accessories/CleansingJelly.cs | 2 +- Items/Accessories/CoinofDeceit.cs | 2 +- Items/Accessories/CorrosiveSpine.cs | 2 +- Items/Accessories/CorruptFlask.cs | 2 +- Items/Accessories/CounterScarf.cs | 2 +- Items/Accessories/CrawCarapace.cs | 2 +- Items/Accessories/CrimsonFlask.cs | 2 +- Items/Accessories/CrownJewel.cs | 2 +- Items/Accessories/CryoStone.cs | 2 +- Items/Accessories/DaawnlightSpiritOrigin.cs | 2 +- Items/Accessories/DarkMatterSheath.cs | 2 +- Items/Accessories/DarkSunRing.cs | 2 +- Items/Accessories/DeadshotBrooch.cs | 2 +- Items/Accessories/DeepDiver.cs | 2 +- Items/Accessories/DeificAmulet.cs | 2 +- Items/Accessories/DepthCharm.cs | 2 +- Items/Accessories/DimensionalSoulArtifact.cs | 2 +- Items/Accessories/DragonScales.cs | 2 +- Items/Accessories/DynamoStemCells.cs | 2 +- Items/Accessories/EclipseMirror.cs | 2 +- Items/Accessories/EldritchSoulArtifact.cs | 2 +- Items/Accessories/ElectriciansGlove.cs | 2 +- Items/Accessories/ElementalGauntlet.cs | 2 +- Items/Accessories/ElementalQuiver.cs | 2 +- Items/Accessories/ElysianAegis.cs | 2 +- Items/Accessories/EnchantedPearl.cs | 2 +- Items/Accessories/EtherealExtorter.cs | 2 +- Items/Accessories/EtherealTalisman.cs | 2 +- Items/Accessories/EvasionScarf.cs | 2 +- Items/Accessories/EyeoftheStorm.cs | 2 +- Items/Accessories/FeatherCrown.cs | 2 +- Items/Accessories/FilthyGlove.cs | 2 +- Items/Accessories/FlameLickedShell.cs | 2 +- Items/Accessories/FleshTotem.cs | 2 +- Items/Accessories/FrostBarrier.cs | 2 +- Items/Accessories/FrostFlare.cs | 2 +- Items/Accessories/FungalClump.cs | 2 +- Items/Accessories/FungalSymbiote.cs | 2 +- Items/Accessories/GiantPearl.cs | 2 +- Items/Accessories/GiantShell.cs | 2 +- Items/Accessories/GiantTortoiseShell.cs | 2 +- Items/Accessories/GladiatorsLocket.cs | 2 +- Items/Accessories/GloveOfRecklessness.cs | 2 +- Items/Accessories/GloveofPrecision.cs | 2 +- Items/Accessories/GrandGelatin.cs | 2 +- Items/Accessories/GravistarSabaton.cs | 2 +- Items/Accessories/HallowedRune.cs | 2 +- Items/Accessories/HarpyRing.cs | 2 +- Items/Accessories/HeartofDarkness.cs | 2 +- Items/Accessories/HeartoftheElements.cs | 2 +- Items/Accessories/HideofAstrumDeus.cs | 2 +- Items/Accessories/HoneyDew.cs | 2 +- Items/Accessories/HowlsHeart.cs | 2 +- Items/Accessories/InfectedJewel.cs | 2 +- Items/Accessories/InkBomb.cs | 2 +- Items/Accessories/IronBoots.cs | 2 +- Items/Accessories/JellyChargedBattery.cs | 2 +- Items/Accessories/Laudanum.cs | 2 +- Items/Accessories/LeviathanAmbergris.cs | 2 +- Items/Accessories/LifeJelly.cs | 2 +- Items/Accessories/LivingDew.cs | 2 +- Items/Accessories/LumenousAmulet.cs | 2 +- Items/Accessories/LuxorsGift.cs | 2 +- Items/Accessories/ManaPolarizer.cs | 2 +- Items/Accessories/MarniteRepulsionShield.cs | 2 +- Items/Accessories/MirageMirror.cs | 2 +- Items/Accessories/MoonstoneCrown.cs | 2 +- Items/Accessories/Nanotech.cs | 2 +- Items/Accessories/NebulousCore.cs | 2 +- Items/Accessories/NecklaceofVexation.cs | 2 +- Items/Accessories/NuclearFuelRod.cs | 2 +- Items/Accessories/Nucleogenesis.cs | 2 +- Items/Accessories/OccultSkullCrown.cs | 2 +- Items/Accessories/OceanCrest.cs | 2 +- Items/Accessories/OldDie.cs | 2 +- Items/Accessories/OldDukeScales.cs | 2 +- Items/Accessories/OrnateShield.cs | 2 +- Items/Accessories/PearlofEnthrallment.cs | 2 +- Items/Accessories/PermafrostsConcoction.cs | 2 +- Items/Accessories/PlagueHive.cs | 2 +- Items/Accessories/PlaguedFuelPack.cs | 2 +- Items/Accessories/ProfanedSoulArtifact.cs | 2 +- Items/Accessories/Purity.cs | 2 +- Items/Accessories/QuiverofNihility.cs | 2 +- Items/Accessories/RadiantOoze.cs | 2 +- Items/Accessories/RaidersTalisman.cs | 2 +- Items/Accessories/RampartofDeities.cs | 2 +- Items/Accessories/ReaperToothNecklace.cs | 2 +- Items/Accessories/Regenator.cs | 2 +- Items/Accessories/RogueEmblem.cs | 2 +- Items/Accessories/RoseStone.cs | 2 +- Items/Accessories/RottenBrain.cs | 2 +- Items/Accessories/RottenDogtooth.cs | 2 +- Items/Accessories/RoverDrive.cs | 2 +- Items/Accessories/RuinMedallion.cs | 2 +- Items/Accessories/RustyMedallion.cs | 2 +- Items/Accessories/SandCloak.cs | 2 +- Items/Accessories/SandSharkToothNecklace.cs | 2 +- Items/Accessories/ScuttlersJewel.cs | 2 +- Items/Accessories/ShieldoftheHighRuler.cs | 2 +- Items/Accessories/ShieldoftheOcean.cs | 2 +- Items/Accessories/SigilofCalamitas.cs | 2 +- Items/Accessories/SilencingSheath.cs | 2 +- Items/Accessories/SlagsplitterPauldron.cs | 2 +- Items/Accessories/SpectralVeil.cs | 2 +- Items/Accessories/SpelunkersAmulet.cs | 2 +- Items/Accessories/SpiritGlyph.cs | 2 +- Items/Accessories/StarTaintedGenerator.cs | 2 +- Items/Accessories/StarbusterCore.cs | 2 +- Items/Accessories/StatMeter.cs | 2 +- Items/Accessories/StatisBlessing.cs | 2 +- Items/Accessories/StatisCurse.cs | 2 +- Items/Accessories/StatisNinjaBelt.cs | 2 +- Items/Accessories/StatisVoidSash.cs | 2 +- Items/Accessories/StressPills.cs | 2 +- .../SupremeBaitTackleBoxFishingStation.cs | 2 +- Items/Accessories/TheAbsorber.cs | 2 +- Items/Accessories/TheAmalgam.cs | 2 +- Items/Accessories/TheBee.cs | 2 +- Items/Accessories/TheCamper.cs | 2 +- Items/Accessories/TheCommunity.cs | 2 +- Items/Accessories/TheEvolution.cs | 2 +- Items/Accessories/TheFirstShadowflame.cs | 2 +- Items/Accessories/TheSponge.cs | 2 +- Items/Accessories/TheTransformer.cs | 2 +- Items/Accessories/ToxicHeart.cs | 2 +- Items/Accessories/TrinketofChi.cs | 2 +- Items/Accessories/UnstableGraniteCore.cs | 2 +- Items/Accessories/VampiricTalisman.cs | 2 +- .../Vanity/AbandonedWulfrumHelmet.cs | 2 +- Items/Accessories/Vanity/CocosFeather.cs | 2 +- Items/Accessories/Vanity/HapuFruit.cs | 2 +- Items/Accessories/Vanity/OracleHeadphones.cs | 2 +- Items/Accessories/Vanity/Popo.cs | 2 +- Items/Accessories/Vanity/RedBow.cs | 2 +- Items/Accessories/VeneratedLocket.cs | 2 +- Items/Accessories/VitalJelly.cs | 2 +- Items/Accessories/VoidofCalamity.cs | 2 +- Items/Accessories/VoidofExtinction.cs | 2 +- Items/Accessories/VoltaicJelly.cs | 2 +- Items/Accessories/WarbanneroftheSun.cs | 2 +- Items/Accessories/WifeinaBottle.cs | 2 +- Items/Accessories/WifeinaBottlewithBoobs.cs | 2 +- Items/Accessories/Wings/AureateBooster.cs | 2 +- Items/Accessories/Wings/DrewsWings.cs | 2 +- Items/Accessories/Wings/ElysianWings.cs | 2 +- Items/Accessories/Wings/ExodusWings.cs | 2 +- Items/Accessories/Wings/HadalMantle.cs | 2 +- Items/Accessories/Wings/HadarianWings.cs | 2 +- Items/Accessories/Wings/MOAB.cs | 2 +- Items/Accessories/Wings/SilvaWings.cs | 2 +- Items/Accessories/Wings/SkylineWings.cs | 2 +- Items/Accessories/Wings/SoulofCryogen.cs | 2 +- Items/Accessories/Wings/StarlightWings.cs | 2 +- Items/Accessories/Wings/TarragonWings.cs | 2 +- Items/Accessories/Wings/TracersCelestial.cs | 2 +- Items/Accessories/Wings/TracersElysian.cs | 2 +- Items/Accessories/Wings/TracersSeraph.cs | 2 +- Items/Accessories/WulfrumAcrobaticsPack.cs | 2 +- Items/Accessories/WulfrumBattery.cs | 2 +- Items/Accessories/YharimsGift.cs | 2 +- Items/AntiCystOintment.cs | 2 +- Items/AntiTumorOintment.cs | 2 +- Items/Armor/Aerospec/AerospecBreastplate.cs | 2 +- Items/Armor/Aerospec/AerospecHat.cs | 2 +- Items/Armor/Aerospec/AerospecHeadgear.cs | 2 +- Items/Armor/Aerospec/AerospecHelm.cs | 2 +- Items/Armor/Aerospec/AerospecHelmet.cs | 2 +- Items/Armor/Aerospec/AerospecHood.cs | 2 +- Items/Armor/Aerospec/AerospecLeggings.cs | 2 +- Items/Armor/Astral/AstralBreastplate.cs | 2 +- Items/Armor/Astral/AstralHelm.cs | 2 +- Items/Armor/Astral/AstralLeggings.cs | 2 +- Items/Armor/Auric/AuricTeslaBodyArmor.cs | 2 +- Items/Armor/Auric/AuricTeslaCuisses.cs | 2 +- Items/Armor/Auric/AuricTeslaHoodedFacemask.cs | 2 +- Items/Armor/Auric/AuricTeslaPlumedHelm.cs | 2 +- Items/Armor/Auric/AuricTeslaRoyalHelm.cs | 2 +- Items/Armor/Auric/AuricTeslaSpaceHelmet.cs | 2 +- .../Armor/Auric/AuricTeslaWireHemmedVisage.cs | 2 +- Items/Armor/Bloodflare/BloodflareBodyArmor.cs | 2 +- Items/Armor/Bloodflare/BloodflareCuisses.cs | 2 +- Items/Armor/Bloodflare/BloodflareHeadMagic.cs | 2 +- Items/Armor/Bloodflare/BloodflareHeadMelee.cs | 2 +- .../Armor/Bloodflare/BloodflareHeadRanged.cs | 2 +- Items/Armor/Bloodflare/BloodflareHeadRogue.cs | 2 +- .../Armor/Bloodflare/BloodflareHeadSummon.cs | 2 +- Items/Armor/CirrusDress.cs | 2 +- Items/Armor/Daedalus/DaedalusBreastplate.cs | 2 +- Items/Armor/Daedalus/DaedalusHeadMagic.cs | 2 +- Items/Armor/Daedalus/DaedalusHeadMelee.cs | 2 +- Items/Armor/Daedalus/DaedalusHeadRanged.cs | 2 +- Items/Armor/Daedalus/DaedalusHeadRogue.cs | 2 +- Items/Armor/Daedalus/DaedalusHeadSummon.cs | 2 +- Items/Armor/Daedalus/DaedalusLeggings.cs | 2 +- .../Armor/Demonshade/DemonshadeBreastplate.cs | 2 +- Items/Armor/Demonshade/DemonshadeGreaves.cs | 2 +- Items/Armor/Demonshade/DemonshadeHelm.cs | 2 +- Items/Armor/DesertProwler/DesertProwlerSet.cs | 6 +- Items/Armor/Empyrean/EmpyreanCloak.cs | 2 +- Items/Armor/Empyrean/EmpyreanCuisses.cs | 2 +- Items/Armor/Empyrean/EmpyreanMask.cs | 2 +- Items/Armor/Fearmonger/FearmongerGreathelm.cs | 2 +- Items/Armor/Fearmonger/FearmongerGreaves.cs | 2 +- Items/Armor/Fearmonger/FearmongerPlateMail.cs | 2 +- Items/Armor/GemTech/GemTechBodyArmor.cs | 2 +- Items/Armor/GemTech/GemTechHeadgear.cs | 2 +- Items/Armor/GemTech/GemTechSchynbaulds.cs | 2 +- Items/Armor/GodSlayer/GodSlayerChestplate.cs | 2 +- Items/Armor/GodSlayer/GodSlayerHeadMelee.cs | 2 +- Items/Armor/GodSlayer/GodSlayerHeadRanged.cs | 2 +- Items/Armor/GodSlayer/GodSlayerHeadRogue.cs | 2 +- Items/Armor/GodSlayer/GodSlayerLeggings.cs | 2 +- Items/Armor/Hydrothermic/HydrothermicArmor.cs | 2 +- .../Hydrothermic/HydrothermicHeadMagic.cs | 2 +- .../Hydrothermic/HydrothermicHeadMelee.cs | 2 +- .../Hydrothermic/HydrothermicHeadRanged.cs | 2 +- .../Hydrothermic/HydrothermicHeadRogue.cs | 2 +- .../Hydrothermic/HydrothermicHeadSummon.cs | 2 +- .../Hydrothermic/HydrothermicSubligar.cs | 2 +- Items/Armor/LunicCorps/LunicCorpsBoots.cs | 2 +- Items/Armor/LunicCorps/LunicCorpsHelmet.cs | 2 +- Items/Armor/LunicCorps/LunicCorpsVest.cs | 2 +- .../MarniteArchitect/MarniteArchitectSet.cs | 4 +- Items/Armor/Mollusk/MolluskShelleggings.cs | 2 +- Items/Armor/Mollusk/MolluskShellmet.cs | 2 +- Items/Armor/Mollusk/MolluskShellplate.cs | 2 +- Items/Armor/OmegaBlue/OmegaBlueChestplate.cs | 2 +- Items/Armor/OmegaBlue/OmegaBlueHelmet.cs | 2 +- Items/Armor/OmegaBlue/OmegaBlueTentacles.cs | 2 +- Items/Armor/PlagueReaper/PlagueReaperMask.cs | 2 +- .../PlagueReaper/PlagueReaperStriders.cs | 2 +- Items/Armor/PlagueReaper/PlagueReaperVest.cs | 2 +- .../Plaguebringer/PlaguebringerCarapace.cs | 2 +- .../Plaguebringer/PlaguebringerPistons.cs | 2 +- .../Armor/Plaguebringer/PlaguebringerVisor.cs | 2 +- Items/Armor/Prismatic/PrismaticGreaves.cs | 2 +- Items/Armor/Prismatic/PrismaticHelmet.cs | 2 +- Items/Armor/Prismatic/PrismaticRegalia.cs | 2 +- Items/Armor/Silva/SilvaArmor.cs | 2 +- Items/Armor/Silva/SilvaHeadMagic.cs | 2 +- Items/Armor/Silva/SilvaHeadSummon.cs | 2 +- Items/Armor/Silva/SilvaLeggings.cs | 2 +- .../SnowRuffian/SnowRuffianChestplate.cs | 2 +- Items/Armor/SnowRuffian/SnowRuffianGreaves.cs | 2 +- Items/Armor/SnowRuffian/SnowRuffianMask.cs | 2 +- .../Armor/Sulphurous/SulphurousBreastplate.cs | 2 +- Items/Armor/Sulphurous/SulphurousHelmet.cs | 2 +- Items/Armor/Sulphurous/SulphurousLeggings.cs | 2 +- Items/Armor/Tarragon/TarragonBreastplate.cs | 2 +- Items/Armor/Tarragon/TarragonHeadMagic.cs | 2 +- Items/Armor/Tarragon/TarragonHeadMelee.cs | 2 +- Items/Armor/Tarragon/TarragonHeadRanged.cs | 2 +- Items/Armor/Tarragon/TarragonHeadRogue.cs | 2 +- Items/Armor/Tarragon/TarragonHeadSummon.cs | 2 +- Items/Armor/Tarragon/TarragonLeggings.cs | 2 +- Items/Armor/Vanity/OldHunterSet.cs | 6 +- Items/Armor/Victide/VictideBreastplate.cs | 2 +- Items/Armor/Victide/VictideGreaves.cs | 2 +- Items/Armor/Victide/VictideHeadMagic.cs | 2 +- Items/Armor/Victide/VictideHeadMelee.cs | 2 +- Items/Armor/Victide/VictideHeadRanged.cs | 2 +- Items/Armor/Victide/VictideHeadRogue.cs | 2 +- Items/Armor/Victide/VictideHeadSummon.cs | 2 +- Items/Armor/Wulfrum/WulfrumSet.cs | 6 +- Items/BleachBall.cs | 2 +- Items/BrokenWaterFilter.cs | 2 +- Items/CalamityGlobalItem.cs | 122 ++++++------------ Items/Dyes/DefiledFlameDye.cs | 2 +- Items/Fishing/AstralCatches/UrsaSergeant.cs | 2 +- .../DragoonDrizzlefish.cs | 2 +- Items/Fishing/FishingRods/EarlyBloomRod.cs | 2 +- Items/Fishing/FishingRods/FeralDoubleRod.cs | 2 +- Items/Fishing/FishingRods/HeronRod.cs | 2 +- Items/Fishing/FishingRods/NavyFishingRod.cs | 2 +- Items/Fishing/FishingRods/RiftReeler.cs | 2 +- Items/Fishing/FishingRods/SlurperPole.cs | 2 +- .../Fishing/FishingRods/TheDevourerofCods.cs | 2 +- .../FishingRods/VerstaltiteFishingRod.cs | 2 +- Items/Fishing/FishingRods/WulfrumRod.cs | 2 +- Items/Fishing/Spadefish.cs | 2 +- .../Fishing/SunkenSeaCatches/SerpentsBite.cs | 2 +- .../SunkenSeaCatches/SparklingEmpress.cs | 2 +- Items/MomentumCapacitor.cs | 2 +- Items/Mounts/GazeOfCrysthamyr.cs | 2 +- Items/Mounts/SuspiciousLookingJellyBean.cs | 2 +- Items/NormalityRelocator.cs | 2 +- Items/RelicOfConvergence.cs | 2 +- Items/SirenproofEarMuffs.cs | 2 +- Items/Tools/AbyssalWarhammer.cs | 2 +- Items/Tools/AerialHamaxe.cs | 2 +- Items/Tools/AstralHamaxe.cs | 2 +- Items/Tools/AstralPickaxe.cs | 2 +- Items/Tools/AxeofPurity.cs | 2 +- Items/Tools/BeastialPickaxe.cs | 2 +- Items/Tools/BerserkerWaraxe.cs | 2 +- Items/Tools/BlossomPickaxe.cs | 2 +- Items/Tools/BobbitHook.cs | 2 +- Items/Tools/CrystylCrusher.cs | 2 +- Items/Tools/FellerofEvergreens.cs | 2 +- Items/Tools/Gelpick.cs | 2 +- Items/Tools/GenesisPickaxe.cs | 2 +- Items/Tools/Grax.cs | 2 +- Items/Tools/GreatbayPickaxe.cs | 2 +- Items/Tools/InfernaCutter.cs | 2 +- Items/Tools/MarniteDeconstructor.cs | 2 +- Items/Tools/MarniteObliterator.cs | 2 +- Items/Tools/ReefclawHamaxe.cs | 2 +- Items/Tools/SeismicHampick.cs | 2 +- Items/Tools/ShardlightPickaxe.cs | 2 +- Items/Tools/SkyfringePickaxe.cs | 2 +- Items/Tools/TectonicTruncator.cs | 2 +- Items/Tools/WulfrumDrill.cs | 2 +- Items/VoodooDemonVoodooDoll.cs | 2 +- .../DraedonsArsenal/FrequencyManipulator.cs | 2 +- .../DraedonsArsenal/GalvanizingGlaive.cs | 2 +- Items/Weapons/DraedonsArsenal/GatlingLaser.cs | 2 +- Items/Weapons/DraedonsArsenal/GaussDagger.cs | 2 +- Items/Weapons/DraedonsArsenal/GaussPistol.cs | 2 +- Items/Weapons/DraedonsArsenal/GaussRifle.cs | 2 +- .../DraedonsArsenal/HydraulicVoltCrasher.cs | 2 +- .../DraedonsArsenal/MatterModulator.cs | 2 +- .../Weapons/DraedonsArsenal/MountedScanner.cs | 2 +- Items/Weapons/DraedonsArsenal/Phaseslayer.cs | 2 +- .../Weapons/DraedonsArsenal/PlasmaGrenade.cs | 2 +- Items/Weapons/DraedonsArsenal/PoleWarper.cs | 2 +- Items/Weapons/DraedonsArsenal/PulsePistol.cs | 2 +- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 2 +- .../DraedonsArsenal/PulseTurretRemote.cs | 2 +- .../StarSwallowerContainmentUnit.cs | 2 +- Items/Weapons/DraedonsArsenal/SystemBane.cs | 2 +- Items/Weapons/DraedonsArsenal/Taser.cs | 2 +- Items/Weapons/DraedonsArsenal/TeslaCannon.cs | 2 +- Items/Weapons/DraedonsArsenal/TrackingDisk.cs | 2 +- Items/Weapons/Magic/AbyssShocker.cs | 2 +- Items/Weapons/Magic/AbyssalTome.cs | 2 +- Items/Weapons/Magic/AcidGun.cs | 2 +- Items/Weapons/Magic/AetherfluxCannon.cs | 2 +- Items/Weapons/Magic/AethersWhisper.cs | 2 +- Items/Weapons/Magic/AlphaRay.cs | 2 +- Items/Weapons/Magic/AlulaAustralis.cs | 2 +- Items/Weapons/Magic/AnahitasArpeggio.cs | 2 +- Items/Weapons/Magic/ApoctosisArray.cs | 2 +- Items/Weapons/Magic/Apotheosis.cs | 2 +- Items/Weapons/Magic/AquamarineStaff.cs | 2 +- Items/Weapons/Magic/ArchAmaryllis.cs | 2 +- Items/Weapons/Magic/ArcticBearPaw.cs | 2 +- Items/Weapons/Magic/ArtAttack.cs | 2 +- Items/Weapons/Magic/AsteroidStaff.cs | 2 +- Items/Weapons/Magic/AstralStaff.cs | 2 +- Items/Weapons/Magic/AstralachneaStaff.cs | 2 +- Items/Weapons/Magic/Atlantis.cs | 2 +- Items/Weapons/Magic/AuguroftheElements.cs | 2 +- Items/Weapons/Magic/BelchingSaxophone.cs | 2 +- Items/Weapons/Magic/Biofusillade.cs | 2 +- Items/Weapons/Magic/BlackAnurian.cs | 2 +- Items/Weapons/Magic/BloodBath.cs | 2 +- Items/Weapons/Magic/BrimroseStaff.cs | 2 +- Items/Weapons/Magic/BurningSea.cs | 2 +- Items/Weapons/Magic/ClamorNoctus.cs | 2 +- Items/Weapons/Magic/ClothiersWrath.cs | 2 +- Items/Weapons/Magic/CoralSpout.cs | 2 +- Items/Weapons/Magic/CosmicRainbow.cs | 2 +- Items/Weapons/Magic/Cryophobia.cs | 2 +- Items/Weapons/Magic/DarkSpark.cs | 2 +- Items/Weapons/Magic/DeathValleyDuster.cs | 2 +- Items/Weapons/Magic/DeathhailStaff.cs | 2 +- Items/Weapons/Magic/DivineRetribution.cs | 2 +- Items/Weapons/Magic/Downpour.cs | 2 +- Items/Weapons/Magic/Effervescence.cs | 2 +- Items/Weapons/Magic/EidolicWail.cs | 2 +- Items/Weapons/Magic/EidolonStaff.cs | 2 +- Items/Weapons/Magic/EldritchTome.cs | 2 +- Items/Weapons/Magic/ElementalRay.cs | 2 +- Items/Weapons/Magic/Eternity.cs | 2 +- Items/Weapons/Magic/EventHorizon.cs | 2 +- Items/Weapons/Magic/EvergladeSpray.cs | 2 +- Items/Weapons/Magic/Fabstaff.cs | 2 +- Items/Weapons/Magic/FaceMelter.cs | 2 +- Items/Weapons/Magic/FatesReveal.cs | 2 +- Items/Weapons/Magic/FlareBolt.cs | 2 +- Items/Weapons/Magic/ForbiddenSun.cs | 2 +- Items/Weapons/Magic/FrigidflashBolt.cs | 2 +- Items/Weapons/Magic/FrostBolt.cs | 2 +- Items/Weapons/Magic/Genisis.cs | 2 +- Items/Weapons/Magic/GhastlyVisage.cs | 2 +- Items/Weapons/Magic/GleamingMagnolia.cs | 2 +- Items/Weapons/Magic/GloriousEnd.cs | 2 +- Items/Weapons/Magic/GruesomeEminence.cs | 2 +- Items/Weapons/Magic/HadalUrn.cs | 2 +- Items/Weapons/Magic/HeliumFlash.cs | 2 +- Items/Weapons/Magic/HellwingStaff.cs | 2 +- Items/Weapons/Magic/Hematemesis.cs | 2 +- Items/Weapons/Magic/Heresy.cs | 2 +- Items/Weapons/Magic/HyphaeRod.cs | 2 +- Items/Weapons/Magic/IceBarrage.cs | 2 +- Items/Weapons/Magic/IcicleStaff.cs | 2 +- Items/Weapons/Magic/IcicleTrident.cs | 2 +- Items/Weapons/Magic/InfernalRift.cs | 2 +- Items/Weapons/Magic/IonBlaster.cs | 2 +- Items/Weapons/Magic/Keelhaul.cs | 2 +- Items/Weapons/Magic/LashesofChaos.cs | 2 +- Items/Weapons/Magic/Lazhar.cs | 2 +- .../Magic/MadAlchemistsCocktailGlove.cs | 2 +- Items/Weapons/Magic/MagneticMeltdown.cs | 2 +- Items/Weapons/Magic/ManaRose.cs | 2 +- Items/Weapons/Magic/Miasma.cs | 2 +- Items/Weapons/Magic/Mistlestorm.cs | 2 +- Items/Weapons/Magic/NanoPurge.cs | 2 +- Items/Weapons/Magic/NebulousCataclysm.cs | 2 +- Items/Weapons/Magic/NightsRay.cs | 2 +- Items/Weapons/Magic/NuclearFury.cs | 2 +- Items/Weapons/Magic/ParasiticSceptor.cs | 2 +- Items/Weapons/Magic/PhantasmalFury.cs | 2 +- Items/Weapons/Magic/PhoenixFlameBarrage.cs | 2 +- Items/Weapons/Magic/PlagueStaff.cs | 2 +- Items/Weapons/Magic/PlasmaRifle.cs | 2 +- Items/Weapons/Magic/PlasmaRod.cs | 2 +- Items/Weapons/Magic/Poseidon.cs | 2 +- Items/Weapons/Magic/PrimordialEarth.cs | 2 +- Items/Weapons/Magic/PurgeGuzzler.cs | 2 +- Items/Weapons/Magic/Rancor.cs | 2 +- Items/Weapons/Magic/RelicofRuin.cs | 2 +- Items/Weapons/Magic/RougeSlash.cs | 2 +- Items/Weapons/Magic/SHPC.cs | 2 +- Items/Weapons/Magic/SandstreamScepter.cs | 2 +- Items/Weapons/Magic/SanguineFlare.cs | 2 +- Items/Weapons/Magic/SeethingDischarge.cs | 2 +- Items/Weapons/Magic/Serpentine.cs | 2 +- Items/Weapons/Magic/ShadecrystalBarrage.cs | 2 +- Items/Weapons/Magic/ShaderainStaff.cs | 2 +- Items/Weapons/Magic/ShadowboltStaff.cs | 2 +- Items/Weapons/Magic/ShiftingSands.cs | 2 +- Items/Weapons/Magic/SkyGlaze.cs | 2 +- Items/Weapons/Magic/SlitheringEels.cs | 2 +- Items/Weapons/Magic/SnowstormStaff.cs | 2 +- Items/Weapons/Magic/StaffofBlushie.cs | 2 +- Items/Weapons/Magic/StarShower.cs | 2 +- Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Items/Weapons/Magic/TacticiansTrumpCard.cs | 2 +- Items/Weapons/Magic/TearsofHeaven.cs | 2 +- Items/Weapons/Magic/TerraRay.cs | 2 +- Items/Weapons/Magic/Teslastaff.cs | 2 +- Items/Weapons/Magic/TheDanceofLight.cs | 2 +- Items/Weapons/Magic/TheSwarmer.cs | 2 +- Items/Weapons/Magic/TheWand.cs | 2 +- Items/Weapons/Magic/ThornBlossom.cs | 2 +- Items/Weapons/Magic/Thunderstorm.cs | 2 +- Items/Weapons/Magic/TomeofFates.cs | 2 +- Items/Weapons/Magic/Tradewinds.cs | 2 +- Items/Weapons/Magic/UltraLiquidator.cs | 2 +- Items/Weapons/Magic/UndinesRetribution.cs | 2 +- Items/Weapons/Magic/VeeringWind.cs | 2 +- Items/Weapons/Magic/Vehemence.cs | 2 +- Items/Weapons/Magic/VenusianTrident.cs | 2 +- Items/Weapons/Magic/Vesuvius.cs | 2 +- Items/Weapons/Magic/Viscera.cs | 2 +- Items/Weapons/Magic/VitriolicViper.cs | 2 +- Items/Weapons/Magic/VividClarity.cs | 2 +- Items/Weapons/Magic/VoidVortex.cs | 2 +- Items/Weapons/Magic/VoltaicClimax.cs | 2 +- Items/Weapons/Magic/Waywasher.cs | 2 +- Items/Weapons/Magic/Wingman.cs | 2 +- Items/Weapons/Magic/WintersFury.cs | 2 +- Items/Weapons/Magic/WrathoftheAncients.cs | 2 +- Items/Weapons/Magic/WulfrumProsthesis.cs | 2 +- Items/Weapons/Magic/WyvernsCall.cs | 2 +- Items/Weapons/Magic/YharimsCrystal.cs | 2 +- Items/Weapons/Melee/AbsoluteZero.cs | 2 +- Items/Weapons/Melee/AbyssBlade.cs | 2 +- Items/Weapons/Melee/AegisBlade.cs | 2 +- Items/Weapons/Melee/Aftershock.cs | 2 +- Items/Weapons/Melee/AirSpinner.cs | 2 +- Items/Weapons/Melee/AmidiasTrident.cs | 2 +- Items/Weapons/Melee/AnarchyBlade.cs | 2 +- Items/Weapons/Melee/Aorta.cs | 2 +- Items/Weapons/Melee/ArkoftheCosmos.cs | 2 +- Items/Weapons/Melee/ArkoftheElements.cs | 2 +- Items/Weapons/Melee/AstralBlade.cs | 2 +- Items/Weapons/Melee/AstralPike.cs | 2 +- Items/Weapons/Melee/AstralScythe.cs | 2 +- Items/Weapons/Melee/Ataraxia.cs | 2 +- Items/Weapons/Melee/Avalanche.cs | 2 +- Items/Weapons/Melee/Azathoth.cs | 2 +- Items/Weapons/Melee/BalefulHarvester.cs | 2 +- Items/Weapons/Melee/BallOFugu.cs | 2 +- Items/Weapons/Melee/BansheeHook.cs | 2 +- Items/Weapons/Melee/Basher.cs | 2 +- Items/Weapons/Melee/BladecrestOathsword.cs | 2 +- Items/Weapons/Melee/BlightedCleaver.cs | 2 +- Items/Weapons/Melee/Bonebreaker.cs | 2 +- Items/Weapons/Melee/Brimlance.cs | 2 +- Items/Weapons/Melee/Brimlash.cs | 2 +- Items/Weapons/Melee/BrimstoneSword.cs | 2 +- Items/Weapons/Melee/BrinyBaron.cs | 2 +- Items/Weapons/Melee/BrokenBiomeBlade.cs | 2 +- Items/Weapons/Melee/BurntSienna.cs | 2 +- Items/Weapons/Melee/Carnage.cs | 2 +- Items/Weapons/Melee/CatastropheClaymore.cs | 2 +- Items/Weapons/Melee/CelestialClaymore.cs | 2 +- Items/Weapons/Melee/ChronomancersScythe.cs | 2 +- Items/Weapons/Melee/ClamCrusher.cs | 2 +- Items/Weapons/Melee/CometQuasher.cs | 2 +- Items/Weapons/Melee/CosmicDischarge.cs | 2 +- Items/Weapons/Melee/CosmicShiv.cs | 2 +- Items/Weapons/Melee/CrescentMoon.cs | 2 +- Items/Weapons/Melee/DarklightGreatsword.cs | 2 +- Items/Weapons/Melee/DeathsAscension.cs | 2 +- Items/Weapons/Melee/DefiledGreatsword.cs | 2 +- Items/Weapons/Melee/DepthCrusher.cs | 2 +- Items/Weapons/Melee/Devastation.cs | 2 +- Items/Weapons/Melee/DevilsSunrise.cs | 2 +- Items/Weapons/Melee/DiseasedPike.cs | 2 +- Items/Weapons/Melee/DraconicDestruction.cs | 2 +- Items/Weapons/Melee/DragonPow.cs | 2 +- Items/Weapons/Melee/DragonRage.cs | 2 +- Items/Weapons/Melee/Earth.cs | 2 +- Items/Weapons/Melee/EarthenPike.cs | 2 +- Items/Weapons/Melee/ElementalLance.cs | 2 +- Items/Weapons/Melee/ElementalShiv.cs | 2 +- Items/Weapons/Melee/EmpyreanKnives.cs | 2 +- Items/Weapons/Melee/EntropicClaymore.cs | 2 +- Items/Weapons/Melee/EutrophicScimitar.cs | 2 +- Items/Weapons/Melee/EvilSmasher.cs | 2 +- Items/Weapons/Melee/ExaltedOathblade.cs | 2 +- Items/Weapons/Melee/Excelsus.cs | 2 +- Items/Weapons/Melee/Exoblade.cs | 2 +- Items/Weapons/Melee/FeralthornClaymore.cs | 2 +- Items/Weapons/Melee/FlarefrostBlade.cs | 2 +- Items/Weapons/Melee/Floodtide.cs | 2 +- Items/Weapons/Melee/ForbiddenOathblade.cs | 2 +- Items/Weapons/Melee/ForsakenSaber.cs | 2 +- Items/Weapons/Melee/FracturedArk.cs | 2 +- Items/Weapons/Melee/GaelsGreatsword.cs | 2 +- Items/Weapons/Melee/GalactusBlade.cs | 2 +- Items/Weapons/Melee/GalileoGladius.cs | 2 +- Items/Weapons/Melee/GeliticBlade.cs | 2 +- Items/Weapons/Melee/GildedProboscis.cs | 2 +- Items/Weapons/Melee/GoldplumeSpear.cs | 2 +- Items/Weapons/Melee/GrandGuardian.cs | 2 +- Items/Weapons/Melee/GreatswordofJudgement.cs | 2 +- Items/Weapons/Melee/Greentide.cs | 2 +- Items/Weapons/Melee/HellfireFlamberge.cs | 2 +- Items/Weapons/Melee/HellionFlowerSpear.cs | 2 +- Items/Weapons/Melee/Hellkite.cs | 2 +- Items/Weapons/Melee/HolyCollider.cs | 2 +- Items/Weapons/Melee/IllustriousKnives.cs | 2 +- Items/Weapons/Melee/InsidiousImpaler.cs | 2 +- Items/Weapons/Melee/IridescentExcalibur.cs | 2 +- Items/Weapons/Melee/Lacerator.cs | 2 +- Items/Weapons/Melee/LifehuntScythe.cs | 2 +- Items/Weapons/Melee/LionHeart.cs | 2 +- Items/Weapons/Melee/Lucrecia.cs | 2 +- Items/Weapons/Melee/MajesticGuard.cs | 2 +- Items/Weapons/Melee/MantisClaws.cs | 2 +- Items/Weapons/Melee/MirrorBlade.cs | 2 +- Items/Weapons/Melee/MonstrousKnives.cs | 2 +- Items/Weapons/Melee/Mourningstar.cs | 2 +- Items/Weapons/Melee/Murasama.cs | 2 +- Items/Weapons/Melee/MycelialClaws.cs | 2 +- Items/Weapons/Melee/Nadir.cs | 2 +- Items/Weapons/Melee/Nebulash.cs | 2 +- Items/Weapons/Melee/NeptunesBounty.cs | 2 +- Items/Weapons/Melee/OldLordClaymore.cs | 2 +- Items/Weapons/Melee/OmegaBiomeBlade.cs | 2 +- Items/Weapons/Melee/Omniblade.cs | 2 +- Items/Weapons/Melee/Orderbringer.cs | 2 +- Items/Weapons/Melee/PerfectDark.cs | 2 +- Items/Weapons/Melee/PlagueKeeper.cs | 2 +- Items/Weapons/Melee/PrismaticBreaker.cs | 2 +- Items/Weapons/Melee/RedSun.cs | 2 +- Items/Weapons/Melee/RedtideSpear.cs | 2 +- Items/Weapons/Melee/RemsRevenge.cs | 2 +- Items/Weapons/Melee/Riptide.cs | 2 +- Items/Weapons/Melee/Roxcalibur.cs | 2 +- Items/Weapons/Melee/SaharaSlicers.cs | 2 +- Items/Weapons/Melee/SausageMaker.cs | 2 +- Items/Weapons/Melee/ScourgeoftheCosmos.cs | 2 +- Items/Weapons/Melee/SeashineSword.cs | 2 +- Items/Weapons/Melee/SeekingScorcher.cs | 2 +- Items/Weapons/Melee/SmokingComet.cs | 2 +- Items/Weapons/Melee/SolarFlare.cs | 2 +- Items/Weapons/Melee/SolsticeClaymore.cs | 2 +- Items/Weapons/Melee/SoulHarvester.cs | 2 +- Items/Weapons/Melee/StarnightLance.cs | 2 +- Items/Weapons/Melee/StellarContempt.cs | 2 +- Items/Weapons/Melee/StellarStriker.cs | 2 +- Items/Weapons/Melee/StormRuler.cs | 2 +- Items/Weapons/Melee/StormSaber.cs | 2 +- Items/Weapons/Melee/StygianShield.cs | 2 +- Items/Weapons/Melee/SubmarineShocker.cs | 2 +- Items/Weapons/Melee/Swordsplosion.cs | 2 +- Items/Weapons/Melee/TaintedBlade.cs | 2 +- Items/Weapons/Melee/TeardropCleaver.cs | 2 +- Items/Weapons/Melee/TenebreusTides.cs | 2 +- Items/Weapons/Melee/TerraLance.cs | 2 +- Items/Weapons/Melee/Terratomere.cs | 2 +- Items/Weapons/Melee/TerrorBlade.cs | 2 +- Items/Weapons/Melee/TheBurningSky.cs | 2 +- Items/Weapons/Melee/TheDarkMaster.cs | 2 +- Items/Weapons/Melee/TheLastMourning.cs | 2 +- Items/Weapons/Melee/TheMicrowave.cs | 2 +- Items/Weapons/Melee/TheMutilator.cs | 2 +- Items/Weapons/Melee/TheObliterator.cs | 2 +- Items/Weapons/Melee/TheOracle.cs | 2 +- Items/Weapons/Melee/TitanArm.cs | 2 +- ...tisTruePaladinianMageHammerofMightMelee.cs | 2 +- Items/Weapons/Melee/TrueArkoftheAncients.cs | 2 +- Items/Weapons/Melee/TrueBiomeBlade.cs | 2 +- Items/Weapons/Melee/TrueCausticEdge.cs | 2 +- Items/Weapons/Melee/Tumbleweed.cs | 2 +- Items/Weapons/Melee/TyphonsGreed.cs | 2 +- Items/Weapons/Melee/UltimusCleaver.cs | 2 +- Items/Weapons/Melee/UrchinFlail.cs | 2 +- Items/Weapons/Melee/UrchinMace.cs | 2 +- Items/Weapons/Melee/VeinBurster.cs | 2 +- Items/Weapons/Melee/Virulence.cs | 2 +- Items/Weapons/Melee/VoidEdge.cs | 2 +- Items/Weapons/Melee/VulcaniteLance.cs | 2 +- Items/Weapons/Melee/WindBlade.cs | 2 +- Items/Weapons/Melee/WulfrumScrewdriver.cs | 2 +- Items/Weapons/Melee/YateveoBloom.cs | 2 +- Items/Weapons/Melee/YinYo.cs | 2 +- Items/Weapons/Ranged/AcesHigh.cs | 2 +- .../Ranged/AdamantiteParticleAccelerator.cs | 2 +- Items/Weapons/Ranged/AngelicShotgun.cs | 2 +- Items/Weapons/Ranged/Animosity.cs | 2 +- Items/Weapons/Ranged/AquashardShotgun.cs | 2 +- Items/Weapons/Ranged/Arbalest.cs | 2 +- Items/Weapons/Ranged/ArcNovaDiffuser.cs | 2 +- Items/Weapons/Ranged/Archerfish.cs | 2 +- Items/Weapons/Ranged/ArterialAssault.cs | 2 +- Items/Weapons/Ranged/AstralBlaster.cs | 2 +- Items/Weapons/Ranged/AstralBow.cs | 2 +- Items/Weapons/Ranged/AstrealDefeat.cs | 2 +- Items/Weapons/Ranged/Auralis.cs | 2 +- Items/Weapons/Ranged/AuroraBlazer.cs | 2 +- Items/Weapons/Ranged/Barinade.cs | 2 +- Items/Weapons/Ranged/Barinautical.cs | 2 +- Items/Weapons/Ranged/BarracudaGun.cs | 2 +- Items/Weapons/Ranged/BladedgeRailbow.cs | 2 +- Items/Weapons/Ranged/BlightSpewer.cs | 2 +- Items/Weapons/Ranged/BlissfulBombardier.cs | 2 +- Items/Weapons/Ranged/BloodBoiler.cs | 2 +- Items/Weapons/Ranged/BlossomFlux.cs | 2 +- Items/Weapons/Ranged/BrimstoneFury.cs | 2 +- Items/Weapons/Ranged/BulletFilledShotgun.cs | 2 +- Items/Weapons/Ranged/Butcher.cs | 2 +- Items/Weapons/Ranged/ChickenCannon.cs | 2 +- Items/Weapons/Ranged/ClamorRifle.cs | 2 +- Items/Weapons/Ranged/ClaretCannon.cs | 2 +- Items/Weapons/Ranged/ClockGatlignum.cs | 2 +- Items/Weapons/Ranged/ClockworkBow.cs | 2 +- Items/Weapons/Ranged/ConferenceCall.cs | 2 +- Items/Weapons/Ranged/Contagion.cs | 2 +- Items/Weapons/Ranged/ContinentalGreatbow.cs | 2 +- Items/Weapons/Ranged/CoralCannon.cs | 2 +- Items/Weapons/Ranged/CorinthPrime.cs | 2 +- Items/Weapons/Ranged/CorrodedCaustibow.cs | 2 +- Items/Weapons/Ranged/CosmicBolter.cs | 2 +- Items/Weapons/Ranged/CrackshotColt.cs | 2 +- Items/Weapons/Ranged/CursedCapper.cs | 2 +- Items/Weapons/Ranged/DaemonsFlame.cs | 2 +- Items/Weapons/Ranged/DarkechoGreatbow.cs | 2 +- Items/Weapons/Ranged/DeadSunsWind.cs | 2 +- Items/Weapons/Ranged/Deathwind.cs | 2 +- Items/Weapons/Ranged/DeepcoreGK2.cs | 2 +- Items/Weapons/Ranged/Disseminator.cs | 2 +- Items/Weapons/Ranged/DodusHandcannon.cs | 2 +- Items/Weapons/Ranged/DragonsBreath.cs | 2 +- Items/Weapons/Ranged/Drataliornus.cs | 2 +- Items/Weapons/Ranged/ElementalBlaster.cs | 2 +- Items/Weapons/Ranged/ElementalEruption.cs | 2 +- Items/Weapons/Ranged/EternalBlizzard.cs | 2 +- Items/Weapons/Ranged/Eviscerator.cs | 2 +- Items/Weapons/Ranged/FetidEmesis.cs | 2 +- Items/Weapons/Ranged/FirestormCannon.cs | 2 +- Items/Weapons/Ranged/FlakKraken.cs | 2 +- Items/Weapons/Ranged/FlakToxicannon.cs | 2 +- Items/Weapons/Ranged/FlarewingBow.cs | 2 +- Items/Weapons/Ranged/FlurrystormCannon.cs | 2 +- Items/Weapons/Ranged/FreedomStar.cs | 2 +- Items/Weapons/Ranged/FrostbiteBlaster.cs | 2 +- Items/Weapons/Ranged/Fungicide.cs | 2 +- Items/Weapons/Ranged/Galeforce.cs | 2 +- Items/Weapons/Ranged/GoldenEagle.cs | 2 +- Items/Weapons/Ranged/Goobow.cs | 2 +- Items/Weapons/Ranged/GunkShot.cs | 2 +- Items/Weapons/Ranged/HalibutCannon.cs | 2 +- Items/Weapons/Ranged/HalleysInferno.cs | 2 +- Items/Weapons/Ranged/HandheldTank.cs | 2 +- Items/Weapons/Ranged/HavocsBreath.cs | 2 +- Items/Weapons/Ranged/Hellborn.cs | 2 +- Items/Weapons/Ranged/Helstorm.cs | 2 +- Items/Weapons/Ranged/HoarfrostBow.cs | 2 +- Items/Weapons/Ranged/Hydra.cs | 2 +- Items/Weapons/Ranged/Karasawa.cs | 2 +- Items/Weapons/Ranged/Kingsbane.cs | 2 +- Items/Weapons/Ranged/Leviatitan.cs | 2 +- Items/Weapons/Ranged/LunarianBow.cs | 2 +- Items/Weapons/Ranged/MagnaCannon.cs | 2 +- Items/Weapons/Ranged/MagnomalyCannon.cs | 2 +- Items/Weapons/Ranged/Malevolence.cs | 2 +- Items/Weapons/Ranged/Megalodon.cs | 2 +- Items/Weapons/Ranged/Meowthrower.cs | 2 +- Items/Weapons/Ranged/MidasPrime.cs | 2 +- Items/Weapons/Ranged/MineralMortar.cs | 2 +- Items/Weapons/Ranged/MolecularManipulator.cs | 2 +- Items/Weapons/Ranged/Monsoon.cs | 2 +- Items/Weapons/Ranged/Needler.cs | 2 +- Items/Weapons/Ranged/NettlevineGreatbow.cs | 2 +- Items/Weapons/Ranged/Norfleet.cs | 2 +- Items/Weapons/Ranged/NullificationPistol.cs | 2 +- Items/Weapons/Ranged/OnyxChainBlaster.cs | 2 +- Items/Weapons/Ranged/Onyxia.cs | 2 +- Items/Weapons/Ranged/OpalStriker.cs | 2 +- Items/Weapons/Ranged/OverloadedBlaster.cs | 2 +- Items/Weapons/Ranged/P90.cs | 2 +- Items/Weapons/Ranged/PearlGod.cs | 2 +- Items/Weapons/Ranged/PestilentDefiler.cs | 2 +- Items/Weapons/Ranged/PlagueTaintedSMG.cs | 2 +- Items/Weapons/Ranged/PlanetaryAnnihilation.cs | 2 +- Items/Weapons/Ranged/PolarisParrotfish.cs | 2 +- .../Ranged/PridefulHuntersPlanarRipper.cs | 2 +- Items/Weapons/Ranged/PristineFury.cs | 2 +- Items/Weapons/Ranged/Pumpler.cs | 2 +- Items/Weapons/Ranged/RealmRavager.cs | 2 +- Items/Weapons/Ranged/ReedBlowgun.cs | 2 +- Items/Weapons/Ranged/RubicoPrime.cs | 2 +- Items/Weapons/Ranged/SandstormGun.cs | 2 +- Items/Weapons/Ranged/ScorchedEarth.cs | 2 +- Items/Weapons/Ranged/Scorpio.cs | 2 +- Items/Weapons/Ranged/Seadragon.cs | 2 +- Items/Weapons/Ranged/SeasSearing.cs | 2 +- Items/Weapons/Ranged/SepticSkewer.cs | 2 +- Items/Weapons/Ranged/Shadethrower.cs | 2 +- Items/Weapons/Ranged/Shellshooter.cs | 2 +- Items/Weapons/Ranged/Shredder.cs | 2 +- Items/Weapons/Ranged/Shroomer.cs | 2 +- Items/Weapons/Ranged/SlagMagnum.cs | 2 +- Items/Weapons/Ranged/SomaPrime.cs | 2 +- Items/Weapons/Ranged/SparkSpreader.cs | 2 +- Items/Weapons/Ranged/SpectralstormCannon.cs | 2 +- Items/Weapons/Ranged/SpeedBlaster.cs | 2 +- Items/Weapons/Ranged/Spyker.cs | 2 +- Items/Weapons/Ranged/Starfleet.cs | 2 +- Items/Weapons/Ranged/StellarCannon.cs | 2 +- Items/Weapons/Ranged/StormDragoon.cs | 2 +- Items/Weapons/Ranged/StormSurge.cs | 2 +- Items/Weapons/Ranged/Svantechnical.cs | 2 +- Items/Weapons/Ranged/TelluricGlare.cs | 2 +- Items/Weapons/Ranged/TerraFlameburster.cs | 2 +- Items/Weapons/Ranged/TheBallista.cs | 2 +- Items/Weapons/Ranged/TheHive.cs | 2 +- Items/Weapons/Ranged/TheMaelstrom.cs | 2 +- Items/Weapons/Ranged/ThePack.cs | 2 +- Items/Weapons/Ranged/TheSevensStriker.cs | 2 +- Items/Weapons/Ranged/TheStorm.cs | 2 +- Items/Weapons/Ranged/TitaniumRailgun.cs | 2 +- Items/Weapons/Ranged/Toxibow.cs | 2 +- Items/Weapons/Ranged/TyrannysEnd.cs | 2 +- Items/Weapons/Ranged/Ultima.cs | 2 +- Items/Weapons/Ranged/UniversalGenesis.cs | 2 +- Items/Weapons/Ranged/Voidragon.cs | 2 +- Items/Weapons/Ranged/Vortexpopper.cs | 2 +- Items/Weapons/Ranged/WulfrumBlunderbuss.cs | 2 +- Items/Weapons/Rogue/AcidicRainBarrel.cs | 2 +- Items/Weapons/Rogue/AlphaVirus.cs | 2 +- Items/Weapons/Rogue/Apoctolith.cs | 2 +- Items/Weapons/Rogue/AshenStalactite.cs | 2 +- Items/Weapons/Rogue/AuroradicalThrow.cs | 2 +- Items/Weapons/Rogue/BallisticPoisonBomb.cs | 2 +- Items/Weapons/Rogue/BlastBarrel.cs | 2 +- Items/Weapons/Rogue/BlazingStar.cs | 2 +- Items/Weapons/Rogue/BloodsoakedCrasher.cs | 2 +- Items/Weapons/Rogue/BouncingEyeball.cs | 2 +- Items/Weapons/Rogue/BrackishFlask.cs | 2 +- Items/Weapons/Rogue/Brimblade.cs | 2 +- Items/Weapons/Rogue/BurningStrife.cs | 2 +- Items/Weapons/Rogue/CelestialReaper.cs | 2 +- Items/Weapons/Rogue/Celestus.cs | 2 +- Items/Weapons/Rogue/Cinquedea.cs | 2 +- Items/Weapons/Rogue/ConsecratedWater.cs | 2 +- Items/Weapons/Rogue/ContaminatedBile.cs | 2 +- Items/Weapons/Rogue/CosmicKunai.cs | 2 +- Items/Weapons/Rogue/CraniumSmasher.cs | 2 +- Items/Weapons/Rogue/CrushsawCrasher.cs | 2 +- Items/Weapons/Rogue/Crystalline.cs | 2 +- Items/Weapons/Rogue/CursedDagger.cs | 2 +- Items/Weapons/Rogue/DeepSeaDumbbell.cs | 2 +- Items/Weapons/Rogue/DeepWounder.cs | 2 +- Items/Weapons/Rogue/DesecratedWater.cs | 2 +- Items/Weapons/Rogue/DukesDecapitator.cs | 2 +- Items/Weapons/Rogue/DuststormInABottle.cs | 2 +- Items/Weapons/Rogue/DynamicPursuer.cs | 2 +- Items/Weapons/Rogue/EclipsesFall.cs | 2 +- Items/Weapons/Rogue/ElementalDisk.cs | 2 +- Items/Weapons/Rogue/EnchantedAxe.cs | 2 +- Items/Weapons/Rogue/EpidemicShredder.cs | 2 +- Items/Weapons/Rogue/Equanimity.cs | 2 +- Items/Weapons/Rogue/Eradicator.cs | 2 +- Items/Weapons/Rogue/Exorcism.cs | 2 +- Items/Weapons/Rogue/FishboneBoomerang.cs | 2 +- Items/Weapons/Rogue/FrostcrushValari.cs | 2 +- Items/Weapons/Rogue/GacruxianMollusk.cs | 2 +- Items/Weapons/Rogue/GhoulishGouger.cs | 2 +- Items/Weapons/Rogue/GildedDagger.cs | 2 +- Items/Weapons/Rogue/Glaive.cs | 2 +- Items/Weapons/Rogue/GleamingDagger.cs | 2 +- Items/Weapons/Rogue/GraveGrimreaver.cs | 2 +- Items/Weapons/Rogue/HeavenfallenStardisk.cs | 2 +- Items/Weapons/Rogue/HellsSun.cs | 2 +- Items/Weapons/Rogue/Icebreaker.cs | 2 +- Items/Weapons/Rogue/IchorSpear.cs | 2 +- Items/Weapons/Rogue/InfestedClawmerang.cs | 2 +- Items/Weapons/Rogue/JawsOfOblivion.cs | 2 +- Items/Weapons/Rogue/KelvinCatalyst.cs | 2 +- Items/Weapons/Rogue/Kylie.cs | 2 +- Items/Weapons/Rogue/LeonidProgenitor.cs | 2 +- Items/Weapons/Rogue/LeviathanTeeth.cs | 2 +- Items/Weapons/Rogue/Lionfish.cs | 2 +- Items/Weapons/Rogue/Malachite.cs | 2 +- Items/Weapons/Rogue/MangroveChakram.cs | 2 +- Items/Weapons/Rogue/MetalMonstrosity.cs | 2 +- Items/Weapons/Rogue/MeteorFist.cs | 2 +- Items/Weapons/Rogue/MoltenAmputator.cs | 2 +- Items/Weapons/Rogue/Mycoroot.cs | 2 +- Items/Weapons/Rogue/NanoblackReaper.cs | 2 +- Items/Weapons/Rogue/NightsGaze.cs | 2 +- Items/Weapons/Rogue/Nychthemeron.cs | 2 +- Items/Weapons/Rogue/PhantasmalRuin.cs | 2 +- Items/Weapons/Rogue/PoisonPack.cs | 2 +- Items/Weapons/Rogue/Prismalline.cs | 2 +- Items/Weapons/Rogue/ProfanedPartisan.cs | 2 +- Items/Weapons/Rogue/RadiantStar.cs | 2 +- Items/Weapons/Rogue/RealityRupture.cs | 2 +- Items/Weapons/Rogue/RegulusRiot.cs | 2 +- Items/Weapons/Rogue/SandDollar.cs | 2 +- Items/Weapons/Rogue/Sandslasher.cs | 2 +- Items/Weapons/Rogue/ScarletDevil.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheDesert.cs | 2 +- Items/Weapons/Rogue/ScourgeoftheSeas.cs | 2 +- Items/Weapons/Rogue/SeafoamBomb.cs | 2 +- Items/Weapons/Rogue/SealedSingularity.cs | 2 +- Items/Weapons/Rogue/SearedPan.cs | 2 +- Items/Weapons/Rogue/ShatteredSun.cs | 2 +- Items/Weapons/Rogue/ShinobiBlade.cs | 2 +- Items/Weapons/Rogue/SkyStabber.cs | 2 +- Items/Weapons/Rogue/SkyfinBombers.cs | 2 +- Items/Weapons/Rogue/SlickCane.cs | 2 +- Items/Weapons/Rogue/SnapClam.cs | 2 +- Items/Weapons/Rogue/SpearofDestiny.cs | 2 +- Items/Weapons/Rogue/SpearofPaleolith.cs | 2 +- Items/Weapons/Rogue/SpentFuelContainer.cs | 2 +- Items/Weapons/Rogue/StarofDestruction.cs | 2 +- Items/Weapons/Rogue/StellarKnife.cs | 2 +- Items/Weapons/Rogue/StormfrontRazor.cs | 2 +- Items/Weapons/Rogue/Supernova.cs | 2 +- Items/Weapons/Rogue/TerrorTalons.cs | 2 +- Items/Weapons/Rogue/TheFinalDawn.cs | 2 +- Items/Weapons/Rogue/TheOldReaper.cs | 2 +- Items/Weapons/Rogue/TheSyringe.cs | 2 +- Items/Weapons/Rogue/TimeBolt.cs | 2 +- Items/Weapons/Rogue/TotalityBreakers.cs | 2 +- Items/Weapons/Rogue/ToxicantTwister.cs | 2 +- Items/Weapons/Rogue/Turbulance.cs | 2 +- Items/Weapons/Rogue/TwistingThunder.cs | 2 +- Items/Weapons/Rogue/UtensilPoker.cs | 2 +- Items/Weapons/Rogue/Valediction.cs | 2 +- Items/Weapons/Rogue/WaveSkipper.cs | 2 +- Items/Weapons/Rogue/Wrathwing.cs | 2 +- Items/Weapons/Summon/AbandonedSlimeStaff.cs | 2 +- Items/Weapons/Summon/AncientIceChunk.cs | 2 +- Items/Weapons/Summon/AquasScepter.cs | 2 +- Items/Weapons/Summon/BelladonnaSpiritStaff.cs | 2 +- Items/Weapons/Summon/BlackHawkRemote.cs | 2 +- Items/Weapons/Summon/BorealisBomber.cs | 2 +- Items/Weapons/Summon/BrittleStarStaff.cs | 2 +- Items/Weapons/Summon/CadaverousCarrion.cs | 2 +- Items/Weapons/Summon/CalamarisLament.cs | 2 +- Items/Weapons/Summon/CausticCroakerStaff.cs | 2 +- Items/Weapons/Summon/CausticStaff.cs | 2 +- Items/Weapons/Summon/CinderBlossomStaff.cs | 2 +- Items/Weapons/Summon/Cnidarian.cs | 2 +- Items/Weapons/Summon/CorroslimeStaff.cs | 2 +- Items/Weapons/Summon/CosmicImmaterializer.cs | 2 +- Items/Weapons/Summon/CosmicViperEngine.cs | 2 +- Items/Weapons/Summon/Cosmilamp.cs | 2 +- Items/Weapons/Summon/CrimslimeStaff.cs | 2 +- Items/Weapons/Summon/CryogenicStaff.cs | 2 +- Items/Weapons/Summon/DaedalusGolemStaff.cs | 2 +- Items/Weapons/Summon/DankStaff.cs | 2 +- Items/Weapons/Summon/DazzlingStabberStaff.cs | 2 +- Items/Weapons/Summon/DeathstareRod.cs | 2 +- Items/Weapons/Summon/DeepseaStaff.cs | 2 +- Items/Weapons/Summon/DormantBrimseeker.cs | 2 +- Items/Weapons/Summon/DragonbloodDisgorger.cs | 2 +- Items/Weapons/Summon/DreadmineStaff.cs | 2 +- Items/Weapons/Summon/ElementalAxe.cs | 2 +- Items/Weapons/Summon/EnchantedConch.cs | 2 +- Items/Weapons/Summon/Endogenesis.cs | 2 +- Items/Weapons/Summon/EntropysVigil.cs | 2 +- Items/Weapons/Summon/EtherealSubjugator.cs | 2 +- Items/Weapons/Summon/EyeOfNight.cs | 2 +- Items/Weapons/Summon/FleshOfInfidelity.cs | 2 +- Items/Weapons/Summon/FlowersOfMortality.cs | 2 +- Items/Weapons/Summon/ForgottenApexWand.cs | 2 +- Items/Weapons/Summon/FrostBlossomStaff.cs | 2 +- Items/Weapons/Summon/FuelCellBundle.cs | 2 +- Items/Weapons/Summon/GastricBelcherStaff.cs | 2 +- Items/Weapons/Summon/GlacialEmbrace.cs | 2 +- Items/Weapons/Summon/GuidelightofOblivion.cs | 2 +- Items/Weapons/Summon/HarvestStaff.cs | 2 +- Items/Weapons/Summon/HauntedScroll.cs | 2 +- Items/Weapons/Summon/HerringStaff.cs | 2 +- Items/Weapons/Summon/HivePod.cs | 2 +- Items/Weapons/Summon/IgneousExaltation.cs | 2 +- Items/Weapons/Summon/InfectedRemote.cs | 2 +- .../Summon/KingofConstellationsTenryu.cs | 2 +- Items/Weapons/Summon/LiliesOfFinality.cs | 2 +- Items/Weapons/Summon/Metastasis.cs | 2 +- Items/Weapons/Summon/MidnightSunBeacon.cs | 2 +- Items/Weapons/Summon/MirrorofKalandra.cs | 2 +- Items/Weapons/Summon/MutatedTruffle.cs | 2 +- Items/Weapons/Summon/OrthoceraShell.cs | 2 +- Items/Weapons/Summon/PlantationStaff.cs | 2 +- Items/Weapons/Summon/PolypLauncher.cs | 2 +- Items/Weapons/Summon/PuffShroom.cs | 2 +- Items/Weapons/Summon/ResurrectionButterfly.cs | 2 +- Items/Weapons/Summon/RustyBeaconPrototype.cs | 2 +- Items/Weapons/Summon/SanctifiedSpark.cs | 2 +- Items/Weapons/Summon/SandSharknadoStaff.cs | 2 +- Items/Weapons/Summon/SarosPossession.cs | 2 +- Items/Weapons/Summon/ScabRipper.cs | 2 +- Items/Weapons/Summon/ShellfishStaff.cs | 2 +- Items/Weapons/Summon/Sirius.cs | 2 +- Items/Weapons/Summon/SlimePuppetStaff.cs | 2 +- Items/Weapons/Summon/SpikecragStaff.cs | 2 +- Items/Weapons/Summon/SquirrelSquireStaff.cs | 2 +- Items/Weapons/Summon/StaffOfNecrosteocytes.cs | 2 +- Items/Weapons/Summon/StaffoftheMechworm.cs | 2 +- Items/Weapons/Summon/StarspawnHelixStaff.cs | 2 +- Items/Weapons/Summon/StellarTorusStaff.cs | 2 +- Items/Weapons/Summon/StormjawStaff.cs | 2 +- Items/Weapons/Summon/SunSpiritStaff.cs | 2 +- Items/Weapons/Summon/TacticalPlagueEngine.cs | 2 +- Items/Weapons/Summon/TemporalUmbrella.cs | 2 +- .../Summon/TundraFlameBlossomsStaff.cs | 2 +- Items/Weapons/Summon/VengefulSunStaff.cs | 2 +- Items/Weapons/Summon/VileFeeder.cs | 2 +- Items/Weapons/Summon/ViralSprout.cs | 2 +- .../Weapons/Summon/VoidConcentrationStaff.cs | 2 +- Items/Weapons/Summon/WitherBlossomsStaff.cs | 2 +- Items/Weapons/Summon/WulfrumController.cs | 2 +- Items/Weapons/Summon/YharonsKindleStaff.cs | 2 +- Items/Weapons/Typeless/Aestheticus.cs | 2 +- Items/Weapons/Typeless/EyeofMagnus.cs | 2 +- Items/Weapons/Typeless/GoldenGun.cs | 2 +- Items/Weapons/Typeless/LunicEye.cs | 2 +- Items/Weapons/Typeless/RelicOfDeliverance.cs | 2 +- Items/Weapons/Typeless/RelicOfResilience.cs | 2 +- Items/Weapons/Typeless/Skynamite.cs | 2 +- Items/Weapons/Typeless/YanmeisKnife.cs | 2 +- 998 files changed, 1043 insertions(+), 1087 deletions(-) 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 75426f282b..93913e2744 100644 --- a/Items/Accessories/GravistarSabaton.cs +++ b/Items/Accessories/GravistarSabaton.cs @@ -17,7 +17,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/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..6c7bd96e6d 100644 --- a/Items/Accessories/HowlsHeart.cs +++ b/Items/Accessories/HowlsHeart.cs @@ -30,7 +30,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 281ad986d6..e52819bd0c 100644 --- a/Items/Accessories/PermafrostsConcoction.cs +++ b/Items/Accessories/PermafrostsConcoction.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories 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 f09b8a8ee7..c2c749190f 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories { 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..6525f9b11d 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1850,90 +1850,46 @@ 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); + // 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); - - 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; - } - if (rarity == ModContent.RarityType()) - return RarityTurquoiseBuyPrice; - if (rarity == ModContent.RarityType()) - return RarityPureGreenBuyPrice; - if (rarity == ModContent.RarityType()) - return RarityDarkBlueBuyPrice; - if (rarity == ModContent.RarityType()) - return RarityVioletBuyPrice; - if (rarity == ModContent.RarityType()) - return RarityHotPinkBuyPrice; - - // 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); - } + // 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 } } 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/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/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/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..687a330a7f 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.RarityGreenBuyPrice; 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..3474bab9e3 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.RarityYellowBuyPrice; 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..43b0f727b2 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.RarityRedBuyPrice; 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..dec5de750d 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.RarityLightPurpleBuyPrice; 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 2ba1f7cfcd..d02a6a5184 100644 --- a/Items/Weapons/Melee/Ataraxia.cs +++ b/Items/Weapons/Melee/Ataraxia.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.useStyle = ItemUseStyleID.Swing; 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/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..8c5d862d64 100644 --- a/Items/Weapons/Ranged/BladedgeRailbow.cs +++ b/Items/Weapons/Ranged/BladedgeRailbow.cs @@ -22,7 +22,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; 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..acc447dbbd 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useTime = 75; Item.UseSound = SoundID.Item92; Item.shoot = ModContent.ProjectileType(); - Item.value = CalamityGlobalItem.Rarity14BuyPrice; + Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); Item.noMelee = true; Item.noUseGraphic = true; 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..46409dd93b 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.RarityCyanBuyPrice; 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..6345708e5c 100644 --- a/Items/Weapons/Rogue/AlphaVirus.cs +++ b/Items/Weapons/Rogue/AlphaVirus.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.UseSound = SoundID.Item1; Item.autoReuse = true; Item.maxStack = 1; - Item.value = CalamityGlobalItem.Rarity12BuyPrice; + Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; Item.rare = ModContent.RarityType(); 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..5ab580602f 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.RarityBlueBuyPrice; 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; From adf3424de991ba0959e200c9453a2d64de4a9ba1 Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 17 Apr 2024 14:10:39 -0700 Subject: [PATCH 21/43] Norfleet Rework --- Items/Weapons/Ranged/Norfleet.cs | 26 +- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 7 +- Projectiles/Ranged/NorfleetCannon.cs | 403 ++++++++++++++---- Projectiles/Ranged/NorfleetComet.cs | 186 ++++---- Projectiles/Ranged/NorfleetExplosion.cs | 42 +- Projectiles/Ranged/NorfleetGhost.png | Bin 0 -> 4195 bytes Projectiles/Ranged/NorfleetGhostGlowmask.png | Bin 0 -> 3107 bytes Sounds/Item/NorfleetFire.ogg | Bin 0 -> 15468 bytes Sounds/Item/NorfleetRecharge.ogg | Bin 0 -> 33754 bytes 9 files changed, 475 insertions(+), 189 deletions(-) create mode 100644 Projectiles/Ranged/NorfleetGhost.png create mode 100644 Projectiles/Ranged/NorfleetGhostGlowmask.png create mode 100644 Sounds/Item/NorfleetFire.ogg create mode 100644 Sounds/Item/NorfleetRecharge.ogg diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index acc447dbbd..c458a0d099 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -11,17 +11,18 @@ 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.RarityDarkBlueBuyPrice; Item.rare = ModContent.RarityType(); @@ -29,21 +30,24 @@ namespace CalamityMod.Items.Weapons.Ranged 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/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 1f03c47b51..eae188eef9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -805,7 +805,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/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..37a8187318 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -1,5 +1,8 @@ -using Microsoft.Xna.Framework; +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 +19,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.OnFire3, 180); + if (Projectile.ai[1] == 1) + target.AddBuff(BuffID.Electrified, 180); + if (Projectile.ai[1] == 2) + target.AddBuff(BuffID.Poisoned, 180); + + 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 0000000000000000000000000000000000000000..7c5729e63008c08d40ee7b1b165269d9a8f2c083 GIT binary patch literal 4195 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%0Dy!50Qvv` z0D$NK0Cg|`0P0`>06Lfe02gqax=}m;000SaNLh0L01FZT01FZU(%pXi0000RbVXQn zQ*UN;cVTj607GSLb9r+hQ*?D?X>TA@Z*OeDr{R1600nPJL_t(|ob8;uFKtg0$G;>V zK}0;F@d^qQBnlddP9hSGKSH8W(^FGZ=`|9OXed-7gaQQ;k4QX&c!k8d#qs@}%(B;+ zIfsjLf9uoDe$1Xd^SNiOnLTb+EEa?D`jaBwi|C)$%`;$#LUj*%7= zr>UvQIljNY4*+<5eFXpv4-bEfNG48(VB#2`f&%5_qM{<_{NdrDQ@`(hLfc{DcrbCI`7v?6>IJ@v z@$qq|J=#EM+~3~=0168Wo#R(mS5CRBtIH{0US0wKc6WE3b1eL`1ORwg~~BR4k}0I;&M0^no6nK&j+ zBwleQCMIG4(Ae1M+_<;57g-^H;!=e_$rNR4YYPC-+S(d&s|ztio9M5 z!~1<9QzoYpiqqfU4*=NS-Ua})w6p*KW@l#s0L{(K&V3X}tC#&E1t}>hamqJ0H_4i> zLUD)`$i#Wa#BuS8Gd4CB1N4rQqR57YLJ>7_n3R>4mOAHC6{o(w-nqZ3sw(oj&CN{! ziBK!wQ;IV+HRXh~$HzzKdKq#L4i22Myj~uc;#^!@07!gdph)ZwPO~Li>cAv?Nn{e-(9qzNDW04*Yr^m!z6@Rb2r8Ea z3JMA$>yd&pRPuiMVdA`F;=~CShtqLROL;;j%Y*|XLrW;t)ztui`T2POKwn>9m24Guf0W0-wWBMRDW; zA(8h>A^E<9$-4FlMEiJZ;+Qx9zCauqszOP3;g16(Ly?4`M21Ky5QQO9oK)LIa7I7C~PAle2vi6#KWks*&u`zFpW$HYku6GuRSIGv^#a=U_Dm^?Z<0uY|8$`Hj+ z$89QHP&9Ee1QRC=6GuV&!$WOTI|&`=>FH^wez_rz+b`sTm002ovPDHLkV1j~D)i3}6 literal 0 HcmV?d00001 diff --git a/Projectiles/Ranged/NorfleetGhostGlowmask.png b/Projectiles/Ranged/NorfleetGhostGlowmask.png new file mode 100644 index 0000000000000000000000000000000000000000..bced15655741b43ebf865437ce19bcdf731c7982 GIT binary patch literal 3107 zcmZWrXFS`F_Wq)F%@|FoRU=w6Rf4LKAodo!QMGW0D#Q^iLg9p(m7<97|vs@ zbi~FvUGUU4(FTB;zgbUR=>dR6#TyPc$64y@h#2U?l@(Q$m1UuFiU5F2$juC}wwmUP zqqM5Dnx}ClJ{h_1Wl4)*$TYZD1)hHwv^D&EUic{Nets+Ei{}<$su_5E8cpA6Y{wjNvCxiZak(cx zCCL-bNON%;pz{G1u(h>1e8+mU*|edbl6|s4$Na6$>>|HTu8nIZcK~PkPnzt-6an+B znd!I*+9v51jW>wZ>cxDk0f(9@1CX>?xgR*Idp@#mX%J|X?AIV* z0XcAIdraPLhyohq=phd|$Z?C8#e*fCtYTBrK}m}gipg?P&yWJUO3KwG#ZTE_d%?wr zfCuH&o+ro`{6SEcwB;$F#a(33qh$jEOwEW5zHJ?2kekYV- z+4g1YyKCTHIxG#Z2zOEO^9U|QboY~&u)i+;$d5Y~X8hwX#K(0i-WD(aL>DnwYAj-$ zS?|~nil@)kiPbvJe|F5#^{05cDKlZ_m}?}{jupHDoTD`PL=Bi$C1V2pB+gXjyh zG?ohNc@fgvEJIqH#F&0gUduSV2)tkLO^n@Rfp2v5a4vJfCrlD>9V9KU)_Q^EOTmiR zwL*^-#}x?vax=gNZz!NjGhS6-F70r5&E-R1i#CHXk%;^q1KUuTuv}C_dj^&+ zlyj44*7bCO%Z^1evWzQ&lS}PIk^&cBr=Ct~pg1#^Xys$>Vp?ylna4uK!cB?D)Utj@ z9tK@qMRVgPtRIAVW0qcI7TOjn7gbm=n&-Z}Jz+Be`HSU%%S7+~i{Vl73V@eU1Lr2m z>7fdqk6c-)UE$h?QF$4n3*C|xNteQn1tocFX=}l?0^=mr7;ta0YiW($KWbBg>xpbV z4`1K)QGCl1!WqIHLa$CDL|wJrO;Wxn1eDDDiip&?<|QH|@s0h-i$pGq{DgWhN-m zCSif}5LcFt6c_as-H^%^`y$pVl0Kk!kK^Gjd*eABKgoR2d8zjn1=sAZU4U%!*j}H2 z;IBDZ1eV65l&tryo&L$Hwkr%oJV5T0bGr;66RNr`97?Q<@YbubV|7rQX+2eIRd`VC z!=zpM@A^D4J@HHMMT!f)T z6LSsg4D$?AK0M%+zEUVKO1HAQ52d=w(?m7Yp|d2e5_ z6o1qIx4%U5L34ETjo{v3i{O~xjo_nwW~$6@@!wadtyC)pH3m@zdWI^72DY78nJ%6# z=h)w|)hWp-caxPb`GYl}wl~-n$SQs}+wSWqKTxsv7(+iC=5hM~HM#M{H+cG@a;=Jy zVx^)0G;a9H5dDvq;W*h5K2tuOB!(mbWA5?v>@FX7lEav6v@EM^i%h;f*sjOXw|1?8 z>g9{c_50#Q=!?Az^0M+8ciXG1%9j23w)b$xY1e7KsdD)dh2ZDu*VpjbEnqzFFX6lI zJK8?}iHV@w?c7XlV7b3~&x0g+!mwaS%B2^wax@W#yg~%i0uA zmnj#qYWC`nKAwk$htint&y<$#kde40(08j1+&qe+GTks4@PRUiiJ6xUuM2;CrhFzq z<3KYT@gt&KtFJvHlAv8&K(9Ti%@H*mrQ4w)ibbOP4_OvdhiVgRiwAR_ zZa67RuyEgWhfgQHY3Wg#rc6Y1Bi^_`pMA}=O5c-IQ9DBBJ+qcZLg zX42~1Uk?@fP;7^67pK-g&o*3vpyVj>!k>lSwBi`u^an^!)t~-+XYPu!Xh?c(^v1{m z>@@A{ZeCx%M({U0K&GHfLaIDAN@qT{1hrKE-1#(aTV{iDIP$ATZw&{(r;-_pViO5j z1l1EEWj&R{@L_6mlR;5=-D+3ZV%TbAJRM<}G(0T(OxC>$TUqSCi|*_goDU2i|I+JI zi79J%DnuJ69w!w3{CMM_OFJ&)@7JU{g6FZbFJpaCF=)+cPIWS4Ok#tyE_C~HU|mCB zN!izs!L1|VaSdCX)Azt>=FWr{pnTIG`8l^U{MS}jzm2=K8U=6VBxvBO6KbyZ{%W>^t1z#CYgw+_XFsR1~#x={UJ8y#XR6>^$ zPcp_)t<`xgeAtb#{?pXOb&HRfIb@?~>p;t|6qB<{?(TyN!iiYn{qK2WM659wpN_J{PynEjH$Z4x2j*cXAr* zbeu!K!>~C19|+T4qk$lj+|d5_A`|hu&ofCHeRm=q<6^rG>@_F543UoYf266H^GB03 zB~p>NGzDj1X=5{e^y-5?EaALe*Ft7)#r0BJEQpqU=52=fq`&Mc*Q0Tz%8$C|b@J10 zmxB;~>Z@Nk)bELRm!XS-Ihy(~DSk(u5agR%dX~b19G&p z(ETeOqyXaL;Nsxm^mT;xw%UteFu$(5Va z&cns&8L~n~RZ2}-MpHyq8KmV2v9fbff8bKkR+bTAO3LSY;A@o&Eao^=wKs#pfTUXLOz2sf z37U2!mhT@ZpppW;=X1fAxt2g9h0hC_4zUs~l5y~F`h zrDO{z4ENpF_c{;v`AHl|+JFr}0tt*MAdW!|i>N{cZ~*{l9~cw1853v)k}VYo|FR%g z4G;kMQ=G%Ky46FASSqjLo@UVO+PZYzQZsp9gbS;eHFFF01jn79V$ z01y&8S;jBGNB;&7z=BaAilJ#gz#}2lTELchVBgb~W`1A6nR$Od$7539Wwys4KRm}H z#@(9J7Ri_6@jTR;=^rYue_z6(;-PL(pfuD?mKezgZQ7Tx=UqV75jK?w*s~8HDVn`~ z1t<1-BsD33WchokAS(56Reg~B@oL}DS&|4ziISB1dq_Ui{U5%6;6aX8f|xhLtrR4m zU-*_-CdzKO2xG0VkIojy9lKnvurNvU2$ZTlsKAu_&&ZMMg*pshQ=U5fUzaHA2x5z2 zrqY~u*v#ccA7i*iSsTZ>#vU%mb&ZpPCmj7iDV*x2=SnKg^ZJ(6?eH82yct8g>gEMS zrefqQGyTOc1UWsJBv$VwWFI6)QJ3Vnk1~~gK>Z6Rvhl&7g-1N3DOO;kY z<|gH_Ib}5ho%u9lqXqEVm6JJ<*V;8?;~KKF7;bKm4*n1MpP?g15(1RO{AVD=#Fpcn z@DC~KlK(bL5K`eM4e|juIyrZ`kz`hd6mF$P;fYycm7mfY_$ss7GJ2jeYfUn+RFy?f z6_}@vL9?+zixX_Y$u!+*<2vx)WeCOJA<6>)2l5F;@-ap72|N7BbSMSXl>h+J=uiNR zF@^jIJMzhN3h6}(d3y#Qt?f%}{3^;&|FVcbuskG2=r&WyHq*y#fseF`AHjwnOYCbH zvm1^(YW}m#{&#`D2LQe%k&h&iBNw;=l0f;3F47iI0j@Yh?~#ihx#IsdMzxjQdQ&*Hs1$VXXMyx)_j(Kot!C9lHKU#{VGje@7q$=@|hS$lsHK zukQ&^#B%^4pWRrW0086)GpqoBE1l9T(l^dmkamxbhxCTLwu-EH>bAp*01!6d(+5VR zgU`c2IvI_y5<4iPiSqop~Mbt+-Y@`=;1pqMXB(yBt zLXgf46+n#wcq~`Xs&*kf^+IM=TgMg(kN(IQQ({-a%sp}O*V%LH5J2~RA1cc$DzH^9 zgf;LVICa7wIH5?+isLW;#yJn6j`?T{ec(Lq5J&D5+(`FmOoY@8Eve|JVSS{*jodwS z7Sq6H&B3=7vgX0R|%_0O0Ye9NXa(-m! zLM-u;M2FD45Q~WNVGL*h4dj$@Dl?U&nk!2(Qgg>BU^0a%D=LV!o!}RRX?-(f9D)*pjH12}KLm^q2B4}qLhLaqfk_<(RAeGS z);&;?O!P>*!JrOPmt-uq8W%u5lRQvJ8^NGJwqg~hCUe3co>P#Nrr=+Su^4HQOu3;z zr1^$vDk?A`TQLj5)HRuy!XKhkqyR|B1;+Fep;f z$wJ<{&lyINhv6GNNs_`bjLUV8lTc)`de1pnl$IHwRM001l$8X9OjcI=ZloOs*>yu_!-=@5U|7?9R04nRfyCtQ0dqoV%vKrgQQ&@4VLJDwx=YH>aYiIp;nuR(zxQ9nm8^)&e% z(?!04By&*)^Zgo1?T&Xi4VQcM$grzq{X7JKvZLlao7}SN_z_6FIMv;AH(>41V0~^F z=$GLTw|;8aSYbH2L!}eClbyPHBj=a8bWm=jyyP;UxMO9%-g{;x{Gs(qRe3`wcfH#` zcyNS>ps0p!>}Jjus+xfsKSb>jt_-N;0y;$9(aGKnI~nFRGoW!Dy`Wt@=I!dmRZPqL zB+;AO*-PNi*xU0|dD8M#rNvooUWj!=WF?i(`VDNg%@u#)m<}L$I|L%q?;U2q+Sc#O$ zfSJl;p=^6FtQz+HHQAnzE;)*55LHI~4lb$$=#OYy0s$!qlb<4nB@lX-kr9lc@p?8F z=piP^=>xMpY3|YsUb^^sHZkyh$7{;}#Lx2TOSIloCqB*|@2+P$Nk`43FVC8Gu8fzR zS@=5ubSSgwGzDyGG}2WPsPq*qCx!I6*pJljOI`fa5)M7msK+P*u29ZmM@RJm(u&2wBY?iLAf9U#wG&GOji5gGt?Ib#_4 z7!#0#=P`K`3{Cp;B4S?_m(XJS%vLlV(Y!^F;*#4j>BDn)^9n9T?6j^@+UhCdU;i{d z@zwchdqpRBwxd=`+f$I|H}h2=X-TKUspQP+vwHqHBh~`Rh=ggDVli(_I|*lvb;$Ma zsmZBVWc|rie=c~=Ra9m&9OiZKba*i_`d1Eo26g6j4eC>VB_#2JSM1Bw(bktV#2_V9 zyk3(MW`H1EJ|)v~hR}Cd4SRNWECXoqfY)v5UYDv~#vTKRd`M&CB=0rn`l03K(ZocS zW7Wu)@S6_?T6a2O7i?~~SDl4r6SgzePXa|t93gog?GIak)4K83lG$A{@P5qL{2DXr0=Iggv{s6jEv4Mn{#! zQH>lWV7kwbGRNo<$utR4+k^CQBp#?Gw5;C#I@+C%RhsBBVZQq_2aDD7a$zr9T%P)o zt9|!@>hg_9>e*E|r&Wfvk)O3z*zr&4sgm9=TMAEh^Tl!l2;J7j zPG#g5F!SYx>Dn&dOjOCSyEBr%EG;#&2^3*?e%@-?TohlfHMecSz0>3R);Nz3rcQXJ z>IH`qVu=Htw({OWZKIf1yeTLg?}0oawX_RXX9 zdtsB=S?@*b`t!TIUbf|R|KCodAFF=oYczCdlMuvYmjax0vJG9mE$RGRDL56$w z%cpSdN+1{2nktD*FUXTp*B(m*vsR0@ov15y*OXH4kWMtChwT9d8papSwmwS%64x#$ zTLadkU>+XHWce*e?aN)(81K@b#O?VdnhSuI`a;v{KgGYxsn8d-W`IIcsj$jTzZAy# zdq7$Nj(b6XA&+i}r%zQqXT&FI3lU0th9=EtC44_t>r1MPRjNABJni0UWbJ2Of6{W* z3`tpgw)|Q>I(3Z@t8^gU|6OMApa3Mbd@Cjl9&+%FTB9+mSu9Oy& zdbN@D=N>$IK~vr!P-XZ_@S_l$ig(PqiebQ=~RZS<$TikcBg~D&-*%n zFgx>^OzT8}kiO4S6qs>Wt4tzL-y2e;5!P1!*RYZK+raylbrB0RLEKl3Fbs{yK>o6b z#Suq!0E*?el;VSZ)BA;Mh|R?=;#kt$C}+Q&8Ij+qlQ*67yLD`iu3Mlf-SN<> z0FIub|07N<`z3gYS6W6tx=^66=aul-QNz7k9-BSI)v}F3$IFOkUzDvXS>32A1O{dcp5wSlD^`vxMG+ zbJJ(af(WXTQJH@*F}S6Y>?Y z^)9ag90q+LR+D&>kj!h%d}SbjUj+N5_+Evsq}s3Y8@}G)E1Jx~=a@zrm%rxu^;_i% z=kIHF$nJy4ug2tRe|wq^-W_XI6ba}>bqcCFtYsr_ z){~tQPqw<$1#AR>oQ8GskKmhrYqtJtvR48E6U%k=9wloMOp?#%wDs!&6l<)*q>g0 zKpiFWuWnoZCPr;-B2D83_08*REY?cT_Wo15n#-nQa;tN_!PX>3(fDL&CY~E$ko%*# z(7r9D95hN7M)#8Z6nA@cQ+~^1r9%FQ_{+s9VsQ;7FgecKCW1fa#>31!O*zOL?81lW z-KulWQzUL5a64JKa&5b)TH9)-kmSsD)*npN{~Dn|E{CJ}yz!t~W|@R140XNAtN03e zG~jz{oSvS94(NIU9&tWG*lftWmRk!ohbzY)Zv+_Moi)SSV6RNOujeLTc((-q{_%Yy z-XSFekId%SQvYQJ`UuRu?4%z&4=(0j{{5`Q{TTf98D0xCtK)4!$+HN*okAOLC6hqX z-sUz6KIr*x()+9Hlv85GVbu(LJzvqG7E|v-^-7O;H|-(rDnpkMEDZtR&z+q*;HJ5e zUV%C|`EYI!TlC3HqZ;WK z{a=a6d{p50AcGk+fv=QfFYRlrQI7Hs_%4p9))HVqYb_c4d^zQ6Ya<(Gt75&Rew|Kq zc-=AjQ*<2`E!?kNr5mHS(pb<0EOq{*_GM;%IO_PO@rz-B1)<5#>jh4X`y5`S+DB+W zOc%q`MUzG|b<8k$(-R{do1Z_S=jGEk*@U-V=ERYWtB!(gWg}*Z@WE`#so=JafZ7*g zY|9&YMm?g9@5S{Tbox(jt`meM!nLv7sn^sDZ+zc04{LL{eidE%CU2ydRonk)Tn;LO z&)H_Kp$R88)!T5_`Tim^a_W?>y7mfRB_g4vT)gVmB4%Z2Qk}jz@Wmy2zuR}c;c#X^ zP*(yyfl+Fb9o_e!A#UE`OAKk-ZspK1l#4ebh%Wh- zE{EjEI;R5u_)P6TWtZmDW8sXA_A1Bcyp3Ep?qDsL=b$oz8DUwSK={2|CgO-CD!wUb zyGX~mC$7aCn2-$Nk4i;-FVWZ_-rKhjNfA7hhrXnJ@Dy&Tpc6~Lz{wMR8X-^CQ^ni!>ew+AqwHJybWge{^AC17PRu6E#KeV$LsvHH=m$LS0L}VgDW*%$Q{10M$vc+M-!d!a$NT0 zazd}CS^r@e;&w42{3-5o57P) z6AP3O+Sqswv&BG9S#UCdTX@ssn7#D8Mg69(BC3M>e$*um%FyB8&_APOmzsj9E}NXN zV(4HtC3@i{d%;71xCO0H+&U}*k75r0{O~;aGsPo6JLixp z2e~*kCJ$Z$Sy3)JuR=}E|16nOHiW62w_kKX^1}2rj#YRfh+SL-cUR!l{mB?Xr<5vG zZ7BBNusu8k>svxlcz}6RPgPwM>#~n}|GaGQz37zWDomR`-1^*cO=;uORh6+&sZJqd zQZ$lmRTgiKK@ea(ue9=Pm*kmkmw<>#1dzSW(dhSXhrjcMKs)`_5K(7^T9(OBYe831 zFx#80Z#IiPaPL`(ph;%%r`q*PDjCQE$J(jCChPAd%oJNkhA)anmKOq z^iKCDmF4;|oxdzw;N@50yDzxTQA8)4EjPGQu~5xl_}VZ9a8&;ZKqo>@UV^e9p|m8hVp~ z{(_p(p(r3QMiGsX93=t6P0hE3A>okS+sBp3M>y2bsGU<`1?>%{EN#bo+qTT5a)sp;prrQ*Iv-^|5 zZ90zac(7i6m%GUzyIFg5coGi5!l68+G&;#5!bAfRLt)ivd3GTZfGSZG;tU$X;>!78 zD0wx7mpepPCN@t0G}v*J=p_H?eoaQ;AV)24?Dy`DmsEn)CVamMJI{@@WJI-d$l;Y3 z{He~?(kg_rugrDH_^rlX_0{*h&}w9}FPx1+^T4)`Wpm8OE$^j}ys1`c5z~0H=dJh4 zmO`xPP`{&~CnJm?iq`J=fZc)v2kQ-e7Tp=!cRV+q+x%;0)VzQikpu}WI(ndc$Cg`F z9w4rUaGoU8(*_P<50+#ma8E)tX1h&K3qgb}Dz zEs)l$dWaiVG;;s25y&j}_EzkI^BYpU`t!TG91N0MdPxN4S+$71PZ#ySaI-IBJ^th= z^;}k7;Wif!H=`-ctgQWGTx!Xz0eNyiC*d^BOQSfQJ`}hz5bH6qpm)rZ9u`8*a3H{^ z+wz4aCVB`Q++?P`6@x&eM77#9I(b9s;xqatq~ucadu|C@&-O(Uo;2!pa_^R|T?MAV zoi?8M9dR|JNN44w>e2RFinzRYem^6B%pSu#S1+)WzESZ=8dTcT6XQph0g4=|oKZC& zcqVCe<&UbKHou2vICK zOBP%}kZ_ICiKT!z;Kb6c96XIrXV%#@c`q|qz+Cf#O0CpiFXOloHsF`(<}?3Gg)8#L zWZ${{&w3$jHI_EE1+w6KK4HssRJO%T3vSn}?oS)9JHOw$=5LQXP8l707SrQ#=Oir* z&U=Bnpzb^t-&v{a?~A@Vk?zt-251--U&p?-JA#&az2xF>?o+q#O|n#W*uiFY_) z=4$H3oN_^eT=}c}YHp$uO|a#r zNN-oKxgDN$*DK(Uns+C&LOIP&!$jN16-IQIUo)SZdY=B^tQq1ZOJuPO3X4$)1MlNk2UJ8Zu(p18 z8tQ3+FFAag`(D3Rbgz5=NBPFMubkL)M|14MpHclm4b?K1!Y1~Vw4=M6KKc`dj##ow|`xk6E| z{EwY7$zvjIu7Yvv|&j0MWgftbNMbj2UJsq9d+)ivdbTLKp?ADEG#j*d<}u3LbX!wG zkLv@ox6b4`OcuN54(lgYG|Bd+C=GMwQ{C<`*G#tqy;JTzo%cE$Y^d+64dahyu@xmv zx8QNqd*mPXry4>Q!9gZPQhvzAPh*#M)v37C@a&pb73`2}WH;|CT(P1Hv+)Z2JL}0V?(_m$2 z=z5}sI?@B$b>zIM`62)!y;{`LPT7_kku2{_yfI)O2h^OOnkYe-caeW$dA8SZ$59J| zN(Pk*^^6sBb>?6F3czW_fdn31mZu;ju+E%s1?54jGUJ%_2u`9Sdw|OVNG`o8l<*h9NI)NTHIn<;h?Ar3$phR3LmqdLUC)U!P zqj|*R`d9MG6uI8fbq7Nv@JSLXvIy7b@r3z|ykxwm!qT9ypUuI{G zOjh7sEt{L=7-9`|KJWUHMakd5e+E^SON=I8%aStCfp6UG>CkpZg#EiSlh*~|Irgy{ z#2eYQHBN>F^PxP{w6}Tzp7Q4vKs~9U2>;dY>DFvEmaSugl6f8Cy@kU={5i_~l;vw> z+BoVq%AYle(kCnt2!;F`WB=eO*Jmg_Ml~ug$H+c~+_b)_e9{6i^Ahx&gduDU79QEu z;E81CJzkCl$vrMLbduCgIFSPU~tI|H;AxcaeW6+xFMBVzaf8 zS4rrUgy~7!@9^nrw&N%~=Rolcd#)Zek#(O1 z^41?e#@fyohx*O0U~~dQEgCcvHVDQ)7n#xX0uhg?)guF2ekrwuv-M89gsU3`GeK)t z$pLsNc>eM)1c(c(rW_3GgN$*Za9t*TzwG&g$f?X|>K(YToVVNwJCRIOXSQofFxBTM zY!{PaI{lAJ2h-9a4C_y>)^Iq~F}c6*y$j@{z~M&y0{3Jbm`6}2^ciWn)cm=!M-4c0lecndTpNb+$>F{xvK{_K zf|@(;2|~TDGEEl&J2CNOW?d#|O7on*U%FE}c{A)ia2CpW;@j_N$t@%x1c7p^JRY(> zAdbHcjp*BFmN(-2X;i>}$%Gdl+KE@ly0wEzQkX;$n`f-DLVZ0s6&FF-{}i4p_1>cp&qIm(qWNCQTnqu}wH$M%(c7DU8Pu z{r*W!3akKtYPO7?F^wZ10?-fSo%u@(lXh<2yr@|vz)40ug;x5}TZukbpQn6>jY2LT zWF-t+DE0KMrSgX6%7S)7H<^%sf>MQ~-+-?Ofwn>{Di zVOl&dE)uUjn%CQ+=vqmnHh0YVF$9eh?r-)6ooE zz?aH`v~x{hwXSIrpU2wJZtbMBuSwHy8yJQtNudjys1i>Fm{fq129d9HH!2t6Izmyo z0#xO|KgPt;UIse)jnuwUTCi3#&Aa*5KN3IT*#B+mERoOj?q%L;5d0wY5LQ8UK158V zIzMl8r8!T5L8fp~CP4c(X66wPvS)Yg&dXVnaChtNaTv*W_{X9e%EnhJ^e%mr8hfL-fQu+UC4-on%%?@Yr#!DfaqN zZjd|YPW?^5*6sM#?c`|lxzW#)_8LV1`s1nN;0^{lTcYG-vtDORVrur(Kuyk`NN-45K>3?gt6ij|}j&VF6 zA@h_9P5a}A{C@d8NUBPUugiA^Kv~I?(gnoEw07@OWAmZ`0p9Njut80KA`JSTS`X!| z`iuP9)U#{g6gAf8g76?7(6W<1;J>D z_0zC(A2Z-h&))ofaB6*>mlglqee@l0H>4j+k)=;kQ>R$aYZX6xPF_}BaFHq9|0w)I zFZSZt@HotE_Q;w3jB$WyWqit;C;;y3+H|9ru78=7-%65VlvSL2Wuwfu*y7?Fcsi(X zwyrv0$*rnrjy5gF)N5Ef7#u8hFnGS5Iw#JLJzrHowt7*zo0Y*WX08XEZzAow zwm%`9-s*b%ZhP>H;-K-l+M@8&6l!mPl|JC_CkklMzyBUD{5@YlepCmT2xoA6UeQsQ zT~pUwUDH%tPyo$NF7^}ctWJ5e#3d0<(Wz2-MzZ(VOz2d}_zqz$G?RUN1S!qCHz$qN zi=A2=s*Q`PUqZltm*{1Ur}uY}97|>LJ=d|XlsgyiUct4@5ngnf;A1eB_r0xcWUwX$ z^e25#nAqnhe2ojoO6t-|fo^1C6=V-051d<)lxDZ^@{daW!s^_G2f)0dS~O1STwm@S zDS0X^^X^FO4W_|gv~|96Eh4HN*UHw7lt4w8_gTd%)*u`Zj+b@13@68#k2oXppndy` z^d2I(DDcD?Z{Ku(SD@=9G23g&1ar7TjvnCy|W@ zCx#7zFCA2oCbRR6j1i6Z1Ka#j$#lO<<%cilo~|Z)2v5eNeKOH2b8iZm{E$b?VQW3d zeKkxE1{wTBy~Zm_0U_=vI&H!i>O8T;wooiPDW;<)Yy7H=`H3C;w14DSsSc>|GR{3Z zxUi^kj+&L)9*fpx@8}Sb!4DB5dm48wV_0y}(~g*hrV#Wl0&fkIm6hBFG<0N07dx8c zV%~Dladt3KU3!4PWpu-#C4Ew_(RUwTXB^Yq_FEcF6kp^+5L{ zXJ31`tH(k;uVN3lo`<92E+`|F+FoWU3O9Uv^&Y&>aL}DUVIssjbl7>iR6t=$ws3aQ zy2#!3=Hs|sIY&dv_ScF?=mq4Rf=wr>jeCCt@VwkQu6ZvJ>`RzHG+!d$n?JW{K+8w+ z$ot8H3})N&yQj!+87d$$&W{S-k`tR$@anW1NH%_W90BKMo@n2l5*68ZFNYO(?PdEN z{B&&jrT>b}$*AXZ+{xrnUCh9qDme=~Ew=k-?s5ARl{hlbO{f6vQ*!N@YL~%wdQY@D+o;3rIruTrx^*H%NFR2Gx1e_ zfmqv|Yt77FIgH$kZFSUD7?2Bd-mP~BxXoHo7G?&Fec5c;`_aJ3$veb=Cqt7}O8-RV zGpKRVG%9gT%t8s{j`Xs3a9pHUL=yko5xqm4%A5}uX}xL8ZgS68a5$YQ-cSdZV2P_T z$-2H}K6_wOC@SB3zHqQS>fy7U&lZ-L8UV6=Y{+MAi>_oIEWh`;-!zrgD|U1;*?e&&eW?X`$T%aQM@ky}E(r zi|nO6|AMB`JRiN+|5M-jg6HtHuRqE3>ipa)`5`OKGo46a5^C6=KYG6@)QP#=^ZorO zGTWHUV|TfuCHzg-xzdVauzRGFYSCiyZPE>{FgsG zKFz*AGfe8j%i57_=nR_$9Q=9yaIZwcQI?u^BF|j6rPccUGcWZumNy|y5VSh?jCK|c zbx<8zUAQE>@ECQ_Y+$%;+YlUl)uO63yX1K2tlZBOZ?V0`5#w+5Na=<|BWS0U@sR!ff^uE0%{?frtIFC07UWqzvkFyBvO1Wz5ih-N-m+aPKQ~ zdDl|^!y$Mu40}C`P2s0-adk49N&g!tMQ0VsUK2Klz-fGrgUIhGs0}+ocuC_};?POm zXr`c92S-qo`SF!YCcNei5?`KK5Q9aoYVbQ(#a8Z(|>KV!cp@-s=K}kjxF`cIiz_fYF4TViXV0@j)||LNrdPS|ov`>deipq#`Xo6R8q$^&7iv z6_-(?Ebd&DI0qr?+>ONOr#nP{j<)uP(?V%F)DC$ghd-Uij2{Bg65Iemqo*k=@{92t z1v4WmJiN&}L)arjD5ZV;mcCc{JfyA>S=N?%LlzZuTs1vBmLm%+)uc}xQ zUQFnu$YUjnfm+oOV z;5RNp#_&mcP!FY;^HKQ<6}_wjrSvx0lsz!~TO7}!iwdTF8k$A8j;!B|5Ech5b5MKy zMBH0TKCa<6&UfVg>)K@(YYL#vucD++L!NK)v_sh>2H&i>TY!C#Gi zkBVZF1!+8ysuKB%O&KvVx!8x6LJtIs;8KA1BzqSPV5W zlu?dAMlP#luf>^xbd>EqC3$Y-0N3TTiX%icsLXhnFQ(7auu!IPt$r>u?{w34yS$dq zBB-*yh})uvn&OHTN;{4|I6L~w)hx)&q~DC4AX^gQ-@1}DC$Sl_ufpYk{C@u9h`z`t z2Hciy3tLw76)9@nOBoh2a$(mGz9NI4v5E?~m}}&jk3YRlFt~;>m8L2&mjy6B{)w** zxF4==UiHYgR;yc3>tRD(>Ub z7u`kQyw-2b@Wu~x6J28RYTF7Z6{O6*c~Q2nF>kXGyrd1cw85T#r-w>8A_5m3th#&4 z1|p|v|J_uTnpT^~J4{!HT_SjsDizC9D@sO79c7wdmH zIaN5FHfgzJwA>VVhV5xdGK>bQFnca^_Mx3NJYY84nScK)Ex>9gurp*f1^JpEmv#Av zIS7s|f0sj`bg`cq1e@Bv8i@U#)I2!&qMXeYyBA%iDp zGJGd+8(1evJ3+>{dr!VYL8MM0{z=mVLMJULiHxT2zn}VG=B{;v@0X7|&nSDZTXLRW zPwCOCfO$?*ChA(r3+*EB<YXW*9z_%>aDE|v?J9GU2 literal 0 HcmV?d00001 diff --git a/Sounds/Item/NorfleetRecharge.ogg b/Sounds/Item/NorfleetRecharge.ogg new file mode 100644 index 0000000000000000000000000000000000000000..3910343d595f8e737e2e7e47ee4d2ef30b59973f GIT binary patch literal 33754 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 literal 0 HcmV?d00001 From d21233a0f18237f481cf8561992bbb4f3025e17a Mon Sep 17 00:00:00 2001 From: Xyk Date: Wed, 17 Apr 2024 14:27:53 -0700 Subject: [PATCH 22/43] Better debuffs --- Projectiles/Ranged/NorfleetExplosion.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index 37a8187318..d0a0bf3fde 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -27,11 +28,11 @@ namespace CalamityMod.Projectiles.Ranged public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { if (Projectile.ai[1] == 0) - target.AddBuff(BuffID.OnFire3, 180); + target.AddBuff(BuffID.Daybreak, 300); if (Projectile.ai[1] == 1) - target.AddBuff(BuffID.Electrified, 180); + target.AddBuff(BuffID.Electrified, 300); if (Projectile.ai[1] == 2) - target.AddBuff(BuffID.Poisoned, 180); + target.AddBuff(ModContent.BuffType(), 300); if (Projectile.numHits > 0) Projectile.damage = (int)(Projectile.damage * 0.8f); From 40205849a981724db59fd70202ac18729372be3f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 21:47:55 -0400 Subject: [PATCH 23/43] Tripled buy price of Howl's Heart to prevent money laundering --- Items/Accessories/HowlsHeart.cs | 1 - Items/CalamityGlobalItem.cs | 3 --- NPCs/CalamityGlobalTownNPC.cs | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Items/Accessories/HowlsHeart.cs b/Items/Accessories/HowlsHeart.cs index 6c7bd96e6d..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; diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 6525f9b11d..20aa4bf37e 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; @@ -20,7 +18,6 @@ using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using CalamityMod.Projectiles.Typeless; -using CalamityMod.Rarities; using CalamityMod.UI; using CalamityMod.UI.CalamitasEnchants; using CalamityMod.World; diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index f716237859..24a9cd1f41 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1181,7 +1181,7 @@ 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: 50), Condition.Hardmode, Condition.InHallow) .AddWithCustomValue(ItemID.SpectreStaff, Item.buyPrice(gold: 25), Condition.DownedGolem) From e5893f5d1537e21803243e6c4e84526074049f05 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 17 Apr 2024 22:26:26 -0400 Subject: [PATCH 24/43] Cobalt and Mythril weapons now produce particle effects on affected enemies --- CalPlayer/CalamityPlayerOnHit.cs | 4 +++ Items/CalamityGlobalItemTooltip.cs | 4 +-- NPCs/CalamityGlobalNPC.cs | 32 ++++++++++++++++++++ Particles/StatDownArrow.cs | 47 +++++++++++++++++++++++++++++ Particles/StatDownArrow.png | Bin 0 -> 236 bytes 5 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 Particles/StatDownArrow.cs create mode 100644 Particles/StatDownArrow.png 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/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/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index e90c4502bf..1621ac6548 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -224,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; @@ -435,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; @@ -6355,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) { 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 0000000000000000000000000000000000000000..1119f1534b9d7d3d72b83add50282b7137d450dd GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^QXtI11|(N{`J4k%jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!A4IP#}E(iw^I_i4k&QA-Ch^+-M(>dX7a@P zn0T)Zk{5p`JBF;kvO&hZS3qgks}0^>D|cUyeEfVyZ&FXH-bu^p7QGkkGG^3XFj#-b zeXhf5<<2$Q^~xy=8m(IEjcm-F-`{tNe*fLQ=ZszUwS{``@{cGOujVxF7i_j_OFQ%@ dZHtuRok@F44n>@+t^qoR!PC{xWt~$(698tbSHA!N literal 0 HcmV?d00001 From c595d7f29cd863720ba8908ae52305481dd9ce1e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 17 Apr 2024 22:41:22 -0400 Subject: [PATCH 25/43] Alpha Virus uses Purple rarity due to tiershift --- Items/Weapons/Rogue/AlphaVirus.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Rogue/AlphaVirus.cs b/Items/Weapons/Rogue/AlphaVirus.cs index 6345708e5c..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.RarityTurquoiseBuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 4f; - Item.rare = ModContent.RarityType(); + Item.rare = ItemRarityID.Purple; Item.DamageType = RogueDamageClass.Instance; } From 9f4a173288228e9982da07a63abae13a14ab56ce Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 17 Apr 2024 23:36:06 -0400 Subject: [PATCH 26/43] Meld Blob and Meld Construct use Red rarity --- Items/Materials/MeldBlob.cs | 2 +- Items/Materials/MeldConstruct.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() { From b05ef59ed5a5cdd64e6f4d23a864b3ef4a158189 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 23:18:44 -0400 Subject: [PATCH 27/43] Fix inconsistent sell prices of items pointed out by YuH --- Items/Tools/SkyfringePickaxe.cs | 2 +- Items/Weapons/Magic/AstralachneaStaff.cs | 2 +- Items/Weapons/Magic/Genisis.cs | 2 +- Items/Weapons/Magic/InfernalRift.cs | 2 +- Items/Weapons/Ranged/TerraFlameburster.cs | 2 +- Items/Weapons/Rogue/AshenStalactite.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Items/Tools/SkyfringePickaxe.cs b/Items/Tools/SkyfringePickaxe.cs index 687a330a7f..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.RarityGreenBuyPrice; + Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.UseSound = SoundID.Item1; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/AstralachneaStaff.cs b/Items/Weapons/Magic/AstralachneaStaff.cs index 3474bab9e3..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.RarityYellowBuyPrice; + Item.value = CalamityGlobalItem.RarityLimeBuyPrice; Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item46; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/Genisis.cs b/Items/Weapons/Magic/Genisis.cs index 43b0f727b2..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.RarityRedBuyPrice; + Item.value = CalamityGlobalItem.RarityPurpleBuyPrice; Item.rare = ItemRarityID.Purple; Item.UseSound = SoundID.Item33; Item.autoReuse = true; diff --git a/Items/Weapons/Magic/InfernalRift.cs b/Items/Weapons/Magic/InfernalRift.cs index dec5de750d..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.RarityLightPurpleBuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item9; Item.autoReuse = true; diff --git a/Items/Weapons/Ranged/TerraFlameburster.cs b/Items/Weapons/Ranged/TerraFlameburster.cs index 46409dd93b..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.RarityCyanBuyPrice; + Item.value = CalamityGlobalItem.RarityYellowBuyPrice; Item.rare = ItemRarityID.Yellow; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/AshenStalactite.cs b/Items/Weapons/Rogue/AshenStalactite.cs index 5ab580602f..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.RarityBlueBuyPrice; + 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; From 28aff12c78ed339cb8f1f7fff89ffbcd2fa73d8f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 23:40:35 -0400 Subject: [PATCH 28/43] Reinstate two deleted helper functions Catalyst relied on for item pricing --- Items/CalamityGlobalItem.cs | 57 ++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 20aa4bf37e..e18903153b 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -18,6 +18,7 @@ using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; using CalamityMod.Projectiles.Typeless; +using CalamityMod.Rarities; using CalamityMod.UI; using CalamityMod.UI.CalamitasEnchants; using CalamityMod.World; @@ -1846,7 +1847,7 @@ namespace CalamityMod.Items } #endregion - #region Money From Rarity + #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); @@ -1867,6 +1868,27 @@ namespace CalamityMod.Items 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. + 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; @@ -1888,5 +1910,38 @@ namespace CalamityMod.Items 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) + { + // 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()) + return RarityPureGreenBuyPrice; + if (rarity == ModContent.RarityType()) + return RarityDarkBlueBuyPrice; + if (rarity == ModContent.RarityType()) + return RarityVioletBuyPrice; + if (rarity == ModContent.RarityType()) + return RarityHotPinkBuyPrice; + + // Return 0 if it's not a progression based or other mod's rarity + return 0; + } + + public static int GetBuyPrice(Item item) => GetBuyPrice(item.rare); + #endregion } } From 38d62c0ceeff697fdb7f794e0e1f137e82800947 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Wed, 17 Apr 2024 23:45:05 -0400 Subject: [PATCH 29/43] Add Calamity Red to compat function (It is a real rarity, I swear) --- Items/CalamityGlobalItem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index e18903153b..dda7362f55 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1936,6 +1936,8 @@ 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; From 2824e1258dc948d1997017d507bf493cbb3b16fe Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 18 Apr 2024 00:00:32 -0400 Subject: [PATCH 30/43] Wormhole potion sell price increased from 25 copper to 5 silver to prevent money laundering. --- NPCs/CalamityGlobalTownNPC.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 24a9cd1f41..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) From 1e287be479118580d63b5e3ed507421c04b0a1e1 Mon Sep 17 00:00:00 2001 From: Memes Date: Thu, 18 Apr 2024 15:37:45 +0200 Subject: [PATCH 31/43] Terra Flameburster uses BaseGunHoldoutProjectile --- .../Ranged/TerraFlamebursterHouldout.cs | 141 ++++++------------ 1 file changed, 48 insertions(+), 93 deletions(-) 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; } } From 28db089001e40f35f88115de85004127e836ecbb Mon Sep 17 00:00:00 2001 From: Memes Date: Thu, 18 Apr 2024 15:48:32 +0200 Subject: [PATCH 32/43] Elemental Eruption uses BaseGunHoldoutProjectile --- .../Ranged/ElementalEruptionHouldout.cs | 166 ++++++------------ 1 file changed, 58 insertions(+), 108 deletions(-) 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; } } From c7dbe644011b1c9e55dcae9004978b35fe914bab Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 18 Apr 2024 10:50:33 -0400 Subject: [PATCH 33/43] Bladedge Railbow borrows other arrows in GFB --- Items/Weapons/Ranged/BladedgeRailbow.cs | 101 +++++++++++++++++- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 4 +- 2 files changed, 100 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Ranged/BladedgeRailbow.cs b/Items/Weapons/Ranged/BladedgeRailbow.cs index 8c5d862d64..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; @@ -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/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index eae188eef9..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: { From 05310c5ccbea2f6ef064514797851709800c23b5 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Thu, 18 Apr 2024 16:45:48 -0500 Subject: [PATCH 34/43] 1 - Rev+ Master Queen Slime, Skeletron, and Wall of Flesh changes. 2 - Removed some pointless and confusing Anahita code. 3 - Lilies of Finality dust. 4 - A few tile lighting optimizations. --- NPCs/Leviathan/Anahita.cs | 44 +++++++------- .../Bosses/QueenSlimeAI.cs | 26 ++++++--- .../Bosses/SkeletronAI.cs | 57 ++++++++++++++----- .../Bosses/WallOfFleshAI.cs | 7 +++ Tiles/Crags/LiliesOfFinalityTile.cs | 13 +++++ Tiles/GiantPlanteraBulb.cs | 6 +- Tiles/Rubblemaker/Abyss/BulbTreeEcho.cs | 6 +- .../Rubblemaker/Abyss/SulphurPireCoralEcho.cs | 4 +- 8 files changed, 110 insertions(+), 53 deletions(-) diff --git a/NPCs/Leviathan/Anahita.cs b/NPCs/Leviathan/Anahita.cs index d5bae33c23..76e1d68e80 100644 --- a/NPCs/Leviathan/Anahita.cs +++ b/NPCs/Leviathan/Anahita.cs @@ -189,8 +189,6 @@ namespace CalamityMod.NPCs.Leviathan if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) bubbleVelocity *= 2f; - Vector2 vector = NPC.Center; - // Phases bool phase2 = lifeRatio < 0.7f; bool phase3 = lifeRatio < 0.4f; @@ -263,7 +261,7 @@ namespace CalamityMod.NPCs.Leviathan { if (NPC.ai[3] == 0f && NPC.localAI[1] == 0f && Main.netMode != NetmodeID.MultiplayerClient) { - int iceShieldSpawn = NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType(), NPC.whoAmI); + int iceShieldSpawn = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); NPC.ai[3] = iceShieldSpawn + 1; NPC.localAI[1] = -1f; NPC.localAI[2] += 1f; @@ -313,8 +311,8 @@ namespace CalamityMod.NPCs.Leviathan // Avoid cheap bullshit NPC.damage = 0; - ChargeRotation(player, vector); - ChargeLocation(player, vector, false, true); + ChargeRotation(player); + ChargeLocation(player, false, true); if (NPC.alpha < 255) NPC.alpha += 3; @@ -361,11 +359,11 @@ namespace CalamityMod.NPCs.Leviathan NPC.timeLeft = 1800; // Despawn - if (!player.active || player.dead || Vector2.Distance(player.Center, vector) > 5600f) + if (!player.active || player.dead || Vector2.Distance(player.Center, NPC.Center) > 5600f) { NPC.TargetClosest(false); player = Main.player[NPC.target]; - if (!player.active || player.dead || Vector2.Distance(player.Center, vector) > 5600f) + if (!player.active || player.dead || Vector2.Distance(player.Center, NPC.Center) > 5600f) { NPC.rotation = NPC.velocity.X * 0.02f; @@ -404,7 +402,7 @@ namespace CalamityMod.NPCs.Leviathan // Rotation when charging if (NPC.ai[0] > 2f) - ChargeRotation(player, vector); + ChargeRotation(player); // Phase switch if (NPC.ai[0] == -1f) @@ -419,12 +417,12 @@ namespace CalamityMod.NPCs.Leviathan if (NPC.ai[0] != 3f) { forceChargeFrames = false; - float playerLocation = vector.X - player.Center.X; + float playerLocation = NPC.Center.X - player.Center.X; NPC.direction = playerLocation < 0f ? 1 : -1; NPC.spriteDirection = NPC.direction; } else - ChargeRotation(player, vector); + ChargeRotation(player); NPC.TargetClosest(); NPC.ai[1] = 0f; @@ -513,7 +511,7 @@ namespace CalamityMod.NPCs.Leviathan int activePlayerAmt = 0; for (int i = 0; i < 255; i++) { - if (Main.player[i].active && !Main.player[i].dead && (vector - Main.player[i].Center).Length() < 1000f) + if (Main.player[i].active && !Main.player[i].dead && (NPC.Center - Main.player[i].Center).Length() < 1000f) activePlayerAmt++; } NPC.ai[1] += activePlayerAmt / 2; @@ -618,7 +616,7 @@ namespace CalamityMod.NPCs.Leviathan if (Main.getGoodWorld) velocity *= 1.15f; - Vector2 chargeSetupLocation = Vector2.Normalize(targetVector - vector - NPC.velocity) * velocity; + Vector2 chargeSetupLocation = Vector2.Normalize(targetVector - NPC.Center - NPC.velocity) * velocity; float acceleration = death ? 0.28f : 0.25f; acceleration += 0.2f * enrageScale; @@ -719,7 +717,7 @@ namespace CalamityMod.NPCs.Leviathan if (Math.Abs(NPC.Center.X - player.Center.X) > 10f) { - float playerLocation = vector.X - player.Center.X; + float playerLocation = NPC.Center.X - player.Center.X; NPC.direction = playerLocation < 0f ? 1 : -1; NPC.spriteDirection = NPC.direction; } @@ -743,7 +741,7 @@ namespace CalamityMod.NPCs.Leviathan // Avoid cheap bullshit NPC.damage = 0; - ChargeLocation(player, vector, leviAlive && !phase4, revenge); + ChargeLocation(player, leviAlive && !phase4, revenge); NPC.ai[1] += 1f; @@ -765,11 +763,11 @@ namespace CalamityMod.NPCs.Leviathan if (Main.getGoodWorld) chargeVelocity *= 1.15f; - NPC.velocity = Vector2.Normalize(player.Center - vector) * chargeVelocity; + NPC.velocity = Vector2.Normalize(player.Center - NPC.Center) * chargeVelocity; NPC.rotation = (float)Math.Atan2(NPC.velocity.Y, NPC.velocity.X); // Direction - int chargeDirection = Math.Sign(player.Center.X - vector.X); + int chargeDirection = Math.Sign(player.Center.X - NPC.Center.X); if (chargeDirection != 0) { NPC.direction = chargeDirection; @@ -808,7 +806,7 @@ namespace CalamityMod.NPCs.Leviathan int dustAmt = 7; for (int j = 0; j < dustAmt; j++) { - Vector2 arg_E1C_0 = (Vector2.Normalize(NPC.velocity) * new Vector2((NPC.width + 50) / 2f, NPC.height) * 0.75f).RotatedBy((j - (dustAmt / 2 - 1)) * MathHelper.Pi / dustAmt) + vector; + Vector2 arg_E1C_0 = (Vector2.Normalize(NPC.velocity) * new Vector2((NPC.width + 50) / 2f, NPC.height) * 0.75f).RotatedBy((j - (dustAmt / 2 - 1)) * MathHelper.Pi / dustAmt) + NPC.Center; Vector2 vector4 = ((float)(Main.rand.NextDouble() * MathHelper.Pi) - MathHelper.PiOver2).ToRotationVector2() * Main.rand.Next(3, 8); int waterDust = Dust.NewDust(arg_E1C_0 + vector4, 0, 0, DustID.DungeonWater, vector4.X * 2f, vector4.Y * 2f, 100, default, 1.4f); Main.dust[waterDust].noGravity = true; @@ -829,9 +827,9 @@ namespace CalamityMod.NPCs.Leviathan } // Rotation when charging - private void ChargeRotation(Player player, Vector2 vector) + private void ChargeRotation(Player player) { - float playerDirection = (float)Math.Atan2(player.Center.Y - vector.Y, player.Center.X - vector.X); + float playerDirection = (float)Math.Atan2(player.Center.Y - NPC.Center.Y, player.Center.X - NPC.Center.X); if (NPC.spriteDirection == 1) playerDirection += MathHelper.Pi; if (playerDirection < 0f) @@ -848,15 +846,15 @@ namespace CalamityMod.NPCs.Leviathan } // Move to charge location - private void ChargeLocation(Player player, Vector2 vector, bool leviAlive, bool revenge) + private void ChargeLocation(Player player, bool leviAlive, bool revenge) { float distance = (leviAlive ? 600f : 500f) * NPC.scale; // Velocity if (NPC.localAI[0] == 0f) - NPC.localAI[0] = (int)distance * Math.Sign((vector - player.Center).X); + NPC.localAI[0] = (int)distance * Math.Sign((NPC.Center - player.Center).X); - Vector2 chargeSetupLocation = Vector2.Normalize(player.Center + new Vector2(NPC.localAI[0], -distance) - vector - NPC.velocity) * 12f; + Vector2 chargeSetupLocation = Vector2.Normalize(player.Center + new Vector2(NPC.localAI[0], -distance) - NPC.Center - NPC.velocity) * 12f; float acceleration = revenge ? 0.75f : 0.5f; if (Main.getGoodWorld) acceleration *= 1.15f; @@ -864,7 +862,7 @@ namespace CalamityMod.NPCs.Leviathan NPC.SimpleFlyMovement(chargeSetupLocation, acceleration); // Rotation - int chargeDirection = Math.Sign(player.Center.X - vector.X); + int chargeDirection = Math.Sign(player.Center.X - NPC.Center.X); if (chargeDirection != 0) { if (NPC.ai[1] == 0f && chargeDirection != NPC.direction) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs index 3d6e175345..7b18458244 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/QueenSlimeAI.cs @@ -25,8 +25,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float slimeScale = 1f; bool teleported = false; bool phase2 = lifeRatio <= 0.5f; - bool phase3 = lifeRatio <= 0.4f; - bool phase4 = lifeRatio <= 0.2f; + bool phase3 = lifeRatio <= (masterMode ? 0.5f : 0.4f); + bool phase4 = lifeRatio <= (masterMode ? 0.5f : 0.2f); + bool phase5 = lifeRatio <= 0.25f && masterMode; // Spawn settings if (npc.localAI[0] == 0f) @@ -505,9 +506,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { Vector2 extraSmashPosition = npc.Bottom + Vector2.UnitX * 1000f; float expandDelay = 0f; - int maxSmashes = 11; + int maxSmashes = death ? 23 : 17; int maxSmashesPerSide = (maxSmashes - 1) / 2; - float maxExpandDelay = 20f * maxSmashesPerSide; + float maxExpandDelay = (death ? 10f : 15f) * maxSmashesPerSide; for (int i = 0; i < maxSmashes; i++) { expandDelay = MathHelper.Lerp(0f, maxExpandDelay, Math.Abs(i - maxSmashesPerSide) / (float)maxSmashesPerSide); @@ -533,6 +534,17 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses Vector2 perturbedSpeed = destination.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center, perturbedSpeed, type, damage, 0f, Main.myPlayer, 0f, -2f); } + + if (phase5) + { + numProj = 15; + destination *= 0.75f; + for (int i = 0; i < numProj; i++) + { + Vector2 perturbedSpeed = destination.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); + Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center, perturbedSpeed, type, damage, 0f, Main.myPlayer, 0f, -2f); + } + } } } @@ -692,7 +704,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { int numGelProjectiles = phase4 ? Main.rand.Next(9, 12) : phase2 ? Main.rand.Next(6, 9) : 12; - if (masterMode) + if (phase5) numGelProjectiles += 6; if (Main.getGoodWorld) numGelProjectiles = 20; @@ -816,7 +828,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Spawn small slimes // Don't spawn any slimes in final phase - if (npc.life <= 0 || phase4) + if (npc.life <= 0 || (phase4 && !masterMode)) return false; if (Main.netMode == NetmodeID.MultiplayerClient) @@ -834,7 +846,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float slimeSpawnHealthGateValue = CalamityWorld.LegendaryMode ? 0.01f : phase3 ? 0.04f : phase2 ? 0.03f : 0.025f; if (masterMode) - slimeSpawnHealthGateValue *= 0.8f; + slimeSpawnHealthGateValue *= (phase2 ? 0.5f : 0.8f); int slimeSpawnThreshold = (int)(npc.lifeMax * slimeSpawnHealthGateValue); diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs index 58889d282c..55d241f2d3 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs @@ -16,6 +16,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses public const float HandSlapGateValue = 300f; public const float HandSlapTelegraphTime = 120f; public const float HandSwipeDistance = 960f; // 60 tiles + public const float HandSwipeDistance_Master = 1280f; // 80 tiles public static bool BuffedSkeletronAI(NPC npc, Mod mod) { @@ -87,13 +88,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses void SpawnHands() { int skeletronHand = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.SkeletronHand, npc.whoAmI); - Main.npc[skeletronHand].ai[0] = -1f; + Main.npc[skeletronHand].ai[0] = masterMode ? -1.3f : -1f; Main.npc[skeletronHand].ai[1] = npc.whoAmI; Main.npc[skeletronHand].target = npc.target; Main.npc[skeletronHand].netUpdate = true; skeletronHand = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.SkeletronHand, npc.whoAmI); - Main.npc[skeletronHand].ai[0] = 1f; + Main.npc[skeletronHand].ai[0] = masterMode ? 1.3f : 1f; Main.npc[skeletronHand].ai[1] = npc.whoAmI; Main.npc[skeletronHand].ai[3] = 150f; Main.npc[skeletronHand].Calamity().newAI[2] = 150f; @@ -104,7 +105,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (death) { skeletronHand = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.SkeletronHand, npc.whoAmI); - Main.npc[skeletronHand].ai[0] = -1f; + Main.npc[skeletronHand].ai[0] = masterMode ? -1.3f : -1f; Main.npc[skeletronHand].Calamity().newAI[0] = -1f; Main.npc[skeletronHand].ai[1] = npc.whoAmI; Main.npc[skeletronHand].ai[3] = respawnHands ? -75f : 0f; @@ -113,7 +114,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses Main.npc[skeletronHand].netUpdate = true; skeletronHand = NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.Center.Y, NPCID.SkeletronHand, npc.whoAmI); - Main.npc[skeletronHand].ai[0] = 1f; + Main.npc[skeletronHand].ai[0] = masterMode ? 1.3f : 1f; Main.npc[skeletronHand].Calamity().newAI[0] = -1f; Main.npc[skeletronHand].ai[1] = npc.whoAmI; Main.npc[skeletronHand].ai[3] = respawnHands ? 75f : 150f; @@ -401,6 +402,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses int skullProjectile = Projectile.NewProjectile(npc.GetSource_FromAI(), skullFiringPos, skullProjDirection, type, damage, 0f, Main.myPlayer, -1f); Main.projectile[skullProjectile].timeLeft = 600; + if (masterMode) + { + skullProjDirection = new Vector2(skullProjTargetX, skullProjTargetY).SafeNormalize(Vector2.UnitY); + skullProjDirection *= skullProjSpeed * 2f; + int skullProjectile2 = Projectile.NewProjectile(npc.GetSource_FromAI(), skullFiringPos, skullProjDirection, type, damage, 0f, Main.myPlayer, -2f); + Main.projectile[skullProjectile2].timeLeft = 600; + } npc.netUpdate = true; } @@ -414,7 +422,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.damage = 0; calamityGlobalNPC.newAI[1] += 1f; - float chargePhaseChangeRateBoost = phase5 ? (death ? 24f : 14f) : phase4 ? (death ? 8f : 6f) : (4f * ((1f - lifeRatio) / (1f - phase4LifeRatio))); + float chargePhaseChangeRateBoost = phase5 ? (death ? 24f : 14f) : phase4 ? (death ? 8f : 6f) : masterMode ? (death ? 5f : 4f) : (4f * ((1f - lifeRatio) / (1f - phase4LifeRatio))); float chargePhaseChangeRate = chargePhaseChangeRateBoost + 1f; npc.ai[2] += chargePhaseChangeRate; npc.localAI[1] += chargePhaseChangeRate; @@ -422,12 +430,15 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.localAI[1] > chargePhaseGateValue) npc.localAI[1] = chargePhaseGateValue; - float forcedMoveAwayTime = death ? 30f : 60f; + float forcedMoveAwayTime = death ? 30f : 45f; + if (masterMode) + forcedMoveAwayTime *= 0.5f; + float canChargeDistance = phase3 ? 640f : 320f; // 20 tile distance, 40 tile distance in phase 3 bool hasMovedForcedDistance = npc.localAI[2] >= forcedMoveAwayTime; bool canCharge = Vector2.Distance(Main.player[npc.target].Center, npc.Center) >= canChargeDistance; bool charge = npc.ai[2] >= chargePhaseGateValue && canCharge; - bool forceCharge = npc.ai[2] > chargePhaseGateValue + 180f * chargePhaseChangeRate; + bool forceCharge = npc.ai[2] > chargePhaseGateValue + 120f * chargePhaseChangeRate; if (charge || forceCharge) { npc.localAI[2] += 1f; @@ -612,14 +623,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Shoot shadowflames (giant cursed skull projectiles) while charging in phase 4 if (phase4 && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) { - float shadowFlameGateValue = death ? 30f : 45f; + float shadowFlameGateValue = 20f; int shadowFlameLimit = death ? 3 : 2; if (calamityGlobalNPC.newAI[1] % shadowFlameGateValue == 0f && calamityGlobalNPC.newAI[1] < shadowFlameGateValue * shadowFlameLimit) { // Spawn projectiles if (Main.netMode != NetmodeID.MultiplayerClient) { - if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 320f) + if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 240f) { float shadowFlameProjectileSpeed = death ? 5f : 4f; if (masterMode) @@ -647,7 +658,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } bool dontGoMach10 = false; - float dashPhaseTime = 300f; + float dashPhaseTime = masterMode ? 180f : 300f; if (npc.ai[2] >= dashPhaseTime) { if (Main.getGoodWorld) @@ -692,6 +703,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses Vector2 perturbedSpeed = initialProjectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, k / (float)(chargeSkullAmt - 1))); int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center - perturbedSpeed.SafeNormalize(Vector2.UnitY) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer, -1f); Main.projectile[proj].timeLeft = 600; + if (masterMode) + { + int proj2 = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center - perturbedSpeed.SafeNormalize(Vector2.UnitY) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer, -2f); + Main.projectile[proj2].timeLeft = 600; + } } } } @@ -751,7 +767,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.ai[2] < altDashPhaseTime) { if (npc.Center.Distance(Main.player[npc.target].Center) > altDashStopDistance || npc.ai[2] == 1f + phaseChangeRateBoost) - npc.velocity = headSpinVelocity.SafeNormalize(Vector2.UnitY) * headSpinVelocityMult + npc.Center.DirectionTo(Main.player[npc.target].Center) * 2f; + npc.velocity = headSpinVelocity.SafeNormalize(Vector2.UnitY) * headSpinVelocityMult + npc.Center.DirectionTo(Main.player[npc.target].Center + (masterMode ? Main.player[npc.target].velocity * 20f : Vector2.Zero)) * 2f; else npc.ai[2] = altDashPhaseTime; } @@ -844,6 +860,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float yMultiplier = 1f; if (calamityGlobalNPC.newAI[0] != 0f) yMultiplier = calamityGlobalNPC.newAI[0]; + if (masterMode) + yMultiplier *= 1.3f; // Inflict 0 damage for 3 seconds after spawning if (calamityGlobalNPC.newAI[1] < 180f) @@ -906,10 +924,19 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float handSwipeVelocity = MathHelper.Lerp(16f, death ? 24f : 20f, 1f - skeletronLifeRatio); float deceleration = Main.getGoodWorld ? 0.78f : masterMode ? 0.82f : 0.86f; - float handSwipeDuration = HandSwipeDistance / handSwipeVelocity; + if (masterMode) + { + velocityMultiplier *= 0.75f; + velocityIncrement *= 1.5f; + handSwipeVelocity *= 1.35f; + deceleration *= 0.75f; + } + + float handSwipeDistance = masterMode ? HandSwipeDistance_Master : HandSwipeDistance; + float handSwipeDuration = handSwipeDistance / handSwipeVelocity; float slapGateValue = HandSlapGateValue; - float slapTimerIncrement = MathHelper.Lerp(1f, 2f, 1f - skeletronLifeRatio); + float slapTimerIncrement = MathHelper.Lerp(masterMode ? 1.5f : 1f, masterMode ? 3f : 2f, 1f - skeletronLifeRatio); if (phase3) slapTimerIncrement *= (death ? 2.5f : 2f); else if (phase2) @@ -1073,7 +1100,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.damage = npc.defDamage; npc.ai[3] += 1f; - if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance || cancelSlap) + if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > handSwipeDistance || cancelSlap) { npc.ai[2] = 3f; npc.ai[3] = 0f; @@ -1133,7 +1160,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.damage = npc.defDamage; npc.ai[3] += 1f; - if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance || cancelSlap) + if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > handSwipeDistance || cancelSlap) { npc.ai[2] = 0f; npc.ai[3] = 0f; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/WallOfFleshAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/WallOfFleshAI.cs index 0226427939..207c528af6 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/WallOfFleshAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/WallOfFleshAI.cs @@ -606,6 +606,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.SimpleFlyMovement(idealVelocity, 0.36f); } + if (Math.Abs(npc.Center.X - Main.player[npc.target].Center.X) > 10f) + { + float playerLocation = npc.Center.X - Main.player[npc.target].Center.X; + npc.direction = playerLocation < 0f ? 1 : -1; + npc.spriteDirection = npc.direction; + } + if (npc.ai[1] == 0f) { npc.ai[1] = 1f; diff --git a/Tiles/Crags/LiliesOfFinalityTile.cs b/Tiles/Crags/LiliesOfFinalityTile.cs index c244d351c1..ecba022dc7 100644 --- a/Tiles/Crags/LiliesOfFinalityTile.cs +++ b/Tiles/Crags/LiliesOfFinalityTile.cs @@ -26,8 +26,21 @@ namespace CalamityMod.Tiles.Crags RegisterItemDrop(ModContent.ItemType()); FlexibleTileWand.RubblePlacementLarge.AddVariations(ModContent.ItemType(), Type, 0); HitSound = new("CalamityMod/Sounds/Custom/LiliesOfFinalityTileHitSound"); + + DustType = DustID.GemDiamond; } public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) => r = g = b = 0.5f; + + public override bool CreateDust(int i, int j, ref int type) + { + type = !WorldGen.genRand.NextBool(3) ? DustID.SpectreStaff : DustID.GemDiamond; + return true; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 5 : 50; + } } } diff --git a/Tiles/GiantPlanteraBulb.cs b/Tiles/GiantPlanteraBulb.cs index 4ab0491284..f2c9e3c6d7 100644 --- a/Tiles/GiantPlanteraBulb.cs +++ b/Tiles/GiantPlanteraBulb.cs @@ -195,9 +195,9 @@ namespace CalamityMod.Tiles { if (Main.hardMode) { - r = 243f / 500f; // ~123 - g = 82f / 500f; // ~41 - b = 171f / 500f; // ~87 + r = 0.486f; + g = 0.164f; + b = 0.342f; } } diff --git a/Tiles/Rubblemaker/Abyss/BulbTreeEcho.cs b/Tiles/Rubblemaker/Abyss/BulbTreeEcho.cs index 075a48981a..5c15350845 100644 --- a/Tiles/Rubblemaker/Abyss/BulbTreeEcho.cs +++ b/Tiles/Rubblemaker/Abyss/BulbTreeEcho.cs @@ -41,9 +41,9 @@ namespace CalamityMod.Tiles.Rubblemaker.Abyss public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) { - r = 49f / 500f; - g = 159f / 500f; - b = 242f / 500f; + r = 0.098f; + g = 0.318f; + b = 0.484f; } public override void NumDust(int i, int j, bool fail, ref int num) diff --git a/Tiles/Rubblemaker/Abyss/SulphurPireCoralEcho.cs b/Tiles/Rubblemaker/Abyss/SulphurPireCoralEcho.cs index 159376c088..b4ba9566c8 100644 --- a/Tiles/Rubblemaker/Abyss/SulphurPireCoralEcho.cs +++ b/Tiles/Rubblemaker/Abyss/SulphurPireCoralEcho.cs @@ -40,8 +40,8 @@ namespace CalamityMod.Tiles.Rubblemaker.Abyss public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) { - r = 230f / 500f; - g = 255f / 500f; + r = 0.46f; + g = 0.51f; b = 0f; } From 953169854cabbe88a64e5011abd8b7bd84d2de93 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 18 Apr 2024 18:51:34 -0400 Subject: [PATCH 35/43] I should prolly make this not a fixed value lol Also removed PhantasmArrow because it bugs out if you don't give it a target, and made some arrows have less velocity --- Items/Weapons/Ranged/BladedgeRailbow.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/BladedgeRailbow.cs b/Items/Weapons/Ranged/BladedgeRailbow.cs index 33fd07ef90..4aafa47753 100644 --- a/Items/Weapons/Ranged/BladedgeRailbow.cs +++ b/Items/Weapons/Ranged/BladedgeRailbow.cs @@ -38,7 +38,6 @@ namespace CalamityMod.Items.Weapons.Ranged ProjectileID.Hellwing, ProjectileID.FrostArrow, ProjectileID.BoneArrow, - ProjectileID.PhantasmArrow, ProjectileID.DD2PhoenixBowShot, ProjectileID.PulseBolt, ProjectileID.ShadowFlameArrow, @@ -143,13 +142,16 @@ namespace CalamityMod.Items.Weapons.Ranged int projType; if (Main.zenithWorld) - projType = arrowArr[Main.rand.Next(0, 67)]; + projType = arrowArr[Main.rand.Next(0, arrowArr.Length)]; 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); + // Now for the special conditions to fix stuff... if (projectile.WithinBounds(Main.maxProjectiles) && (projType == ProjectileID.Leaf || projType == ModContent.ProjectileType())) Main.projectile[projectile].DamageType = DamageClass.Ranged; + if (projType == ModContent.ProjectileType() || projType == ModContent.ProjectileType() || projType == ModContent.ProjectileType()) + Main.projectile[projectile].velocity /= 2; } return false; } From bcb6493a19f69024698104ee83f2c7fdc9f25b18 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Thu, 18 Apr 2024 19:51:08 -0700 Subject: [PATCH 36/43] fixed flight bar error? also bee mount support --- UI/FlightBar/FlightBar.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/UI/FlightBar/FlightBar.cs b/UI/FlightBar/FlightBar.cs index e02535a7dd..40c5d6bf8c 100644 --- a/UI/FlightBar/FlightBar.cs +++ b/UI/FlightBar/FlightBar.cs @@ -44,7 +44,7 @@ namespace CalamityMod.UI { Player player = modPlayer.Player; object result; - if (player.equippedWings != null && !player.mount.Active && player.wingTimeMax == 0 && modPlayer.Player.mount._data.flightTimeMax == 0) + if (player.equippedWings != null && player.wingTimeMax == 0 && !(player.mount.Active && player.mount._data.flightTimeMax > 0)) result = 0; if ((modPlayer.infiniteFlight || RidingInfiniteFlightMount(modPlayer.Player)) && completedAnimation) { @@ -52,8 +52,10 @@ namespace CalamityMod.UI } else { - 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; + bool ridingLimitedFlightMount = player.mount.Active && player.mount._data.flightTimeMax > 0; + + int currentFlight = ridingLimitedFlightMount ? player.mount._flyTime + (int)(player.mount._data.fatigueMax - player.mount._fatigue) : (int)player.wingTime; + int maxFlight = ridingLimitedFlightMount ? player.mount._data.flightTimeMax + (int)player.mount._data.fatigueMax : player.wingTimeMax; return (Math.Min(100f * currentFlight / maxFlight, 100f)).ToString("0.00"); // why the FUCK can wingtime be higher than max wingtime????????? } @@ -188,7 +190,9 @@ namespace CalamityMod.UI { float uiScale = Main.UIScale; Player player = modPlayer.Player; - 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????????? + float flightRatio = 1; + if (!modPlayer.infiniteFlight && !RidingInfiniteFlightMount(player)) + flightRatio = player.mount.Active && player.mount._data.flightTimeMax > 0 ? Math.Min((float)(player.mount._flyTime + (player.mount._data.fatigueMax - player.mount._fatigue)) / (player.mount._data.flightTimeMax + player.mount._data.fatigueMax), 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. From 1e8e60942037cdc0cf56d3cd2e6514eb34a37fea Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Fri, 19 Apr 2024 00:20:32 -0500 Subject: [PATCH 37/43] Crystal Heart Vodka <3 --- Items/Accessories/Vanity/CrystalHeartVodka.cs | 86 ++++++++++++++++++ .../Accessories/Vanity/CrystalHeartVodka.png | Bin 0 -> 1058 bytes Items/Accessories/Vanity/Fabsol_Back.png | Bin 0 -> 3614 bytes Items/Accessories/Vanity/Fabsol_Body.png | Bin 0 -> 3324 bytes Items/Accessories/Vanity/Fabsol_Head.png | Bin 0 -> 2011 bytes Items/Accessories/Vanity/Fabsol_Legs.png | Bin 0 -> 2688 bytes Items/Potions/Alcohol/FabsolsVodka.cs | 3 + Items/TreasureBags/MiscGrabBags/StarterBag.cs | 10 ++ .../Mods.CalamityMod.Items.Accessories.hjson | 5 + 9 files changed, 104 insertions(+) create mode 100644 Items/Accessories/Vanity/CrystalHeartVodka.cs create mode 100644 Items/Accessories/Vanity/CrystalHeartVodka.png create mode 100644 Items/Accessories/Vanity/Fabsol_Back.png create mode 100644 Items/Accessories/Vanity/Fabsol_Body.png create mode 100644 Items/Accessories/Vanity/Fabsol_Head.png create mode 100644 Items/Accessories/Vanity/Fabsol_Legs.png diff --git a/Items/Accessories/Vanity/CrystalHeartVodka.cs b/Items/Accessories/Vanity/CrystalHeartVodka.cs new file mode 100644 index 0000000000..880b01da73 --- /dev/null +++ b/Items/Accessories/Vanity/CrystalHeartVodka.cs @@ -0,0 +1,86 @@ +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Accessories.Vanity +{ + public class CrystalHeartVodka : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Accessories"; + + public override void Load() + { + if (Main.netMode != NetmodeID.Server) + { + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Head", EquipType.Head, this); + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Body", EquipType.Body, this); + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Legs", EquipType.Legs, this); + EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Accessories/Vanity/Fabsol_Back", EquipType.Back, this); + } + } + + public override void SetStaticDefaults() + { + if (Main.netMode == NetmodeID.Server) + return; + + int equipSlotHead = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Head); + ArmorIDs.Head.Sets.DrawHead[equipSlotHead] = false; + + int equipSlotBody = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Body); + ArmorIDs.Body.Sets.HidesTopSkin[equipSlotBody] = true; + ArmorIDs.Body.Sets.HidesArms[equipSlotBody] = true; + + int equipSlotLegs = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Legs); + ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlotLegs] = true; + } + + public override void SetDefaults() + { + Item.width = 22; + Item.height = 30; + Item.accessory = true; + + // Same as Fabsol's Vodka, due to the obtainment method being shimmering Fabsol's Vodka. + Item.value = Item.buyPrice(0, 2, 60, 0); + Item.rare = ItemRarityID.LightRed; + + Item.vanity = true; + Item.Calamity().devItem = true; + } + + public override void UpdateVanity(Player player) + { + player.GetModPlayer().vanityEquipped = true; + } + + public override void UpdateAccessory(Player player, bool hideVisual) + { + if (!hideVisual) + player.GetModPlayer().vanityEquipped = true; + } + } + + public class CrystalHeartVodkaPlayer : ModPlayer + { + public bool vanityEquipped = false; + + public override void ResetEffects() + { + vanityEquipped = false; + } + + public override void FrameEffects() + { + if (vanityEquipped) + { + Player.back = EquipLoader.GetEquipSlot(Mod, "CrystalHeartVodka", EquipType.Back); + Player.legs = EquipLoader.GetEquipSlot(Mod, "CrystalHeartVodka", EquipType.Legs); + Player.body = EquipLoader.GetEquipSlot(Mod, "CrystalHeartVodka", EquipType.Body); + Player.head = EquipLoader.GetEquipSlot(Mod, "CrystalHeartVodka", EquipType.Head); + + //Player.HideAccessories(); + } + } + } +} diff --git a/Items/Accessories/Vanity/CrystalHeartVodka.png b/Items/Accessories/Vanity/CrystalHeartVodka.png new file mode 100644 index 0000000000000000000000000000000000000000..d0faf459779b0cbfa545bbb25c50f01d2ad89d01 GIT binary patch literal 1058 zcmV+-1l{|IP)Px#1ZP1_K>z@;j|==^1poj8vPnciR9Hvdm|I8`Q5eT}z2qg7^^(b|n0ZM{6Eh5Z zDamdofn*vzNJdoNQlSh>dI%{$V|ygXCvE>TPBK&!RR4LzHrDH5g~b7N${`1dtDznzY#lMtekn{{+2F z*H}s%n@b_Kv(F)#b9{aCfDc$dY7Q3NZvlmvn6bprTF_r*5B5wbVUF&?FINH40G&^b zU^N*INCL$3KIVG#?ACXoE_fdg@>x8__W3;r-F`0td#%P{YR{k(>f@?9(0Yh{juIKn z=2TS!n`3-(&2qrHCJ90ccla9VdgliDKb+t$o^BxaN8xY zcAiiEgNtmynbZDsfVp>yZ>VK$42CG-=H8%tLI6mnq{17dh-P9f8I8$Qrh)YL(xZ)F zmKB?$^lX)_F^iavW(;VqjO}9kE{b5Szk6OOQj8yEfV{beDBla+MxcCa{vjs0e(ZC$$D59x@o&c@zWcEzP zR`7ZmXT0H?aNFgU|p6njG_Q{Ikl=+QCMi<-h4;-@galCK=!6R)zkuW`8(M@icAH& z`r_IReQl`cGQ`Jpj8Vv(UOpLhHPCDWt;000hUSV?A0O#mtY c000O800000007cclK=n!07*qoM6N<$f`-!c@c;k- literal 0 HcmV?d00001 diff --git a/Items/Accessories/Vanity/Fabsol_Back.png b/Items/Accessories/Vanity/Fabsol_Back.png new file mode 100644 index 0000000000000000000000000000000000000000..1563280bdc1ccc9b9a2cab6c5fccce61317f6287 GIT binary patch literal 3614 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 a?f)KXg^d*8H5|vZEztHDTx;YPr~VD?eQ=fl literal 0 HcmV?d00001 diff --git a/Items/Accessories/Vanity/Fabsol_Body.png b/Items/Accessories/Vanity/Fabsol_Body.png new file mode 100644 index 0000000000000000000000000000000000000000..d98fdec79c9e0742eef975ba24fe8b8602ea21e0 GIT binary patch literal 3324 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 literal 0 HcmV?d00001 diff --git a/Items/Accessories/Vanity/Fabsol_Head.png b/Items/Accessories/Vanity/Fabsol_Head.png new file mode 100644 index 0000000000000000000000000000000000000000..bf96b48a95cfebd2d77a4dba9c3c5c3bd8902e1a GIT binary patch literal 2011 zcmc&!eNd8j9H%R?3u=|EtPQ-Iz1d81+R=KU!>MR$X<3vhu(2TBMouw&NojUjo+*_U z8JDswM4j4B&4E6m$Egd$7hbe2(dwVt!A%4x>d0Ku1y@8?Ae&4Oz(LE$-R2#2)!^mfkmlH zo=rwQT;|ymDX%-tI@;#-Ita?QeVsa*lqGAjgv|XiZms68$*Mi5wdOUZwVTO<-N{tS z-XjD;DkCM6HEao&)Q4kbNV=q+*?N>fu}x^k?3SLf+_8}nNow6tb@fO3R>-358z&G@ zXZSA?ZseOMUS8wbbEd3A_7Z6Nduf~))k%h7GS?TMT?(DB>ah-_1BUpQI_y&y_zK%R zztr2zeG~&BoY~Y&FSE}2c-SQt`tfN^ zfwD|Uf5_|wUnHJ(;n2WE*e)6x=UVNW@jcn7++))QEvLJ8rK2O=Y*3P6GVEv?l4V;` z^qpPhFf^G*T>)B;ICpQ&zVhYLl8g!iqso9x^)DC&fHCAqOM;|A)~2hzVnNt*l#%fu zd@Wj9QaFk{&l34Tv_7SijksUl(JKaTh7+VEi5Wy)1U(G^=`HgvV6K`2o4rywiS)E~ zp&%gw=fU=O(O;gL@;3?vm7H5F(Je|8UhUxo*FRlMmyA{+i_y#mM1u!q`vhaX8nsx5 zcF}jo&R^a&!7$zy2`WWvHOhco0PKI6E*Utn;5XlRK-`tSsUKLkgx*C}5mp&;s(3-ILL=R2-7*2JiwREaTDSLaz3qz! zv)YM~n_?8(8m>Z^%MXXI{$EM2^TII}t>^;O9n>gqX&sW6h zB0})$o6Z!vd~^*z+x!#J6b%PxNjo5+vD~i(fLDB!=_)vjtPLt8shVfg!baOk$>?LU z=NvA{cEtL$k&LX_95{+>pu2|p!sw;oeTTJ~X{V}r z<%MG}$DkRt;50weq;l6+5i$y^c+$9?v6CN+Y;C${IaNt;%0WEtf5y}h@rU66T?CK= z?r94EAO~OMIujK#tEo81j*8=I328O_SXqYdQJ#gz5|Qv~zZP(%14Q74taI&kreStn zYM)ZGI}(2wbXbr8IxH~!z0E&;av*DEiJmP3;WbogNr(lDhFF_g2m7_0*5kFZlUq_W zN)0GC=4a=7yG>2#0@Ytb;~nF3|Buf|BUI6GUunr8uFS{$ydz)#`u5`nl$BrVV^%cc zyCIG_P!f&N5z^qBIFAf{zgq=$n`?%W(~G0AJAfU9*Sp)HZZ|OQSkk603_3&8pnLRo zE|c;8Rj(LdxyCJ6@Bcpr$mErpqmG4{Nk*EwkK|Oj{N%APMr0&nD_Fbk38<>WMNa); M!3TnB18F&b0-G7vEC2ui literal 0 HcmV?d00001 diff --git a/Items/Accessories/Vanity/Fabsol_Legs.png b/Items/Accessories/Vanity/Fabsol_Legs.png new file mode 100644 index 0000000000000000000000000000000000000000..1156798b6080a3165321b4543134ce57952f36ff GIT binary patch literal 2688 zcmY*a4OEi%8fQ1RJKJ1cwUw3DH3hBA)~hjf!0?(18u)cG=Vwl#naR`{Dk2W=wlvG7 zSQ09kpX4T~`91K~GGj{kh2LnFO+kVA0V)XY_3Y}o_kYg&{QvKH&Uv2a_j|swd~hB{ zyASS$Kp;jKPd7jCwt+wlBHn)we6iY0Y2fuvqMwH=r1s@uDfnYRM4v}PAa%JPY+QO5 z0@=M6t9~}aNo7dmY06IZD&(Yd-g5r-e9=ncZOH{ z$EJ*I^VH3>xubo4d$VtqTfR@HzarSxp`vb>SI7IrA6tk$77|w{(^3_pdsDx(aOYD? z`VwokI{FRn4~T);v=+tki&~L_vK8Rg@sWNh>1nzoG~cXGc>_Z!!&g(5kI!|*(PD&S`o?t zyTaW}8>lkY^{ultv8SHM;K|+EME=>@aHZEtr(jx8;`6%~UsD719$&%GOQT2NNAJW3e2?cnb zq5y?bCeBLbyL3*~1|1qHMR!G4 zXIxeh>|s*d#O#wQi$xCpPGM0P?e&}qGBH0EhW5>?V5CVm#oko^{PwkQUSDj-#HSr^ixocR+CLo=sDpx+3L(K zlb`X-w#`AyHTd;JQMy#<)@s<#!eoI$N@yxP%45cTTm~Nyq-Qp*#`duc>$x_mfMF-7 zHmvVptr@zKD*YcH$;mreF(VajTRZ(vG3_@tMeRj`{&xPyNpGw-DBum922$ZS4F`Bk zochpX9`VMc_m9+beJqR(4pjfBlRU%kO$CY{=pqPf0(b%Jo}r|!!U!7Bv%!inrjZ`XKGO$eR4tMzV$}`PnN_I~+VDdDFl}EzcL=wMDd5;x2?dM{u|Wk`WtDZWbN8aRbarh~Dt{CsMDMZGgMvUF+nlm%p8Xj^gO;qA5jq*E52}MfsZ- zwfG#u-JH4OcfRxIk~bZe)Wr50{<^`Dkhf7OFlBE_F}0bU2cY_~UfQ4b7h9z_dA>u0by_wn;vwE>p7-zwW| zco23mZC_W7ns(504|$b6>fE;3Q>xGdqT=*EqEwKk4Xjg_BsIp$TT|HFWXItc(w=N} zWH|fxabm|?;B4N#bt?|ehY`gg7#nN{bl_oDv6%WsXM{`&WK^psT6hg@g+(|(s{oD( zC8SD?(O5~tKKziKQ?RUi?g|grVISy1Io*Va^r%rHfi}43l*ISJHRFxx9$iU993EOw z)MmtKFLRSySM#daiHm%IY(72>1Wv)Ql)!iem56ou!d7l&(~4j|v3h?yjMD+)Dm2&( zVq(%?Es@s%a&TNO9E^cIDJ*J4#=e~lC$tF5_C^t)yVGZLpUbDrhXt~5dF5BqU z<(%@RRZ0w^H=pd{t0#UD1xDdD0|WXPaKMRw&gJWS9F@0_zH>siI=BhS+>flt;$DG* z8|uI3K5j86)Km*Ba$KEHoT5H0cuaX+tIv_((W?P1g^2avhFUv+<sBm$62qJ-9XxKxOzbEpIOWUs_@9#pT{?B2{K$EiSt~JxOwBMA?-L>=e|ao}1ME za-eR?C+ig!>{Qtp)4X}j zH0i(?-bcU@mY(pTcrxykx}{(X`M|>ULhoO&is4QoAY|on>=iq3XD-Ic+8u7Xs;5}=i}L}l=yYn z0sL4aO_K^ZJ^hzfGt;v*4=z2PaNq(nUEy)|UMaBVv2R6#uH zTM_e|8s^__=sv`1ZE*oOvyP34`)<_!9zb)~C`JZ)V3>G%|1dkN!@_akv%l@Ql;uz_ z>}Pq@H5_dvS6&}O*jJ_ua?&#$a-B!Fd`j@pNyl?KG@=S)luJ;KBnqaE^31X*r&Yf| zF)G3ZgeFfkJ+W+qRb9eT0MI^DWAOj|VvI*gg)`X#&Uz{3U>{3RF_~lib{-|L<>k7P zpbCVFFf(!wK*Bev4WfAMnSO=E0uUGOJ|@ZJO!ky(&h+Exd9q)tH}f>A>)M_D3yFA@ zEs|N4q+?}P{83owP2GE9eXsF+_elLmnW-N-f=TBw8DspMt$u?kIQpED*mER82*|2N z10<|f+H1?<`FZ2Hm{RyIIIv9mBqLTF)h&1d67x~?MGWEmdB}0_y*+39{qwgd!<@sp J)w)K|{{%hOPo4k( literal 0 HcmV?d00001 diff --git a/Items/Potions/Alcohol/FabsolsVodka.cs b/Items/Potions/Alcohol/FabsolsVodka.cs index 4f29ab4f10..4ca2edb060 100644 --- a/Items/Potions/Alcohol/FabsolsVodka.cs +++ b/Items/Potions/Alcohol/FabsolsVodka.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.Alcohol; +using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -9,9 +10,11 @@ namespace CalamityMod.Items.Potions.Alcohol public class FabsolsVodka : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Potions"; + public override void SetStaticDefaults() { Item.ResearchUnlockCount = 5; + ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); } public override void SetDefaults() diff --git a/Items/TreasureBags/MiscGrabBags/StarterBag.cs b/Items/TreasureBags/MiscGrabBags/StarterBag.cs index ef19efd695..54fe68cbde 100644 --- a/Items/TreasureBags/MiscGrabBags/StarterBag.cs +++ b/Items/TreasureBags/MiscGrabBags/StarterBag.cs @@ -119,6 +119,16 @@ namespace CalamityMod.Items.TreasureBags.MiscGrabBags } itemLoot.AddIf(getsSakuraFeather, ModContent.ItemType()); + + // Fabsol dev item + // Name specific: "Fabsol" or "Cirrus" + static bool getsCrystalHeartVodka(DropAttemptInfo info) + { + string playerName = info.player.name; + return playerName is "Fabsol" or "Cirrus"; + } + + itemLoot.AddIf(getsCrystalHeartVodka, ModContent.ItemType()); } } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index aee6c98250..52962371e9 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -2029,6 +2029,11 @@ AbandonedWulfrumHelmet: { ''' } +CrystalHeartVodka: { + DisplayName: Crystal Heart Vodka + Tooltip: "'Tastes like strawberry cream liqueur (and estrogen)'" +} + CocosFeather: { DisplayName: Coco's Feather Tooltip: "" From a46f4908c77eccc9faef2d5a14b665aef03ee928 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:41:47 -0700 Subject: [PATCH 38/43] shimmering vodka doesn't conserve its stack --- ILEditing/ILChangesLoading.cs | 1 + ILEditing/MechanicILChanges.cs | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index ee17c9dafe..2e597b395a 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -80,6 +80,7 @@ namespace CalamityMod.ILEditing On_NPC.Collision_DecideFallThroughPlatforms += EnableCalamityBossPlatformCollision; IL_Wiring.HitWireSingle += AddTwinklersToStatue; On_Player.UpdateItemDye += FindCalamityItemDyeShader; + On_Item.GetShimmered += ShimmerEffectEdits; // Mana Burn (Chaos Stone) and Chalice of the Blood God IL_Player.ApplyLifeAndOrMana += ManaSicknessAndChaliceBufferHeal; diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index de1419da6f..0e7d73a087 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -9,7 +9,9 @@ using CalamityMod.Events; using CalamityMod.FluidSimulation; using CalamityMod.ForegroundDrawing; using CalamityMod.Items.Accessories; +using CalamityMod.Items.Accessories.Vanity; using CalamityMod.Items.Dyes; +using CalamityMod.Items.Potions.Alcohol; using CalamityMod.NPCs; using CalamityMod.NPCs.Astral; using CalamityMod.NPCs.AstrumAureus; @@ -29,6 +31,7 @@ using ReLogic.Content; using Terraria; using Terraria.DataStructures; using Terraria.GameContent; +using Terraria.GameContent.Achievements; using Terraria.GameContent.Drawing; using Terraria.GameContent.Events; using Terraria.GameContent.Liquid; @@ -1361,5 +1364,34 @@ namespace CalamityMod.ILEditing // The next (untouched) instruction stores this value into Player.scope. } #endregion + + #region Shimmer effect edits + public static void ShimmerEffectEdits(Terraria.On_Item.orig_GetShimmered orig, Item self) + { + // Don't keep the original stack amount when shimmering Fabsol's Vodka into Crystal Heart Vodka + if (self.type == ModContent.ItemType()) + { + self.SetDefaults(ModContent.ItemType()); + self.shimmered = true; + self.shimmerWet = true; + self.wet = true; + self.velocity *= 0.1f; + if (Main.netMode == 0) + { + Item.ShimmerEffect(self.Center); + } + else + { + NetMessage.SendData(146, -1, -1, null, 0, (int)self.Center.X, (int)self.Center.Y); + NetMessage.SendData(145, -1, -1, null, self.whoAmI, 1f); + } + AchievementsHelper.NotifyProgressionEvent(27); + } + else + { + orig(self); + } + } + #endregion } } From dccc793214108199395f7e2bdf39c5ad4ec0d86e Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:50:29 -0700 Subject: [PATCH 39/43] godseeeeeeeeker (cryo slime bestiary fix) --- Localization/en-US/Mods.CalamityMod.Bestiary.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index 3f9f0ed6c4..8a8ccb1a7c 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -74,7 +74,7 @@ Cnidrion: Once trained to be the steeds of honored Ilmerian warriors, cnidrions GemCrawler: Relatives to the Ilmeran Sea's prismbacks. The aquatic lizards ended up in the wild after being taken in as pets, though without the proper nutrients to grow prisms on their back, many grew the next best thing– precious gems. BlightSlime: Slimes that have absorbed some of the blighted godly essence. Riddled with impurity, they are now more putrid flesh than gelatin and, having taken in such an amount that they seem ready to burst. Yet unlike most slimes which have relatively basic minds, these seem to be collecting mass with a purpose. Cryon: Archmage Permafrost went through great pains to not take part in combat himself, instead molding cryons to act as his personal guardians. Noticing the spread of godly essence just as many other creatures have, they have come out of stasis to combat any signs of it so that they may defend their master. -CryoSlime: Slimes enchanted by the Archmage, as a host to crystallize the frozen power of the tundra into a magical metal. He cast a spell to hide away most of his creations and research soon after leaving the Godseeeker's side, well aware that Yharim may attempt to exploit his previous work. +CryoSlime: Slimes enchanted by the Archmage, as a host to crystallize the frozen power of the tundra into a magical metal. He cast a spell to hide away most of his creations and research soon after leaving the Godseeker's side, well aware that Yharim may attempt to exploit his previous work. Eidolist: Once members of the dragon cult, they now beg the favor of a new master. They are able to live in the abyss indefinitely thanks to their wyrm-like form, allowing them to serve a new purpose. FearlessGoldfishWarrior: Though Goldfish thrive in their ponds and lakes, many take to land during storms to feed on the worms that have also surfaced. There are even accounts of aquatic warriors who carry daggers of shimmering gold, though most consider these tales far too fishy to be credible. Frogfish: Well-camouflaged and prepared to strike at any moment, Frogfish show that the ocean is rarely as serene as it seems. There are few places where one can find true peace here in the heart of what once was an empire unrivaled. From 3e3e083dea99a7606cca2476996d256a2eebf562 Mon Sep 17 00:00:00 2001 From: Memes Date: Fri, 19 Apr 2024 16:06:28 +0200 Subject: [PATCH 40/43] Arc Nova Diffuser uses BaseGunHoldoutProjectile. --- Projectiles/Ranged/ArcNovaDiffuserHoldout.cs | 112 +++++-------------- 1 file changed, 30 insertions(+), 82 deletions(-) diff --git a/Projectiles/Ranged/ArcNovaDiffuserHoldout.cs b/Projectiles/Ranged/ArcNovaDiffuserHoldout.cs index d92fd9ce8d..a7950c1d60 100644 --- a/Projectiles/Ranged/ArcNovaDiffuserHoldout.cs +++ b/Projectiles/Ranged/ArcNovaDiffuserHoldout.cs @@ -1,27 +1,26 @@ -using System; -using CalamityMod.Items.Weapons.Ranged; +using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Particles; +using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; using ReLogic.Utilities; using Terraria; using Terraria.Audio; -using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Ranged { - public class ArcNovaDiffuserHoldout : ModProjectile + public class ArcNovaDiffuserHoldout : BaseGunHoldoutProjectile { - // Take the name and texture from the weapon - public override LocalizedText DisplayName => CalamityUtils.GetItemName(); - public override string Texture => "CalamityMod/Items/Weapons/Ranged/ArcNovaDiffuser"; + public override int AssociatedItemID => ModContent.ItemType(); + public override Vector2 GunTipPosition => base.GunTipPosition - Vector2.UnitY.RotatedBy(Projectile.rotation) * 6f; + public override float MaxOffsetLengthFromArm => 10f; + public override float OffsetXUpwards => -5f; + public override float BaseOffsetY => -5f; + public override float OffsetYDownwards => 5f; public static int FramesPerLoad = 13; public static int MaxLoadableShots = 15; public static float BulletSpeed = 12f; - public int Time = 0; - - private Player Owner => Main.player[Projectile.owner]; public SlotId NovaChargeSlot; private ref float CurrentChargingFrames => ref Projectile.ai[0]; @@ -30,39 +29,25 @@ namespace CalamityMod.Projectiles.Ranged private bool ChargeLV1 => CurrentChargingFrames >= ArcNovaDiffuser.Charge1Frames; private bool ChargeLV2 => CurrentChargingFrames >= ArcNovaDiffuser.Charge2Frames; - public override void SetDefaults() + public override void KillHoldoutLogic() { - Projectile.width = 72; - Projectile.height = 38; - Projectile.friendly = true; - Projectile.tileCollide = false; - Projectile.DamageType = DamageClass.Ranged; - Projectile.ignoreWater = true; - } - - public override void AI() - { - Time++; - if (Time == 1) - Projectile.alpha = 255; - else - Projectile.alpha = 0; - - if (Owner.dead) // destroy the holdout if the player dies + if (HeldItem.type != Owner.ActiveItem().type || Owner is null || !Owner.active || Owner.CCed || Owner.dead || Owner.noItems) { Projectile.Kill(); - return; + Projectile.netUpdate = true; } + } - Vector2 armPosition = Owner.RotatedRelativePoint(Owner.MountedCenter, true); - Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.95f; - + public override void HoldoutAI() + { if (SoundEngine.TryGetActiveSound(NovaChargeSlot, out var ChargeSound) && ChargeSound.IsPlaying) ChargeSound.Position = Projectile.Center; // Fire if the owner stops channeling or otherwise cannot use the weapon. if (Owner.CantUseHoldout()) { + KeepRefreshingLifetime = false; + // Big Shot mode if (ChargeLV2) { @@ -77,16 +62,17 @@ namespace CalamityMod.Projectiles.Ranged Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * BulletSpeed; int charge2Damage = Projectile.damage * 20; float charge2KB = Projectile.knockBack * 3f; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, shootVelocity, ModContent.ProjectileType(), charge2Damage, charge2KB, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, shootVelocity, ModContent.ProjectileType(), charge2Damage, charge2KB, Projectile.owner); Owner.Calamity().GeneralScreenShakePower = 6.5f; for (int i = 0; i <= 25; i++) { - Dust dust = Dust.NewDustPerfect(tipPosition - Projectile.velocity * 15, 107, shootVelocity.RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.2f, 1.2f), 0, default, Main.rand.NextFloat(1f, 2.3f)); + Dust dust = Dust.NewDustPerfect(GunTipPosition - Projectile.velocity * 15, 107, shootVelocity.RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.2f, 1.2f), 0, default, Main.rand.NextFloat(1f, 2.3f)); dust.noGravity = true; } ShotsLoaded = 0; ShootRecoilTimer = 24f; + OffsetLengthFromArm -= 25f; Projectile.netSpam = 0; Projectile.netUpdate = true; } @@ -110,15 +96,16 @@ namespace CalamityMod.Projectiles.Ranged Vector2 shootVelocity = Projectile.velocity.SafeNormalize(Vector2.UnitY) * BulletSpeed; Vector2 fireVec = shootVelocity.RotatedByRandom(MathHelper.ToRadians(2f)); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), tipPosition, fireVec, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, fireVec, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); for (int i = 0; i <= 4; i++) { - Dust dust = Dust.NewDustPerfect(tipPosition - Projectile.velocity * 15, 107, shootVelocity.RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.9f, 1.2f), 0, default, Main.rand.NextFloat(0.8f, 1.8f)); + Dust dust = Dust.NewDustPerfect(GunTipPosition - Projectile.velocity * 15, 107, shootVelocity.RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(0.9f, 1.2f), 0, default, Main.rand.NextFloat(0.8f, 1.8f)); dust.noGravity = true; } ShotsLoaded--; ShootRecoilTimer = 16f; + OffsetLengthFromArm -= 5f; Projectile.netSpam = 0; Projectile.netUpdate = true; } @@ -132,7 +119,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int i = 0; i < 6; i++) { - SparkParticle spark2 = new SparkParticle((tipPosition - Projectile.velocity * 3) + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(9.1f, 17.8f), false, Main.rand.Next(9, 12), Main.rand.NextFloat(0.2f, 0.3f), Main.rand.NextBool(4) ? Color.Chartreuse : Color.Lime); + SparkParticle spark2 = new SparkParticle((GunTipPosition - Projectile.velocity * 3) + Main.rand.NextVector2Circular(10, 10), -Projectile.velocity * Main.rand.NextFloat(9.1f, 17.8f), false, Main.rand.Next(9, 12), Main.rand.NextFloat(0.2f, 0.3f), Main.rand.NextBool(4) ? Color.Chartreuse : Color.Lime); GeneralParticleHandler.SpawnParticle(spark2); } ShotsLoaded--; @@ -140,9 +127,6 @@ namespace CalamityMod.Projectiles.Ranged } else { - // While channeled, keep refreshing the projectile lifespan - Projectile.timeLeft = 2; - // Loads shots until maxed out if (ShotsLoaded < MaxLoadableShots && CurrentChargingFrames % FramesPerLoad == 0) ShotsLoaded++; @@ -176,17 +160,17 @@ namespace CalamityMod.Projectiles.Ranged float particleScale = MathHelper.Clamp(CurrentChargingFrames, 0f, ArcNovaDiffuser.Charge2Frames); for (int i = 0; i < (ChargeLV2 ? 4 : ChargeLV1 ? 3 : 2); i++) { - SparkParticle spark2 = new SparkParticle((tipPosition - Projectile.velocity * 4) + Main.rand.NextVector2Circular(12, 12), -Projectile.velocity * Main.rand.NextFloat(16.1f, 30.8f), false, Main.rand.Next(2, 7), Main.rand.NextFloat(particleScale / 350f, particleScale / 270f), Main.rand.NextBool(4) ? Color.Chartreuse : Color.Lime); + SparkParticle spark2 = new SparkParticle((GunTipPosition - Projectile.velocity * 4) + Main.rand.NextVector2Circular(12, 12), -Projectile.velocity * Main.rand.NextFloat(16.1f, 30.8f), false, Main.rand.Next(2, 7), Main.rand.NextFloat(particleScale / 350f, particleScale / 270f), Main.rand.NextBool(4) ? Color.Chartreuse : Color.Lime); GeneralParticleHandler.SpawnParticle(spark2); } - Particle orb = new GenericBloom(tipPosition, Projectile.velocity, Color.Lime, particleScale / 270f, 2, false); + Particle orb = new GenericBloom(GunTipPosition, Projectile.velocity, Color.Lime, particleScale / 270f, 2, false); GeneralParticleHandler.SpawnParticle(orb); - Particle orb2 = new GenericBloom(tipPosition, Projectile.velocity, Color.White, particleScale / 400f, 2, false); + Particle orb2 = new GenericBloom(GunTipPosition, Projectile.velocity, Color.White, particleScale / 400f, 2, false); GeneralParticleHandler.SpawnParticle(orb2); float strength = particleScale / 45f; Vector3 DustLight = new Vector3(0.000f, 0.255f, 0.000f); - Lighting.AddLight(tipPosition, DustLight * strength); + Lighting.AddLight(GunTipPosition, DustLight * strength); } // Full charge dusts @@ -194,7 +178,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int i = 0; i < 36; i++) { - Dust chargefull = Dust.NewDustPerfect(tipPosition, 107); + Dust chargefull = Dust.NewDustPerfect(GunTipPosition, 107); chargefull.velocity = (MathHelper.TwoPi * i / 36f).ToRotationVector2() * 8f + Owner.velocity; chargefull.scale = Main.rand.NextFloat(1f, 1.3f); chargefull.noGravity = true; @@ -204,55 +188,19 @@ namespace CalamityMod.Projectiles.Ranged { for (int i = 0; i < 45; i++) { - Dust chargefull = Dust.NewDustPerfect(tipPosition, 107); + Dust chargefull = Dust.NewDustPerfect(GunTipPosition, 107); chargefull.velocity = (MathHelper.TwoPi * i / 36f).ToRotationVector2() * 12f + Owner.velocity; chargefull.scale = Main.rand.NextFloat(1.2f, 1.4f); chargefull.noGravity = true; } } } - UpdateProjectileHeldVariables(armPosition); - ManipulatePlayerVariables(); } - private void UpdateProjectileHeldVariables(Vector2 armPosition) - { - if (Main.myPlayer == Projectile.owner) - { - 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); - if (Projectile.velocity != oldVelocity) - { - Projectile.netSpam = 0; - Projectile.netUpdate = true; - } - } - Vector2 shootOffset = Projectile.velocity * MathHelper.Clamp(30f - ShootRecoilTimer, 0f, 30f) + new Vector2(0, 7); - Projectile.Center = armPosition + shootOffset; - Projectile.rotation = Projectile.velocity.ToRotation() + (Projectile.spriteDirection == -1 ? MathHelper.Pi : 0f); - Projectile.spriteDirection = Projectile.direction; - - // Rumble (only while channeling) - float rumble = MathHelper.Clamp(CurrentChargingFrames, 0f, ArcNovaDiffuser.Charge2Frames); - if (!Owner.CantUseHoldout()) - Projectile.position += Main.rand.NextVector2Circular(rumble / 70f, rumble / 70f); - } - - private void ManipulatePlayerVariables() - { - Owner.ChangeDir(Projectile.direction); - Owner.heldProj = Projectile.whoAmI; - Owner.itemTime = 2; - Owner.itemAnimation = 2; - Owner.itemRotation = (Projectile.velocity * Projectile.direction).ToRotation(); - } public override void OnKill(int timeLeft) { if (SoundEngine.TryGetActiveSound(NovaChargeSlot, out var ChargeSound)) ChargeSound?.Stop(); } - - public override bool? CanDamage() => false; } } From a50c19aaa4d65b4aaf458330f5d28a78b9c56f2e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Fri, 19 Apr 2024 19:17:17 -0400 Subject: [PATCH 41/43] Updated Eternal Blizzard's tooltip --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 087c68b8d7..6ee6c6600b 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -459,7 +459,7 @@ ElementalEruption: { EternalBlizzard: { DisplayName: Eternal Blizzard - Tooltip: Fires an additional icicle arrow that shatters on impact + Tooltip: Fires an additional icicle arrow that freezes into a falling icicle } Eviscerator: { From 1ea250198460e87f6a48e06d680f7cb3c35e93a7 Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 19 Apr 2024 19:02:47 -0700 Subject: [PATCH 42/43] Dev weapon tiny improvements --- Items/Weapons/Magic/Apotheosis.cs | 2 +- Items/Weapons/Melee/Azathoth.cs | 2 +- Items/Weapons/Melee/DraconicDestruction.cs | 6 +-- Items/Weapons/Melee/RedSun.cs | 8 ++-- Items/Weapons/Ranged/SomaPrime.cs | 2 +- Projectiles/Magic/ApotheosisEnergy.cs | 1 + Projectiles/Melee/CosmicOrb.cs | 3 +- Projectiles/Melee/DracoBeam.cs | 42 +++++++++++-------- Projectiles/Melee/DracoBeam2.cs | 48 ++++++++++++++-------- Projectiles/Melee/RSSolarFlare.cs | 1 + Projectiles/Melee/SandFire.cs | 5 ++- Projectiles/Melee/Yoyos/AzathothYoyo.cs | 4 +- 12 files changed, 76 insertions(+), 48 deletions(-) diff --git a/Items/Weapons/Magic/Apotheosis.cs b/Items/Weapons/Magic/Apotheosis.cs index 35001cf518..183b7f53cb 100644 --- a/Items/Weapons/Magic/Apotheosis.cs +++ b/Items/Weapons/Magic/Apotheosis.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.damage = 230; Item.DamageType = DamageClass.Magic; Item.mana = 42; - Item.useTime = Item.useAnimation = 177; + Item.useTime = Item.useAnimation = 167; Item.useStyle = ItemUseStyleID.Shoot; Item.useTurn = false; Item.noMelee = true; diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index fc8b6534fe..3685b98f2f 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 40; Item.height = 54; Item.DamageType = DamageClass.MeleeNoSpeed; - Item.damage = 80; + Item.damage = 90; Item.knockBack = 6f; Item.useTime = 20; Item.useAnimation = 20; diff --git a/Items/Weapons/Melee/DraconicDestruction.cs b/Items/Weapons/Melee/DraconicDestruction.cs index 42c3574a1b..7794866eb5 100644 --- a/Items/Weapons/Melee/DraconicDestruction.cs +++ b/Items/Weapons/Melee/DraconicDestruction.cs @@ -16,11 +16,11 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 90; Item.height = 90; - Item.damage = 250; + Item.damage = 200; Item.DamageType = DamageClass.Melee; - Item.useAnimation = 24; + Item.useAnimation = 34; Item.useStyle = ItemUseStyleID.Swing; - Item.useTime = 24; + Item.useTime = 34; Item.useTurn = true; Item.knockBack = 7.25f; Item.UseSound = SoundID.Item1; diff --git a/Items/Weapons/Melee/RedSun.cs b/Items/Weapons/Melee/RedSun.cs index 3ecee86fd1..851a7968a0 100644 --- a/Items/Weapons/Melee/RedSun.cs +++ b/Items/Weapons/Melee/RedSun.cs @@ -19,11 +19,11 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 62; Item.height = 62; - Item.damage = 500; + Item.damage = 350; Item.DamageType = DamageClass.Melee; - Item.useTime = 5; - Item.useAnimation = 30; - Item.reuseDelay = 20; + Item.useTime = 10; + Item.useAnimation = 40; + Item.reuseDelay = 0; Item.useLimitPerAnimation = 6; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Ranged/SomaPrime.cs b/Items/Weapons/Ranged/SomaPrime.cs index e4723469c2..95ac291e2e 100644 --- a/Items/Weapons/Ranged/SomaPrime.cs +++ b/Items/Weapons/Ranged/SomaPrime.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 94; Item.height = 34; - Item.damage = 370; + Item.damage = 400; Item.DamageType = DamageClass.Ranged; Item.useTime = Item.useAnimation = 5; Item.useStyle = ItemUseStyleID.Shoot; diff --git a/Projectiles/Magic/ApotheosisEnergy.cs b/Projectiles/Magic/ApotheosisEnergy.cs index a1587fb01b..9c286d69a2 100644 --- a/Projectiles/Magic/ApotheosisEnergy.cs +++ b/Projectiles/Magic/ApotheosisEnergy.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.tileCollide = false; Projectile.DamageType = DamageClass.Magic; Projectile.penetrate = -1; + Projectile.extraUpdates = 1; Projectile.timeLeft = 210; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 1; diff --git a/Projectiles/Melee/CosmicOrb.cs b/Projectiles/Melee/CosmicOrb.cs index a1ea024b0c..857eb8bb36 100644 --- a/Projectiles/Melee/CosmicOrb.cs +++ b/Projectiles/Melee/CosmicOrb.cs @@ -49,7 +49,8 @@ namespace CalamityMod.Projectiles.Melee } } - CalamityUtils.MagnetSphereHitscan(Projectile, 300f, 6f, 8f, 5, ModContent.ProjectileType()); + if (Main.rand.NextBool(2)) + CalamityUtils.MagnetSphereHitscan(Projectile, 500f, 6f, 8f, 5, ModContent.ProjectileType()); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Melee/DracoBeam.cs b/Projectiles/Melee/DracoBeam.cs index 1396dc7f53..a213272e50 100644 --- a/Projectiles/Melee/DracoBeam.cs +++ b/Projectiles/Melee/DracoBeam.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -23,7 +24,9 @@ namespace CalamityMod.Projectiles.Melee Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.ignoreWater = true; - Projectile.penetrate = 1; + Projectile.penetrate = -1; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = 2; Projectile.extraUpdates = 1; Projectile.timeLeft = 600; } @@ -44,20 +47,6 @@ namespace CalamityMod.Projectiles.Melee public override void OnKill(int timeLeft) { - float spread = 30f * 0.0174f; - double startAngle = Math.Atan2(Projectile.velocity.X, Projectile.velocity.Y) - spread / 2; - double deltaAngle = spread / 8f; - double offsetAngle; - int i; - if (Projectile.owner == Main.myPlayer) - { - for (i = 0; i < 4; i++) - { - offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); - } - } for (int k = 0; k < 10; k++) { Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.CopperCoin, 0f, 0f); @@ -66,7 +55,28 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(BuffID.Daybreak, 180); + if (Projectile.numHits < 1) + { + float spread = 30f * 0.0174f; + double startAngle = Math.Atan2(Projectile.velocity.X, Projectile.velocity.Y) - spread / 2; + double deltaAngle = spread / 8f; + double offsetAngle; + int i; + if (Projectile.owner == Main.myPlayer) + { + for (i = 0; i < 4; i++) + { + offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 2f), (float)(Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 2f), (float)(-Math.Cos(offsetAngle) * 2f), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); + } + } + } + + target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(BuffID.Slimed, 90); + target.AddBuff(BuffID.Oiled, 90); + target.AddBuff(BuffID.Daybreak, 90); } } } diff --git a/Projectiles/Melee/DracoBeam2.cs b/Projectiles/Melee/DracoBeam2.cs index 3a1e6c920b..359ea9af86 100644 --- a/Projectiles/Melee/DracoBeam2.cs +++ b/Projectiles/Melee/DracoBeam2.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,48 +12,64 @@ namespace CalamityMod.Projectiles.Melee public override string Texture => "CalamityMod/Projectiles/Melee/DracoBeam"; private int start = 60; - private int speedTimer = 120; + private int speedTimer = 60; + private Vector2 setVel = Vector2.Zero; public override void SetStaticDefaults() { - ProjectileID.Sets.TrailCacheLength[Projectile.type] = 14; - ProjectileID.Sets.TrailingMode[Projectile.type] = 1; + ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20; + ProjectileID.Sets.TrailingMode[Projectile.type] = 2; } public override void SetDefaults() { Projectile.width = 50; Projectile.height = 50; - Projectile.aiStyle = ProjAIStyleID.Beam; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.ignoreWater = true; Projectile.tileCollide = false; Projectile.penetrate = -1; - Projectile.timeLeft = 240; + Projectile.extraUpdates = 1; + Projectile.timeLeft = 300; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; } public override void AI() { + Projectile.rotation = Projectile.rotation.AngleLerp(Projectile.velocity.ToRotation() + MathHelper.PiOver4, 0.25f); + + if (setVel == Vector2.Zero) + setVel = Projectile.velocity * 3; + start--; if (start <= 0) { speedTimer--; - if (speedTimer > 60) + if (speedTimer > 30) { - Projectile.velocity.X = 0f; - Projectile.velocity.Y = 10f; + if (speedTimer == 59) + { + Projectile.velocity.X = 0f; + Projectile.velocity.Y = 2f; + } + Projectile.velocity *= 1.11f; } - else if (speedTimer <= 60) + else if (speedTimer <= 30) { - Projectile.velocity.X = 0f; - Projectile.velocity.Y = -10f; + if (speedTimer == 30) + { + Projectile.velocity.X = 0f; + Projectile.velocity.Y = -2f; + } + Projectile.velocity *= 1.11f; } if (speedTimer <= 0) { - speedTimer = 120; + speedTimer = 60; + start = 20; + Projectile.velocity = setVel; } } Lighting.AddLight(Projectile.Center, 0.5f, 0.25f, 0f); @@ -60,9 +77,6 @@ namespace CalamityMod.Projectiles.Melee public override bool PreDraw(ref Color lightColor) { - if (Projectile.timeLeft > 235) - return false; - CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 2); return false; } @@ -77,7 +91,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(BuffID.Daybreak, 180); + target.AddBuff(ModContent.BuffType(), 90); } } } diff --git a/Projectiles/Melee/RSSolarFlare.cs b/Projectiles/Melee/RSSolarFlare.cs index f0ee81e6f6..1d0967f857 100644 --- a/Projectiles/Melee/RSSolarFlare.cs +++ b/Projectiles/Melee/RSSolarFlare.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.friendly = true; Projectile.tileCollide = false; Projectile.penetrate = 1; + Projectile.extraUpdates = 1; Projectile.alpha = 150; Projectile.DamageType = DamageClass.Melee; Projectile.timeLeft = 120; diff --git a/Projectiles/Melee/SandFire.cs b/Projectiles/Melee/SandFire.cs index 2b616e1f94..d55c2732c0 100644 --- a/Projectiles/Melee/SandFire.cs +++ b/Projectiles/Melee/SandFire.cs @@ -17,9 +17,10 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 6; Projectile.friendly = true; Projectile.penetrate = 1; + Projectile.extraUpdates = 2; Projectile.tileCollide = false; Projectile.DamageType = DamageClass.Melee; - Projectile.timeLeft = 60; + Projectile.timeLeft = 200; } public override void AI() @@ -37,7 +38,7 @@ namespace CalamityMod.Projectiles.Melee } } - CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 20f); + CalamityUtils.HomeInOnNPC(Projectile, true, 2000f, 10f, 20f); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Melee/Yoyos/AzathothYoyo.cs b/Projectiles/Melee/Yoyos/AzathothYoyo.cs index 2f448de9ae..2f99f79c09 100644 --- a/Projectiles/Melee/Yoyos/AzathothYoyo.cs +++ b/Projectiles/Melee/Yoyos/AzathothYoyo.cs @@ -36,10 +36,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos public override void AI() { - if (Main.rand.NextBool(2 * MaxUpdates)) + if (Main.rand.NextBool(MaxUpdates)) { if (Projectile.owner == Main.myPlayer) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity * 0.35f, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0f, 0f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(0.4f) * Main.rand.NextFloat(0.2f, 0.55f), ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack, Projectile.owner, 0f, 0f); } if ((Projectile.position - Main.player[Projectile.owner].position).Length() > 3200f) //200 blocks Projectile.Kill(); From 2591931a5625290331dc91854eef2fee2f972990 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Sat, 20 Apr 2024 01:06:49 -0400 Subject: [PATCH 43/43] Added Norfleet to the specialist weapon set --- Items/Weapons/Ranged/Norfleet.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index c458a0d099..80cfc81ac5 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged { public new string LocalizationCategory => "Items.Weapons.Ranged"; public int loadedShots = 3; + + public override void SetStaticDefaults() + { + ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true; + } public override void SetDefaults() { Item.width = 140;