nuked double dipping
This commit is contained in:
1 parent
ac28b43701
commit
3a32571aab
9 files changed
+11
-11
No files matched your search
@@ -650,7 +650,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
Vector2 direction = shorkCenter - player.Center;
|
||||
direction.Normalize();
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, direction * 10f, ProjectileID.DemonSickle, NPC.damage / 2, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, direction * 10f, ProjectileID.DemonSickle, 80, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,7 +285,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
Vector2 ai0 = NPC.Center - fireFrom;
|
||||
float ai = Main.rand.Next(100);
|
||||
Vector2 velocity = Vector2.Normalize(ai0.RotatedByRandom(MathHelper.PiOver4)) * 7f;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), NPC.damage, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), 75, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -849,7 +849,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
Vector2 ai0 = NPC.Center - fireFrom;
|
||||
float ai = Main.rand.Next(100);
|
||||
Vector2 velocity = Vector2.Normalize(ai0.RotatedByRandom(MathHelper.PiOver4)) * 7f;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), NPC.damage, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), 75, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -923,7 +923,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
Vector2 ai0 = NPC.Center - fireFrom;
|
||||
float ai = Main.rand.Next(100);
|
||||
Vector2 velocity = Vector2.Normalize(ai0.RotatedByRandom(MathHelper.PiOver4)) * 7f;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), NPC.damage, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), 75, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1306,7 +1306,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
Vector2 ai0 = NPC.Center - fireFrom;
|
||||
float ai = Main.rand.Next(100);
|
||||
Vector2 velocity = Vector2.Normalize(ai0.RotatedByRandom(MathHelper.PiOver4)) * 7f;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), NPC.damage, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), 75, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
Vector2 ai0 = NPC.Center - fireFrom;
|
||||
float ai = Main.rand.Next(100);
|
||||
Vector2 velocity = Vector2.Normalize(ai0.RotatedByRandom(MathHelper.PiOver4)) * 7f;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), NPC.damage, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fireFrom.X, fireFrom.Y, velocity.X, velocity.Y, ModContent.ProjectileType<RedLightning>(), 45, 0f, Main.myPlayer, ai0.ToRotation(), ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center, velocity, ModContent.ProjectileType<ClamBubbleBlast>(), NPC.damage / 2, 1);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center, velocity, ModContent.ProjectileType<ClamBubbleBlast>(), Main.hardMode ? 30 : 15, 1);
|
||||
}
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
|
||||
@@ -243,7 +243,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center, Vector2.Zero, ModContent.ProjectileType<GhostBellShock>(), (int)(NPC.damage * 0.5f), 0, ai1: NPC.whoAmI + 1);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center, Vector2.Zero, ModContent.ProjectileType<GhostBellShock>(), 12, 0, ai1: NPC.whoAmI + 1);
|
||||
}
|
||||
}
|
||||
// Reset
|
||||
|
||||
@@ -202,7 +202,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
Vector2 spawnPos = new Vector2(NPC.Center.X + NPC.direction * 18, NPC.position.Y + 22);
|
||||
Vector2 projSpeed = spawnPos.DirectionTo(currentTarget.Center).SafeNormalize(Vector2.Zero) * 6;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), spawnPos, projSpeed, ModContent.ProjectileType<HorsPoisonBlast>(), NPC.damage, 0f);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), spawnPos, projSpeed, ModContent.ProjectileType<HorsPoisonBlast>(), 10, 0f);
|
||||
}
|
||||
}
|
||||
// Squash and stretch
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + (NPC.rotation - (NPC.spriteDirection == 1 ? 0 : MathHelper.Pi)).ToRotationVector2() * 40, Vector2.Zero, ModContent.ProjectileType<AnglerFlash>(), (int)(NPC.damage * 0.5f), 1);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + (NPC.rotation - (NPC.spriteDirection == 1 ? 0 : MathHelper.Pi)).ToRotationVector2() * 40, Vector2.Zero, ModContent.ProjectileType<AnglerFlash>(), 20, 1);
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath7 with { Pitch = 0.4f }, NPC.Center);
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
{
|
||||
SoundEngine.PlaySound(Effects.StormlionEffects.Attack with { Volume = 1f, Pitch = Main.rand.NextFloat(-0.1f, 0.1f) }, NPC.Center);
|
||||
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), attackPosition, (headRot.ToRotationVector2() * 12), ModContent.ProjectileType<StormlionSentryBullet>(), NPC.damage, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromThis(), attackPosition, (headRot.ToRotationVector2() * 12), ModContent.ProjectileType<StormlionSentryBullet>(), 15, 0f, Main.myPlayer);
|
||||
for (int i = 0; i <= 12; i++)
|
||||
{
|
||||
float variance = Main.rand.NextFloat(-0.6f, 0.6f);
|
||||
|
||||
Reference in new issue
Block a user