diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 8b5f79791c..7e939836f1 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1070,10 +1070,10 @@ namespace CalamityMod.CalPlayer public bool dynamoStemCells = false; public bool etherealExtorter = false; public Item AccessoryParryItem = null; - public bool blazingCore = false; - public int blazingCoreParry = 0; - public int blazingCoreSuccessfulParry = 0; - public bool blazingCoreEmpoweredParry = false; + public bool divineProvidence = false; + public int divineProvParry = 0; + public int divineProvSuccessfulParry = 0; + public bool divineProvEmpoweredParry = false; public bool voltaicJelly = false; public bool jellyChargedBattery = false; /// General cooldown for accessories which spawn projectiles on minion hits. @@ -2478,7 +2478,7 @@ namespace CalamityMod.CalPlayer dynamoStemCells = false; etherealExtorter = false; AccessoryParryItem = null; - blazingCore = false; + divineProvidence = false; voltaicJelly = false; jellyChargedBattery = false; starbusterCore = false; @@ -3399,9 +3399,9 @@ namespace CalamityMod.CalPlayer xerocSet = false; tracersDust = false; GemTechState.OnDeathEffects(); - blazingCoreParry = 0; - blazingCoreEmpoweredParry = false; - blazingCoreSuccessfulParry = 0; + divineProvParry = 0; + divineProvEmpoweredParry = false; + divineProvSuccessfulParry = 0; flameLickedShellParry = 0; flameLickedShellEmpoweredParry = false; profanedCrystalAnim = -1; @@ -3754,7 +3754,7 @@ namespace CalamityMod.CalPlayer if (AccessoryParryItem != null && AccessoryParryItem.JustPressedKeybind()) { - if (blazingCore && blazingCoreParry == 0 && blazingCoreSuccessfulParry == 0) + if (divineProvidence && divineProvParry == 0 && divineProvSuccessfulParry == 0) { //minor cheese prevention with standing on a spike with later game gear spamming parry :skull: //because of ordering, if they do not have the cooldown, it will not check the projectile array. Likewise if there are no bosses alive. @@ -3762,8 +3762,8 @@ namespace CalamityMod.CalPlayer if (!Player.HasCooldown(ParryCooldown.ID) || Player.ownedProjectileCounts[ProjectileType()] == 0) { Player.SetScreenshake(3.5f); - blazingCoreParry = 30; - SoundEngine.PlaySound(BlazingCore.ParryActivateSound, Player.Center); + divineProvParry = 30; + SoundEngine.PlaySound(DivineProvidence.ParryActivateSound, Player.Center); var mySourceIsIMadeItUp = Player.GetSource_FromThis(); int blazingSun = Projectile.NewProjectile(mySourceIsIMadeItUp, Player.Center, Vector2.Zero, ProjectileType(), 0, 0f, Player.whoAmI, 0f, 0f); Main.projectile[blazingSun].Center = Player.Center; diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 1c2f540687..6703ccd155 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1563,23 +1563,23 @@ namespace CalamityMod.CalPlayer // It has not yet been mitigated by any means. // - if (blazingCoreParry > 0) //check for active parry + if (divineProvParry > 0) //check for active parry { - if (blazingCoreParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry + if (divineProvParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry { if (!Player.HasCooldown(ParryCooldown.ID)) { - // 17APR2024: Ozzatron: Blazing Core is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. - int blazingCoreParryIFrames = Player.ComputeParryIFrames(); - Player.GiveUniversalIFrames(blazingCoreParryIFrames, true); + // 17APR2024: Ozzatron: Divine Providence is a parry. It uses vanilla parry iframes and benefits from Cross Necklace. + int divineProvParryIFrames = Player.ComputeParryIFrames(); + Player.GiveUniversalIFrames(divineProvParryIFrames, true); - blazingCoreEmpoweredParry = true; + divineProvEmpoweredParry = true; modifiers.Cancel(); modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing } - SoundEngine.PlaySound(BlazingCore.ParrySuccessSound, Player.Center); + SoundEngine.PlaySound(DivineProvidence.ParrySuccessSound, Player.Center); float power = 2; for (int i = 0; i < (int)(20 * power); i++) @@ -1609,12 +1609,12 @@ namespace CalamityMod.CalPlayer Particle orb2 = new CustomPulse(Player.Center, Vector2.Zero, Color.Khaki, "CalamityMod/Particles/BloomRing", new Vector2(1f, 0.5f), 0, 0, 2.1f * power, 25); GeneralParticleHandler.SpawnParticle(orb2); - blazingCoreSuccessfulParry = 60; + divineProvSuccessfulParry = 60; Player.AddCooldown(ParryCooldown.ID, 60 * 30, false, "blazingcore"); //cooldown is frames in seconds multiplied by the desired amount of seconds } - if (blazingCoreParry > 1) - blazingCoreParry = 1; //schedule parry to end next frame + if (divineProvParry > 1) + divineProvParry = 1; //schedule parry to end next frame } else if (flameLickedShellParry > 0) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 62396bcd18..852712030f 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2535,15 +2535,15 @@ namespace CalamityMod.CalPlayer if (auralisAuroraCooldown > 0) auralisAuroraCooldown--; - if (blazingCore) + if (divineProvidence) { - if (blazingCoreSuccessfulParry > 0) - BlazingCore.HandleStars(Player); - else if (blazingCoreParry > 0) - BlazingCore.HandleParryCountdown(Player); + if (divineProvSuccessfulParry > 0) + DivineProvidence.HandleStars(Player); + else if (divineProvParry > 0) + DivineProvidence.HandleParryCountdown(Player); } - else if (blazingCoreParry > 0) - blazingCoreParry--; + else if (divineProvParry > 0) + divineProvParry--; else if (flameLickedShellParry > 0) { if (flameLickedShell) diff --git a/CalPlayer/DrawLayers/EncasementParryLayer.cs b/CalPlayer/DrawLayers/EncasementParryLayer.cs index 4e3deb92bc..12e96039d4 100644 --- a/CalPlayer/DrawLayers/EncasementParryLayer.cs +++ b/CalPlayer/DrawLayers/EncasementParryLayer.cs @@ -15,7 +15,7 @@ namespace CalamityMod.CalPlayer.DrawLayers } public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.FrontAccFront); //me when the player layer is called front acc front :skull: - public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.blazingCore ? EncasementType.BlazingCore : EncasementType.FlameLickedShell; + public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.divineProvidence ? EncasementType.BlazingCore : EncasementType.FlameLickedShell; public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) { @@ -25,7 +25,7 @@ namespace CalamityMod.CalPlayer.DrawLayers bool visible = drawInfo.shadow == 0f && !drawPlayer.dead; visible = encasement switch { - EncasementType.BlazingCore => visible && modPlayer.blazingCoreParry > 0, + EncasementType.BlazingCore => visible && modPlayer.divineProvParry > 0, EncasementType.FlameLickedShell => visible && modPlayer.flameLickedShellParry > 0, _ => false }; @@ -45,7 +45,7 @@ namespace CalamityMod.CalPlayer.DrawLayers { case EncasementType.BlazingCore: tex += "BlazingCoreCrystal"; - currentParry = calPlayer.blazingCoreParry; + currentParry = calPlayer.divineProvParry; defaultOpacity = 0.725f; scale = 1.15f; break; diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/DivineProvidence.cs similarity index 87% rename from Items/Accessories/BlazingCore.cs rename to Items/Accessories/DivineProvidence.cs index 6082a7d1ae..e6771ab241 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/DivineProvidence.cs @@ -13,7 +13,8 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class BlazingCore : ModItem, ILocalizedModType + [LegacyName("BlazingCore")] + public class DivineProvidence : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; @@ -42,22 +43,22 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { - player.Calamity().blazingCore = true; + player.Calamity().divineProvidence = true; player.Calamity().AccessoryParryItem = Item; player.noKnockback = true; } public static void HandleStars(Player player) { - bool empowered = player.Calamity().blazingCoreEmpoweredParry; + bool empowered = player.Calamity().divineProvEmpoweredParry; float divisor = 3f; int totalFlameProjectiles = 45; int chains = 3; float interval = totalFlameProjectiles / chains * divisor; - double patternInterval = Math.Floor(player.Calamity().blazingCoreSuccessfulParry / interval); + double patternInterval = Math.Floor(player.Calamity().divineProvSuccessfulParry / interval); - if (player.Calamity().blazingCoreSuccessfulParry % 4 == 0) //play sound every 4 frames + if (player.Calamity().divineProvSuccessfulParry % 4 == 0) //play sound every 4 frames { SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact, player.Center); } @@ -90,19 +91,19 @@ namespace CalamityMod.Items.Accessories offset += 10f; } - player.Calamity().blazingCoreSuccessfulParry--; - if (player.Calamity().blazingCoreSuccessfulParry <= 0) + player.Calamity().divineProvSuccessfulParry--; + if (player.Calamity().divineProvSuccessfulParry <= 0) { offset = 0f; - player.Calamity().blazingCoreEmpoweredParry = false; + player.Calamity().divineProvEmpoweredParry = false; } } public static void HandleParryCountdown(Player player) { - player.Calamity().blazingCoreParry--; + player.Calamity().divineProvParry--; - if (player.Calamity().blazingCoreParry > 0) + if (player.Calamity().divineProvParry > 0) { player.controlJump = false; player.controlDown = false; diff --git a/Items/Accessories/BlazingCore.png b/Items/Accessories/DivineProvidence.png similarity index 100% rename from Items/Accessories/BlazingCore.png rename to Items/Accessories/DivineProvidence.png diff --git a/Items/TreasureBags/ProvidenceBag.cs b/Items/TreasureBags/ProvidenceBag.cs index 965665155d..90580b17e1 100644 --- a/Items/TreasureBags/ProvidenceBag.cs +++ b/Items/TreasureBags/ProvidenceBag.cs @@ -75,7 +75,7 @@ namespace CalamityMod.Items.TreasureBags itemLoot.Add(ModContent.ItemType(), 10); // Equipment - itemLoot.Add(ModContent.ItemType()); + itemLoot.Add(ModContent.ItemType()); itemLoot.AddRevBagAccessories(); // Vanity diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 63ac256ee7..4314bdf9af 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -301,20 +301,6 @@ BlackGlassBand: { ''' } -BlazingCore: { - DisplayName: Blazing Core - Tooltip: - ''' - {$Common.KnockbackImmunity} - The searing core of the Profaned Goddess - Pressing [KEY] will activate a parry, encasing you in luminous profaned crystal - Being hit shortly after encasement will shatter the crystal - Upon shattering, holy stars spiral outwards and damage taken is negated - After shattering, this damage reduction effect goes on cooldown - Damage parried whilst on cooldown summons additional healing stars, and will not be reduced - ''' -} - BloodflareCore: { DisplayName: Bloodflare Core Tooltip: @@ -602,6 +588,20 @@ CrushingEgo: { ''' } +DivineProvidence: { + DisplayName: Divine Providence + Tooltip: + ''' + {$Common.KnockbackImmunity} + Pressing [KEY] will activate a parry, encasing you in luminous profaned crystal + Being hit shortly after encasement will shatter the crystal + Upon shattering, holy stars spiral outwards and damage taken is negated + After shattering, this damage reduction effect goes on cooldown + Damage parried whilst on cooldown summons additional healing stars, and will not be reduced + [c/FF8C00:The searing core of the Profaned Goddess] + ''' +} + DraedonsHeart: { DisplayName: Draedon's Heart Tooltip: diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 3a418d463e..8d238e2028 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2002,7 +2002,7 @@ namespace CalamityMod.NPCs.Providence // Equipment // 16NOV2025: Ozzatron: item has been chosen as the "Expert gatekept" item for this Calamity boss - // normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); + // normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType())); // Materials normalOnly.Add(ModContent.ItemType(), 1, 50, 60); @@ -2675,7 +2675,7 @@ namespace CalamityMod.NPCs.Providence // Equipment ModContent.ItemType(), ModContent.ItemType(), - ModContent.ItemType(), + ModContent.ItemType(), ModContent.ItemType(), // Vanity diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 75a9b9b8c4..3f7a5fca7f 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -176,7 +176,7 @@ namespace CalamityMod.Systems.Collections /// public static bool[] HasAccessoryKeybind = Factory.CreateNamedSet("HasAccessoryKeybind") .Description("Counts this item as having an accessory keybind. Used for assigning which keybind goes to which accessory.") - .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(),ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); } }