diff --git a/Gores/ScourgeBody.png b/Gores/ScourgeBody.png index accaf65b82..a2f3d2d311 100644 Binary files a/Gores/ScourgeBody.png and b/Gores/ScourgeBody.png differ diff --git a/Gores/ScourgeBody2.png b/Gores/ScourgeBody2.png index b794713f53..eeaebc2314 100644 Binary files a/Gores/ScourgeBody2.png and b/Gores/ScourgeBody2.png differ diff --git a/Gores/ScourgeBody3.png b/Gores/ScourgeBody3.png index dac9809a08..b19c571370 100644 Binary files a/Gores/ScourgeBody3.png and b/Gores/ScourgeBody3.png differ diff --git a/Gores/ScourgeBody4.png b/Gores/ScourgeBody4.png new file mode 100644 index 0000000000..a6260dc14b Binary files /dev/null and b/Gores/ScourgeBody4.png differ diff --git a/Gores/ScourgeBody5.png b/Gores/ScourgeBody5.png new file mode 100644 index 0000000000..1c5cc5c959 Binary files /dev/null and b/Gores/ScourgeBody5.png differ diff --git a/Gores/ScourgeHead.png b/Gores/ScourgeHead.png index e8d61d2dc7..27d89de361 100644 Binary files a/Gores/ScourgeHead.png and b/Gores/ScourgeHead.png differ diff --git a/Gores/ScourgeHead2.png b/Gores/ScourgeHead2.png index 8510307c09..bf40772330 100644 Binary files a/Gores/ScourgeHead2.png and b/Gores/ScourgeHead2.png differ diff --git a/Gores/ScourgeHead3.png b/Gores/ScourgeHead3.png new file mode 100644 index 0000000000..93af69d947 Binary files /dev/null and b/Gores/ScourgeHead3.png differ diff --git a/Gores/ScourgeNuisance2Body.png b/Gores/ScourgeNuisance2Body.png new file mode 100644 index 0000000000..fc0d902bc4 Binary files /dev/null and b/Gores/ScourgeNuisance2Body.png differ diff --git a/Gores/ScourgeNuisance2Body2.png b/Gores/ScourgeNuisance2Body2.png new file mode 100644 index 0000000000..f9a1ff5528 Binary files /dev/null and b/Gores/ScourgeNuisance2Body2.png differ diff --git a/Gores/ScourgeNuisance2Body3.png b/Gores/ScourgeNuisance2Body3.png new file mode 100644 index 0000000000..899345e378 Binary files /dev/null and b/Gores/ScourgeNuisance2Body3.png differ diff --git a/Gores/ScourgeNuisance2Body4.png b/Gores/ScourgeNuisance2Body4.png new file mode 100644 index 0000000000..d7f84f5b23 Binary files /dev/null and b/Gores/ScourgeNuisance2Body4.png differ diff --git a/Gores/ScourgeNuisance2Head.png b/Gores/ScourgeNuisance2Head.png new file mode 100644 index 0000000000..21d4c058fa Binary files /dev/null and b/Gores/ScourgeNuisance2Head.png differ diff --git a/Gores/ScourgeNuisance2Tail.png b/Gores/ScourgeNuisance2Tail.png new file mode 100644 index 0000000000..e120482403 Binary files /dev/null and b/Gores/ScourgeNuisance2Tail.png differ diff --git a/Gores/ScourgeNuisanceBody.png b/Gores/ScourgeNuisanceBody.png new file mode 100644 index 0000000000..991f581dc3 Binary files /dev/null and b/Gores/ScourgeNuisanceBody.png differ diff --git a/Gores/ScourgeNuisanceBody2.png b/Gores/ScourgeNuisanceBody2.png new file mode 100644 index 0000000000..b39b721bfb Binary files /dev/null and b/Gores/ScourgeNuisanceBody2.png differ diff --git a/Gores/ScourgeNuisanceBody3.png b/Gores/ScourgeNuisanceBody3.png new file mode 100644 index 0000000000..09faf4f834 Binary files /dev/null and b/Gores/ScourgeNuisanceBody3.png differ diff --git a/Gores/ScourgeNuisanceBody4.png b/Gores/ScourgeNuisanceBody4.png new file mode 100644 index 0000000000..1bf3cf5c0f Binary files /dev/null and b/Gores/ScourgeNuisanceBody4.png differ diff --git a/Gores/ScourgeNuisanceHead.png b/Gores/ScourgeNuisanceHead.png new file mode 100644 index 0000000000..a79bd4df83 Binary files /dev/null and b/Gores/ScourgeNuisanceHead.png differ diff --git a/Gores/ScourgeNuisanceTail.png b/Gores/ScourgeNuisanceTail.png new file mode 100644 index 0000000000..bb867d7c1e Binary files /dev/null and b/Gores/ScourgeNuisanceTail.png differ diff --git a/Gores/ScourgeTail.png b/Gores/ScourgeTail.png index 6c89dc8498..0d034bfcee 100644 Binary files a/Gores/ScourgeTail.png and b/Gores/ScourgeTail.png differ diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 2f2248dae3..241e828c5e 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -365,10 +365,32 @@ namespace CalamityMod.NPCs.DesertScourge { if (Main.netMode != NetmodeID.Server) { - float randomSpread = Main.rand.Next(-200, 201) / 100f; - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody").Type, NPC.scale); - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody2").Type, NPC.scale); - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find("ScourgeBody3").Type, NPC.scale); + switch ((int)NPC.ai[3]) + { + default: + case 0: + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody").Type, NPC.scale); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody2").Type, NPC.scale); + break; + + case 1: + case 10: + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody2").Type, NPC.scale); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody3").Type, NPC.scale); + break; + + case 2: + case 20: + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody2").Type, NPC.scale); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody4").Type, NPC.scale); + break; + + case 3: + case 30: + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody2").Type, NPC.scale); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeBody5").Type, NPC.scale); + break; + } } for (int k = 0; k < 10; k++) diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 731af0af0d..36d2ef47d5 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -834,6 +834,7 @@ namespace CalamityMod.NPCs.DesertScourge { Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeHead").Type, NPC.scale); Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeHead2").Type, NPC.scale); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("ScourgeHead3").Type, NPC.scale); } for (int k = 0; k < 10; k++) diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 7387859b80..979ac62f3b 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -923,7 +923,10 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient) { - Vector2 center = player.Center + new Vector2(0f, -540f); + float bulletHellTeleportLocationDistance = 540f; + Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); + Vector2 teleportLocation = player.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; + Vector2 center = player.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center; int type = ModContent.ProjectileType(); @@ -1297,7 +1300,10 @@ namespace CalamityMod.NPCs.Yharon if (Main.netMode != NetmodeID.MultiplayerClient) { - Vector2 center = player.Center + new Vector2(0f, -540f); + float bulletHellTeleportLocationDistance = 540f; + Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); + Vector2 teleportLocation = player.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; + Vector2 center = player.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center; int type = ModContent.ProjectileType(); @@ -2042,7 +2048,10 @@ namespace CalamityMod.NPCs.Yharon NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType()); } - Vector2 center = targetData.Center + new Vector2(0f, -540f); + float bulletHellTeleportLocationDistance = 540f; + Vector2 defaultTeleportLocation = new Vector2(0f, -bulletHellTeleportLocationDistance); + Vector2 teleportLocation = targetData.velocity.SafeNormalize(Vector2.Zero) * -1f * bulletHellTeleportLocationDistance; + Vector2 center = targetData.Center + (teleportLocation == Vector2.Zero ? defaultTeleportLocation : teleportLocation); NPC.Center = center; int type = ModContent.ProjectileType();