Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
No files matched your search
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 414 B |
|
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 473 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -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<ModGore>("ScourgeBody").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find<ModGore>("ScourgeBody2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find<ModGore>("ScourgeBody3").Type, NPC.scale);
|
||||
switch ((int)NPC.ai[3])
|
||||
{
|
||||
default:
|
||||
case 0:
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody2").Type, NPC.scale);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
case 10:
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody3").Type, NPC.scale);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
case 20:
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody4").Type, NPC.scale);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
case 30:
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeBody5").Type, NPC.scale);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (int k = 0; k < 10; k++)
|
||||
|
||||
@@ -834,6 +834,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeHead").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeHead2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("ScourgeHead3").Type, NPC.scale);
|
||||
}
|
||||
|
||||
for (int k = 0; k < 10; k++)
|
||||
|
||||
@@ -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<YharonBulletHellVortex>();
|
||||
@@ -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<YharonBulletHellVortex>();
|
||||
@@ -2042,7 +2048,10 @@ namespace CalamityMod.NPCs.Yharon
|
||||
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<Bumblefuck>());
|
||||
}
|
||||
|
||||
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<YharonBulletHellVortex>();
|
||||
|
||||