From 7ebbdc3637b920733063178130762964acf269d4 Mon Sep 17 00:00:00 2001 From: Doze-Zoze Date: Sun, 13 Apr 2025 13:02:05 -0500 Subject: [PATCH 1/9] Buffed Gravity Globe & Step Stool --- CalPlayer/CalamityPlayerMiscEffects.cs | 6 +++++- Items/CalamityGlobalItem.cs | 11 ++++++++++- Items/CalamityGlobalItemTooltip.cs | 7 +++++++ Localization/en-US/Mods.CalamityMod.Vanilla.hjson | 7 +++++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 188e338e1b..8aa31c8792 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1264,7 +1264,7 @@ namespace CalamityMod.CalPlayer if (holdingDown && Player.ControlsEnabled() && notInLiquid && notOnRope && notGrappling && airborne && !Player.Calamity().gSabatonFalling) //Player cannot further increase their ridiculous gravity during a Gravistar Slam { Player.velocity.Y += Player.gravity * Player.gravDir * (BalancingConstants.HoldingDownGravityMultiplier - 1f); - if (Player.Calamity().gSabaton) + if (Player.Calamity().gSabaton && !Player.gravControl2) { Player.maxFallSpeed *= 1.5f; } @@ -4212,6 +4212,10 @@ namespace CalamityMod.CalPlayer Player.GetCritChance() += 10; } + + if (Player.portableStoolInfo.IsInUse) + Player.GetCritChance(DamageClass.Generic) += 5; + // Amalgam boosts if (Main.myPlayer == Player.whoAmI) { diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index aa46204ec2..c2527eb132 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1292,7 +1292,16 @@ namespace CalamityMod.Items if (item.type == ItemID.TerrasparkBoots) player.buffImmune[BuffID.OnFire] = true; - else if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water + if (item.type == ItemID.GravityGlobe) + { + player.jumpSpeedBoost += 1.6f; + if (player.controlDown) + player.maxFallSpeed *= 1.5f; + else + player.maxFallSpeed *= 1.2f; + } + + if (item.type == ItemID.FinWings) // Boosted water abilities, faster fall in water { if (player.IsUnderwater()) player.gills = true; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 298f055625..bfb8475015 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -569,6 +569,13 @@ namespace CalamityMod.Items if (item.healLife > 0 && Main.LocalPlayer.Calamity().healingPotionMultiplier != 1f) EditTooltipByName("HealLife", (line) => line.Text = Language.GetOrRegister("CommonItemTooltip.RestoresLife").Format((int)(item.healLife * Main.LocalPlayer.Calamity().healingPotionMultiplier))); + + if (item.type == ItemID.GravityGlobe) + EditTooltipByName("Tooltip1", (line) => line.Text = EditedTooltip("GravityGlobe")); + + + if (item.type == ItemID.PortableStool) + EditTooltipByName("Tooltip0", (line) => line.Text += AddedTooltip("Stepstool")); #endregion // For boss summon item clarity diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson index 198423a825..de54b6ddb0 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson @@ -29,6 +29,7 @@ AddedTooltip: { WarmthPotion: Greatly reduces the duration of Chilled, Frozen, and Glacial State HandWarmer: Provides a regeneration boost while wearing the Snow armor GoldenFishingRod: Its fishing line will never break + Stepstool: Standing on the stool grants 5% increased critical strike change Tombstones: ''' 13 of any tombstone turns the surrounding area into a graveyard @@ -274,6 +275,12 @@ EditedTooltip: { ApprenticeAltHead: 10% increased summon & magic damage ApprenticeAltShirt: 15% increased summon damage and 10% increased magic damage ApprenticeAltPants: 10% increased summon damage + GravityGlobe: + ''' + Provides 40% increased jump speed and increased fall speed + Press UP to change gravity + Press DOWN to fall faster + ''' } // Buff Descriptions From 752b48495b13a24b350830325533f20645bd5ed9 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 13 Apr 2025 14:13:59 -0400 Subject: [PATCH 2/9] Typo --- Localization/en-US/Mods.CalamityMod.Vanilla.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson index de54b6ddb0..67fca52f74 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson @@ -29,7 +29,7 @@ AddedTooltip: { WarmthPotion: Greatly reduces the duration of Chilled, Frozen, and Glacial State HandWarmer: Provides a regeneration boost while wearing the Snow armor GoldenFishingRod: Its fishing line will never break - Stepstool: Standing on the stool grants 5% increased critical strike change + Stepstool: Standing on the stool grants 5% increased critical strike chance Tombstones: ''' 13 of any tombstone turns the surrounding area into a graveyard From e5d70aa8335a0cb04e6557b86445889fa1ffee64 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 13 Apr 2025 14:16:29 -0400 Subject: [PATCH 3/9] And listed jump speed boost was wrong --- Localization/en-US/Mods.CalamityMod.Vanilla.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson index 67fca52f74..e5915809b6 100644 --- a/Localization/en-US/Mods.CalamityMod.Vanilla.hjson +++ b/Localization/en-US/Mods.CalamityMod.Vanilla.hjson @@ -277,7 +277,7 @@ EditedTooltip: { ApprenticeAltPants: 10% increased summon damage GravityGlobe: ''' - Provides 40% increased jump speed and increased fall speed + Provides 32% increased jump speed and increased fall speed Press UP to change gravity Press DOWN to fall faster ''' From 15f83814e6c378ae29b55659c4d10990ad41cb2f Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Sun, 13 Apr 2025 16:40:53 -0400 Subject: [PATCH 4/9] Telluric Glare + Tyranny's End Balancing --- Items/Weapons/Ranged/TelluricGlare.cs | 2 +- Items/Weapons/Ranged/TyrannysEnd.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/TelluricGlare.cs b/Items/Weapons/Ranged/TelluricGlare.cs index cb31b705a1..0c8764a770 100644 --- a/Items/Weapons/Ranged/TelluricGlare.cs +++ b/Items/Weapons/Ranged/TelluricGlare.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 74; Item.height = 126; - Item.damage = 116; + Item.damage = 101; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 25; diff --git a/Items/Weapons/Ranged/TyrannysEnd.cs b/Items/Weapons/Ranged/TyrannysEnd.cs index 2dec620a10..d88653ec1f 100644 --- a/Items/Weapons/Ranged/TyrannysEnd.cs +++ b/Items/Weapons/Ranged/TyrannysEnd.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 150; Item.height = 48; - Item.damage = 2000; + Item.damage = 2150; Item.knockBack = 9.5f; Item.DamageType = DamageClass.Ranged; Item.useTime = 60; From 21c4edd2204f7adb1b8394e34b4fa5f57c043c80 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 13 Apr 2025 17:10:37 -0400 Subject: [PATCH 5/9] Added Tax Collector name Casino King Gray for donor --- NPCs/CalamityGlobalTownNPC.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 7971485fc8..4654b47906 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -225,6 +225,7 @@ namespace CalamityMod.NPCs private static readonly string[] TaxCollectorNames = { "Emmett", + "Casino King Gray", // <@!555512087711973390> (eternalgrayson) }; private static readonly string[] TravelingMerchantNames = { From 34ad2c37a6441fb3d5fda10178b21782261ca9cc Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Sun, 13 Apr 2025 23:10:41 +0200 Subject: [PATCH 6/9] DSO Crit Hardcap. --- Items/Accessories/DaawnlightSpiritOrigin.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Items/Accessories/DaawnlightSpiritOrigin.cs b/Items/Accessories/DaawnlightSpiritOrigin.cs index e5a655113b..41291522ae 100644 --- a/Items/Accessories/DaawnlightSpiritOrigin.cs +++ b/Items/Accessories/DaawnlightSpiritOrigin.cs @@ -58,6 +58,11 @@ namespace CalamityMod.Items.Accessories // Special search radius for coin ricoshots that only applies to DSO targets. public static readonly float RicoshotSearchDistance = 2800f; + /// + /// The maximum amount of extra critical strike chance you can get from this accessory. + /// + public static readonly int CritHardCap = 100; + #endregion public override void SetDefaults() @@ -115,7 +120,7 @@ namespace CalamityMod.Items.Accessories modPlayer.spiritOriginCritBoost = currentCritBoost; // Actually give the crit boost as a direct increase to ranged critical strike chance. - player.GetCritChance() += modPlayer.spiritOriginCritBoost; + player.GetCritChance() += Math.Min(modPlayer.spiritOriginCritBoost, CritHardCap); // Display the current crit boost on a cooldown. if (modPlayer.cooldowns.TryGetValue(DaawnlightSpiritOriginExtraCrit.ID, out var cooldown)) From 200afb3c0c94fa4db91b1b523e7e64d7e65ba6aa Mon Sep 17 00:00:00 2001 From: Memes <114233643+Mr-Memes@users.noreply.github.com> Date: Mon, 14 Apr 2025 00:22:14 +0200 Subject: [PATCH 7/9] Displayed DSO Hard Cap. --- Cooldowns/DaawnlightSpiritOriginExtraCrit.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cooldowns/DaawnlightSpiritOriginExtraCrit.cs b/Cooldowns/DaawnlightSpiritOriginExtraCrit.cs index 84f3cfd089..b751a90295 100644 --- a/Cooldowns/DaawnlightSpiritOriginExtraCrit.cs +++ b/Cooldowns/DaawnlightSpiritOriginExtraCrit.cs @@ -1,4 +1,5 @@ -using CalamityMod.CalPlayer; +using System; +using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -15,7 +16,7 @@ namespace CalamityMod.Cooldowns // If the player doesn't have DSO, this cooldown should not appear. public override bool ShouldDisplay => instance.player.GetModPlayer().spiritOrigin; - private float ExtraCritChance => instance.player.GetModPlayer().spiritOriginCritBoost; + private float ExtraCritChance => Math.Min(instance.player.GetModPlayer().spiritOriginCritBoost, CritHardCap); private float TextXOffset => (ExtraCritChance > 99 ? -24 : ExtraCritChance > 9 ? -20 : -16) * TextScale; private Vector2 TextPosition => new(TextXOffset , 25); From e0c7aa2dc994b6bda455450c8a3891944c3b3e95 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 13 Apr 2025 19:03:14 -0400 Subject: [PATCH 8/9] Seashine Hilt minion fix --- Projectiles/Summon/SeashineSwordProj.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Summon/SeashineSwordProj.cs b/Projectiles/Summon/SeashineSwordProj.cs index 3e5862a8e1..61917656be 100644 --- a/Projectiles/Summon/SeashineSwordProj.cs +++ b/Projectiles/Summon/SeashineSwordProj.cs @@ -255,7 +255,7 @@ namespace CalamityMod.Projectiles.Summon } public override bool PreDraw(ref Color lightColor) { - Texture2D tex = ModContent.Request("CalamityMod/Items/Weapons/Summon/SeashineSword").Value; + Texture2D tex = ModContent.Request("CalamityMod/Items/Weapons/Summon/SeashineHilt").Value; Texture2D tex2 = ModContent.Request("CalamityMod/Particles/GlowBlade").Value; Texture2D tex3 = ModContent.Request("CalamityMod/Particles/FullStar").Value; From 01c64e6f05ff0ada76864ca49bb3bfa470396023 Mon Sep 17 00:00:00 2001 From: Zavarski Date: Mon, 14 Apr 2025 11:40:44 +0800 Subject: [PATCH 9/9] Difficulty UI uses Format --- Localization/en-US/Mods.CalamityMod.UI.hjson | 2 +- UI/ModeIndicator/ModeIndicatorUI.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 9934224d3d..9f1a2992f1 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -20,7 +20,7 @@ StealthInfoText: ''' // Difficulty UI DifficultyStatusText: "{0} is {1}." -ModeAppend: " Mode" +ModeAppend: "{0} Mode" Active: Active NotActive: Not active DifficultyShiftText: "[c/737373:Hold the 'Shift' key for more information]" diff --git a/UI/ModeIndicator/ModeIndicatorUI.cs b/UI/ModeIndicator/ModeIndicatorUI.cs index fd25bce7b1..acc4d7cb1b 100644 --- a/UI/ModeIndicator/ModeIndicatorUI.cs +++ b/UI/ModeIndicator/ModeIndicatorUI.cs @@ -218,9 +218,9 @@ namespace CalamityMod.UI.ModeIndicator anyActiveMode = true; } } - string modeStr = CalamityUtils.GetTextValue("UI.ModeAppend"); + string modeStr = CalamityUtils.GetText("UI.ModeAppend").Format(modeToDisplay); string activeText = CalamityUtils.GetTextValue("UI." + (anyActiveMode ? "Active" : "NotActive")); - text = CalamityUtils.GetText("UI.DifficultyStatusText").WithFormatArgs(modeToDisplay + modeStr, activeText.ToLower()); + text = CalamityUtils.GetText("UI.DifficultyStatusText").WithFormatArgs(modeStr, activeText.ToLower()); } }