fixed a compile error
This commit is contained in:
1 parent
e2e5f92ac6
commit
a8ff09f242
2 files changed
+2
-2
No files matched your search
@@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
float kback = player.ActiveItem().knockBack;
|
||||
if (canShoot)
|
||||
{
|
||||
player.PickAmmo(player.ActiveItem(), ref projType, ref speedMult, ref canShoot, ref damage, ref kback, false);
|
||||
player.PickAmmo(player.ActiveItem(), ref projType, ref speedMult, ref canShoot, ref damage, ref kback);
|
||||
kback = player.GetWeaponKnockback(player.ActiveItem(), kback);
|
||||
float speed = player.ActiveItem().shootSpeed * projectile.scale;
|
||||
Vector2 targetPos = Main.screenPosition + new Vector2((float)Main.mouseX, (float)Main.mouseY) - source;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
float SpeedY = -projectile.velocity.Y * Main.rand.Next(40, 70) * 0.01f + Main.rand.Next(-20, 21) * 0.4f;
|
||||
int shard = Projectile.NewProjectile(projectile.Center.X + SpeedX, projectile.Center.Y + SpeedY, SpeedX, SpeedY, ProjectileID.CrystalShard, projectile.damage / 2, 0f, projectile.owner);
|
||||
if (shard.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[idx].Calamity().forceMinion = true;
|
||||
Main.projectile[shard].Calamity().forceMinion = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user