fixed roxcalibur bug, hopefully
This commit is contained in:
1 parent
848df20fed
commit
07e5abc455
2 files changed
+6
No files matched your search
@@ -271,6 +271,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
RoxAlt = false;
|
||||
RoxCanUse = 0;
|
||||
player.velocity.Y = -16f;
|
||||
player.fallStart = (int)(player.position.Y / 16f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -293,6 +294,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
RoxAlt = false;
|
||||
RoxCanUse = 0;
|
||||
player.velocity.Y = -16f;
|
||||
player.fallStart = (int)(player.position.Y / 16f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
//Bounce
|
||||
player.velocity.Y = -18f;
|
||||
//reset player fall damage
|
||||
player.fallStart = (int)(player.position.Y / 16f);
|
||||
//Spawns the shockwave
|
||||
Projectile.NewProjectile(projectile.position.X + 25, projectile.position.Y + 25, 0f, 0f, ModContent.ProjectileType<RoxShockwave>(), 300, 12, projectile.owner);
|
||||
Main.PlaySound(2, projectile.position, 14);
|
||||
@@ -55,6 +57,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
player.velocity.Y = -14f;
|
||||
//reset player fall damage
|
||||
player.fallStart = (int)(player.position.Y / 16f);
|
||||
Main.PlaySound(21, projectile.position);
|
||||
projectile.Kill();
|
||||
|
||||
|
||||
Reference in new issue
Block a user