Fix obscure, silent rusty medal bug
This commit is contained in:
1 parent
1fcc79c620
commit
75fe70716d
1 file changed
+4
-1
@@ -5589,9 +5589,12 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Vector2 startingPosition = Main.MouseWorld - Vector2.UnitY.RotatedByRandom(0.4f) * 1250f;
|
||||
Vector2 directionToMouse = (startingPosition - Main.MouseWorld).SafeNormalize(Vector2.UnitY).RotatedByRandom(0.1f);
|
||||
int drop = Projectile.NewProjectileDirect(source, startingPosition, directionToMouse * 12f, ModContent.ProjectileType<ToxicannonDrop>(), (int)(damage * 0.3), 0f, Player.whoAmI).penetrate = 2;
|
||||
int drop = Projectile.NewProjectile(source, startingPosition, directionToMouse * 12f, ModContent.ProjectileType<ToxicannonDrop>(), (int)(damage * 0.3), 0f, Player.whoAmI);
|
||||
if (drop.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[drop].penetrate = 2;
|
||||
Main.projectile[drop].Calamity().forceClassless = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user