From a7da82061d1b4aa4935aa4ef7fddf387e08ea0ec Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 6 Feb 2025 22:35:14 -0500 Subject: [PATCH] Added a cooldown for Holy Protection --- Cooldowns/HolyProtection.cs | 17 +++++++++++++++++ Cooldowns/HolyProtection.png | Bin 0 -> 271 bytes Cooldowns/HolyProtectionOutline.png | Bin 0 -> 228 bytes Cooldowns/HolyProtectionOverlay.png | Bin 0 -> 195 bytes ILEditing/ILChangesLoading.cs | 1 + ILEditing/MechanicILChanges.cs | 16 +++++++++------- Localization/en-US/Mods.CalamityMod.UI.hjson | 1 + 7 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 Cooldowns/HolyProtection.cs create mode 100644 Cooldowns/HolyProtection.png create mode 100644 Cooldowns/HolyProtectionOutline.png create mode 100644 Cooldowns/HolyProtectionOverlay.png diff --git a/Cooldowns/HolyProtection.cs b/Cooldowns/HolyProtection.cs new file mode 100644 index 0000000000..57e4c1a3eb --- /dev/null +++ b/Cooldowns/HolyProtection.cs @@ -0,0 +1,17 @@ +using Microsoft.Xna.Framework; +using Terraria.Localization; + +namespace CalamityMod.Cooldowns +{ + public class HolyProtection : CooldownHandler + { + public static new string ID => "HolyProtection"; + + public override bool ShouldDisplay => CalamityClientConfig.Instance.VanillaCooldownDisplay; + public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}"); + public override string Texture => "CalamityMod/Cooldowns/HolyProtection"; + public override Color OutlineColor => Color.Orange; + public override Color CooldownStartColor => Color.Lerp(Color.Yellow, Color.White, 1 - instance.Completion); + public override Color CooldownEndColor => Color.Lerp(Color.Yellow, Color.White, 1 - instance.Completion); + } +} diff --git a/Cooldowns/HolyProtection.png b/Cooldowns/HolyProtection.png new file mode 100644 index 0000000000000000000000000000000000000000..7199c46518fca507d78e2af811ce5f73b11ef9b7 GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?L-d&}|vu)5K6U<6rz;j#Nj6s&fnXawjr8 z3)&{S`CyHN#E&^mj0H#3^b8pER0J>RPfKLj>vB+Zw}C^dxRC(^gHWRN?n`r%?*iS+ N;OXk;vd$@?2>^mNU5@|& literal 0 HcmV?d00001 diff --git a/Cooldowns/HolyProtectionOutline.png b/Cooldowns/HolyProtectionOutline.png new file mode 100644 index 0000000000000000000000000000000000000000..f148c9f02fa29ed88b502aa31a0d9dda3131a219 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjjKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!AegT#}E(ix6=&y4k++2JOBUxTx^xFv(l?F z29cH983GxkD;M1GKF4)=c2MH469;$nFWYl)le6U&+ut$@0a{CPZ*0HE*tDdG|MsDM zrF;S(B6qeY|FXO+`((eu0bwF literal 0 HcmV?d00001 diff --git a/Cooldowns/HolyProtectionOverlay.png b/Cooldowns/HolyProtectionOverlay.png new file mode 100644 index 0000000000000000000000000000000000000000..7f1e396eb291497357788b0b72d3708626409ea3 GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?=Jxy`_mVE|V&Jj`J713>LO!jX0-^{