From 26c9da9a8a72684bfdb0cf61d46168e4290edca2 Mon Sep 17 00:00:00 2001 From: Amber Sienna Date: Sun, 22 Mar 2020 02:31:18 +0000 Subject: [PATCH] tried a fix for psc fuckery --- Projectiles/Summon/MiniGuardianAttack.cs | 7 +++---- Projectiles/Summon/MiniGuardianDefense.cs | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Projectiles/Summon/MiniGuardianAttack.cs b/Projectiles/Summon/MiniGuardianAttack.cs index 60ccb99494..2b15c86385 100644 --- a/Projectiles/Summon/MiniGuardianAttack.cs +++ b/Projectiles/Summon/MiniGuardianAttack.cs @@ -19,10 +19,10 @@ namespace CalamityMod.Projectiles.Summon return; Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - float baseDamage = (modPlayer.profanedCrystal && !modPlayer.profanedCrystalBuffs) ? 0f : 100f + + float baseDamage = (modPlayer.profanedCrystal && !modPlayer.profanedCrystalBuffs) ? 0f : (100f + (CalamityWorld.downedDoG ? 100f : 0f) + (CalamityWorld.downedYharon ? 100f : 0f) + - (modPlayer.profanedCrystalBuffs ? 700f : 0f); + (modPlayer.profanedCrystalBuffs ? 700f : 0f)); projectile.damage = baseDamage == 0 ? 0 : (int)(baseDamage * player.MinionDamage()); ai = type; } @@ -39,8 +39,7 @@ namespace CalamityMod.Projectiles.Summon private void AI(int type, float num535, float num536, Player player) { - if (ai != type) - updateDamage(type); + updateDamage(type); switch (type) { case 1: //offensive bab (profaned soul artifact) diff --git a/Projectiles/Summon/MiniGuardianDefense.cs b/Projectiles/Summon/MiniGuardianDefense.cs index b8a722256a..06f8c103e4 100644 --- a/Projectiles/Summon/MiniGuardianDefense.cs +++ b/Projectiles/Summon/MiniGuardianDefense.cs @@ -19,10 +19,10 @@ namespace CalamityMod.Projectiles.Summon return; Player player = Main.player[projectile.owner]; CalamityPlayer modPlayer = player.Calamity(); - float baseDamage = (modPlayer.profanedCrystal && !modPlayer.profanedCrystalBuffs) ? 0f : 100f + + float baseDamage = (modPlayer.profanedCrystal && !modPlayer.profanedCrystalBuffs) ? 0f : (100f + (CalamityWorld.downedDoG ? 100f : 0f) + (CalamityWorld.downedYharon ? 100f : 0f) + - (modPlayer.profanedCrystalBuffs ? 700f : 0f); + (modPlayer.profanedCrystalBuffs ? 700f : 0f)); projectile.damage = baseDamage == 0 ? 0 : (int)(baseDamage * player.MinionDamage()); ai = type; } @@ -39,8 +39,7 @@ namespace CalamityMod.Projectiles.Summon private void AI(int type, float num535, float num536, Player player) { - if (ai != type) - updateDamage(type); + updateDamage(type); switch (type) { case 1: //defensive bab (profaned soul artifact)