Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
45fd9be862
3 files changed
+6
-4
No files matched your search
@@ -2037,7 +2037,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (CalamityMod.SandCloakHotkey.JustPressed && sandCloak && Main.myPlayer == player.whoAmI && player.Calamity().rogueStealth >= player.Calamity().rogueStealthMax * 0.25f &&
|
||||
wearingRogueArmor && player.Calamity().rogueStealthMax > 0 && !sandCloakCooldown)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<SandCloakCooldown>(), 900, false); //15 seconds
|
||||
player.AddBuff(ModContent.BuffType<SandCloakCooldown>(), 1800, false); //30 seconds
|
||||
player.Calamity().rogueStealth -= player.Calamity().rogueStealthMax * 0.25f;
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), 7, 8, player.whoAmI, 0, 0);
|
||||
Main.PlaySound(2, player.position, 45);
|
||||
|
||||
@@ -506,6 +506,8 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.gaelRageCooldown--;
|
||||
if (modPlayer.projRefRareLifeRegenCounter > 0)
|
||||
modPlayer.projRefRareLifeRegenCounter--;
|
||||
if (modPlayer.sandCloakCooldown && !player.HasBuff(ModContent.BuffType<SandCloakCooldown>()))
|
||||
modPlayer.sandCloakCooldown = false;
|
||||
|
||||
// Silva invincibility effects
|
||||
if (modPlayer.silvaCountdown > 0 && modPlayer.hasSilvaEffect && modPlayer.silvaSet)
|
||||
@@ -1182,10 +1184,10 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Plagued Fuel Pack effects
|
||||
if (modPlayer.plaguedFuelPack && modPlayer.plaguedFuelPackDash > 0)
|
||||
if (modPlayer.plaguedFuelPackDash > 0)
|
||||
{
|
||||
int velocityMult = modPlayer.plaguedFuelPackDash > 1 ? 25 : 5;
|
||||
player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, -1) * velocityMult;
|
||||
player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, player.velocity.Y < 0 ? -1 : (player.velocity.Y == 0 ? -1 : 1)) * velocityMult;
|
||||
|
||||
int numClouds = Main.rand.Next(2, 10);
|
||||
for (int i = 0; i < numClouds; i++)
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
num16 = (float)num15 / num16;
|
||||
num13 *= num16;
|
||||
num14 *= num16;
|
||||
Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType<EclipsesSmol>(), (int)((double)projectile.damage * 0.1 * Main.rand.Next(4, 7)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(x, y, num13, num14, ModContent.ProjectileType<EclipsesSmol>(), (int)((double)projectile.damage * 0.08 * Main.rand.Next(4, 7)), (int)((double)projectile.knockBack * 0.1 * Main.rand.Next(7, 10)), projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user