From e97590e6e7c2faae146cb02b76839a9c2cab3a09 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 3 Jul 2020 20:45:05 -0400 Subject: [PATCH] added a void of extinction bool --- CalPlayer/CalamityPlayer.cs | 6 ++++-- Items/Accessories/VoidofExtinction.cs | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b4db16669b..54785253f2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -489,6 +489,7 @@ namespace CalamityMod.CalPlayer public bool aquaticEmblem = false; public bool darkSunRing = false; public bool calamityRing = false; + public bool voidOfExtinction = false; public bool eArtifact = false; public bool dArtifact = false; public bool gArtifact = false; @@ -1536,6 +1537,7 @@ namespace CalamityMod.CalPlayer harpyWingBoost = false; //harpy wings + harpy ring darkSunRing = false; calamityRing = false; + voidOfExtinction = false; eArtifact = false; dArtifact = false; gArtifact = false; @@ -5913,7 +5915,7 @@ namespace CalamityMod.CalPlayer if (corrEffigy) contactDamageReduction -= 0.2; - if (calamityRing) + if (calamityRing && !voidOfExtinction) contactDamageReduction -= 0.15; // 10% is converted to 9%, 25% is converted to 20%, 50% is converted to 33%, 75% is converted to 43%, 100% is converted to 50% @@ -6142,7 +6144,7 @@ namespace CalamityMod.CalPlayer if (corrEffigy) projectileDamageReduction -= 0.2; - if (calamityRing) + if (calamityRing && !voidOfExtinction) projectileDamageReduction -= 0.15; // 10% is converted to 9%, 25% is converted to 20%, 50% is converted to 33%, 75% is converted to 43%, 100% is converted to 50% diff --git a/Items/Accessories/VoidofExtinction.cs b/Items/Accessories/VoidofExtinction.cs index 48c478d3a1..ccbe436768 100644 --- a/Items/Accessories/VoidofExtinction.cs +++ b/Items/Accessories/VoidofExtinction.cs @@ -55,6 +55,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.calamityRing = true; + modPlayer.voidOfExtinction = true; player.lavaRose = true; player.lavaMax += 240; player.allDamage += 0.15f;