adjusted final dawn
This commit is contained in:
1 parent
27ff2c40a9
commit
86ffbb9c6c
6 files changed
+19
-11
No files matched your search
@@ -10729,8 +10729,14 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
private float UpdateStealthGenStats()
|
||||
{
|
||||
int finalDawnProjCount = player.ownedProjectileCounts[ModContent.ProjectileType<FinalDawnProjectile>()] +
|
||||
player.ownedProjectileCounts[ModContent.ProjectileType<FinalDawnFireSlash>()] +
|
||||
player.ownedProjectileCounts[ModContent.ProjectileType<FinalDawnHorizontalSlash>()] +
|
||||
player.ownedProjectileCounts[ModContent.ProjectileType<FinalDawnThrow>()] +
|
||||
player.ownedProjectileCounts[ModContent.ProjectileType<FinalDawnThrow2>()];
|
||||
|
||||
// If you are actively using an item, you cannot gain stealth.
|
||||
if (player.itemAnimation > 0)
|
||||
if (player.itemAnimation > 0 || finalDawnProjCount > 0)
|
||||
return 0f;
|
||||
|
||||
// Penumbra Potion provides various boosts to rogue stealth generation
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
if (player.dead || player is null || Main.myPlayer != projectile.owner)
|
||||
if (player.dead || player is null)
|
||||
projectile.Kill();
|
||||
|
||||
player.direction = projectile.direction;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
if (player.dead || player is null || Main.myPlayer != projectile.owner)
|
||||
if (player.dead || player is null)
|
||||
projectile.Kill();
|
||||
|
||||
projectile.Center = player.Center;
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.friendly = true;
|
||||
Main.PlaySound(SoundID.Item71, projectile.position);
|
||||
|
||||
if(projectile.owner == Main.myPlayer)
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<FinalDawnFlame>(), projectile.damage / 2, 0f, projectile.owner);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
if (player.dead || player is null || Main.myPlayer != projectile.owner)
|
||||
if (player.dead || player is null)
|
||||
projectile.Kill();
|
||||
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.NewProjectile(player.Center,
|
||||
player.DirectionTo(Main.MouseWorld) * 38f,
|
||||
ModContent.ProjectileType<FinalDawnThrow2>(),
|
||||
(int)(projectile.damage * 2.5f),
|
||||
(int)(projectile.damage * 1.5f),
|
||||
projectile.knockBack,
|
||||
projectile.owner);
|
||||
player.Calamity().ConsumeStealthByAttacking();
|
||||
@@ -111,6 +111,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.DirectionTo(Main.MouseWorld) * 38f,
|
||||
ModContent.ProjectileType<FinalDawnThrow>(), projectile.damage,
|
||||
projectile.knockBack, projectile.owner);
|
||||
player.Calamity().ConsumeStealthByAttacking();
|
||||
}
|
||||
}
|
||||
// Close range attack
|
||||
@@ -122,17 +123,18 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.NewProjectile(projectile.Center,
|
||||
projectile.velocity,
|
||||
ModContent.ProjectileType<FinalDawnHorizontalSlash>(),
|
||||
(int)(projectile.damage * 2.5f),
|
||||
(int)(projectile.damage * 1.5f),
|
||||
projectile.knockBack,
|
||||
projectile.owner);
|
||||
player.Calamity().ConsumeStealthByAttacking();
|
||||
}
|
||||
else
|
||||
{
|
||||
//This one doesn't consume stealth since it replenishes stealth on hits
|
||||
Projectile.NewProjectile(projectile.Center,
|
||||
projectile.velocity,
|
||||
ModContent.ProjectileType<FinalDawnFireSlash>(),
|
||||
(int)(projectile.damage * 1.5f),
|
||||
projectile.damage,
|
||||
projectile.knockBack,
|
||||
projectile.owner);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
if (player.dead || player is null || Main.myPlayer != projectile.owner)
|
||||
if (player.dead || player is null)
|
||||
projectile.Kill();
|
||||
|
||||
if (projectile.localAI[0] == 0)
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Vector2 velocity = Utils.NextVector2Circular(Main.rand, 7.2f, 7.2f);
|
||||
Projectile.NewProjectile(projectile.Center, velocity,
|
||||
ModContent.ProjectileType<FinalDawnFireball>(),
|
||||
(int)(projectile.damage * 0.8), projectile.knockBack, projectile.owner, 0f,
|
||||
(int)(projectile.damage * 0.3), projectile.knockBack, projectile.owner, 0f,
|
||||
target.whoAmI);
|
||||
}
|
||||
HasHitEnemy = true;
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Player player = Main.player[projectile.owner];
|
||||
|
||||
if (player.dead || player is null || Main.myPlayer != projectile.owner)
|
||||
if (player.dead || player is null)
|
||||
projectile.Kill();
|
||||
|
||||
if (projectile.localAI[0] == 0)
|
||||
|
||||
Reference in new issue
Block a user