Part of my attempt to create a visual identity for each arsenal energy type that can be consistently applied across all items once they are reworked This commit changes: Taser - New left click and previous function is on right click with arsenal cooldown, vfx overhaul Scattershot Skewer - Completely re-coded the entire thing, now has right and left click separation and can perform a skewer dash, vfx overhaul Pulse Pistol - Completely re-coded how the orb tracking and movement works, hits twice before splitting instead of once, vfx overhaul Pulse Rifle - Same as Pulse Pistol, vfx overhaul Added 4 more dust types Changed the dusts and colors used by Effects.ArsenalEffects Fixed Plama typo
27 lines
951 B
C#
27 lines
951 B
C#
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.Audio;
|
|
using Terraria.Localization;
|
|
|
|
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 void Tick()
|
|
{
|
|
if (Main.zenithWorld)
|
|
instance.timeLeft = -1;
|
|
|
|
}
|
|
|
|
public override SoundStyle? EndSound => (Main.zenithWorld ? null : new("CalamityMod/Sounds/Item/ArsenalOffCooldown"));
|
|
}
|
|
}
|