From 451f6ca9ccef7d85c082d862b3ac809d31f09a7d Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Sat, 19 Dec 2020 10:47:01 -0600 Subject: [PATCH] 1 - Nerfed a lot of jump speed boosts if used with autojump that weren't nerfed before. 2 - Removed cross necklace effect from Yharim's Insignia and Ele Gauntlet. 3 - Reduced Tracer line wing flight time. 4 - Fixed various jump speed tooltips to display proper info. 5 - Nerfed Grand Gelatin jump speed bonus because it was fucking busted before. 6 - Fixed HotE tooltip to not be a fucking stupid bitch. 7 - Buffed Statis' Ninja Belt jump speed bonus from 8 to 12%. 8 - Yharon slows down a shitload more when entering a new phase to prevent funny charge memes. --- CalPlayer/CalamityPlayerMiscEffects.cs | 4 +- Items/Accessories/ElementalGauntlet.cs | 1 - Items/Accessories/GrandGelatin.cs | 10 ++--- Items/Accessories/HeartoftheElements.cs | 43 +++++++++++++++++---- Items/Accessories/Sponge.cs | 9 ++++- Items/Accessories/StatisNinjaBelt.cs | 4 +- Items/Accessories/TheAbsorber.cs | 14 ++++++- Items/Accessories/Wings/CelestialTracers.cs | 4 +- Items/Accessories/Wings/ElysianTracers.cs | 4 +- Items/Accessories/Wings/InfinityBoots.cs | 4 +- Items/Accessories/YharimsInsignia.cs | 2 - Items/Armor/ReaverVisage.cs | 18 +++++++-- Items/Armor/StatigelCap.cs | 5 ++- Items/Armor/StatigelHeadgear.cs | 15 +++---- Items/Armor/StatigelHelm.cs | 15 +++---- Items/Armor/StatigelHood.cs | 9 +++-- Items/Armor/StatigelMask.cs | 9 +++-- Items/LoreItems/KnowledgeKingSlime.cs | 4 +- NPCs/Yharon/Yharon.cs | 8 ++-- 19 files changed, 120 insertions(+), 62 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 30f09fc290..a1894f4d32 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1227,7 +1227,7 @@ namespace CalamityMod.CalPlayer if (modPlayer.absorber) { player.moveSpeed += 0.06f; - player.jumpSpeedBoost += 1.2f; + player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f; player.thorns += 0.5f; player.endurance += 0.05f; @@ -2649,7 +2649,6 @@ namespace CalamityMod.CalPlayer if (modPlayer.eGauntlet) { - player.longInvince = true; player.kbGlove = true; player.magmaStone = true; player.meleeDamage += 0.15f; @@ -3269,7 +3268,6 @@ namespace CalamityMod.CalPlayer if (modPlayer.yInsignia) { - player.longInvince = true; player.meleeDamage += 0.1f; player.lavaMax += 240; if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) diff --git a/Items/Accessories/ElementalGauntlet.cs b/Items/Accessories/ElementalGauntlet.cs index 155382723f..fde102b84c 100644 --- a/Items/Accessories/ElementalGauntlet.cs +++ b/Items/Accessories/ElementalGauntlet.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories Tooltip.SetDefault("Melee attacks and projectiles inflict most debuffs\n" + "15% increased melee speed, damage, and 5% increased melee critical strike chance\n" + "20% increased true melee damage\n" + - "Increased invincibility after taking damage\n" + "Temporary immunity to lava\n" + "Increased melee knockback"); } diff --git a/Items/Accessories/GrandGelatin.cs b/Items/Accessories/GrandGelatin.cs index e28518e65d..cef6570aca 100644 --- a/Items/Accessories/GrandGelatin.cs +++ b/Items/Accessories/GrandGelatin.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Grand Gelatin"); Tooltip.SetDefault("10% increased movement speed\n" + - "40% increased jump speed\n" + + "24% increased jump speed\n" + "+20 max life and mana\n" + "Standing still boosts life and mana regen"); } @@ -29,21 +29,19 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { bool autoJump = Main.player[Main.myPlayer].autoJump; - string jumpAmt = autoJump ? "10" : "40"; + string jumpAmt = autoJump ? "6" : "24"; foreach (TooltipLine line2 in list) { if (line2.mod == "Terraria" && line2.Name == "Tooltip1") - { line2.text = jumpAmt + "% increased jump speed"; - } } } public override void UpdateAccessory(Player player, bool hideVisual) { player.moveSpeed += 0.1f; - player.jumpSpeedBoost += player.autoJump ? 0.5f : 2f; - player.statLifeMax2 += 20; + player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f; + player.statLifeMax2 += 20; player.statManaMax2 += 20; if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0) { diff --git a/Items/Accessories/HeartoftheElements.cs b/Items/Accessories/HeartoftheElements.cs index 896f2658a4..88f77fb545 100644 --- a/Items/Accessories/HeartoftheElements.cs +++ b/Items/Accessories/HeartoftheElements.cs @@ -3,6 +3,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Projectiles.Summon; using CalamityMod.World; using Microsoft.Xna.Framework; +using System.Collections.Generic; using Terraria; using Terraria.DataStructures; using Terraria.ID; @@ -17,9 +18,9 @@ namespace CalamityMod.Items.Accessories { DisplayName.SetDefault("Heart of the Elements"); Tooltip.SetDefault("The heart of the world\n" + - "Increases max life by 20, life regen by 1, and all damage by 5%\n" + - "Increases movement speed by 5% and jump speed by 20%\n" + - "Increases damage reduction by 5%\n" + + "Increases max life by 20, life regen by 1 and all damage by 5%\n" + + "Increases jump speed by 24%\n" + + "Increases damage reduction and movement speed by 5%\n" + "Increases max mana by 50 and reduces mana usage by 5%\n" + "You grow flowers on the grass beneath you, chance to grow very random dye plants on grassless dirt\n" + "Summons all elementals to protect you\n" + @@ -39,7 +40,36 @@ namespace CalamityMod.Items.Accessories item.Calamity().customRarity = CalamityRarity.Rainbow; } - public override bool CanEquipAccessory(Player player, int slot) + public override void ModifyTooltips(List list) + { + bool autoJump = Main.player[Main.myPlayer].autoJump; + bool hideVisual = false; + for (int i = 3; i < 10; i++) + { + if (Main.player[Main.myPlayer].armor[i].type == item.type) + hideVisual = Main.player[Main.myPlayer].hideVisual[i]; + } + string lifeAmt = hideVisual ? "25" : "20"; + string lifeRegenAmt = hideVisual ? "2" : "1"; + string damageAmt = hideVisual ? "7" : "5"; + string jumpAmt = hideVisual ? (autoJump ? "6" : "24") : (autoJump ? "5" : "20"); + string damageReductionAndMoveSpeedAmt = hideVisual ? "6" : "5"; + string manaAmt = hideVisual ? "60" : "50"; + string manaUsageAmt = hideVisual ? "7" : "5"; + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + line2.text = "Increases max life by " + lifeAmt + ", life regen by " + lifeRegenAmt + " and all damage by " + damageAmt + "%"; + if (line2.mod == "Terraria" && line2.Name == "Tooltip2") + line2.text = jumpAmt + "% increased jump speed"; + if (line2.mod == "Terraria" && line2.Name == "Tooltip3") + line2.text = "Increases damage reduction and movement speed by " + damageReductionAndMoveSpeedAmt + "%"; + if (line2.mod == "Terraria" && line2.Name == "Tooltip4") + line2.text = "Increases max mana by " + manaAmt + " and reduces mana usage by " + manaUsageAmt + "%"; + } + } + + public override bool CanEquipAccessory(Player player, int slot) { CalamityPlayer modPlayer = player.Calamity(); if (modPlayer.brimstoneWaifu || modPlayer.sandWaifu || modPlayer.sandBoobWaifu || modPlayer.cloudWaifu || modPlayer.sirenWaifu) @@ -52,9 +82,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { if (player != null && !player.dead) - { Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, Main.DiscoR / 255f, Main.DiscoG / 255f, Main.DiscoB / 255f); - } + CalamityPlayer modPlayer = player.Calamity(); modPlayer.allWaifus = !hideVisual; modPlayer.elementalHeart = true; @@ -62,7 +91,7 @@ namespace CalamityMod.Items.Accessories player.lifeRegen += hideVisual ? 2 : 1; player.statLifeMax2 += hideVisual ? 25 : 20; player.moveSpeed += hideVisual ? 0.06f : 0.05f; - player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.1f) : (player.autoJump ? 0.25f : 1f); + player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.2f) : (player.autoJump ? 0.25f : 1f); player.endurance += hideVisual ? 0.06f : 0.05f; player.statManaMax2 += hideVisual ? 60 : 50; player.manaCost *= hideVisual ? 0.93f : 0.95f; diff --git a/Items/Accessories/Sponge.cs b/Items/Accessories/Sponge.cs index 4d30d096e2..107bcab7ec 100644 --- a/Items/Accessories/Sponge.cs +++ b/Items/Accessories/Sponge.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Accessories { public class Sponge : ModItem { - public override string Texture => (DateTime.Now.Month == 4 && DateTime.Now.Day == 1) ? "CalamityMod/Items/Accessories/SpongeReal" : "CalamityMod/Items/Accessories/Sponge"; public override void SetStaticDefaults() @@ -48,6 +47,14 @@ namespace CalamityMod.Items.Accessories public override void ModifyTooltips(List list) { + bool autoJump = Main.player[Main.myPlayer].autoJump; + string jumpAmt = autoJump ? "6" : "24"; + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip5") + line2.text = jumpAmt + "% increased jump speed and 12% increased movement speed"; + } + if (CalamityWorld.death) { foreach (TooltipLine line2 in list) diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index a2c6ef75a9..2850eb5fb8 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories public override void SetStaticDefaults() { DisplayName.SetDefault("Statis' Ninja Belt"); - Tooltip.SetDefault("8% increased jump speed and allows constant jumping\n" + + Tooltip.SetDefault("12% increased jump speed and allows constant jumping\n" + "Increased fall damage resistance by 35 blocks\n" + "Can climb walls, dash, and dodge attacks"); } @@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); player.autoJump = true; - player.jumpSpeedBoost += 0.4f; + player.jumpSpeedBoost += 0.6f; player.extraFall += 35; player.blackBelt = true; player.dash = 1; diff --git a/Items/Accessories/TheAbsorber.cs b/Items/Accessories/TheAbsorber.cs index 64cca5291a..784dbdb90e 100644 --- a/Items/Accessories/TheAbsorber.cs +++ b/Items/Accessories/TheAbsorber.cs @@ -1,6 +1,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; +using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -34,7 +35,18 @@ namespace CalamityMod.Items.Accessories item.accessory = true; } - public override void UpdateAccessory(Player player, bool hideVisual) + public override void ModifyTooltips(List list) + { + bool autoJump = Main.player[Main.myPlayer].autoJump; + string jumpAmt = autoJump ? "6" : "24"; + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") + line2.text = jumpAmt + "% increased jump speed"; + } + } + + public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); modPlayer.aSpark = true; diff --git a/Items/Accessories/Wings/CelestialTracers.cs b/Items/Accessories/Wings/CelestialTracers.cs index c39c43f93c..9741a28757 100644 --- a/Items/Accessories/Wings/CelestialTracers.cs +++ b/Items/Accessories/Wings/CelestialTracers.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings "Horizontal speed: 12\n" + "Acceleration multiplier: 3\n" + "Excellent vertical speed\n" + - "Flight time: 280\n" + + "Flight time: 250\n" + "50% increased running acceleration\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + @@ -79,7 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings player.waterWalk = true; player.fireWalk = true; player.lavaMax += 240; - player.wingTimeMax = 280; + player.wingTimeMax = 250; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; diff --git a/Items/Accessories/Wings/ElysianTracers.cs b/Items/Accessories/Wings/ElysianTracers.cs index b152440cd3..72796177e8 100644 --- a/Items/Accessories/Wings/ElysianTracers.cs +++ b/Items/Accessories/Wings/ElysianTracers.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings "Horizontal speed: 10.5\n" + "Acceleration multiplier: 2.75\n" + "Great vertical speed\n" + - "Flight time: 160\n" + + "Flight time: 140\n" + "36% increased running acceleration\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + @@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings player.waterWalk = true; player.fireWalk = true; player.lavaMax += 240; - player.wingTimeMax = 160; + player.wingTimeMax = 140; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.elysianFire = !hideVisual; diff --git a/Items/Accessories/Wings/InfinityBoots.cs b/Items/Accessories/Wings/InfinityBoots.cs index 8a7cb2377e..1502b3ef65 100644 --- a/Items/Accessories/Wings/InfinityBoots.cs +++ b/Items/Accessories/Wings/InfinityBoots.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings "Horizontal speed: 9\n" + "Acceleration multiplier: 2.5\n" + "Good vertical speed\n" + - "Flight time: 120\n" + + "Flight time: 100\n" + "24% increased running acceleration\n" + "Greater mobility on ice\n" + "Water and lava walking\n" + @@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings player.waterWalk = true; player.fireWalk = true; player.lavaMax += 240; - player.wingTimeMax = 120; + player.wingTimeMax = 100; player.noFallDmg = true; modPlayer.IBoots = !hideVisual; modPlayer.sTracers = true; diff --git a/Items/Accessories/YharimsInsignia.cs b/Items/Accessories/YharimsInsignia.cs index 0eeee58579..52b090ca64 100644 --- a/Items/Accessories/YharimsInsignia.cs +++ b/Items/Accessories/YharimsInsignia.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories "10% increased melee speed\n" + "10% increased melee and true melee damage\n" + "Melee attacks and melee projectiles inflict holy fire\n" + - "Increased invincibility after taking damage\n" + "Temporary immunity to lava\n" + "Increased melee knockback"); } @@ -60,7 +59,6 @@ namespace CalamityMod.Items.Accessories recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ModContent.ItemType(), 5); - recipe.AddIngredient(ItemID.CrossNecklace); recipe.AddTile(TileID.LunarCraftingStation); recipe.SetResult(this); recipe.AddRecipe(); diff --git a/Items/Armor/ReaverVisage.cs b/Items/Armor/ReaverVisage.cs index ecc00b8150..1fb4176efd 100644 --- a/Items/Armor/ReaverVisage.cs +++ b/Items/Armor/ReaverVisage.cs @@ -1,5 +1,6 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; +using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -13,7 +14,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Reaver Visage"); - Tooltip.SetDefault("25% increased movement speed and 20% increased jump speed"); + Tooltip.SetDefault("20% increased jump speed and 25% increased movement speed"); } public override void SetDefaults() @@ -25,7 +26,18 @@ namespace CalamityMod.Items.Armor item.defense = 13; //46 } - public override bool IsArmorSet(Item head, Item body, Item legs) + public override void ModifyTooltips(List list) + { + bool autoJump = Main.player[Main.myPlayer].autoJump; + string jumpAmt = autoJump ? "5" : "20"; + foreach (TooltipLine line2 in list) + { + if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + line2.text = jumpAmt + "% increased jump speed and 25% increased movement speed"; + } + } + + public override bool IsArmorSet(Item head, Item body, Item legs) { return body.type == ModContent.ItemType() && legs.type == ModContent.ItemType(); } @@ -53,7 +65,7 @@ namespace CalamityMod.Items.Armor public override void UpdateEquip(Player player) { - player.jumpSpeedBoost += 1f; + player.jumpSpeedBoost += player.autoJump ? 0.25f : 1f; player.moveSpeed += 0.25f; } diff --git a/Items/Armor/StatigelCap.cs b/Items/Armor/StatigelCap.cs index 9dc3c1101b..e1e76f569b 100644 --- a/Items/Armor/StatigelCap.cs +++ b/Items/Armor/StatigelCap.cs @@ -33,14 +33,15 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { + string jumpSpeedBonus = player.autoJump ? "7.5" : "30"; player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + "Grants an extra jump and increased jump height\n" + - "30% increased jump speed"; + jumpSpeedBonus + "% increased jump speed"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; Player.jumpHeight += 5; - player.jumpSpeedBoost += 1.5f; + player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f; } public override void UpdateEquip(Player player) diff --git a/Items/Armor/StatigelHeadgear.cs b/Items/Armor/StatigelHeadgear.cs index 7a03113433..a3fb83eacb 100644 --- a/Items/Armor/StatigelHeadgear.cs +++ b/Items/Armor/StatigelHeadgear.cs @@ -33,15 +33,16 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "30% increased jump speed"; - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.statigelSet = true; + string jumpSpeedBonus = player.autoJump ? "7.5" : "30"; + player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + + "Grants an extra jump and increased jump height\n" + + jumpSpeedBonus + "% increased jump speed"; + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.statigelSet = true; modPlayer.statigelJump = true; Player.jumpHeight += 5; - player.jumpSpeedBoost += 1.5f; - } + player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/StatigelHelm.cs b/Items/Armor/StatigelHelm.cs index ae3d6fd38d..dd3746fab2 100644 --- a/Items/Armor/StatigelHelm.cs +++ b/Items/Armor/StatigelHelm.cs @@ -33,15 +33,16 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + - "Grants an extra jump and increased jump height\n" + - "30% increased jump speed"; - CalamityPlayer modPlayer = player.Calamity(); - modPlayer.statigelSet = true; + string jumpSpeedBonus = player.autoJump ? "7.5" : "30"; + player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + + "Grants an extra jump and increased jump height\n" + + jumpSpeedBonus + "% increased jump speed"; + CalamityPlayer modPlayer = player.Calamity(); + modPlayer.statigelSet = true; modPlayer.statigelJump = true; Player.jumpHeight += 5; - player.jumpSpeedBoost += 1.5f; - } + player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f; + } public override void UpdateEquip(Player player) { diff --git a/Items/Armor/StatigelHood.cs b/Items/Armor/StatigelHood.cs index 089c3540e9..cf93c36764 100644 --- a/Items/Armor/StatigelHood.cs +++ b/Items/Armor/StatigelHood.cs @@ -34,18 +34,19 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - player.setBonus = "18% increased minion damage\n" + + string jumpSpeedBonus = player.autoJump ? "7.5" : "30"; + player.setBonus = "18% increased minion damage\n" + "Summons a mini slime god to fight for you, the type depends on what world evil you have\n" + "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + "Grants an extra jump and increased jump height\n" + - "30% increased jump speed"; + jumpSpeedBonus + "% increased jump speed"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.slimeGod = true; modPlayer.statigelJump = true; Player.jumpHeight += 5; - player.jumpSpeedBoost += 1.5f; - player.minionDamage += 0.18f; + player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f; + player.minionDamage += 0.18f; if (player.whoAmI == Main.myPlayer) { if (player.FindBuffIndex(ModContent.BuffType()) == -1) diff --git a/Items/Armor/StatigelMask.cs b/Items/Armor/StatigelMask.cs index bac001ee47..cec627f8fb 100644 --- a/Items/Armor/StatigelMask.cs +++ b/Items/Armor/StatigelMask.cs @@ -33,9 +33,10 @@ namespace CalamityMod.Items.Armor public override void UpdateArmorSet(Player player) { - player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + + string jumpSpeedBonus = player.autoJump ? "7.5" : "30"; + player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + "Grants an extra jump and increased jump height\n" + - "30% increased jump speed\n" + + jumpSpeedBonus + "% increased jump speed\n" + "Rogue stealth builds while not attacking and slower while moving, up to a max of 100\n" + "Once you have built max stealth, you will be able to perform a Stealth Strike\n" + "Rogue stealth only reduces when you attack, it does not reduce while moving\n" + @@ -46,8 +47,8 @@ namespace CalamityMod.Items.Armor modPlayer.rogueStealthMax += 1f; modPlayer.wearingRogueArmor = true; Player.jumpHeight += 5; - player.jumpSpeedBoost += 1.5f; - } + player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f; + } public override void UpdateEquip(Player player) { diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs index 8806f465d3..f3c2399bb4 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -29,12 +29,12 @@ namespace CalamityMod.Items.LoreItems { bool autoJump = Main.player[Main.myPlayer].autoJump; string hasJumpBoost = "Favorite this item to gain 5% increased movement speed and 2% increased jump speed."; - string noJumpBoost = "Favorite this item to gain 5% increased movement speed."; + string lessJumpBoost = "Favorite this item to gain 5% increased movement speed and 0.5% increased jump speed."; foreach (TooltipLine line2 in list) { if (line2.mod == "Terraria" && line2.Name == "Tooltip2") { - line2.text = autoJump ? noJumpBoost : hasJumpBoost; + line2.text = autoJump ? lessJumpBoost : hasJumpBoost; } } } diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 203ba6004c..88901800fd 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -712,7 +712,7 @@ namespace CalamityMod.NPCs.Yharon // Enter new phase else if (npc.ai[0] == 4f) { - npc.velocity *= 0.98f; + npc.velocity *= 0.9f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); if (npc.ai[2] == newPhaseTimer - 60) @@ -1031,7 +1031,7 @@ namespace CalamityMod.NPCs.Yharon // Enter new phase else if (npc.ai[0] == 10f) { - npc.velocity *= 0.98f; + npc.velocity *= 0.9f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); if (npc.ai[2] == newPhaseTimer - 60) @@ -1399,7 +1399,7 @@ namespace CalamityMod.NPCs.Yharon // Enter new phase else if (npc.ai[0] == 17f) { - npc.velocity *= 0.98f; + npc.velocity *= 0.9f; npc.velocity.Y = MathHelper.Lerp(npc.velocity.Y, 0f, 0.02f); if (npc.ai[2] == newPhaseTimer - 60) @@ -2403,7 +2403,7 @@ namespace CalamityMod.NPCs.Yharon // Enter new phase else if (npc.ai[0] == 9f) { - npc.velocity *= 0.95f; + npc.velocity *= 0.9f; Vector2 vector = npc.DirectionTo(targetData.Center); npc.spriteDirection = (vector.X > 0f) ? 1 : -1;