diff --git a/Buffs/StatBuffs/AdrenalineMode.cs b/Buffs/StatBuffs/AdrenalineMode.cs index fc160dabe4..c7b3eaf061 100644 --- a/Buffs/StatBuffs/AdrenalineMode.cs +++ b/Buffs/StatBuffs/AdrenalineMode.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs public override void SetDefaults() { DisplayName.SetDefault("Adrenaline Mode"); - Description.SetDefault("150% damage boost. Can burnout down to 49.5%."); + Description.SetDefault("150% damage boost."); Main.debuff[Type] = true; Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = false; diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index a1d56cb0f3..482c9834ef 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -185,19 +185,13 @@ namespace CalamityMod.CalPlayer if (abyssPosX) { - switch (Main.rand.Next(4)) + switch (Main.rand.Next(2)) { case 0: - rareItemList.Add(ModContent.ItemType()); + rareItemList.Add(ModContent.ItemType()); break; case 1: - rareItemList.Add(ModContent.ItemType()); - break; - case 2: - rareItemList.Add(ModContent.ItemType()); - break; - case 3: - rareItemList.Add(ModContent.ItemType()); + rareItemList.Add(ModContent.ItemType()); break; } } diff --git a/Items/Accessories/ReaperToothNecklace.cs b/Items/Accessories/ReaperToothNecklace.cs index c161751304..be6516091e 100644 --- a/Items/Accessories/ReaperToothNecklace.cs +++ b/Items/Accessories/ReaperToothNecklace.cs @@ -24,6 +24,7 @@ namespace CalamityMod.Items.Accessories item.value = Item.buyPrice(0, 60, 0, 0); item.rare = 10; item.accessory = true; + item.Calamity().postMoonLordRarity = 13; } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Armor/StatigelCap.cs b/Items/Armor/StatigelCap.cs index d9f740385b..f60ec36077 100644 --- a/Items/Armor/StatigelCap.cs +++ b/Items/Armor/StatigelCap.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHeadgear.cs b/Items/Armor/StatigelHeadgear.cs index b68de9cb05..b9ac4e47e4 100644 --- a/Items/Armor/StatigelHeadgear.cs +++ b/Items/Armor/StatigelHeadgear.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHelm.cs b/Items/Armor/StatigelHelm.cs index c1e28b93ac..9d16912b4b 100644 --- a/Items/Armor/StatigelHelm.cs +++ b/Items/Armor/StatigelHelm.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHood.cs b/Items/Armor/StatigelHood.cs index eaa6b8d86d..aa52185569 100644 --- a/Items/Armor/StatigelHood.cs +++ b/Items/Armor/StatigelHood.cs @@ -5,6 +5,7 @@ using CalamityMod.Projectiles.Summon; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -41,7 +42,8 @@ namespace CalamityMod.Items.Armor modPlayer.statigelSet = true; modPlayer.slimeGod = true; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; player.minionDamage += 0.18f; if (player.whoAmI == Main.myPlayer) { diff --git a/Items/Armor/StatigelMask.cs b/Items/Armor/StatigelMask.cs index 1167cf4cc6..9525964c3e 100644 --- a/Items/Armor/StatigelMask.cs +++ b/Items/Armor/StatigelMask.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using static Terraria.Player; namespace CalamityMod.Items.Armor { @@ -42,7 +43,8 @@ namespace CalamityMod.Items.Armor modPlayer.statigelSet = true; modPlayer.rogueStealthMax += 1.05f; player.doubleJumpSail = true; - player.jumpBoost = true; + Player.jumpHeight += 5; + player.jumpSpeedBoost += 1.5f; player.Calamity().wearingRogueArmor = true; } diff --git a/Items/DifficultyItems/IronHeart.cs b/Items/DifficultyItems/IronHeart.cs index 58236f96e4..4c8c107b12 100644 --- a/Items/DifficultyItems/IronHeart.cs +++ b/Items/DifficultyItems/IronHeart.cs @@ -35,11 +35,7 @@ namespace CalamityMod.Items.DifficultyItems public override bool CanUseItem(Player player) { - if (CalamityWorld.downedBossAny) - { - return false; - } - return true; + return !CalamityWorld.downedBossAny; } public override bool UseItem(Player player) diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index 3fbbabeb5f..6c5caf05ec 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -27,6 +27,11 @@ namespace CalamityMod.Items.DifficultyItems item.consumable = true; } + public override bool CanUseItem(Player player) + { + return !CalamityWorld.demonMode; + } + public override bool UseItem(Player player) { CalamityWorld.demonMode = true; diff --git a/Items/Pets/RotomRemote.cs b/Items/Pets/RotomRemote.cs index 81e0ea8b47..47e1219cfe 100644 --- a/Items/Pets/RotomRemote.cs +++ b/Items/Pets/RotomRemote.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Pets { public override void SetStaticDefaults() { - DisplayName.SetDefault("Trifigelycen Etomer"); + DisplayName.SetDefault("Triboluminescent Etomer"); Tooltip.SetDefault("Summons an electric troublemaker\n" + "A little note is attached:\n" + "Thank you, Aloe! Very much appreciated from Ben"); @@ -48,9 +48,8 @@ namespace CalamityMod.Items.Pets { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ItemID.IronBar, 10); + recipe.AddRecipeGroup("AnyGoldBar", 8); recipe.AddIngredient(ModContent.ItemType()); - recipe.anyIronBar = true; recipe.AddTile(TileID.Anvils); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Weapons/Melee/Azathoth.cs b/Items/Weapons/Melee/Azathoth.cs index b617ed98ba..e97ea6e976 100644 --- a/Items/Weapons/Melee/Azathoth.cs +++ b/Items/Weapons/Melee/Azathoth.cs @@ -12,7 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Azathoth"); - Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\nAn exceptionally agile yoyo\n'Destroy the universe in the blink of an eye'"); + Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\n" + + "A very agile yoyo\n" + + "Destroy the universe in the blink of an eye"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 36b13272ee..41f250e988 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -11,7 +11,9 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Lacerator"); - Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\nAn exceptionally agile yoyo\n'Someone thought this was a viable weapon against DoG at one point lol'"); + Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" + + "A very agile yoyo\n" + "Someone thought this was a viable weapon against DoG at one point lol"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/Oracle.cs b/Items/Weapons/Melee/Oracle.cs index 76dc45f885..e93b77f3f5 100644 --- a/Items/Weapons/Melee/Oracle.cs +++ b/Items/Weapons/Melee/Oracle.cs @@ -13,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Oracle"); - Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn incredibly agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'"); + Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\n" + + "Fires auric orbs when supercharged\n" + + "An exceptionally agile yoyo\n" + + "Gaze into the past, the present, the future... and the circumstances of your inevitable demise"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/SolarFlare.cs b/Items/Weapons/Melee/SolarFlare.cs index 534a992a3d..50db47237e 100644 --- a/Items/Weapons/Melee/SolarFlare.cs +++ b/Items/Weapons/Melee/SolarFlare.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Solar Flare"); - Tooltip.SetDefault("Emits large holy explosions on hit\nAn exceptionally agile yoyo"); + Tooltip.SetDefault("Emits large holy explosions on hit\n" + + "A very agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/TheMicrowave.cs b/Items/Weapons/Melee/TheMicrowave.cs index 70364e6cb5..8d5eb11ed0 100644 --- a/Items/Weapons/Melee/TheMicrowave.cs +++ b/Items/Weapons/Melee/TheMicrowave.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee { DisplayName.SetDefault("The Microwave"); Tooltip.SetDefault("Fries nearby enemies with radiation\n" + - "An exceptionally agile yoyo\n" + + "A very agile yoyo\n" + "Cooking, Astral Infection style"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; diff --git a/Items/Weapons/Melee/TheObliterator.cs b/Items/Weapons/Melee/TheObliterator.cs index a375ed077b..6856c66a74 100644 --- a/Items/Weapons/Melee/TheObliterator.cs +++ b/Items/Weapons/Melee/TheObliterator.cs @@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("The Obliterator"); - Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn incredibly agile yoyo\n"); + Tooltip.SetDefault("Ruins nearby enemies with death lasers\n" + + "An exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Ranged/P90.cs b/Items/Weapons/Ranged/P90.cs index c9029af4db..71a453390c 100644 --- a/Items/Weapons/Ranged/P90.cs +++ b/Items/Weapons/Ranged/P90.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 11; + item.damage = 6; item.ranged = true; item.width = 60; item.height = 28; diff --git a/Items/Weapons/Rogue/LunarKunai.cs b/Items/Weapons/Rogue/LunarKunai.cs index 09da7e0600..866c30db4a 100644 --- a/Items/Weapons/Rogue/LunarKunai.cs +++ b/Items/Weapons/Rogue/LunarKunai.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue DisplayName.SetDefault("Lunar Kunai"); Tooltip.SetDefault("Throws out a set of three kunai that ignore gravity and slightly home in on enemies\n" +"After traveling enough distance, the kunai supercharge with lunar energy, homing in far more aggressively and exploding on impact\n" - +"Stealth strikes instantly throw twelve supercharged Kunai"); + +"Stealth strikes instantly throw nine supercharged Kunai"); } public override void SafeSetDefaults() @@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Rogue num79 *= num80; if (player.Calamity().StealthStrikeAvailable()) { - for (int i = 0; i < 12; i++) + for (int i = 0; i < 9; i++) { float num148 = num78; float num149 = num79; @@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons.Rogue num149 *= num80; float x4 = vector2.X; float y4 = vector2.Y; - int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), (int)(damage *1.1) , knockBack, player.whoAmI, 0f, 0f); + int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); Main.projectile[stealth].Calamity().stealthStrike = true; } } diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 4b4875e25f..427632e9f7 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -418,7 +418,7 @@ namespace CalamityMod calamity, "Devourer of Gods", (Func)(() => CalamityWorld.downedDoG), ModContent.ItemType(), - new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, + new List() {ModContent.ItemType(), ModContent.ItemType()}, new List() {ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType(), ModContent.ItemType()}, "Use a [i:" + ModContent.ItemType() + "]", "[c/00FFFF:The Devourer of Gods has slain everyone and feasted on their essence.]", diff --git a/NPCs/Abyss/Bloatfish.png b/NPCs/Abyss/Bloatfish.png index dac4ff004e..f25faa4c9a 100644 Binary files a/NPCs/Abyss/Bloatfish.png and b/NPCs/Abyss/Bloatfish.png differ diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index e4bedfe832..cb749ad490 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1144,7 +1144,7 @@ namespace CalamityMod.NPCs } } - if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson || npc.type == ModContent.NPCType()) && !NPC.AnyNPCs(ModContent.NPCType())) + if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson) && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) diff --git a/Projectiles/Magic/HadopelagicEchoSoundwave.cs b/Projectiles/Magic/HadopelagicEchoSoundwave.cs index 62f43fa82e..6cae75130b 100644 --- a/Projectiles/Magic/HadopelagicEchoSoundwave.cs +++ b/Projectiles/Magic/HadopelagicEchoSoundwave.cs @@ -79,12 +79,12 @@ namespace CalamityMod.Projectiles.Magic public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) { - damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2)); } public override void ModifyHitPvp(Player target, ref int damage, ref bool crit) { - damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2)); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) @@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Magic { echoCooldown = 60; int echoID = ModContent.ProjectileType(); - int echoDamage = (int)(0.2f * projectile.damage * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f)); + int echoDamage = (int)(0.2f * projectile.damage); float echoKB = projectile.knockBack / 3; int echos = 5; for (int i = 0; i < echos; ++i) diff --git a/Projectiles/Melee/CosmicDischargeFlail.cs b/Projectiles/Melee/CosmicDischargeFlail.cs index 1a1129e343..b39e73c90f 100644 --- a/Projectiles/Melee/CosmicDischargeFlail.cs +++ b/Projectiles/Melee/CosmicDischargeFlail.cs @@ -13,8 +13,6 @@ namespace CalamityMod.Projectiles.Melee { public class CosmicDischargeFlail : ModProjectile { - - public override void SetStaticDefaults() { DisplayName.SetDefault("Cosmic Discharge"); @@ -271,7 +269,7 @@ namespace CalamityMod.Projectiles.Melee } if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; player.AddBuff(ModContent.BuffType(), 300); diff --git a/Projectiles/Melee/MourningstarFlail.cs b/Projectiles/Melee/MourningstarFlail.cs index f234422953..5687be6439 100644 --- a/Projectiles/Melee/MourningstarFlail.cs +++ b/Projectiles/Melee/MourningstarFlail.cs @@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(BuffID.Daybreak, 300); if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; } diff --git a/Projectiles/Melee/NebulashFlail.cs b/Projectiles/Melee/NebulashFlail.cs index 9a257a7635..8c1520bf78 100644 --- a/Projectiles/Melee/NebulashFlail.cs +++ b/Projectiles/Melee/NebulashFlail.cs @@ -220,7 +220,7 @@ namespace CalamityMod.Projectiles.Melee target.AddBuff(ModContent.BuffType(), 120); if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer) { - Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType(), projectile.damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); } projectile.localAI[1] = 4f; } diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index 39b9736c8f..1e79c10013 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -54,7 +54,16 @@ namespace CalamityMod.Projectiles.Rogue } } - public override bool CanDamage() + public override bool? CanHitNPC(NPC target) + { + if (HomingCooldown != 0) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) { return HomingCooldown == 0; } @@ -63,12 +72,6 @@ namespace CalamityMod.Projectiles.Rogue { HomingCooldown = 25; projectile.velocity *= -0.75f; //bounce off of enemy - - //prevent dummy exploits - if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType()) - { - projectile.Kill(); - } } public override void Kill(int timeLeft) { diff --git a/Projectiles/Rogue/DesecratedBubble.cs b/Projectiles/Rogue/DesecratedBubble.cs index c61e6b2801..bb76ee6c12 100644 --- a/Projectiles/Rogue/DesecratedBubble.cs +++ b/Projectiles/Rogue/DesecratedBubble.cs @@ -116,9 +116,18 @@ namespace CalamityMod.Projectiles.Rogue } // Cannot deal damage for the first several frames of existence. - public override bool CanDamage() - { - return projectile.timeLeft < 100; - } + public override bool? CanHitNPC(NPC target) + { + if (projectile.timeLeft >= 100) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) + { + return projectile.timeLeft < 100; + } } } \ No newline at end of file diff --git a/Projectiles/Rogue/PhantasmalSoul.cs b/Projectiles/Rogue/PhantasmalSoul.cs index 4845ed9e28..fa1df00e7d 100644 --- a/Projectiles/Rogue/PhantasmalSoul.cs +++ b/Projectiles/Rogue/PhantasmalSoul.cs @@ -179,9 +179,18 @@ namespace CalamityMod.Projectiles.Rogue } // Cannot deal damage for the first several frames of existence. - public override bool CanDamage() - { - return projectile.timeLeft < 590; - } + public override bool? CanHitNPC(NPC target) + { + if (projectile.timeLeft >= 590) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) + { + return projectile.timeLeft < 590; + } } } diff --git a/Projectiles/Typeless/CursorProjSplit.cs b/Projectiles/Typeless/CursorProjSplit.cs index 36440ec6ba..d812e942b7 100644 --- a/Projectiles/Typeless/CursorProjSplit.cs +++ b/Projectiles/Typeless/CursorProjSplit.cs @@ -199,7 +199,16 @@ namespace CalamityMod.Projectiles.Typeless target.AddBuff(ModContent.BuffType(), 120); } - public override bool CanDamage() + public override bool? CanHitNPC(NPC target) + { + if (projectile.alpha >= 128) + { + return false; + } + return null; + } + + public override bool CanHitPvp(Player target) { return projectile.alpha < 128; }