From b4bc7c4e838dad164df916c1b416bda24dc07bc3 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 17 Aug 2024 00:04:54 -0400 Subject: [PATCH] 1 - Dynamic tooltip for Hallow-Point Rounds works now. 2 - Fixed weird spacing (GitHub does not show whitespace correctly in PRs) --- Items/Ammo/HallowPointRound.cs | 10 +++++++++- .../en-US/Mods.CalamityMod.Attunement.hjson | 19 ++++++++----------- .../en-US/Mods.CalamityMod.Items.Ammo.hjson | 9 +++------ 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/Items/Ammo/HallowPointRound.cs b/Items/Ammo/HallowPointRound.cs index 56d140b143..84a745076e 100644 --- a/Items/Ammo/HallowPointRound.cs +++ b/Items/Ammo/HallowPointRound.cs @@ -1,4 +1,5 @@ -using CalamityMod.Projectiles.Ranged; +using System.Collections.Generic; +using CalamityMod.Projectiles.Ranged; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -33,6 +34,13 @@ namespace CalamityMod.Items.Ammo Item.ammo = AmmoID.Bullet; } + public override void ModifyTooltips(List list) + { + // Add the proper damage value + int nonConvertDamage = (int)Main.LocalPlayer.GetTotalDamage().ApplyTo(BaseDamage + BonusDamageOnHit); + list.FindAndReplace("[DAMAGE]", nonConvertDamage.ToString()); + } + public override void AddRecipes() { CreateRecipe(100). diff --git a/Localization/en-US/Mods.CalamityMod.Attunement.hjson b/Localization/en-US/Mods.CalamityMod.Attunement.hjson index 4c2b45b564..cbe2d847af 100644 --- a/Localization/en-US/Mods.CalamityMod.Attunement.hjson +++ b/Localization/en-US/Mods.CalamityMod.Attunement.hjson @@ -9,7 +9,7 @@ HotAttunement: { Function: ''' Conjure searing blades in front of you that get larger and stronger with enemy hits - The blades will bounce you off of tiles while in the air + The blades will bounce you off of tiles while in the air ''' } @@ -22,17 +22,14 @@ TropicalAttunement: { Name: Grovetender's Touch Function: ''' - Throw out the blade on a vine whip, pulling you toward struck tiles + Throw out the blade on a vine whip, pulling you toward struck tiles Striking enemies with the tip of the whip as it cracks guarantees a critical hit ''' } EvilAttunement: { Name: Decay's Retort - Function: - ''' - Lunge forward with a ghostly rapier projection, bouncing away from struck targets and leeching their life - ''' + Function: Lunge forward with a ghostly rapier projection, bouncing away from struck targets and leeching their life } // Mended Biome Blade @@ -68,7 +65,7 @@ TrueTropicalAttunement: { Name: Grovetender's Touch Function: ''' - Throw out the blade on a vine whip, pulling you toward struck tiles + Throw out the blade on a vine whip, pulling you toward struck tiles Striking enemies with the tip of the whip as it cracks guarantees a critical hit Spreading vines sprout from critical strikes, which can hit up to three targets ''' @@ -105,7 +102,7 @@ MarineAttunement: { Name: Gesture for the Drowned Function: ''' - Shoot out gravity-affected water orbs, which turn into small waves on ground contact + Shoot out gravity-affected water orbs, which turn into small waves on ground contact Waves that make contact with water become much larger and faster ''' } @@ -138,7 +135,7 @@ SuperPogoAttunement: { Conjure molten blades in front of you that get larger and stronger with enemy hits The blades will bounce you off of tiles while in the air Releasing sends the charged blades hurtling forwards like a wheel - Attacking immediately after throwing the blade launches you toward it, damaging enemies + Attacking immediately after throwing the blade launches you toward it, damaging enemies ''' PassiveDesc: Striking enemies will rarely heal you } @@ -175,7 +172,7 @@ AriesAttunement: { Name: Aries' Wrath Function: ''' - Binds the sword to your cursor through a chain of constellations + Binds the sword to your cursor through a chain of constellations Striking enemies causes nebulous explosions which spawn homing cosmic bolts ''' PassiveName: Capricorn's Blessing @@ -193,7 +190,7 @@ PolarisAttunement: { Channel Galaxia's power into a vortex of celestial energies The vortex powers up over time and while hitting enemies Release to fire a powerful star directly at your cursor - Attacking immediately after firing the star launches you toward it, damaging enemies + Attacking immediately after firing the star launches you toward it, damaging enemies ''' PassiveName: Cancer's Blessing PassiveDesc: diff --git a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson index b8e32bcfa6..416a526556 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson @@ -83,7 +83,7 @@ HallowPointRound: { DisplayName: Hallow-Point Round Tooltip: ''' - Releases anointed light on hit that increases the bullet's base damage to {0} + Releases anointed light on hit that increases the bullet's base damage to [DAMAGE] This effect does not occur if the bullets are converted by special guns ''' } @@ -93,16 +93,13 @@ HolyFireBullet: { Tooltip: ''' Profaned bullets that explode on impact, dealing extra damage - The explosion grows weaker the further the bullet travels + The explosion grows weaker the further the bullet travels ''' } HyperiusBullet: { DisplayName: Hyperius Bullet - Tooltip: - ''' - Dazzling multicolor bullets that split into swirling lights on impact - ''' + Tooltip: Dazzling multicolor bullets that split into swirling lights on impact } IcicleArrow: {