From eb386b1702460eb0f19b6f2f9c01cfa7143cc0f9 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sun, 5 Apr 2020 20:52:40 -0500 Subject: [PATCH 1/2] Heart Rapier = Goldplume Spear iirc --- Projectiles/Melee/Spears/HeartRapierProjectile.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Projectiles/Melee/Spears/HeartRapierProjectile.cs b/Projectiles/Melee/Spears/HeartRapierProjectile.cs index ec55005656..d4570c9374 100644 --- a/Projectiles/Melee/Spears/HeartRapierProjectile.cs +++ b/Projectiles/Melee/Spears/HeartRapierProjectile.cs @@ -30,21 +30,6 @@ namespace CalamityMod.Projectiles.Melee.Spears public override float InitialSpeed => 3f; public override float ReelbackSpeed => 1.1f; public override float ForwardSpeed => 0.95f; - public override void ExtraBehavior() - { - if (Main.rand.NextBool(5)) - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 12, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - projectile.localAI[0] += 1f; - if (projectile.localAI[0] >= 6f) - { - projectile.localAI[0] = 0f; - if (Main.myPlayer == projectile.owner) - { - Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y, - projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType(), (int)(projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f); - } - } - } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { From 419c3ebdc2995ef2d24d4c8d31882691215de110 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 5 Apr 2020 22:38:03 -0400 Subject: [PATCH 2/2] local ben eats brimstone sword --- ModSupport/ModCalls.cs | 4 +++- NPCs/CalamityGlobalNPC.cs | 12 ++++++++++-- Projectiles/Melee/ProfanedSwordProj.cs | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index b18b363fb9..35349c9fad 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -1335,7 +1335,7 @@ namespace CalamityMod #region Item Rarity public static bool SetCalamityRarity(Item item, int rarityNum) { - CalamityGlobalItem cgi = item.GetGlobalItem(); + CalamityGlobalItem cgi = item.Calamity(); cgi.customRarity = (CalamityRarity)rarityNum; return cgi.customRarity != CalamityRarity.NoEffect; } @@ -1663,6 +1663,7 @@ namespace CalamityMod Item item = (Item)args[1]; int rarity = (int)args[2]; return SetCalamityRarity(item, rarity); + case "AbominationnClearEvents": bool eventActive = CalamityWorld.rainingAcid; bool canClear = Convert.ToBoolean(args[1]); //This is to indicate whether abomm is able to clear the event due to a cooldown @@ -1673,6 +1674,7 @@ namespace CalamityMod AcidRainEvent.UpdateInvasion(false); } return eventActive; + default: return new ArgumentException("ERROR: Invalid method name."); } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index a507492d2a..98f712662a 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3435,6 +3435,10 @@ namespace CalamityMod.NPCs { damage = (int)(damage * 0.75); } + else if (projectile.type == ModContent.ProjectileType()) + { + damage = (int)(damage * 0.5); + } else if (projectile.type == ModContent.ProjectileType()) { damage /= 3; @@ -3446,7 +3450,7 @@ namespace CalamityMod.NPCs else if (projectile.type == ModContent.ProjectileType()) { if (projectile.penetrate == -1) - projectile.penetrate = 5; + projectile.penetrate = 4; damage = (int)(damage * 0.1); } } @@ -3457,13 +3461,17 @@ namespace CalamityMod.NPCs damage = (int)(damage * 0.5); } if (projectile.type == ModContent.ProjectileType() || projectile.type == ModContent.ProjectileType()) + { + damage = (int)(damage * 0.5); + } + else if (projectile.type == ModContent.ProjectileType()) { damage = (int)(damage * 0.5); } else if (projectile.type == ModContent.ProjectileType()) { if (projectile.penetrate == -1) - projectile.penetrate = 5; + projectile.penetrate = 4; damage = (int)(damage * 0.1); } } diff --git a/Projectiles/Melee/ProfanedSwordProj.cs b/Projectiles/Melee/ProfanedSwordProj.cs index 9fd95f3e9d..2bc87ddb94 100644 --- a/Projectiles/Melee/ProfanedSwordProj.cs +++ b/Projectiles/Melee/ProfanedSwordProj.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Melee projectile.width = 10; projectile.height = 10; projectile.friendly = true; - projectile.penetrate = 5; + projectile.penetrate = 4; projectile.aiStyle = 113; projectile.timeLeft = 600; aiType = ProjectileID.BoneJavelin;