From 5741c8d2894923327efe9412f37f0252c5cee3ff Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 24 Jul 2026 04:21:59 +0700 Subject: [PATCH 1/2] gold piggy has no banner item assigned --- NPCs/NormalNPCs/PiggyGold.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/NormalNPCs/PiggyGold.cs b/NPCs/NormalNPCs/PiggyGold.cs index 5f6978d906..c8729e2514 100644 --- a/NPCs/NormalNPCs/PiggyGold.cs +++ b/NPCs/NormalNPCs/PiggyGold.cs @@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.rarity = 3; NPC.catchItem = (short)ModContent.ItemType(); Banner = 0; + BannerItem = 0; } public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) From 7c9824023196b31de03b840c8663accdbb0e1df8 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Fri, 24 Jul 2026 04:52:58 +0700 Subject: [PATCH 2/2] nebulous core tooltip fix as per crit's changes --- CalPlayer/CalamityPlayerHitHurt.cs | 4 ++-- Items/Accessories/NebulousCore.cs | 12 ++++++++++-- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 6 +++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 516075adcf..a0c13eafef 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -209,9 +209,9 @@ namespace CalamityMod.CalPlayer chaliceBleedoutBuffer = 0D; chaliceDamagePointPartialProgress = 0D; } - Player.HealPlayer(300); + Player.HealPlayer(Items.Accessories.NebulousCore.HealLifeOnRevive); - Player.AddCooldown(Cooldowns.NebulousCore.ID, CalamityUtils.SecondsToFrames(90)); + Player.AddCooldown(Cooldowns.NebulousCore.ID, Items.Accessories.NebulousCore.ReviveCooldown); return false; } diff --git a/Items/Accessories/NebulousCore.cs b/Items/Accessories/NebulousCore.cs index b5df5e244d..c76d9086dd 100644 --- a/Items/Accessories/NebulousCore.cs +++ b/Items/Accessories/NebulousCore.cs @@ -5,6 +5,7 @@ using CalamityMod.Rarities; using CalamityMod.Systems.Collections; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories @@ -12,6 +13,13 @@ namespace CalamityMod.Items.Accessories public class NebulousCore : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; + + public static float DamageBoost => 0.12f; + public static int HealLifeOnRevive => 300; + public static int ReviveCooldown => CalamityUtils.SecondsToFrames(90); + public static int MaxStars => 15; + public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), HealLifeOnRevive, ReviveCooldown.FramesToSeconds()); + public override void SetStaticDefaults() { CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType()]; @@ -37,7 +45,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.nebulousCore = true; - player.GetDamage() += 0.12f; + player.GetDamage() += DamageBoost; // Spawn nebula stars if (Main.rand.NextBool(15)) @@ -51,7 +59,7 @@ namespace CalamityMod.Items.Accessories numProj++; } } - if (Main.rand.Next(15) >= numProj && numProj < 15) + if (Main.rand.Next(15) >= numProj && numProj < MaxStars) { int spawnRadius = 24; for (int j = 0; j < 50; j++) // Attempt to spawn the star randomly around the player diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 9669136eac..e6683ce165 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1216,10 +1216,10 @@ NebulousCore: { DisplayName: Nebulous Core Tooltip: ''' - 12% increased damage + {0}% increased damage Summons floating nebula stars to protect you - Taking a fatal hit revives you to 100 HP - This effect has a 90 second cooldown + Taking a fatal hit revives you to {1} HP + This effect has a {2} second cooldown ''' }