Blazing Core -> Divine Providence

Also moved its flavor tooltip to the end and gave it the profaned color
This commit is contained in:
CongratsIsTrash committed 2026-07-25 13:39:32 -04:00
1 parent dbd0371b83
commit c77c9d7594
10 files changed
+60 -59

No files matched your search

+11 -11
View File
@@ -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;
/// <summary> General cooldown for accessories which spawn projectiles on minion hits. </summary>
@@ -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<BlazingStarHeal>()] == 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<BlazingSun>(), 0, 0f, Player.whoAmI, 0f, 0f);
Main.projectile[blazingSun].Center = Player.Center;
+10 -10
View File
@@ -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)
{
+7 -7
View File
@@ -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)
+3 -3
View File
@@ -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;
@@ -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;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

+1 -1
View File
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.TreasureBags
itemLoot.Add(ModContent.ItemType<PristineFury>(), 10);
// Equipment
itemLoot.Add(ModContent.ItemType<BlazingCore>());
itemLoot.Add(ModContent.ItemType<DivineProvidence>());
itemLoot.AddRevBagAccessories();
// Vanity
@@ -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:
+2 -2
View File
@@ -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<BlazingCore>()));
// normalOnly.Add(DropHelper.PerPlayer(ModContent.ItemType<DivineProvidence>()));
// Materials
normalOnly.Add(ModContent.ItemType<DivineGeode>(), 1, 50, 60);
@@ -2675,7 +2675,7 @@ namespace CalamityMod.NPCs.Providence
// Equipment
ModContent.ItemType<ElysianWings>(),
ModContent.ItemType<ElysianAegis>(),
ModContent.ItemType<BlazingCore>(),
ModContent.ItemType<DivineProvidence>(),
ModContent.ItemType<ProfanedSoulCrystal>(),
// Vanity
+1 -1
View File
@@ -176,7 +176,7 @@ namespace CalamityMod.Systems.Collections
/// </summary>
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<AngelicAlliance>(), ItemType<AscendantInsignia>(), ItemType<BlazingCore>(), ItemType<BlunderBooster>(), ItemType<DeadshotBrooch>(), ItemType<FlameLickedShell>(),
.RegisterBoolSet(ItemType<AngelicAlliance>(), ItemType<AscendantInsignia>(), ItemType<DivineProvidence>(), ItemType<BlunderBooster>(), ItemType<DeadshotBrooch>(), ItemType<FlameLickedShell>(),
ItemType<InterstellarStompers>(),ItemType<PlaguedFuelPack>(), ItemType<PlanebreakersPouch>(), ItemType<SpectralVeil>(), ItemType<SpringStool>(), ItemType<ThePointer>(), ItemType<TheTransformer>());
}
}