From 1d883cc644bccd7564ef2f4e53f861f6d2150a41 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Wed, 1 May 2024 01:52:29 -0500 Subject: [PATCH] Rev+ Master Golem split laser jump. --- .../en-US/Mods.CalamityMod.DamageClasses.hjson | 1 + .../Mods.CalamityMod.Items.Armor.Hardmode.hjson | 4 ++-- NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs | 14 +++++++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.DamageClasses.hjson b/Localization/en-US/Mods.CalamityMod.DamageClasses.hjson index db97b20bf8..5b565b8e71 100644 --- a/Localization/en-US/Mods.CalamityMod.DamageClasses.hjson +++ b/Localization/en-US/Mods.CalamityMod.DamageClasses.hjson @@ -2,3 +2,4 @@ AverageDamageClass.DisplayName: average damage RogueDamageClass.DisplayName: rogue damage TrueMeleeDamageClass.DisplayName: true melee damage TrueMeleeNoSpeedDamageClass.DisplayName: true melee damage +StealthDamageClass.DisplayName: Stealth Damage Class diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson index a29337a0c3..0054ca4b14 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.Hardmode.hjson @@ -174,7 +174,7 @@ FathomSwarmerBreastplate: { Tooltip: ''' 6% increased damage reduction - Increases your max number of minions by 1 + Increases your max number of minions by 1 10% increased summon damage Reduces defense loss within the Abyss ''' @@ -184,7 +184,7 @@ FathomSwarmerVisage: { DisplayName: Fathom Swarmer Visage Tooltip: ''' - Increases your max number of minions by 1 + Increases your max number of minions by 1 8% increased summon damage Provides breathing and light underwater ''' diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs index 339b5fa9a4..59ebe4f20b 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs @@ -274,10 +274,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { float straightUpJumpHeight = 540f; if (npc.ai[3] == 0f) - { - npc.ai[3] = (!headAlive && Collision.CanHit(npc.Center, 1, 1, new Vector2(npc.Center.X, npc.Center.Y - 60f) - Vector2.UnitY * straightUpJumpHeight, 1, 1)) ? Main.rand.Next(3) + 1f : - (!leftFistAlive && !rightFistAlive) ? Main.rand.Next(2) + 1f : 1f; - } + npc.ai[3] = (!headAlive && npc.Bottom.Y - straightUpJumpHeight > Main.player[npc.target].Top.Y) ? Main.rand.Next(3) + 1f : (!leftFistAlive && !rightFistAlive) ? Main.rand.Next(2) + 1f : 1f; switch ((int)npc.ai[3]) { @@ -351,7 +348,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.ai[1] = 0f; npc.ai[2] = 2f; - float jumpDuration = (float)Math.Floor(straightUpJumpHeight / npc.velocity.Y); + float jumpDuration = (float)Math.Floor(straightUpJumpHeight / Math.Abs(npc.velocity.Y)); npc.ai[3] = jumpDuration; npc.netUpdate = true; @@ -466,7 +463,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses Main.dust[fiery2].velocity.X *= 2f; } - int totalFireballs = masterMode ? 8 : 5; + int totalFireballs = masterMode ? 7 : 5; if (turboEnrage && Main.getGoodWorld) totalFireballs *= 2; @@ -504,7 +501,10 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Velocity when falling if (npc.ai[2] == 2f) { - float laserShootGateValue = death ? 3f : 4f; + // Do not collide with tiles while doing this crazy shit + npc.noTileCollide = true; + + float laserShootGateValue = death ? 5f : 8f; if (npc.ai[3] % laserShootGateValue == 0f) { if (Main.netMode != NetmodeID.MultiplayerClient)