From a14caba5f697c33469bf1bab74bb198a23954fad Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Tue, 4 Oct 2022 19:00:05 -0400 Subject: [PATCH] PSA tweaks --- Buffs/Summon/ProfanedBabs.cs | 12 ++----- CalPlayer/CalamityPlayerMiscEffects.cs | 42 ++++++++--------------- Items/Accessories/ProfanedSoulArtifact.cs | 6 ++-- 3 files changed, 19 insertions(+), 41 deletions(-) diff --git a/Buffs/Summon/ProfanedBabs.cs b/Buffs/Summon/ProfanedBabs.cs index f702040c52..71e92fe041 100644 --- a/Buffs/Summon/ProfanedBabs.cs +++ b/Buffs/Summon/ProfanedBabs.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.Summon public override void SetStaticDefaults() { DisplayName.SetDefault("The Profaned Soul"); - Description.SetDefault("The healer will heal your wounds!"); + Description.SetDefault("The Profaned Babs will fight for and defend you!"); Main.buffNoTimeDisplay[Type] = true; Main.buffNoSave[Type] = true; //Main.persistentBuff[Type] = true; @@ -34,18 +34,10 @@ namespace CalamityMod.Buffs.Summon Player player = Main.player[Main.myPlayer]; bool offense = player.Calamity().gOffense; bool defense = player.Calamity().gDefense; - if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && !DownedBossSystem.downedSCal)) + if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && (!DownedBossSystem.downedSCal || !DownedBossSystem.downedExoMechs))) { tip = "The Profaned Babs will accompany you!"; } - else if (offense && defense) - { - tip = "The Profaned Babs will fight for and defend you!"; - } - else if (offense || defense) - { - tip = "The " + (offense ? "Offensive" : "Defensive") + " Duo will " + (offense ? "fight for and heal you!" : "protect and heal you!"); - } } } } diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index d7a467c699..98b07595d9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -976,12 +976,6 @@ namespace CalamityMod.CalPlayer Player.endurance += 0.025f + (attack ? 0.025f : 0f); } - - if (attack) - { - Player.GetDamage() += 0.1f + - (defend ? 0.05f : 0f); - } } // You always get the max minions, even during the effect of the burnout debuff @@ -3095,36 +3089,28 @@ namespace CalamityMod.CalPlayer if (Player.FindBuffIndex(ModContent.BuffType()) == -1 && !profanedCrystalBuffs) Player.AddBuff(ModContent.BuffType(), 3600, true); - bool crystal = profanedCrystal && !profanedCrystalForce; - bool summonSet = tarraSummon || bloodflareSummon || silvaSummon || dsSetBonus || omegaBlueSet || fearmongerSet; int guardianAmt = 1; if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -6f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, 0f); - if (crystal || Player.maxMinions >= 10) - { - gDefense = true; + gDefense = true; - if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) - { - int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -3f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, 0f, 0f); - if (Main.projectile.IndexInRange(guardian)) - Main.projectile[guardian].originalDamage = 1; - } - } + if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) + { + int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -3f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, 0f, 0f); + if (Main.projectile.IndexInRange(guardian)) + Main.projectile[guardian].originalDamage = 1; + } - if (crystal || summonSet) - { - gOffense = true; + gOffense = true; - if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) - { - int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -1f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, 0f, 0f); - if (Main.projectile.IndexInRange(guardian)) - Main.projectile[guardian].originalDamage = 1; - } - } + if (Player.ownedProjectileCounts[ModContent.ProjectileType()] < guardianAmt) + { + int guardian = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, 0f, -1f, ModContent.ProjectileType(), 1, 1f, Main.myPlayer, 0f, 0f); + if (Main.projectile.IndexInRange(guardian)) + Main.projectile[guardian].originalDamage = 1; + } } } diff --git a/Items/Accessories/ProfanedSoulArtifact.cs b/Items/Accessories/ProfanedSoulArtifact.cs index 8cfcace48e..d5e22d1623 100644 --- a/Items/Accessories/ProfanedSoulArtifact.cs +++ b/Items/Accessories/ProfanedSoulArtifact.cs @@ -17,9 +17,9 @@ namespace CalamityMod.Items.Accessories SacrificeTotal = 1; DisplayName.SetDefault("Profaned Soul Artifact"); Tooltip.SetDefault("Purity\n" + - "Summons a healer guardian which heals for a certain amount of health every few seconds\n" + - "Summons a defensive guardian if you have at least 10 minion slots, which boosts your movement speed and your damage resistance\n" + - "Summons an offensive guardian if you are wearing the tarragon summon set (or stronger), which boosts your summon damage and your minion slots\n" + + "Summons a healer guardian, which heals for a certain amount of health every few seconds\n" + + "Summons a defensive guardian, which boosts your movement speed and damage resistance\n" + + "Summons an offensive guardian, which boosts your minion slots\n" + "If you get hit, most of their effects will disappear for 5 seconds"); Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 6)); ItemID.Sets.AnimatesAsSoul[Type] = true;