Added Arsenal Cooldown

Unused on current arsenal weapons but will be used on a few reworked arsenal weapons as they are made
This commit is contained in:
Xyk committed 2024-07-16 16:40:27 -07:00
1 parent 10f8d263ba
commit e89b452eea
8 files changed
+26

No files matched your search

+2
View File
@@ -179,6 +179,7 @@ namespace CalamityMod.CalPlayer
#region Timer and Counter
public int gaelSwipes = 0;
public int arsenalCooldown = 0;
public int dragoonDrizzlefishGelBoost = 1;
public int deadSunCounter = 6;
public int DragonsBreathAudioCooldown = 0;
@@ -2334,6 +2335,7 @@ namespace CalamityMod.CalPlayer
#region Debuffs
heldGaelsLastFrame = false;
gaelSwipes = 0;
arsenalCooldown = 0;
andromedaState = AndromedaPlayerState.Inactive;
planarSpeedBoost = 0;
galileoCooldown = 0;
+2
View File
@@ -1414,6 +1414,8 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
}
if (arsenalCooldown > 0)
arsenalCooldown--;
if (ascendantInsigniaCooldown > 0 && ascendantInsigniaBuffTime <= 0)
ascendantInsigniaCooldown--;
if (DragonsBreathAudioCooldown > 0)
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.Localization;
using static CalamityMod.CalamityUtils;
namespace CalamityMod.Cooldowns
{
public class ArsenalPower : CooldownHandler
{
public static new string ID => "ArsenalPower";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ArsenalPower";
public override Color OutlineColor => Color.White;
public override Color CooldownStartColor => Color.Sienna;
public override Color CooldownEndColor => Color.LightSlateGray;
public override SoundStyle? EndSound => new("CalamityMod/Sounds/Item/ArsenalOffCooldown");
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -80,6 +80,7 @@ ExtensionName: {
// Cooldowns
Cooldowns: {
AquaticHeartIceShield: Ice Shield Cooldown
ArsenalPower: Arsenal Cooldown
AscendEffect: Ascension Cooldown
BloodflareFrenzy: Blood Frenzy Cooldown
BloodflareRangedSet: Bloodflare Soul Cooldown
Binary file not shown.