Renamed icicleCooldown variable to wingProjectileCooldown

This commit is contained in:
CongratsIsTrash committed 2024-10-25 15:08:04 -04:00
1 parent fde8a639be
commit f5d446dcae
4 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -728,7 +728,7 @@ namespace CalamityMod.CalPlayer
public int phantomicBulwarkCooldown = 0;
public int phantomicHeartRegen = 0; // 0 = can spawn, 720 = regen applied, 600 = regen stops and 10 sec cd before it can spawn again
public bool silvaWings = false;
public int icicleCooldown = 0;
public int wingProjectileCooldown = 0;
public bool RustyMedallionDroplets = false;
public bool MiniSwarmers = false;
public bool noStupidNaturalARSpawns = false;
@@ -2449,7 +2449,7 @@ namespace CalamityMod.CalPlayer
killSpikyBalls = false;
scuttlerCooldown = 0;
rogueCrownCooldown = 0;
icicleCooldown = 0;
wingProjectileCooldown = 0;
statisTimer = 0;
hallowedRuneCooldown = 0;
sulphurBubbleCooldown = 0;
+2 -2
View File
@@ -1630,8 +1630,8 @@ namespace CalamityMod.CalPlayer
evolutionLifeRegenCounter--;
if (hurtSoundTimer > 0)
hurtSoundTimer--;
if (icicleCooldown > 0)
icicleCooldown--;
if (wingProjectileCooldown > 0)
wingProjectileCooldown--;
if (statisTimer > 0 && Player.dashDelay >= 0)
statisTimer = 0;
if (hallowedRuneCooldown > 0)
+2 -2
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories.Wings
CalamityPlayer modPlayer = player.Calamity();
modPlayer.cryogenSoul = true;
player.noFallDmg = true;
if (modPlayer.icicleCooldown <= 0)
if (modPlayer.wingProjectileCooldown <= 0)
{
if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
{
@@ -66,7 +66,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.projectile[p].DamageType = DamageClass.Generic;
Main.projectile[p].frame = Main.rand.Next(5);
}
modPlayer.icicleCooldown = 7;
modPlayer.wingProjectileCooldown = 7;
}
}
}
+4 -4
View File
@@ -1403,7 +1403,7 @@ namespace CalamityMod.Items
else if (item.type == ItemID.FestiveWings) // Drop homing christmas tree bulbs while in flight
{
player.noFallDmg = true;
if (modPlayer.icicleCooldown <= 0)
if (modPlayer.wingProjectileCooldown <= 0)
{
var source = player.GetSource_Accessory(item);
if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
@@ -1414,7 +1414,7 @@ namespace CalamityMod.Items
{
Main.projectile[p].DamageType = DamageClass.Generic;
Main.projectile[p].Calamity().lineColor = 1;
modPlayer.icicleCooldown = 15;
modPlayer.wingProjectileCooldown = 15;
}
}
}
@@ -1422,7 +1422,7 @@ namespace CalamityMod.Items
else if (item.type == ItemID.TatteredFairyWings) // Leave a trail of damaging fairy dust while in flight
{
player.noFallDmg = true;
if (modPlayer.icicleCooldown <= 0)
if (modPlayer.wingProjectileCooldown <= 0)
{
var source = player.GetSource_Accessory(item);
if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
@@ -1432,7 +1432,7 @@ namespace CalamityMod.Items
int p = Projectile.NewProjectile(source, player.Center, fairyDustVel, ModContent.ProjectileType<TatteredFairyDust>(), fairyDustDamage, 0f, player.whoAmI);
if (p.WithinBounds(Main.maxProjectiles))
modPlayer.icicleCooldown = 10;
modPlayer.wingProjectileCooldown = 10;
}
}
}