From 7fd397bacacec504903de7e5d84d733df6474c94 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Tue, 25 Aug 2020 15:56:15 -0500 Subject: [PATCH] 1 - Yharon's bullet hell teleports are no longer random and he will always teleport above you now. --- NPCs/Yharon/Yharon.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 2cb72e94f5..2fc941a045 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -877,8 +877,7 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == phaseSwitchTimer + 15f) { - teleportLocation = Main.rand.NextBool(2) ? (revenge ? 500 : 600) : (revenge ? -500 : -600); - Vector2 center = player.Center + new Vector2(-npc.ai[1], teleportLocation); + Vector2 center = player.Center + new Vector2(0f, -540f); npcCenter = npc.Center = center; } @@ -1199,8 +1198,7 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[2] == phaseSwitchTimer + 15f) { - teleportLocation = Main.rand.NextBool(2) ? (revenge ? 500 : 600) : (revenge ? -500 : -600); - Vector2 center = player.Center + new Vector2(-npc.ai[1], teleportLocation); + Vector2 center = player.Center + new Vector2(0f, -540f); npcCenter = npc.Center = center; } @@ -1871,8 +1869,7 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient && npc.ai[1] == phaseSwitchTimer + timeBeforeTeleport) { - teleportLocation = Main.rand.NextBool(2) ? (revenge ? 500 : 600) : (revenge ? -500 : -600); - Vector2 center = targetData.Center + new Vector2(-npc.ai[2] * 500f, teleportLocation); + Vector2 center = targetData.Center + new Vector2(0f, -540f); npcCenter = npc.Center = center; }