From 63499b3211a29d457b678fca0974755dfdac3405 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Sun, 6 Aug 2023 20:57:42 +0100 Subject: [PATCH] Cooldown sprites --- CalPlayer/CalamityPlayer.cs | 4 ++-- Cooldowns/BlazingCore.png | Bin 401 -> 0 bytes Cooldowns/BlazingCoreOutline.png | Bin 225 -> 0 bytes Cooldowns/BlazingCoreOverlay.png | Bin 164 -> 0 bytes Cooldowns/ElysianGuard.png | Bin 0 -> 465 bytes ...ingCoreCooldown.cs => ElysianGuardCooldown.cs} | 6 +++--- Cooldowns/ElysianGuardOutline.png | Bin 0 -> 215 bytes Cooldowns/ElysianGuardOverlay.png | Bin 0 -> 200 bytes .../Mods.CalamityMod.Items.Accessories.hjson | 2 +- Localization/en-US/Mods.CalamityMod.UI.hjson | 2 +- 10 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 Cooldowns/BlazingCore.png delete mode 100644 Cooldowns/BlazingCoreOutline.png delete mode 100644 Cooldowns/BlazingCoreOverlay.png create mode 100644 Cooldowns/ElysianGuard.png rename Cooldowns/{BlazingCoreCooldown.cs => ElysianGuardCooldown.cs} (82%) create mode 100644 Cooldowns/ElysianGuardOutline.png create mode 100644 Cooldowns/ElysianGuardOverlay.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 6b582de5e5..686027abb8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5636,7 +5636,7 @@ namespace CalamityMod.CalPlayer { if (blazingCoreParry >= 18) //only the first 12 frames (0.2 seconds) counts for a valid parry { - if (!Player.HasCooldown(BlazingCoreCooldown.ID)) + if (!Player.HasCooldown(ElysianGuardCooldown.ID)) { Player.GiveIFrames(45); blazingCoreEmpoweredParry = true; @@ -5645,7 +5645,7 @@ namespace CalamityMod.CalPlayer SoundEngine.PlaySound(SoundID.Shatter); blazingCoreSuccessfulParry = 60; - Player.AddCooldown(BlazingCoreCooldown.ID, 60 * 30, false); //cooldown is frames in seconds multiplied by the desired amount of seconds + Player.AddCooldown(ElysianGuardCooldown.ID, 60 * 30, false); //cooldown is frames in seconds multiplied by the desired amount of seconds } if (blazingCoreParry > 1) diff --git a/Cooldowns/BlazingCore.png b/Cooldowns/BlazingCore.png deleted file mode 100644 index a16d008d6db3cb3cae6d3d0038d29d026e4174ba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 401 zcmV;C0dD?@P)Px$OG!jQR5*>blsiwuFc?LTleB3RTD3gOPytKT1y!)HFu{a`SXuc&?ED5+)Rh5= zg`KHu2ZpMm>O(~(i5VOdIRvRl_%42a_OX3Gi$i}C0LOIzNa94Yf(FY808PIt07_D* zbyf-fi#$N4WB>%!5PYa2vbT}P4h za|>;kLTQEY`zh<9tjel#{&+ewaC6B7efW9VIJGZnyqq_SYZJ4_nL7;+7zHZr*FRCsy!-05Rhg{slV{Tf zJW{V4UX*b;dx5Pe`>1h6E=%9yirrJcvOH4oZn_uD*%&c5FWBj@?QzZo#_bA2WIhW*_63};`cvv_pnWSSl4l*`XE VS7Fa>Vgx#q!PC{xWt~$(699%eRXYFx diff --git a/Cooldowns/BlazingCoreOverlay.png b/Cooldowns/BlazingCoreOverlay.png deleted file mode 100644 index 9c00f719ed686fb21a94ac5360087076940ed84a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1IgI8PVH5R2aA zKmY&RGfN#1P+*XlXz8PprN$8<;ZZJV<#5rzRJ>2h!!jY!VTrO=^6ZI?i5e9%)ezkEz80y4qXh~a+Wdcj))#>R+oLmo4jhb07J|XE`tF1)klFgF?hQA KxvXPx$aY;l$R5*>rlrcy`Q51&17a>MNkdq-qLk$*0Lt#ooL157mI441CZjDV%(N^FT zNXSDmmslT3V~5WBrdn%y@S5X8*F&>FZZ5%&bfT|+;cDVDW$SXsjTWZ zexTpL-)c}_h=oR6R5$rJ0Gad~0IImA02WiGE3e%8GkciF!&{*04AZcC#P_nK7*j!$4#b4ju z`%EmiSvM;RAYnCtZf)1&A2zX*Aaz^8F_k>7??Kc2h|JPVxny`%-ms(ccrxZObnwznE@I7yKWw zE;)fNoluu=#6L-lh>sOx{Bi&Q01jnXNoGw=04e|g00;m8000000Mb*F00000NkvXX Hu0mjf "BlazingCore"; + public static new string ID => "ElysianGuard"; public override bool ShouldDisplay => true; public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}"); - public override string Texture => "CalamityMod/Cooldowns/BlazingCore"; + public override string Texture => "CalamityMod/Cooldowns/ElysianGuard"; public override Color OutlineColor => new Color(255, 191, 73); public override Color CooldownStartColor => new Color(181, 136, 177); public override Color CooldownEndColor => new Color(255, 194, 161); diff --git a/Cooldowns/ElysianGuardOutline.png b/Cooldowns/ElysianGuardOutline.png new file mode 100644 index 0000000000000000000000000000000000000000..95331ffe47d148661fc241d863c8a0a1b3429086 GIT binary patch literal 215 zcmeAS@N?(olHy`uVBq!ia0vp^QXtI11|(N{`J4k%jKx9jP7LeL$-D$|$~|2iLp(a) zPV?qEpupoY_tNk9op(dT8x`dfTP|$x{n_Jr#Bh?0eB^%Z*8!|&4y=@Zo