simplified gfb brimmy cross code
i have had at least 2 sleepless nights thinking about this wall of NewProjectiles
This commit is contained in:
1 parent
727b653453
commit
46e0973a41
1 file changed
+5
-5
@@ -424,12 +424,12 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
int type = ModContent.ProjectileType<BrimstoneRay>();
|
||||
int damage = RayDamage;
|
||||
Vector2 pos = NPC.Center;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), pos, new Vector2(0, 1), type, damage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), pos, new Vector2(0, -1), type, damage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), pos, new Vector2(1, 0), type, damage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), pos, new Vector2(-1, 0), type, damage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), pos, Vector2.UnitY.RotatedBy(MathHelper.Lerp(0, MathHelper.TwoPi, i / 4f)), type, damage, 0f, Main.myPlayer, 0f, NPC.whoAmI);
|
||||
}
|
||||
}
|
||||
if (currentMode >= 1 && currentMode <= 3)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user