prevented horny acc swap spam
This commit is contained in:
1 parent
aef26e5118
commit
c3280878f1
3 files changed
+19
-5
No files matched your search
@@ -197,11 +197,16 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.ai[1] = 0f;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
|
||||
// Prevent firing immediately
|
||||
if (projectile.localAI[0] < 120f)
|
||||
projectile.localAI[0] += 1f;
|
||||
|
||||
if (projectile.ai[0] == 0f)
|
||||
{
|
||||
float scaleFactor3 = 14f;
|
||||
int num658 = ModContent.ProjectileType<BrimstoneFireballMinion>();
|
||||
if (flag25 && projectile.ai[1] == 0f)
|
||||
if (flag25 && projectile.ai[1] == 0f && projectile.localAI[0] >= 120f)
|
||||
{
|
||||
projectile.ai[1] += 1f;
|
||||
if (Main.myPlayer == projectile.owner && Collision.CanHitLine(projectile.position, projectile.width, projectile.height, vector46, 0, 0))
|
||||
|
||||
@@ -241,11 +241,16 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.ai[1] = 0f;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
|
||||
// Prevent firing immediately
|
||||
if (projectile.localAI[0] < 120f)
|
||||
projectile.localAI[0] += 1f;
|
||||
|
||||
if (projectile.ai[0] == 0f)
|
||||
{
|
||||
float scaleFactor3 = 11f;
|
||||
int num658 = ModContent.ProjectileType<SandBolt>();
|
||||
if (flag25 && projectile.ai[1] == 0f)
|
||||
if (flag25 && projectile.ai[1] == 0f && projectile.localAI[0] >= 120f)
|
||||
{
|
||||
projectile.ai[1] += 1f;
|
||||
if (Main.myPlayer == projectile.owner && Collision.CanHitLine(projectile.position, projectile.width, projectile.height, vector46, 0, 0))
|
||||
|
||||
@@ -90,8 +90,8 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.position.Y = player.Center.Y - (float)(projectile.height / 2) + player.gfxOffY - 180f;
|
||||
if (player.gravDir == -1f)
|
||||
{
|
||||
projectile.position.Y = projectile.position.Y + 360f;
|
||||
projectile.rotation = 3.14f;
|
||||
projectile.position.Y += 360f;
|
||||
projectile.rotation = MathHelper.Pi;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -101,6 +101,10 @@ namespace CalamityMod.Projectiles.Summon
|
||||
projectile.position.Y = (float)(int)projectile.position.Y;
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
// Prevent firing immediately
|
||||
if (projectile.localAI[0] < 120f)
|
||||
projectile.localAI[0] += 1f;
|
||||
|
||||
if (projectile.ai[0] != 0f)
|
||||
{
|
||||
projectile.ai[0] -= 1f;
|
||||
@@ -145,7 +149,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
}
|
||||
}
|
||||
if (flag18)
|
||||
if (flag18 && projectile.localAI[0] >= 120f)
|
||||
{
|
||||
float num516 = num506;
|
||||
float num517 = num507;
|
||||
|
||||
Reference in new issue
Block a user