diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index d448d79d77..52366027c3 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -3,7 +3,6 @@ using System.Reflection; using CalamityMod.Graphics.Renderers.CalamityRenderers; using CalamityMod.Tiles.DraedonStructures; using CalamityMod.Tiles.FurnitureExo; -using CalamityMod.Walls; using Terraria; using Terraria.DataStructures; using Terraria.GameContent; @@ -173,14 +172,6 @@ namespace CalamityMod.ILEditing //HeldOnlyItem detours Player.dropItemCheck, ItemSlot.Draw (Sb, itemarray, int, int, vector2, color) and ItemSlot.LeftClick_ItemArray to make its stuff work } - /// - /// Loads things which need to be instantiated later in the load order. - /// - public override void AddRecipes() - { - WallVisibleThroughWater.InitializeWaterMapEntryLookups(); - } - /// /// Unloads all IL Editing changes in the mod. /// diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs index 03ec3d4a34..273064f9ef 100644 --- a/Items/Accessories/AbyssalMirror.cs +++ b/Items/Accessories/AbyssalMirror.cs @@ -7,7 +7,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class AbyssalMirror : ModItem, ILocalizedModType + public class AbyssalMirror : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Items/Accessories/AmalgamatedBrain.cs b/Items/Accessories/AmalgamatedBrain.cs index 5979cb98e6..e1c1a5f31e 100644 --- a/Items/Accessories/AmalgamatedBrain.cs +++ b/Items/Accessories/AmalgamatedBrain.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { // TODO -- this item includes a dodge accessory, Brain of Cthulhu - public class AmalgamatedBrain : ModItem, ILocalizedModType + public class AmalgamatedBrain : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index cbb8941b60..bc60e6071f 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -5,6 +5,7 @@ using CalamityMod.CalPlayer.Dashes; using CalamityMod.Items.Materials; using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -12,9 +13,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(EquipType.Shield)] - public class AsgardianAegis : ModItem, ILocalizedModType + public class AsgardianAegis : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public Color? TooltipExtensionColor => new(195, 223, 255); + public const int ShieldSlamDamage = 1000; public const float ShieldSlamKnockback = 15f; public const int ShieldSlamIFrames = 12; diff --git a/Items/Accessories/AsgardsValor.cs b/Items/Accessories/AsgardsValor.cs index a4e4da6e8c..1b6e0c3011 100644 --- a/Items/Accessories/AsgardsValor.cs +++ b/Items/Accessories/AsgardsValor.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.CalPlayer.Dashes; using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,9 +10,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(EquipType.Shield)] - public class AsgardsValor : ModItem, ILocalizedModType + public class AsgardsValor : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public Color? TooltipExtensionColor => new(195, 223, 255); + public const int ShieldSlamDamage = 200; public const float ShieldSlamKnockback = 9f; public const int ShieldSlamIFrames = 12; diff --git a/Items/Accessories/DaawnlightSpiritOrigin.cs b/Items/Accessories/DaawnlightSpiritOrigin.cs index e37ec2dcc2..c2fe0da51a 100644 --- a/Items/Accessories/DaawnlightSpiritOrigin.cs +++ b/Items/Accessories/DaawnlightSpiritOrigin.cs @@ -8,9 +8,14 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class DaawnlightSpiritOrigin : ModItem, ILocalizedModType + public class DaawnlightSpiritOrigin : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public bool HidesNormalTooltip => true; + public bool HasFlavorTooltip => true; + public Color? FlavorTooltipColor => new(149, 28, 235); // #951CEB + // "Despite the seemingly insane numbers here, I think this item might actually be underpowered" // hindsight: the item was not underpowered. Ozzatron 05NOV2021 // diff --git a/Items/Accessories/DarkSunRing.cs b/Items/Accessories/DarkSunRing.cs index 0a06a8e9a8..e42faa21c3 100644 --- a/Items/Accessories/DarkSunRing.cs +++ b/Items/Accessories/DarkSunRing.cs @@ -12,9 +12,11 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class DarkSunRing : ModItem, ILocalizedModType + public class DarkSunRing : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + public bool HasFlavorTooltip => true; + public override void SetStaticDefaults() { Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 7)); diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index c3e975502e..056d43cdfc 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -8,9 +8,11 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class EclipseMirror : ModItem, ILocalizedModType + public class EclipseMirror : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + public bool HasFlavorTooltip => true; + public override void SetDefaults() { Item.width = 30; diff --git a/Items/Accessories/ElysianAegis.cs b/Items/Accessories/ElysianAegis.cs index 3c1b4d6f67..c9c6108f35 100644 --- a/Items/Accessories/ElysianAegis.cs +++ b/Items/Accessories/ElysianAegis.cs @@ -2,6 +2,7 @@ using CalamityMod.CalPlayer; using CalamityMod.CalPlayer.Dashes; using CalamityMod.Rarities; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -9,9 +10,12 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(EquipType.Shield)] - public class ElysianAegis : ModItem, ILocalizedModType + public class ElysianAegis : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public Color? TooltipExtensionColor => new(195, 223, 255); + public const int ShieldSlamDamage = 500; public const float ShieldSlamKnockback = 12f; public const int ShieldSlamIFrames = 12; diff --git a/Items/Accessories/HallowedRune.cs b/Items/Accessories/HallowedRune.cs index 74226ce8d0..f6bf010380 100644 --- a/Items/Accessories/HallowedRune.cs +++ b/Items/Accessories/HallowedRune.cs @@ -4,7 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class HallowedRune : ModItem, ILocalizedModType + public class HallowedRune : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Items/Accessories/HeartofDarkness.cs b/Items/Accessories/HeartofDarkness.cs index fe40492178..41c8bcedcd 100644 --- a/Items/Accessories/HeartofDarkness.cs +++ b/Items/Accessories/HeartofDarkness.cs @@ -29,6 +29,7 @@ namespace CalamityMod.Items.Accessories Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; + Item.SetRevExclusive(); } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/Laudanum.cs b/Items/Accessories/Laudanum.cs index 34e65e548b..716d7a8cf2 100644 --- a/Items/Accessories/Laudanum.cs +++ b/Items/Accessories/Laudanum.cs @@ -1,13 +1,17 @@ using CalamityMod.CalPlayer; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class Laudanum : ModItem, ILocalizedModType + public class Laudanum : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public Color? TooltipExtensionColor => new(195, 223, 255); + public override void SetStaticDefaults() { ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType(); @@ -20,6 +24,7 @@ namespace CalamityMod.Items.Accessories Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; + Item.SetRevExclusive(); } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/OccultSkullCrown.cs b/Items/Accessories/OccultSkullCrown.cs index 00acd223fa..4c98d317b8 100644 --- a/Items/Accessories/OccultSkullCrown.cs +++ b/Items/Accessories/OccultSkullCrown.cs @@ -1,6 +1,7 @@ using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Rarities; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,9 +9,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(EquipType.Face)] - public class OccultSkullCrown : ModItem, ILocalizedModType + public class OccultSkullCrown : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public bool HasFlavorTooltip => true; + public Color? TooltipExtensionColor => new(195, 223, 255); + public override void SetStaticDefaults() { @@ -30,6 +35,7 @@ namespace CalamityMod.Items.Accessories Item.rare = ModContent.RarityType(); Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice; Item.accessory = true; + Item.SetRevExclusive(); } public override void UpdateEquip(Player player) diff --git a/Items/Accessories/OldDukeScales.cs b/Items/Accessories/OldDukeScales.cs index 94816ec2a7..9e38022feb 100644 --- a/Items/Accessories/OldDukeScales.cs +++ b/Items/Accessories/OldDukeScales.cs @@ -8,7 +8,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [LegacyName("DukeScales")] - public class OldDukeScales : ModItem, ILocalizedModType + public class OldDukeScales : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; diff --git a/Items/Accessories/PhantomicArtifact.cs b/Items/Accessories/PhantomicArtifact.cs index dd4a41cd4f..54bd1c8d57 100644 --- a/Items/Accessories/PhantomicArtifact.cs +++ b/Items/Accessories/PhantomicArtifact.cs @@ -12,7 +12,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class PhantomicArtifact : ModItem, ILocalizedModType + public class PhantomicArtifact : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() diff --git a/Items/Accessories/ShieldoftheHighRuler.cs b/Items/Accessories/ShieldoftheHighRuler.cs index aa530beaaa..e7e7fb50d7 100644 --- a/Items/Accessories/ShieldoftheHighRuler.cs +++ b/Items/Accessories/ShieldoftheHighRuler.cs @@ -1,6 +1,6 @@ -using System; -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,9 +8,13 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [AutoloadEquip(EquipType.Shield)] - public class ShieldoftheHighRuler : ModItem, ILocalizedModType + public class ShieldoftheHighRuler : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; + + public bool HasFlavorTooltip => true; + public Color? TooltipExtensionColor => new(195, 223, 255); + public const int ShieldSlamIFrames = 12; public const float EoCDashVelocity = 14.5f; public const float TabiDashVelocity = 18.9f; diff --git a/Items/Accessories/SpiritGlyph.cs b/Items/Accessories/SpiritGlyph.cs index 7537625a42..2f7f12d2cb 100644 --- a/Items/Accessories/SpiritGlyph.cs +++ b/Items/Accessories/SpiritGlyph.cs @@ -6,7 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [LegacyName("SpiritGenerator")] - public class SpiritGlyph : ModItem, ILocalizedModType + public class SpiritGlyph : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetDefaults() diff --git a/Items/Accessories/StatisNinjaBelt.cs b/Items/Accessories/StatisNinjaBelt.cs index a0990135cd..6039acb7ca 100644 --- a/Items/Accessories/StatisNinjaBelt.cs +++ b/Items/Accessories/StatisNinjaBelt.cs @@ -6,7 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { - public class StatisNinjaBelt : ModItem, ILocalizedModType + public class StatisNinjaBelt : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() diff --git a/Items/Accessories/StatisVoidSash.cs b/Items/Accessories/StatisVoidSash.cs index 1606ad6e1f..8760d9bb52 100644 --- a/Items/Accessories/StatisVoidSash.cs +++ b/Items/Accessories/StatisVoidSash.cs @@ -14,7 +14,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { [LegacyName("StatisBeltOfCurses")] - public class StatisVoidSash : ModItem, ILocalizedModType + public class StatisVoidSash : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() diff --git a/Items/Accessories/StressPills.cs b/Items/Accessories/StressPills.cs index 3a921fcb3d..40a8d86dd4 100644 --- a/Items/Accessories/StressPills.cs +++ b/Items/Accessories/StressPills.cs @@ -21,6 +21,7 @@ namespace CalamityMod.Items.Accessories Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; Item.rare = ItemRarityID.Orange; Item.accessory = true; + Item.SetRevExclusive(); } public override void UpdateAccessory(Player player, bool hideVisual) diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index b9c4afea7e..066b87b52e 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -1,5 +1,4 @@ -using CalamityMod.Balancing; -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Magic; using CalamityMod.Rarities; @@ -14,7 +13,7 @@ using static Terraria.ModLoader.ModContent; namespace CalamityMod.Items.Accessories { // TODO -- this item includes a dodge accessory, Brain of Cthulhu - public class TheAmalgam : ModItem, ILocalizedModType + public class TheAmalgam : ModItem, ILocalizedModType, IHoldShiftTooltipItem { public new string LocalizationCategory => "Items.Accessories"; public override void SetStaticDefaults() diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 077b34fc84..9a2408949a 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -79,6 +79,7 @@ namespace CalamityMod.Items #endregion // Miscellaneous stuff + public bool revengeanceItem = false; public bool donorItem = false; public bool devItem = false; public bool canFirePointBlankShots = false; @@ -118,6 +119,7 @@ namespace CalamityMod.Items myClone.DischargeEnchantExhaustion = DischargeEnchantExhaustion; // Miscellaneous + myClone.revengeanceItem = revengeanceItem; myClone.donorItem = donorItem; myClone.devItem = devItem; myClone.canFirePointBlankShots = canFirePointBlankShots; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index da749f7a44..2290fdf77e 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items /// When this line is not present, Calamity needs to insert tooltips in an equivalent position.
/// The best way to do this is to iterate backwards through all possible vanilla tooltip lines and pick the first one that is present. /// - private static string[] BackupTooltipInsertionLineNames = + private static string[] MainTooltipBackupInsertionPositions = { "Material", "Consumable", @@ -58,7 +58,36 @@ namespace CalamityMod.Items "Knockback", "NoTransfer", "FavoriteDesc", - "ItemName" + "ItemName", + }; + + /// + /// This array contains (almost) every single vanilla tooltip in reverse order starting at "Expert" and ending at "Tooltip0".
+ /// Because "Tooltip0" is the first typical tooltip line, this is the earliest conceivable place where a "Revengeance" marker can be inserted.
+ /// Since none of these tooltip lines are guaranteed to exist, Calamity needs to iterate through all of them to find a suitable insertion point.
+ /// The best way to do this is to iterate backwards through all possible vanilla tooltip lines and pick the first one that is present. + ///
+ private static string[] RevTooltipInsertionPositions = + { + "Expert", + "SetBonus", + "PrefixAccMeleeSpeed", + "PrefixAccMoveSpeed", + "PrefixAccDamage", + "PrefixAccCritChance", + "PrefixAccMaxMana", + "PrefixAccDefense", + "PrefixKnockback", + "PrefixShootSpeed", + "PrefixSize", + "PrefixUseMana", + "PrefixCritChance", + "PrefixSpeed", + "PrefixDamage", + "OneDropLogo", + "BuffTime", + "WellFedExpert", + "EtherianManaWarning", }; #endregion @@ -90,7 +119,7 @@ namespace CalamityMod.Items if (firstTooltipIndex == -1) { noStandardTooltips = true; - foreach (string lineName in BackupTooltipInsertionLineNames) + foreach (string lineName in MainTooltipBackupInsertionPositions) { int idx = tooltips.FindIndex((line) => line.Name == lineName); if (idx != -1) @@ -112,7 +141,7 @@ namespace CalamityMod.Items // Adds "Does extra damage to enemies shot at point-blank range" to weapons capable of it. if (canFirePointBlankShots) { - var lineText = CalamityUtils.GetText("Misc.PointBlank"); + LocalizedText lineText = CalamityUtils.GetText("Misc.PointBlank"); TooltipLine line = new TooltipLine(Mod, "CalamityMod:PointBlankTooltip", lineText.Value); tooltips.Insert(++lastTooltipIndex, line); } @@ -141,25 +170,22 @@ namespace CalamityMod.Items tooltips.Insert(++lastTooltipIndex, line); } - // Generic support for any and all Hold SHIFT tooltips. + // Generic mechanical implementation of any and all Hold SHIFT tooltips. // For more information, see IHoldShiftTooltipItem. + // + // Original code lifted from Iban's extended armor tooltips. if (item.ModItem is IHoldShiftTooltipItem holdShiftItem) { - string dynamicKey = $"{Mod.Name}:{item.ModItem.Name}_HoldShift"; - string lineText = item.ModItem.GetLocalizedValue(holdShiftItem.TooltipExtensionKey); - var line = new TooltipLine(Mod, dynamicKey, lineText); - if (holdShiftItem.TooltipExtensionColor is not null) - line.OverrideColor = holdShiftItem.TooltipExtensionColor; - TooltipLine[] lines = { line }; - - // - // Original code lifted from Iban's extended armor tooltips. - // bool holdingShift = Main.keyState.IsKeyDown(Keys.LeftShift); // If holding SHIFT, actually display the extended tooltip. if (holdingShift && firstTooltipIndex != -1) { + string holdShiftText = item.ModItem.GetLocalizedValue(holdShiftItem.TooltipExtensionKey); + TooltipLine holdShiftLine = new TooltipLine(Mod, IHoldShiftTooltipItem.ExtensionTooltipID, holdShiftText); + if (holdShiftItem.TooltipExtensionColor is not null) + holdShiftLine.OverrideColor = holdShiftItem.TooltipExtensionColor; + // If asked to, remove all standard tooltip lines. This moves the last tooltip index. // This only occurs if the standard tooltip lines are ACTUALLY standard tooltips. Otherwise, don't remove anything! if (holdShiftItem.HidesNormalTooltip && !noStandardTooltips) @@ -168,32 +194,82 @@ namespace CalamityMod.Items lastTooltipIndex -= standardTooltipCount; } - // Append every "Hold SHIFT" tooltip at the end of standard tooltips. - tooltips.InsertRange(++lastTooltipIndex, lines); + // Append the "Hold SHIFT" tooltip at the end of standard tooltips. + tooltips.Insert(++lastTooltipIndex, holdShiftLine); } // If not holding SHIFT, display the extension indicator if appropriate. if (!holdingShift && holdShiftItem.ShowExtensionIndicator) { LocalizedText indicatorText = CalamityUtils.GetText(holdShiftItem.ExtensionIndicatorKey); - var indicator = new TooltipLine(Mod, IHoldShiftTooltipItem.ExtensionIndicatorTooltipID, indicatorText.Value); + TooltipLine indicator = new TooltipLine(Mod, IHoldShiftTooltipItem.ExtensionIndicatorTooltipID, indicatorText.Value); if (holdShiftItem.ExtensionIndicatorColor is not null) indicator.OverrideColor = holdShiftItem.ExtensionIndicatorColor; + + // Append the extension indicator tooltip at the end of standard tooltips. tooltips.Insert(++lastTooltipIndex, indicator); } + + // Generic support for flavor tooltips. + // This is only necessary on items with Hold SHIFT tooltips. + // The extended tooltip and tooltip extension indicator are placed above flavor tooltips for vanilla consistency. + // + // Flavor tooltips display unconditionally if defined. They are visible both when holding SHIFT and when not. + if (holdShiftItem.HasFlavorTooltip && holdShiftItem.FlavorTooltipKey is not null) + { + string flavorText = item.ModItem.GetLocalizedValue(holdShiftItem.FlavorTooltipKey); + TooltipLine flavorLine = new TooltipLine(Mod, IHoldShiftTooltipItem.FlavorTooltipID, flavorText); + if (holdShiftItem.FlavorTooltipColor is not null) + flavorLine.OverrideColor = holdShiftItem.FlavorTooltipColor; + + // Append the flavor tooltip at the end of standard tooltips, after all Hold SHIFT tooltips and reminders. + tooltips.Insert(++lastTooltipIndex, flavorLine); + } + } + + // + // "Late" tooltips are all inserted after vanilla's "Expert" and "Master" markers. + // + + // The best possible position is identified using a separate backwards search. + int difficultyTooltipIdx = -1; + foreach (string lineName in RevTooltipInsertionPositions) + { + int idx = tooltips.FindIndex((line) => line.Name == lineName); + if (idx != -1) + { + difficultyTooltipIdx = idx + 1; + break; + } + } + + // If the backwards search fails, it defaults to the last known tooltip index from the previous search. + if (difficultyTooltipIdx == -1) + difficultyTooltipIdx = lastTooltipIndex; + + // Adds "Revengeance" to all items which are Revengeance exclusive, like how vanilla does it for Expert and Master items. + if (revengeanceItem) + { + LocalizedText revText = CalamityUtils.GetText("UI.Revengeance"); + TooltipLine revLine = new TooltipLine(Mod, "CalamityMod:RevengeanceItem", revText.Value); + tooltips.Insert(++difficultyTooltipIdx, revLine); } // Adds "Donor Item" and "Developer Item" to donor items and developer items respectively. // This is intentionally at the bottom, below everything else. if (devItem) { - TooltipLine line = new TooltipLine(Mod, "CalamityDev", CalamityUtils.ColorMessage("- Developer Item -", CalamityUtils.DevItemColor)); - tooltips.Add(line); + LocalizedText devText = CalamityUtils.GetText("UI.DevItemTooltip"); + string coloredText = CalamityUtils.ColorMessage(devText.Value, CalamityUtils.DevItemColor); + TooltipLine devLine = new TooltipLine(Mod, "CalamityMod:DevItem", coloredText); + tooltips.Insert(++difficultyTooltipIdx, devLine); } else if (donorItem) { - TooltipLine line = new TooltipLine(Mod, "CalamityDonor", CalamityUtils.ColorMessage("- Donor Item -", CalamityUtils.DonatorItemColor)); - tooltips.Add(line); + LocalizedText donorText = CalamityUtils.GetText("UI.DonorItemTooltip"); + string coloredText = CalamityUtils.ColorMessage(donorText.Value, CalamityUtils.DonatorItemColor); + TooltipLine donorLine = new TooltipLine(Mod, "CalamityMod:DonorItem", coloredText); + tooltips.Insert(++difficultyTooltipIdx, donorLine); } } #endregion diff --git a/Items/Dyes/AerialiteDye.png b/Items/Dyes/AerialiteDye.png index d5b2f4c35e..ac84d4273a 100644 Binary files a/Items/Dyes/AerialiteDye.png and b/Items/Dyes/AerialiteDye.png differ diff --git a/Items/IHoldShiftTooltipItem.cs b/Items/IHoldShiftTooltipItem.cs index afd8537be5..8ef0a22b79 100644 --- a/Items/IHoldShiftTooltipItem.cs +++ b/Items/IHoldShiftTooltipItem.cs @@ -6,16 +6,35 @@ namespace CalamityMod.Items // All actual implementation of this behavior is done in CalamityGlobalItemTooltip. public interface IHoldShiftTooltipItem { + #region Default Keys and Colors + /// + /// Internal ID for the TooltipLine which contains Calamity items' extended tooltips when holding SHIFT. + /// + internal const string ExtensionTooltipID = "CalamityMod:HoldShiftTooltip"; + /// /// Internal ID for the TooltipLine which contains Calamity items' "Hold SHIFT" extension indicators. /// internal const string ExtensionIndicatorTooltipID = "CalamityMod:HoldShiftExtensionIndicator"; + + /// + /// Internal ID for the TooltipLine which contains Calamity items' flavor tooltips.
+ /// Flavor tooltips on items which do not use this interface will be present in standard vanilla tooltip lines. + ///
+ internal const string FlavorTooltipID = "CalamityMod:FlavorTooltip"; /// - /// The lang/localization key of the default tooltip extension indicator message. + /// The lang/localization key of the default tooltip extension indicator message.
+ /// This key is used for items which don't replace their tooltips when holding SHIFT. ///
public const string DefaultExtensionIndicatorKey = "UI.HoldShiftTooltipExtensionIndicator"; + /// + /// The lang/localization key of the default tooltip replacement indicator message.
+ /// This key is used for items which replace their tooltips entirely when holding SHIFT. + ///
+ public const string DefaultReplacementIndicatorKey = "UI.HoldShiftTooltipReplacementIndicator"; + /// /// The default color of the default tooltip extension indicator message. /// @@ -26,27 +45,36 @@ namespace CalamityMod.Items /// public const string DefaultTooltipExtensionKey = "HoldShiftTooltip"; + /// + /// The default lang/localization key which is queried to show an item's flavor tooltip. + /// + public const string DefaultFlavorTooltipKey = "FlavorTooltip"; + #endregion + /// /// Whether holding Left SHIFT for the tooltip extension hides the normal tooltip. Typically this is false. /// public virtual bool HidesNormalTooltip => false; + #region Extension Indicator Properties /// /// Whether the "Hold SHIFT for more" extension indicator appears by default. Should essentially always be true.
- /// You can set this to false for "secret" flavor or easter egg tooltips, like the one on Midas Prime. + /// You can set this to false for "secret" easter egg tooltips, like the one on Midas Prime. ///
public virtual bool ShowExtensionIndicator => true; /// /// The lang/localization key of this item's tooltip extension indicator message. /// - public virtual string ExtensionIndicatorKey => DefaultExtensionIndicatorKey; + public virtual string ExtensionIndicatorKey => HidesNormalTooltip ? DefaultReplacementIndicatorKey : DefaultExtensionIndicatorKey; /// /// The color of this item's tooltip extension indicator message. If set to null, the indicator will not be colored. /// public virtual Color? ExtensionIndicatorColor => DefaultExtensionIndicatorColor; + #endregion + #region Tooltip Extension Properties /// /// The lang/localization key which this item uses for its tooltip extension. /// @@ -56,6 +84,24 @@ namespace CalamityMod.Items /// The color of this item's tooltip extension. If set to null, the tooltip extension will not be colored. /// public virtual Color? TooltipExtensionColor => null; + #endregion + #region Flavor Tooltip Properties + /// + /// Whether or not this item should have a separate flavor tooltip. Flavor tooltips are rendered below tooltip extensions for vanilla consistency.
+ /// Flavor tooltips are optional. If an item only needs a flavor tooltip and not a Hold SHIFT tooltip, just add it to the normal tooltip and don't use this interface. + ///
+ public virtual bool HasFlavorTooltip => false; + + /// + /// The lang/localization key which this item uses for its flavor tooltip. + /// + public virtual string FlavorTooltipKey => DefaultFlavorTooltipKey; + + /// + /// The color of this item's flavor tooltip. If set to null, the flavor tooltip will not be colored. + /// + public virtual Color? FlavorTooltipColor => null; + #endregion } } diff --git a/Items/PermanentBoosters/Ectoheart.cs b/Items/PermanentBoosters/Ectoheart.cs index 5a6ea6ef0a..a681f143c6 100644 --- a/Items/PermanentBoosters/Ectoheart.cs +++ b/Items/PermanentBoosters/Ectoheart.cs @@ -22,7 +22,8 @@ namespace CalamityMod.Items.PermanentBoosters Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; Item.consumable = true; - Item.rare = ModContent.RarityType(); // Not researchable, only drops one time. + Item.rare = ModContent.RarityType(); + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) => !player.Calamity().adrenalineBoostThree; diff --git a/Items/PermanentBoosters/ElectrolyteGelPack.cs b/Items/PermanentBoosters/ElectrolyteGelPack.cs index f0f6db8abd..7b776c5289 100644 --- a/Items/PermanentBoosters/ElectrolyteGelPack.cs +++ b/Items/PermanentBoosters/ElectrolyteGelPack.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Items.PermanentBoosters Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; Item.consumable = true; + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) diff --git a/Items/PermanentBoosters/InfernalBlood.cs b/Items/PermanentBoosters/InfernalBlood.cs index a6ad2976be..0b73bb66cf 100644 --- a/Items/PermanentBoosters/InfernalBlood.cs +++ b/Items/PermanentBoosters/InfernalBlood.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items.PermanentBoosters Item.useTime = 30; Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; - Item.consumable = true; // Not researchable, only drops one time. + Item.consumable = true; + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) => !player.Calamity().rageBoostTwo; diff --git a/Items/PermanentBoosters/MushroomPlasmaRoot.cs b/Items/PermanentBoosters/MushroomPlasmaRoot.cs index 1d351a20f6..ee2e863ba0 100644 --- a/Items/PermanentBoosters/MushroomPlasmaRoot.cs +++ b/Items/PermanentBoosters/MushroomPlasmaRoot.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items.PermanentBoosters Item.useTime = 30; Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; - Item.consumable = true; // Not researchable, only drops one time. + Item.consumable = true; + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) => !player.Calamity().rageBoostOne; diff --git a/Items/PermanentBoosters/RedLightningContainer.cs b/Items/PermanentBoosters/RedLightningContainer.cs index c82d2a816d..a8e7af6f2f 100644 --- a/Items/PermanentBoosters/RedLightningContainer.cs +++ b/Items/PermanentBoosters/RedLightningContainer.cs @@ -21,7 +21,8 @@ namespace CalamityMod.Items.PermanentBoosters Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; Item.consumable = true; - Item.rare = ItemRarityID.Purple; // Not researchable, only drops one time. + Item.rare = ItemRarityID.Purple; + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) => !player.Calamity().rageBoostThree; diff --git a/Items/PermanentBoosters/StarlightFuelCell.cs b/Items/PermanentBoosters/StarlightFuelCell.cs index 97b98b924d..d762aaafc5 100644 --- a/Items/PermanentBoosters/StarlightFuelCell.cs +++ b/Items/PermanentBoosters/StarlightFuelCell.cs @@ -17,7 +17,8 @@ namespace CalamityMod.Items.PermanentBoosters Item.useTime = 30; Item.useStyle = ItemUseStyleID.HoldUp; Item.UseSound = SoundID.Item122; - Item.consumable = true; // Not researchable, only drops one time. + Item.consumable = true; + Item.SetRevExclusive(); } public override bool CanUseItem(Player player) diff --git a/Items/Placeables/FurnitureMarnite/MarniteToilet.cs b/Items/Placeables/FurnitureMarnite/MarniteToilet.cs new file mode 100644 index 0000000000..cab00cbab0 --- /dev/null +++ b/Items/Placeables/FurnitureMarnite/MarniteToilet.cs @@ -0,0 +1,33 @@ +using CalamityMod.Tiles.FurnitureMarnite; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Placeables.FurnitureMarnite +{ + public class MarniteToilet : ModItem, ILocalizedModType + { + public new string LocalizationCategory => "Items.Placeables"; + public override void SetDefaults() + { + Item.width = 16; + Item.height = 28; + Item.maxStack = 9999; + Item.useTurn = true; + Item.autoReuse = true; + Item.useAnimation = 15; + Item.useTime = 10; + Item.useStyle = ItemUseStyleID.Swing; + Item.consumable = true; + Item.value = 0; + Item.createTile = ModContent.TileType(); + } + + public override void AddRecipes() + { + CreateRecipe(). + AddIngredient(6). + AddTile(TileID.WorkBenches). + Register(); + } + } +} diff --git a/Items/Placeables/FurnitureMarnite/MarniteToilet.png b/Items/Placeables/FurnitureMarnite/MarniteToilet.png new file mode 100644 index 0000000000..f08720a75b Binary files /dev/null and b/Items/Placeables/FurnitureMarnite/MarniteToilet.png differ diff --git a/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs index 5203a79546..fb15dd9ee4 100644 --- a/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs +++ b/Items/Placeables/MusicBoxes/DraedonExoSelectMusicBox.cs @@ -12,6 +12,7 @@ namespace CalamityMod.Items.Placeables.MusicBoxes { ItemID.Sets.CanGetPrefixes[Type] = false; ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.MusicBox; + MusicLoader.AddMusicBox(Mod, MusicLoader.GetMusicSlot(Mod, "Sounds/Music/DraedonExoSelect"), Type, ModContent.TileType()); } public override void SetDefaults() => Item.DefaultToMusicBox(ModContent.TileType(), 0); diff --git a/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs index 339f207a1a..02cde2d88e 100644 --- a/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs +++ b/Items/Placeables/MusicBoxes/DraedonTalkMusicBox.cs @@ -11,6 +11,7 @@ namespace CalamityMod.Items.Placeables.MusicBoxes { ItemID.Sets.CanGetPrefixes[Type] = false; ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.MusicBox; + MusicLoader.AddMusicBox(Mod, MusicLoader.GetMusicSlot(Mod, "Sounds/Music/DraedonTalk"), Type, ModContent.TileType()); } public override void SetDefaults() => Item.DefaultToMusicBox(ModContent.TileType(), 0); diff --git a/Items/Weapons/Magic/BurningSea.cs b/Items/Weapons/Magic/BurningSea.cs index 780927a80b..d08ab647d1 100644 --- a/Items/Weapons/Magic/BurningSea.cs +++ b/Items/Weapons/Magic/BurningSea.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 28; Item.height = 30; - Item.damage = 75; + Item.damage = 68; Item.DamageType = DamageClass.Magic; Item.mana = 15; Item.useTime = 20; diff --git a/Items/Weapons/Rogue/NanoblackReaper.cs b/Items/Weapons/Rogue/NanoblackReaper.cs index a6a56bbc4a..7b189af415 100644 --- a/Items/Weapons/Rogue/NanoblackReaper.cs +++ b/Items/Weapons/Rogue/NanoblackReaper.cs @@ -15,7 +15,9 @@ namespace CalamityMod.Items.Weapons.Rogue public class NanoblackReaper : RogueWeapon, IHoldShiftTooltipItem { public bool ShowExtensionIndicator => false; + public bool HasFlavorTooltip => true; public Color? TooltipExtensionColor => new Color(31, 223, 128); // #1FDF80 + public Color? FlavorTooltipColor => TooltipExtensionColor; public static float Knockback = 9f; public static float Speed = 16f; diff --git a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson index 25c7ebd6e0..065b44f876 100644 --- a/Localization/en-US/Mods.CalamityMod.Bestiary.hjson +++ b/Localization/en-US/Mods.CalamityMod.Bestiary.hjson @@ -11,7 +11,7 @@ DevilFish: So called for their demonic horns, devilfish absorb the fumes left be EidolonWyrm: Relatives of the auric dragons, they adapted to hide away in a forgotten corner of the world to survive the great purges. And yet even without auric souls, the power of eidolon wyrms rivals many of their brethren who possessed them. GiantSquid: Squid are known to be cannibalistic animals, having few qualms with consuming their own kind when in need of food. Quite ironically, this creature's main predator is itself. GulperEel: Though sluggish and bulky, these eels traverse the abyss with surprising ease. They blend into the darkness, with a mouth that can stretch abnormally wide used to slowly swallow prey whole. Their meals are left unaware of their predicament until it is far too late. -Laserfish: Its eyes are blinded by bacteria that gather in large sacs on its head. As it swims through the waters, relying on primitive echolocation, the bacteria are able to release concussive blasts to clear its path. +Laserfish: Although Draedon focused very little on researching the Abyss due to the immense pressure making it impractical, what time his machines did spend here can be seen in Laserfish. These cybernetic fish were once meant to act his eyes in the trench, along with being an experiment on how a biological body copes with a mechanical mind. LuminousCorvina: Lumenyl grows on the fins of these exotic corvina, making these creatures one of the few sources of light in the Abyss. It survives by guiding what would be its predators to other prey, signaling where it is by emitting a shrill pulse. MirageJelly: Using the light refracted from lumenyl crystals and water warmed by the scorching heat of scoria, these jellyfish can create afterimages of themselves to confuse predators, or catch prey of their own. MorayEel: When a fish bites your heel and it looks like an eel, that's a moray. When it swims in the reef and has two sets of teeth, that's a moray. When you're slapped in the face with a slimy embrace, that's a moray. diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson index 6cd23de2b8..4e8375354c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.Wings.hjson @@ -83,7 +83,7 @@ MOAB: { Acceleration multiplier: 1.0 Good vertical speed Flight time: 75 - 32% increased jump speed and allows constant jumping + 32% increased jump speed and allows auto-jump Grants the player cloud, blizzard, and sandstorm mid-air jumps 'The Mother Of All Balloons' ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 3fb73b3322..3060cdb54e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -12,8 +12,7 @@ AbyssalAmulet: { DisplayName: Abyssal Amulet Tooltip: ''' - Attacks inflict the Riptide debuff - Grants immunity to the Riptide debuff + Attacks inflict Riptide and you are immune to it While in the abyss you gain 10% increased max life ''' } @@ -26,8 +25,7 @@ AbyssalDivingGear: { Removes the bleed effect caused by the abyss Grants the ability to swim and greatly extends underwater breathing Provides light underwater and extra mobility on ice - Provides a moderate amount of light in the abyss - Greatly reduces breath loss in the abyss + Provides a moderate amount of light and reduces breath loss in the abyss ''' } @@ -35,21 +33,16 @@ AbyssalDivingSuit: { DisplayName: Abyssal Diving Suit Tooltip: ''' - Transforms the holder into an armored diver - Increases max movement speed and acceleration while underwater but you move slowly outside of water + Transforms the holder into an armored diver: + Increases max movement speed and acceleration while underwater, but reduces it outside of water The suit's armored plates increase damage reduction by 15% - The plates will only take damage if the damage taken is over 50 - After the suit has taken too much damage its armored plates will take 3 minutes to regenerate - Reduces the damage caused by the pressure of the abyss while out of breath - Removes the bleed effect caused by the abyss in all layers except the Void - Grants the ability to swim and greatly extends underwater breathing - Provides light underwater and extra mobility on ice - Provides a moderate amount of light in the abyss - Greatly reduces breath loss in the abyss - Makes it more difficult for abyss creatures to detect you - Reduces the defense reduction that the abyss causes + Wearing this suit grants 15% damage reduction for hits under 50 damage + The suit can absorb up to 3 hits over 50 damage, and will take 3 minutes to regenerate + Reduces the damage caused by drowning in the abyss, and removes the bleed effect in the upper layers + Grants the ability to swim, extends underwater breathing, emits light underwater, and improves mobility on ice + Provides a moderate amount of light and reduces breath loss in the abyss + Abyss creatures are less likely to see you, mitigates the abyss' defense reduction, and lets you sink faster in liquids Grants immunity to the sulphurous waters - Allows you to fall faster while in liquids ''' } @@ -57,23 +50,25 @@ AbyssalMirror: { DisplayName: Abyssal Mirror Tooltip: ''' - Significantly reduces enemy aggression, even in the abyss - Stealth generates 25% faster when standing still and 12% faster while moving - Grants the ability to evade attacks, releasing a cloud of lumenyl fluid which damages and stuns nearby enemies - Attacks that deal less than 5% of your max life in damage will not be evaded - The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage - Evading an attack grants a lot of stealth - This cooldown is shared with all other dodges and reflects + Enemies are less likely to target you, even in the abyss + Generate stealth 25% faster when standing still and 12% faster while moving + Grants the ability to dodge attacks, releasing a cloud of lumenyl fluid which damages and stuns nearby enemies 'Light does not reach the depths of the ocean' ''' + HoldShiftTooltip: + ''' + Attacks that deal less than 5% of your max life in damage will not be dodged + The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage + This cooldown is shared with all other dodges and reflects + Dodging an attack gives stealth + ''' } AscendantInsignia: { DisplayName: Ascendant Insignia Tooltip: ''' - Increases wing flight time by 30% - Increases movement and jump speed by 10% and acceleration by 1.1x + Increases wing flight time by 30%, movement and jump speed by 10%, and acceleration by 1.1x Pressing [KEY] will give you the power of ascension, providing infinite flight time for 4 seconds Ascension has a 40 second cooldown ''' @@ -84,25 +79,21 @@ AeroStone: { Tooltip: ''' Provides an additional 50 flight time - You slowly recover flight time while in the air if you are not flying or gliding + You slowly recover flight time while in the air while not flying or gliding 'One of the ancient relics' ''' } Affliction: { DisplayName: Affliction - Tooltip: - ''' - Gives you and all other players on your team +0.5 HP/s life regen, - +10% max life, 7% damage reduction, 13 defense and 10% increased damage - ''' + Tooltip: Gives all teammates +0.5 HP/s life regen, +10% max life, 7% damage reduction, 13 defense and 10% increased damage } AlchemicalFlask: { DisplayName: Alchemical Flask Tooltip: ''' - All attacks inflict the Plague and reduces damage taken from the Plague + All attacks inflict the Plague and lessens damage taken from the Plague Projectiles spawn plague seekers on enemy hits Releases plague bees when damaged and douses you in honey ''' @@ -112,7 +103,7 @@ AlluringBait: { DisplayName: Alluring Bait Tooltip: ''' - 30 increased fishing power + Increases fishing power by 30 Greatly increases chance of catching potion ingredient fish Potion ingredient fish yield is increased ''' @@ -123,13 +114,15 @@ AmalgamatedBrain: { Tooltip: ''' 10% increased damage - Shade rains down when you are hit + Shade rains down and enemies are confused when hit, + and summon damage and crit chance are boosted by 10% Grants the ability to dodge attacks + ''' + HoldShiftTooltip: + ''' Attacks that deal less than 5% of your max life in damage will not be dodged The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage This cooldown is shared with all other dodges and reflects - Temporarily increases critical strike chance and summon damage after a dodge - You will confuse nearby enemies when you are struck ''' } @@ -138,17 +131,17 @@ AmbrosialAmpoule: { Tooltip: ''' +50 max life + Grants +1 HP/s life regen Grants +2 to +6 HP/s life regen based on missing health - Grants +1 HP/s life regen and an additional 1 HP/s life regen when inflicted with a damage debuff - Standing still grants +1.5 HP/s life regen - Halves how long you are afflicted with fire and sickness debuffs + Standing still grants +1.5 HP/s life regen and +1 HP/s life regen when inflicted with a damage debuff + Fire and sickness debuff durations are halved You emit yellow light if visibility is enabled ''' } AmidiasPendant: { DisplayName: Amidias' Pendant - Tooltip: Periodically rains down prism shards that can briefly stun enemies + Tooltip: Periodically rains down prism shards that briefly stun enemies } AmidiasSpark: { @@ -165,8 +158,8 @@ AnechoicPlating: { DisplayName: Anechoic Plating Tooltip: ''' - Makes it more difficult for abyss creatures to detect you - Reduces the defense reduction that the abyss causes + Abyss creatures are less likely to see you + Mitigates the defense reduction from the abyss' pressure ''' } @@ -179,9 +172,9 @@ AngelicAlliance: { +2 max minions, 15% increased summon damage, and 8% increased damage to all other classes +2 HP/s life regen while airborne using wings Press [KEY] to grace yourself in divinity for 15 seconds - While under the effects of Divine Bless, for every minion you have, an archangel shall be summoned to aid you in combat - Each spawned angel will instantly heal you for two health - All minion attacks inflict Banishing Fire and you are granted a flat health boost of four health per second + While Divine Bless is active, for every minion you have, an archangel shall be summoned to aid you in combat + Each spawned angel will instantly restore 2 HP + All minion attacks inflict Banishing Fire, and you are granted a flat 4 HP/s regen This effect has a cooldown of 1 minute ''' } @@ -191,11 +184,9 @@ AngelTreads: { Tooltip: ''' 36% increased running acceleration - Increased flight time - Greater mobility on ice - Water and lava walking - Immunity to the On Fire! debuff - Temporary immunity to lava + Increased flight time and grants rocket flight + Provides water walking and extra mobility on ice + Immunity to On Fire! and temporary immunity to lava 'Extreme speed!' ''' } @@ -204,12 +195,11 @@ AquaticEmblem: { DisplayName: Aquatic Emblem Tooltip: ''' - Most ocean enemies become friendly and provides waterbreathing - Being underwater slowly boosts your defense over time but also slows movement speed - The defense boost and movement speed reduction slowly vanish while outside of water - Maximum defense boost is 50, maximum movement speed reduction is 10% - Provides a small amount of light in the abyss - Moderately reduces breath loss in the abyss + Most ocean enemies become friendly and allows breathing underwater + Being underwater boosts your defense over time, and slows movement speed + The defense boost and movement speed reduction slowly vanish outside of water + Maximum defense boost is 50 and movement speed reduction is 10% + Provides a small amount of light and moderately reduces breath loss in the abyss ''' } @@ -218,13 +208,17 @@ AquaticHeart: { Tooltip: ''' Transforms the holder into a light-emitting water elemental - The following effects are only active after Skeletron is defeated: + [STATUS] + ''' + LockedTooltip: "[c/F05A5A:The pearl's magic is suppressed by an ancient curse]" + FullTooltip: + ''' Wow, you can swim now! - Going underwater gives Ocean's Blessing, which increases max speed and acceleration by 15% + Being underwater increases max speed and acceleration by 15% Greatly reduces breath loss and provides a small amount of light in the abyss - Enemies are inflicted with Glacial State when they touch you - You have a layer of ice around you that absorbs 20% damage but breaks after one hit - After 30 seconds the ice shield will regenerate + Attackers are inflicted with Glacial State + Gain a fragile ice barrier that grants 20% damage reduction for one hit + The ice shield regenerates after 30 seconds ''' } @@ -241,10 +235,17 @@ AsgardianAegis: { DisplayName: Asgardian Aegis Tooltip: ''' - Allows the ability to ram dash, empowered by the cosmic inferno - This dash can slam through enemies without taking damage - Grants immunity to knockback and fire blocks - Grants immunity to the vast majority of debuffs, including God Slayer Inferno + Allows the ability to dash, empowered by a cosmic inferno + This dash can ram through enemies without taking damage + Grants immunity to knockback and fire blocks, as well as multiple debuffs + ''' + HoldShiftTooltip: + ''' + On Fire!, Hellfire, Chilled, Frozen, Frostburn, Frostbite, Weak, Broken Armor, + Bleeding, Poisoned, Acid Venom, Sulphuric Poisoning, Slow, Confused, + Silenced, Cursed, Darkness, Webbed, Mighty Wind, Stoned, Armor Crunch, + Blackout, Brain Rot, Burning Blood, Cursed Inferno, Brimstone Flames, + Shadowflame, Daybroken, Nightwither, Holy Flames, God Slayer Inferno, Burning ''' } @@ -253,9 +254,14 @@ AsgardsValor: { Tooltip: ''' Allows the ability to ram dash - This dash can slam through enemies without taking damage - Grants immunity to knockback and fire blocks - Grants immunity to most debuffs, including most forms of frost and flame + This dash can ram through enemies without taking damage + Grants immunity to knockback and fire blocks, as well as multiple debuffs + ''' + HoldShiftTooltip: + ''' + On Fire!, Hellfire, Chilled, Frozen, Frostburn, Frostbite, Weak, + Broken Armor, Bleeding, Poisoned, Slow, Confused, Silenced, Cursed, + Darkness, Mighty Wind, Stoned, Brimstone Flames, Burning ''' } @@ -273,7 +279,7 @@ BadgeofBravery: { Tooltip: ''' Increases melee damage and melee crit by 10% - +5 melee armor penetration + Increases melee armor penetration by 5 ''' } @@ -284,10 +290,9 @@ BlazingCore: { 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, waves of holy stars spiral outwards and the damage you would have taken is reduced to 1 + Upon shattering, holy stars spiral outwards and you only take 1 damage After shattering, this damage reduction effect goes on cooldown - If another encasement is shattered whilst on cooldown, healing stars will be interspersed throughout the waves of stars - The damage of a hit is not reduced whilst on cooldown + Damage parried whilst on cooldown summons additional healing stars, and will not be reduced Provides a moderate amount of light in the Abyss ''' } @@ -296,9 +301,8 @@ BloodflareCore: { DisplayName: Bloodflare Core Tooltip: ''' - Taking defense damage heals you over time - You gain 1 health for every 1 defense damage recovered - Taking damage always deals at least half of your total defense in defense damage + Recovering defense damage heals you, each defense recovered gives 1 HP + Taking damage converts at least half of your total defense in defense damage ''' } @@ -333,7 +337,7 @@ BloomStone: { Grants between +1 HP/s and +3 HP/s life regen depending on time of day Accelerates life regen based on time of day Both of these effects are maximized from noon to sunset - Flowers grow if you are standing on grass + Flowers grow on the grass you walk on Random dye plants will grow while standing on grassless dirt 'One of the ancient relics' ''' @@ -345,8 +349,9 @@ BlunderBooster: { ''' 12% increased rogue damage and 15% increased rogue projectile velocity Stealth generates 10% faster - Summons a red lightning aura to surround the player and electrify nearby enemies - Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards/diagonal dash which leaves a trail of lightning bolts + Summons a red lightning aura around the player that electrifies nearby enemies + Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards diagonal dash + This dash leaves a trail of red lightning bolts This effect has a 1 second cooldown before it can be used again ''' } @@ -370,7 +375,7 @@ ChaliceOfTheBloodGod: { +2 HP/s life regen and reduces the cooldown of healing potions by 25% Taking more than 5 damage converts the hit into a damage over time bleed debuff This bleeding does not interfere with life regeneration - Drinking a healing potion cancels up to 50% of its heal value of remaining bleed damage + Drinking a healing potion cancels up to 50% of its heal value in remaining bleed damage Unequipping this accessory while bleeding inflicts the remaining damage instantly 'All that for a drop of blood...' ''' @@ -410,8 +415,8 @@ CorruptFlask: { DisplayName: Corrupt Flask Tooltip: ''' - 4% increased damage reduction and +6 defense while in the corruption - Grants immunity to the Brain Rot debuff + Incerases damage reduction by 4% and defense by 6 while in the corruption + Immunity to Brain Rot ''' } @@ -430,7 +435,7 @@ CrawCarapace: { Tooltip: ''' 7% increased damage - Enemies that hit you take damage and are inflicted with Crumbling + Attackers take damage and are inflicted with Crumbling ''' } @@ -439,7 +444,7 @@ Baroclaw: { Tooltip: ''' 10% increased damage and 5% increased damage reduction - Enemies that hit you take high damage and are inflicted with Armor Crunch and Crush Depth + Attackers take high damage and are inflicted with Armor Crunch and Crush Depth ''' } @@ -447,8 +452,8 @@ CrimsonFlask: { DisplayName: Crimson Flask Tooltip: ''' - 4% increased damage reduction and +6 defense while in the crimson - Grants immunity to the Burning Blood debuff + Increases damage reduction by 4% and defense by 6 while in the crimson + Immunity to Burning Blood ''' } @@ -466,7 +471,7 @@ CryoStone: { DisplayName: Cryo Stone Tooltip: ''' - Multiplies all cold-based debuff damage by 1.5 + Multiplies all cold-based debuff damage by 1.5x Creates a rotating ice shield around you that damages and slows down enemies on contact 'One of the ancient relics' ''' @@ -476,17 +481,22 @@ DaawnlightSpiritOrigin: { DisplayName: Daawnlight Spirit Origin Tooltip: ''' - All nearby enemies and bosses are marked with bullseyes - Ranged attacks that strike a bullseye always critically strike and deal massive damage - When a bullseye is struck, it vanishes and a new one appears elsewhere - Explosions or large projectiles cannot strike bullseyes - Shots ricocheted off of tossed coins will target bullseyes, but use a lower crit multiplier - Converts all ranged critical strike chance boosts into extra critical strike damage - All ranged weapons will deal even more critical strike damage the slower they are - Summons a heroic spirit from another world if accessory visibility is enabled - The heroic spirit is also summoned when this accessory is placed in vanity slots - 'A strand of a lost cosmos remains, waiting for its master' + Places bullseyes on enemies and bosses that can be hit for massive damage + Converts all ranged critical strike chance into critical strike damage + Summons a heroic spirit from another world if visibility is on or in vanity slots ''' + HoldShiftTooltip: + ''' + All nearby enemies and bosses are marked with bullseyes + All ranged attacks that hit a bullseye critically strike and deal massive damage + Struck bullseyes vanish and a new one appears elsewhere + Explosions and large projectiles cannot hit bullseyes + Shots ricocheted off of tossed coins deal less bullseye damage + Converts all ranged critical strike chance into critical strike damage + Ranged weapons that are slow to use deal more bullseye damage + Summons a heroic spirit from another world if visibility is on or in vanity slots + ''' + FlavorTooltip: "'A strand of a lost cosmos remains, waiting for its master'" } DarkMatterSheath: { @@ -494,9 +504,9 @@ DarkMatterSheath: { Tooltip: ''' +10 maximum stealth - Mobile stealth generation accelerates while not attacking + Stealth generation is boosted while moving if not attacking Stealth strikes only expend 50% of your max stealth - 6% increased rogue damage, and 6% increased rogue crit chance + 6% increased rogue damage and rogue crit chance ''' } @@ -507,11 +517,15 @@ DarkSunRing: { 12% increase to damage +0.5 HP/s life regen and +2 max minions Increased minion knockback - During the day, grants +2 HP/s life regen - During the night, grants +20 defense - During an eclipse, grants +1 HP/s life regen and +10 defense - 'Contains the power of the dark sun' + Grants various buffs as the day goes on ''' + HoldShiftTooltip: + ''' + During the day, grants +2 HP/s life regen + During the night, grants +20 defense + During an eclipse, grants +1 HP/s life regen and +10 defense + ''' + FlavorTooltip: "'Contains the power of the dark sun'" } DeadshotBrooch: { @@ -527,8 +541,8 @@ DeepDiver: { DisplayName: Deep Diver Tooltip: ''' - Allows the ability to do a short ram dash - This dash can slam through enemies without taking damage and can be used quickly in succession + Allows the ability to dash with a shorter cooldown + This dash can ram through enemies without taking damage Provides greatly improved water mobility ''' } @@ -547,7 +561,7 @@ DepthCharm: { DisplayName: Depths Charm Tooltip: ''' - Reduces the damage caused by the pressure of the abyss while out of breath + Reduces the damage caused by drowning in the abyss Removes the bleed effect caused by the upper layers of the abyss ''' } @@ -556,7 +570,7 @@ DimensionalSoulArtifact: { DisplayName: Dimensional Soul Artifact Tooltip: ''' - Multiplies all damage by 1.2x, but at the cost of increasing damage taken by 15% + Multiplies all damage by 1.2x, but at the cost of taking 15% increased damage Power ''' } @@ -574,8 +588,7 @@ DraedonsHeart: { NanomachinesAdd: ''' Adds the Nanomachines meter - Nanomachines accumulate over time while fighting bosses - Taking damage stops the accumulation for {0} {^0:second;seconds} + Nanomachines accumulate over time while fighting bosses, but taking damage stops the accumulation for {0} {^0:second;seconds} ''' NanomachinesReplace: ''' @@ -588,10 +601,10 @@ DragonScales: { DisplayName: Dragon Scales Tooltip: ''' - Rogue projectiles create slow fireballs as they travel + Rogue projectiles spawn slow fireballs as they travel Stealth strikes create infernados where they hit +10% max run speed and acceleration - Grants immunity to Dragonfire + Immunity to Dragonfire 'Only a living dragon holds true treasure' ''' } @@ -602,7 +615,7 @@ DynamoStemCells: { ''' 10% increased ranged damage and movement speed Ranged weapons fire a powerful mini swarmer every 3 seconds - Reduces the damage you take from the Dragonfire debuff + Reduces damage taken from Dragonfire and Electrified ''' } @@ -611,18 +624,20 @@ EclipseMirror: { Tooltip: ''' +10 maximum stealth - 6% increased rogue damage, and 6% increased rogue crit chance - Vastly reduces enemy aggression, even in the abyss - Stealth generates 25% faster when standing still - Mobile stealth generation accelerates while not attacking + 6% increased rogue damage and rogue crit chance + Enemies are less likely to target you, even in the abyss + Stealth generates 25% faster when standing still and is boosted while moving if not attacking Stealth strikes only expend 50% of your max stealth - Grants the ability to evade attacks in a blast of darksun light, which inflicts extreme damage in a wide area - Attacks that deal less than 5% of your max life in damage will not be evaded - The evade has a cooldown that ranges between 15 and 90 seconds depending on the evaded attack's damage - Evading an attack grants a lot of stealth - This cooldown is shared with all other dodges and reflects - 'Its reflection shows naught but darkness' + Grants the ability to dodge attacks in a blast of darksun light, which inflicts extreme damage in a wide area ''' + HoldShiftTooltip: + ''' + Attacks that deal less than 5% of your max life in damage will not be dodged + The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage + Dodging an attack grants a lot of stealth + This cooldown is shared with all other dodges and reflects + ''' + FlavorTooltip: "'Its reflection shows naught but darkness'" } EldritchSoulArtifact: { @@ -630,7 +645,7 @@ EldritchSoulArtifact: { Tooltip: ''' Boosts melee speed by 10%, ranged velocity by 25%, rogue stealth regen by 15%, max minions by 1 and reduces mana cost by 25% - Grants immunity to Whispering Death + Immunity to Whispering Death Knowledge ''' } @@ -639,8 +654,8 @@ ElectriciansGlove: { DisplayName: Electrician's Glove Tooltip: ''' - Stealth strikes summon sparks on enemy hits - Stealth strikes also have +8 armor penetration, deal 8% more damage, and heal for 2 HP + Stealth strikes summon sparks on enemy hits and heal you for 2 HP + Stealth strikes also have +8 armor penetration, deal 8% more damage ''' } @@ -649,12 +664,11 @@ ElementalGauntlet: { Tooltip: ''' Melee attacks and projectiles inflict Elemental Mix - 15% increased melee damage and 5% increased melee critical strike chance - 15% increased melee speed, does not stack with downgrades - 20% increased true melee damage - Increased melee knockback - Enables auto swing for melee weapons - Increases the size of melee weapons + 15% increased melee damage and melee speed + 5% increased melee critical strike chance + 20% increased true melee damage and increased melee knockback + Enables auto swing for melee weapons and increases their size + Does not stack with downgrades ''' } @@ -662,21 +676,21 @@ ElysianAegis: { DisplayName: Elysian Aegis Tooltip: ''' - Allows the ability to ram dash, empowered by holy fire - This dash can slam through enemies without taking damage - Grants immunity to knockback and fire blocks - Grants immunity to most fire debuffs, including Daybreak and Holy Flames + Allows the ability to dash, empowered by holy fire + This dash can ram through enemies without taking damage + Grants immunity to knockback, fire blocks, as well as multiple debuffs Blessed by the Profaned Flame ''' + HoldShiftTooltip: + ''' + On Fire!, Hellfire, Cursed Inferno, Shadowflame, Daybroken, + Holy Flames, Brimstone Flames, Burning + ''' } EnchantedPearl: { DisplayName: Enchanted Pearl - Tooltip: - ''' - Increases fishing skill - Increases chance to catch crates - ''' + Tooltip: Increases fishing power by 10 and crate catch chance by 10% } EtherealExtorter: { @@ -692,8 +706,8 @@ EtherealTalisman: { DisplayName: Ethereal Talisman Tooltip: ''' - 15% increased magic damage, 5% increased magic critical strike chance and 10% decreased mana usage - +150 max mana + 15% increased magic damage, 5% increased magic critical strike chance + +150 max mana and 10% decreased mana usage Increases pickup range for mana stars You automatically use mana potions when needed if visibility is on ''' @@ -734,10 +748,9 @@ FlameLickedShell: { ''' Pressing [KEY] will activate a parry, encasing you in rocks Being hit shortly after encasement will implode the rocks - Upon implosion, a spread of brimstone hellfire is launched outwards and you receive 90% DR for that hit + Upon implosion, a ring of brimstone hellfire is launched outwards and you receive 90% DR for that hit After imploding, this damage reduction effect goes on cooldown - If another encasement is shattered whilst on cooldown, a weaker spread of brimstone hellfire is launched - The damage of a hit is not reduced whilst on cooldown + Damage parried whilst on cooldown summons weaker brimstone flames, and will not be reduced ''' } @@ -755,7 +768,7 @@ FrostBarrier: { Tooltip: ''' You will freeze nearby enemies when you are struck - Grants immunity to Chilled and Frostburn + Immunity to Chilled and Frostburn ''' } @@ -785,8 +798,8 @@ FungalSymbiote: { Tooltip: ''' You grow mushrooms on the grass beneath you - Consuming mushrooms provides the Mushy buff, increasing defense by 6 and granting 1 HP/s life regen - All mushroom-based weapons deal 10% more damage and emit non-damaging mushrooms + Consuming mushrooms provides the Mushy buff, granting 6 defense and +1 HP/s life regen + All mushroom-based weapons deal 10% more damage and emit harmless mushrooms ''' } @@ -806,7 +819,7 @@ GiantShell: { Tooltip: ''' 10% reduced dash velocity - Taking a hit will remove the dash penalty and reduce defense for 5 seconds + Taking a hit restores dash velocity and reduces defense for 5 seconds ''' } @@ -815,9 +828,8 @@ GiantTortoiseShell: { Tooltip: ''' Grants immunity to knockback - 5% increased damage reduction - 10% reduced dash velocity - Taking a hit will remove the dash penalty and reduce defense and damage reduction for 5 seconds + 5% increased damage reduction and 10% reduced dash velocity + Taking a hit restores dash velocity and reduces defense and damage reduction for 5 seconds ''' } @@ -841,7 +853,7 @@ GloveOfRecklessness: { ''' Increases rogue attack speed by 15%, but decreases damage by 10% and crit by 5% 15% increased stealth regeneration - Adds inaccuracy to rogue weapons + Makes rogue weapons slightly inaccurate ''' } @@ -850,9 +862,8 @@ GrandGelatin: { Tooltip: ''' 12% increased movement speed and jump speed - Using a healing potion will spawn a cleansing aura - Walking into the aura removes all debuffs one time - The aura grants +2.5 HP/s life regen for all players inside for 8 seconds + Using a healing potion creates a cleansing aura which lasts for 30 seconds + Entering the aura removes all debuffs one time and grants +2.5 HP/s life regen ''' } @@ -860,12 +871,11 @@ GravistarSabaton: { DisplayName: Gravistar Sabaton Tooltip: ''' - 20% increased jump speed - Grants immunity to fall damage + 20% increased jump speed and negates fall damage Hold DOWN to increase your maximum fall speed Hold [KEY] for 1 second while midair to charge up a superspeed slam - While slamming, you ram through enemies and don't take contact damage - Once you reach the ground, you create an explosion at your feet + While falling, you ram through enemies and don't take contact damage + Once you hit the ground, you create an explosion at your feet The explosion scales in both damage and size the longer you slam for Temporary 40% increased jump speed after slamming into the ground ''' @@ -875,30 +885,25 @@ HallowedRune: { DisplayName: Hallowed Rune Tooltip: ''' - Whenever your minions hit an enemy you will gain a random buff, does not stack with downgrades - Hallowed Power increases summon damage by 10% and makes minion hits rain stars - Hallowed Defense increases defense by 8 and DR by 4% - Hallowed Regen grants +1.5 HP/s life regeneration + Minion attacks provide various buffs + Does not stack with downgrades + ''' + HoldShiftTooltip: + ''' + [c/8ce0ff: Hallowed Power] [c/ccf1ff: grants 10% increased summon damage and rains stars on enemies] + [c/d08aff: Hallowed Defense] [c/eed4ff: grants 8 defense and 4% damage reduction] + [c/ff8cb5: Hallowed Regen] [c/ffccde: grants +1.5 HP/s life regen] ''' } HarpyRing: { DisplayName: Harpy Ring - Tooltip: - ''' - 10% increased movement speed - Boosts your maximum flight time by 20% - ''' + Tooltip: 10% increased movement speed and 20% increased flight time } HeartofDarkness: { DisplayName: Heart of Darkness - Tooltip: - ''' - You constantly gain rage over time - Rage does not fade away when out of combat - Revengeance drop - ''' + Tooltip: You constantly gain rage over time, and rage does not fade away when out of combat } HeartoftheElements: { @@ -914,11 +919,11 @@ HideofAstrumDeus: { DisplayName: Hide of Astrum Deus Tooltip: ''' - Taking damage, or inflicting a true melee strike, drops an immense amount of astral stars from the sky - Taking damage boosts true melee damage by 30% + Taking damage or inflicting true melee strikes drops an immense amount of astral stars from the sky + Taking damage temporarily boosts true melee damage by 30% Boost duration scales with the amount of damage you took, up to 10 seconds - Provides immunity to the astral infection, cursed inferno, on fire, and frostburn debuffs - Enemies take damage when they hit you and are inflicted with the astral infection debuff + Immunity to Astral Infection, Cursed Inferno, On Fire!, and Frostburn + Attackers take damage and are inflicted with Astral Infection ''' } @@ -927,9 +932,9 @@ HoneyDew: { Tooltip: ''' +30 max life - Grants +1 HP/s life regen and an additional 1 HP/s life regen when inflicted with a damage debuff + Grants +1 HP/s life regen, and +1 HP/s life regen when inflicted with a damaging debuff Standing still in Honey grants +1.5 HP/s life regen - Halves how long you are afflicted with sickness debuffs + Sickness debuff durations are halved ''' } @@ -946,12 +951,12 @@ InfectedJewel: { DisplayName: Infected Jewel Tooltip: ''' - +1 HP/s life regen + Passively grants +1 HP/s life regen Grants 16 defense and +2 HP/s life regen while afflicted with any debuff Massively boosts natural life regen while afflicted with any debuff Granted defense fades away quickly when not afflicted with any debuffs Each debuff beyond the first grants 5 additional defense - Makes the Astral Infection debuff harmless + Nullifies the Astral Infection debuff 'A beautiful gemstone tarnished by spaceborne rot' ''' } @@ -960,34 +965,33 @@ InkBomb: { DisplayName: Ink Bomb Tooltip: ''' - Throws several ink bombs when hit that explode in a confusing cloud of ink - Gain a lot of stealth when struck + Throws several ink bombs when hit that explode into ink + Gain a lot of stealth and confuse enemies when struck This effect has a 20 second cooldown before it can occur again ''' } IronBoots: { DisplayName: Iron Boots - Tooltip: Allows you to fall faster while in liquids + Tooltip: Allows you to sink faster through liquids } JellyChargedBattery: { DisplayName: Jelly-Charged Battery Tooltip: ''' - +1 max minions and 7% summon damage - Minion attacks spawn orbs of energy and inflict Static Discharge + Increases your max number of minions by 1, and summon damage by 7% + Minion attacks create electrified orbs ''' } Laudanum: { DisplayName: Laudanum - Tooltip: + Tooltip: Converts certain debuffs into buffs and extends their durations + HoldShiftTooltip: ''' - Converts certain debuffs into buffs and extends their durations - Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, - Broken Armor, Armor Crunch, Chilled, Ichor, and Obstructed - Revengeance drop + Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, + Broken Armor, Armor Crunch, Chilled, Ichor, and Obstructed ''' } @@ -995,8 +999,7 @@ LeviathanAmbergris: { DisplayName: Leviathan Ambergris Tooltip: ''' - 20% increased dash velocity - Delay after dashing is reduced by 33% + 20% increased dash velocity, and dash cooldown is 33% faster Your dashes are empowered by water, knocking back and damaging nearby enemies with viscous currents ''' } @@ -1005,8 +1008,8 @@ LifeJelly: { DisplayName: Life Jelly Tooltip: ''' - Using a healing potion will spawn a lingering aura - The aura grants +2 HP/s life regen for all players inside for 5 seconds + Using a healing potion spawns a pink aura that lasts for 30 seconds + The aura grants +2 HP/s life regen ''' } @@ -1015,9 +1018,9 @@ LivingDew: { Tooltip: ''' +50 max life - Grants +1 HP/s life regen and an additional 1 HP/s life regen when inflicted with a damage debuff + Grants +1 HP/s life regen and an additional 1 HP/s life regen when inflicted with a damaging debuff Standing still in Honey grants +1.5 HP/s life regen - Halves how long you are afflicted with fire and sickness debuffs + Fire and sickness debuff durations are halved ''' } @@ -1025,8 +1028,7 @@ LumenousAmulet: { DisplayName: Lumenous Amulet Tooltip: ''' - Attacks inflict the Crush Depth debuff - Grants immunity to the Riptide and Crush Depth debuffs + Attacks inflict Crush Depth and you are immune to it and Riptide While in the abyss you gain 25% increased max life Provides a moderate amount of light in the abyss ''' @@ -1036,7 +1038,7 @@ LuxorsGift: { DisplayName: Luxor's Gift Tooltip: ''' - Weapons fire unique projectiles based on the damage type they have + Weapons fire unique projectiles based on their damage type Some weapons are unable to receive this bonus ''' } @@ -1045,7 +1047,7 @@ CleansingJelly: { DisplayName: Cleansing Jelly Tooltip: ''' - Using a healing potion will spawn a cleansing aura + Using a healing potion spawns a blue aura that lasts for 30 seconds Walking into the aura removes all debuffs one time ''' } @@ -1056,7 +1058,7 @@ ManaPolarizer: { ''' Increases max mana by 50 and magic damage by 6% -1.5 HP/s life regen if mana is above 50% of its maximum - Magic projectiles give lifesteal while holding a magic weapon + Magic projectiles steal enemy life while holding a magic weapon The more mana you have, the more you heal ''' } @@ -1085,7 +1087,7 @@ MoonstoneCrown: { Tooltip: ''' 15% increased rogue projectile velocity - Stealth strikes summon lunar flares on enemy hits + Stealth strikes release lunar flares on enemy hits Rogue projectiles summon homing moon sigils as they travel ''' } @@ -1099,7 +1101,7 @@ Nanotech: { Stealth strikes have +15 armor penetration, deal 5% more damage, and heal for 2 HP 15% increased rogue damage and 15% increased rogue velocity Landing a stealth strike grants a 12% crit bonus to non-stealth strikes - This crit bonus decays over 5 seconds + This crit bonus slowly decays ''' } @@ -1109,7 +1111,7 @@ NebulousCore: { ''' 10% increased damage Summons floating nebula stars to protect you - You will survive an attack that would have killed you and be healed 100 HP + Taking a fatal hit revives you to 100 HP This effect has a 90 second cooldown ''' } @@ -1128,9 +1130,9 @@ NuclearFuelRod: { DisplayName: Nuclear Fuel Rod Tooltip: ''' + Increases your max number of minions by 1 Minions release an irradiated aura on enemy hits - +1 max minion - Grants immunity to Irradiated + Immunity to Irradiated ''' } @@ -1138,12 +1140,12 @@ Nucleogenesis: { DisplayName: Nucleogenesis Tooltip: ''' - Increases max minions by 4, does not stack with downgrades - Grants immunity to Shadowflame and Irradiated - 15% increased summon damage - Increased minion knockback + Increases your max number of mininons by 4 + Immunity to Shadowflame and Irradiated + 15% increased summon damage, and increased minion knockback Minions inflict a variety of debuffs Minions spawn damaging sparks on enemy hits + Does not stack with downgrades ''' } @@ -1151,15 +1153,17 @@ OccultSkullCrown: { DisplayName: Occult Skull Crown Tooltip: ''' - You constantly gain rage over time and rage does not fade away when out of combat + You constantly gain rage over time, and rage does not fade when out of combat Converts certain debuffs into buffs and extends their durations - Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, - Broken Armor, Armor Crunch, Chilled, Ichor and Obstructed Adrenaline charges 20% faster Increases your max movement speed and acceleration by 5% - 'Only a fool would ever wear this...' - Revengeance item ''' + HoldShiftTooltip: + ''' + Debuffs affected: Darkness, Blackout, Confused, Slow, Weak, + Broken Armor, Armor Crunch, Chilled, Ichor and Obstructed + ''' + FlavorTooltip: "'Only a fool would ever wear this...'" } OceanCrest: { @@ -1184,17 +1188,19 @@ OldDukeScales: { DisplayName: Old Duke's Scales Tooltip: ''' - 10% increased damage reduction - 10% increased max movement speed and acceleration + 10% increased damage reduction, max movement speed, and acceleration 25% increased dash velocity and length - Gives you a stamina indicator on the cooldown rack - Using any dash will consume 20% of your stamina - Stamina will gradually recover to 100% after not dashing for 1 second - Stamina recovers faster when you are stationary - If your stamina reaches 0%, you become exhausted - [c/CE0E18:While exhausted, this item's damage reduction and movement bonuses are negated] - [c/CE0E18:Being exhausted reduces movement speed by 30% and dash velocity by 50%] - This debuff lasts until your stamina reaches 100% again + Adds a stamina tracker to the cooldown rack + ''' + HoldShiftTooltip: + ''' + [c/c3dfff: Using any dash will consume 20% of your stamina] + [c/c3dfff: Stamina will gradually restore after not dashing for 1 second] + [c/c3dfff: Stamina recovers faster when you are stationary] + [c/c3dfff: If your stamina reaches 0%, you become exhausted] + [c/CE0E18: While exhausted, this item's damage reduction and movement bonuses are negated] + [c/CE0E18: Being exhausted reduces movement speed by 30% and dash velocity by 50%] + [c/c3dfff: This debuff lasts until your stamina reaches 100% again] ''' } @@ -1202,9 +1208,9 @@ OrnateShield: { DisplayName: Ornate Shield Tooltip: ''' - Allows the ability to ram dash - This dash can slam through enemies without taking damage - Grants immunity to Chilled, Frostburn, Frostbite, and Frozen + Allows the ability to dash + This dash can ram through enemies without taking damage + Immunity to Chilled, Frostburn, Frostbite, and Frozen ''' } @@ -1233,10 +1239,14 @@ PhantomicArtifact: { DisplayName: Phantomic Artifact Tooltip: ''' - Whenever your minions hit an enemy you will gain a random phantomic buff, does not stack with downgrades - Phantomic Empowerment increases summon damage by 10% and makes minion hits spawn phantomic knives - Phantomic Shield increases defense by 10 and DR by 5% and spawns a phantomic bulwark which absorbs 20% of the next projectile's damage that touches it - Phantomic Regen grants +2 HP/s life regen and spawns a phantomic heart which grants an additional 2 HP/s life regen when touched + Minion attacks provide various buffs + Does not stack with downgrades + ''' + HoldShiftTooltip: + ''' + [c/8ce0ff: Phantomic Empowerment] [c/ccf1ff: grants 10% increased summon damage and throws knives at enemies] + [c/d08aff: Phantomic Shield] [c/eed4ff: grants 10 defense, 5% damage reduction and a 20% damage reduction bulwark] + [c/ff8cb5: Phantomic Regen] [c/ffccde: grants 2 HP/s life regen and occasionally drops restorative phantom hearts] ''' } @@ -1246,7 +1256,8 @@ PlaguedFuelPack: { ''' 8% increased rogue damage and 15% increased rogue projectile velocity Stealth generates 10% faster - Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards/diagonal dash which leaves a trail of plagued clouds + Press [KEY] to consume 25% of your maximum stealth to perform a swift upwards diagonal dash + This dash leaves a trail of plagued clouds This effect has a 1 second cooldown before it can be used again ''' } @@ -1265,18 +1276,16 @@ ProfanedSoulArtifact: { DisplayName: Profaned Soul Artifact Tooltip: ''' - Summons a healer guardian, which heals for 15 health every few seconds - Summons a defensive guardian, which provides a weak shield reinforced by profaned rocks + Summons your own personal Guardians to fight alongside you + The offensive guardian grants an additional minion slot and fires a ring of spears while attacking + The defensive guardian creates a weak barrier of profaned rock [ADREN] - Upon being depleted, the barrier implodes sending the profaned rocks hurtling outwards - The barrier starts recharging 5 seconds after being hit - Recharging from zero to full charge takes 2 seconds - Being hit again while recharging restarts the charge timer - Summons an offensive guardian, which boosts your minion slots by 1 - The offensive guardian will occasionally fire spears on hit + Once depleted, the rocks are flung outward and will regenerate 5 seconds after being hit + Taking damage resets the timer + The healer guardian restores 15 health every few seconds Purity ''' - ShieldAdren: Halves Adrenaline lost on hit if the shield fully absorbs the hit + ShieldAdren: Halved Adrenaline loss if all damage is absorbed } ProfanedSoulCrystal: { @@ -1286,24 +1295,29 @@ ProfanedSoulCrystal: { Transforms you into an emissary of the profaned goddess [STATUS] ''' - ExoMechsLock: "[c/F05A5A:The soul within this crystal has been defiled by overwhelming energy waves from dangerous mechanations]" - CalamitasLock: "[c/F05A5A:The soul within this crystal has been defiled by the powerful magic of a supreme witch]" - Reject: Merchants will reject a defiled soul such as this. + Locked: "[c/F05A5A:The soul within this crystal has been defiled by {0}.]" + LockedBoth: "[c/F05A5A:The soul within this crystal has been defiled by {0} and {1}.]" + ExoMechsLock: indecipherable frequencies + CalamitasLock: powerful brimstone magic + Reject: Merchants will reject a tarnished item such as this. FullTooltip: ''' - Requires {0} minion slots to use in order to grant the following effects - All non-summon weapons are converted into powerful summon variations - Having no other minions will empower these attacks - [c/F05A5A:Transforms Melee attacks into a barrage of spears] - [c/3A83E4:Transforms Magic attacks into a powerful splitting fireball for {1} mana per cast] - [c/85E092:Transforms Ranged attacks into a flurry of fireballs and meteors] - [c/E94571:Transforms Rogue attacks into a deadly crystalline spiral] - [c/E299FF:Transforms Whip attacks into an empowering profaned crystal whip] - Summons and empowers the profaned soul guardians to fight alongside you - Provides buffs depending on the time of day + Provides passive buffs depending on the time of day + Grants additional effects if you have {0} minion slots + Summons your own personal Guardians to fight alongside you + All non-summon attacks are transformed, and are empowered if no minions are active + {1} Thinking back, it was a boring life [c/FFBF49:And so we burn it all in the name of purity] ''' + PSCDetails: + ''' + [c/ffa680:Melee] [c/ffd2bf:attacks become a barrage of spears] + [c/99ffa7:Ranged] [c/bfffc8:attacks become a flurry of fireballs and meteors] + [c/8cbeff:Magic] [c/bfdbff:attacks become a giant splitting fireball, costing {0} mana] + [c/d791f2:Whips] [c/e1b6f2:become overtaken by profaned crystal] + [c/f285a2:Rogue] [c/f2b6c6:attacks become a deadly crystalline spiral] + ''' } QuiverofNihility: { @@ -1312,7 +1326,7 @@ QuiverofNihility: { ''' 5% increased ranged critical strike chance Summons a ring of four void fields to orbit you - Arrows that pass through these fields gain a 75% damage boost and double the speed + Arrows that pass through these fields gain a 75% damage boost and double speed 'Filled with a substance darker than the night sky' ''' } @@ -1322,15 +1336,13 @@ Radiance: { Tooltip: ''' +70 max life - Grants +2 to +6 HP/s life regen based on missing health - Grants +1 HP/s life regen and an additional 1 HP/s life regen when inflicted with a damage debuff + Increases life regen based on missing health + Grants +1 HP/s life regen, and +1 HP/s life regen when inflicted with a damaging debuff + Each additional debuff grants 8 defense, which slowly decays while not debuffed Standing still grants +2 HP/s life regen - Grants 20 defense and continuous healing while afflicted with any debuff + Grants 20 defense and stronger regeneration while afflicted with any debuff The healing eventually slows down if debuffed for an extended period of time - Massively boosts natural life regen while afflicted with any debuff - Each debuff beyond the first grants 8 additional defense - Granted defense fades away slowly when not afflicted with any debuffs - Makes weak damage over time debuffs harmless and halves the duration of all but the strongest debuffs + Weaker DoT debuffs are harmless and halves the duration of most other debuffs You emit shining blue light if visibility is enabled 'A once putrid crystal, now glimmering with immaculate purity' ''' @@ -1349,8 +1361,8 @@ RaidersTalisman: { DisplayName: Raider's Talisman Tooltip: ''' - Landing a stealth strike grants a 12% crit bonus to non-stealth strikes - This crit bonus decays over 5 seconds + Stealth strikes grant 12% crit bonus to non-stealth strikes + This crit bonus slowly decays ''' } @@ -1394,11 +1406,7 @@ RogueEmblem: { RoseStone: { DisplayName: Rose Stone - Tooltip: - ''' - Summons a Brimstone Elemental to fight for you - 'One of the ancient relics' - ''' + Tooltip: Summons a Brimstone Elemental to fight for you } RottenBrain: { @@ -1413,21 +1421,21 @@ RottenBrain: { RottenDogtooth: { DisplayName: Rotten Dogtooth - Tooltip: Makes Stealth strikes inflict Crumbling and deal 8% more damage + Tooltip: Stealth strikes inflict Crumbling and deal 8% more damage } RoverDrive: { DisplayName: Rover Drive Tooltip: ''' - Projects an energy shield that absorbs up to 20 damage + Gain a barrier with 20 health, which grants 10 defense while active [ADREN] - The shield grants 10 defense while active - After the shield is broken, it takes 10 seconds to charge back up - Being hit again while recharging restarts the charge timer + If depleted, the barrier's health regenerates after not receiving damage for 10 seconds + Getting hit resets the timer Can also be scrapped at an extractinator + ''' - ShieldAdren: Halves Adrenaline lost on hit if the shield fully absorbs the hit + ShieldAdren: Halved Adrenaline loss if all damage is absorbed } RuinMedallion: { @@ -1435,7 +1443,7 @@ RuinMedallion: { Tooltip: ''' Stealth strikes only expend 75% of your max stealth - 6% increased rogue damage, and 6% increased rogue crit chance + 6% increased rogue damage and rogue crit chance ''' } @@ -1444,7 +1452,7 @@ RustyMedallion: { Tooltip: ''' Causes most ranged weapons to release acid droplets from the sky - Grants immunity to Irradiated + Immunity to Irradiated ''' } @@ -1453,8 +1461,8 @@ SandCloak: { Tooltip: ''' 5% increased movement speed - Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil which damages and knocks back enemies - While inside the veil, you are given +6 defense and +1 HP/s life regen + Press [KEY] to consume 10% of your maximum stealth to create a protective dust veil + While inside the veil, you gain 6 defense and +1 HP/s life regen This effect has a 30 second cooldown before it can be used again ''' } @@ -1482,11 +1490,11 @@ ShatteredCommunity: { Tooltip: ''' 'Ruined by unknowable hatred, it still contains (most of) the power of The Community...' - Increases damage by 10% and critical strike chance by 5% - Increases max health by 10%, damage reduction by 5%, defense by 10, and life regen by 1 HP/s - Increases movement speed by 10% and flight time by 20% + Increases damage, max health, and movement speed by 10% + Increases defense by 10, and life regen by 1 HP/s + Increases critical strike chance and damage reduction by 5%, and flight time by 20% [RAGEDESC] - Taking damage gives rage, this effect is not hindered by your defensive stats + Gain rage after taking damage regardless of defensive stats While Rage Mode is active, taking damage gives only half as much rage Deal damage with Rage Mode to further empower your wrath Current level: [LEVEL] (+[LEVEL]% Rage Mode damage) @@ -1507,14 +1515,19 @@ ShieldoftheHighRuler: { DisplayName: Shield of the High Ruler Tooltip: ''' - Grants immunity to knockback - Immune to most debuffs +10 max life + Grants immunity to knockback and most debuffs Grants an improved Shield of Cthulhu dash - Bonking an enemy reduces the delay before you can dash again by 50% - If you are facing a projectile when it hits you it will deal 15% less damage - 'For the fate of the kingdom' + Bonking an enemy halves dash cooldown time + Facing a projectile when it hits you reduces its damage by 15% ''' + HoldShiftTooltip: + ''' + On Fire!, Chilled, Frostburn, Weak, Broken Armor, Bleeding + Poisoned, Slow, Confused, Silenced, Cursed, Darkness, + Mighty Wind, Stoned, Burning + ''' + FlavorTooltip: "'For the fate of the kingdom'" } ShieldoftheOcean: { @@ -1538,19 +1551,14 @@ SigilofCalamitas: { SilencingSheath: { DisplayName: Silencing Sheath - Tooltip: - ''' - +10 maximum stealth - Stealth generates 4% faster - ''' + Tooltip: +10 maximum stealth, and stealth generates 4% faster } SlagsplitterPauldron: { DisplayName: Slagsplitter Pauldron Tooltip: ''' - You gain 10% damage reduction while dashing - Enemies you dash through are afflicted with Armor Crunch + You gain 10% damage reduction while dashing, and enemies are inflicted with Armor Crunch Your dashes are empowered by fire, shredding enemies near you with violent explosions ''' } @@ -1559,7 +1567,7 @@ SpectralVeil: { DisplayName: Spectral Veil Tooltip: ''' - Press [KEY] to consume 25% of your maximum stealth to perform a mid-range teleport and render you momentarily invulnerable + Pressing [KEY] consumes 25% of your maximum stealth to teleport, rendering you invulnerable If you dodge something while invulnerable, you instantly gain full stealth Teleportation is disabled while Chaos State is active Stealth generates 15% faster @@ -1574,12 +1582,12 @@ SpelunkersAmulet: { SpiritGlyph: { DisplayName: Spirit Glyph - Tooltip: + Tooltip: Minion attacks provide various buffs + HoldShiftTooltip: ''' - Whenever your minions hit an enemy you will gain a random buff - Spirit Power increases summon damage by 10% - Spirit Defense increases defense by 6 and DR by 3% - Spirit Regen grants +1 HP/s life regeneration + [c/8ce0ff: Spirit Power] [c/ccf1ff:grants 10% increased summon damage] + [c/d08aff: Spirit Defense] [c/eed4ff:grants 6 defense and 3% damage reduction] + [c/ff8cb5: Spirit Regen] [c/ffccde:grants +1 HP/s life regeneration] ''' } @@ -1587,8 +1595,8 @@ StarbusterCore: { DisplayName: Starbuster Core Tooltip: ''' + Increases your max number of minions by 1 Summons release an astral explosion on enemy hits - +1 max minion ''' } @@ -1596,10 +1604,10 @@ StarTaintedGenerator: { DisplayName: Star-Tainted Generator Tooltip: ''' - +2 max minions, does not stack with downgrades - 7% increased summon damage + Increases your max number of minions by 2, and summon damage by 7% Minion attacks spawn astral explosions and inflict several debuffs - Grants immunity to Irradiated + Immunity to Irradiated + Does not stack with downgrades ''' } @@ -1607,7 +1615,7 @@ StatisBlessing: { DisplayName: Statis' Blessing Tooltip: ''' - Increased max minions by 2 and 12% increased summon damage + Increases your max number of minions by 2, and summon damage by 12% Increased minion knockback ''' } @@ -1616,11 +1624,10 @@ StatisCurse: { DisplayName: Statis' Curse Tooltip: ''' - Increases max minions by 3, does not stack with downgrades - 12% increased summon damage + Increases your max number of minions by 3, and summon damage by 12% Increased minion knockback - Minions inflict shadowflames on hit - Grants immunity to Shadowflame + Minion attacks inflict Shadowflame and you are immune to it + Does not stack with downgrades ''' } @@ -1628,10 +1635,12 @@ StatisNinjaBelt: { DisplayName: Statis' Ninja Belt Tooltip: ''' - 32% increased jump speed and allows constant jumping - Grants the ability to swim + 32% increased jump speed and allows auto-jump Increased fall damage resistance by 35 blocks - Can climb walls, dash, and dodge attacks + Grants the ability to swim, climb walls, dash, and dodge attacks + ''' + HoldShiftTooltip: + ''' Attacks that deal less than 5% of your max life in damage will not be dodged The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage This cooldown is shared with all other dodges and reflects @@ -1642,13 +1651,14 @@ StatisVoidSash: { DisplayName: Statis' Void Sash Tooltip: ''' - 32% increased jump speed and allows constant jumping - Grants immunity to fall damage + 32% increased jump speed, allows auto-jump, and negates fall damage Can climb walls, dash, and dodge attacks + ''' + HoldShiftTooltip: + ''' Attacks that deal less than 5% of your max life in damage will not be dodged The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage This cooldown is shared with all other dodges and reflects - Dashes leave homing scythes in your wake ''' } @@ -1732,7 +1742,6 @@ StressPills: { ''' Adrenaline charges 20% faster Increases your max movement speed and acceleration by 5% - Revengeance drop ''' } @@ -1740,9 +1749,8 @@ SupremeBaitTackleBoxFishingStation: { DisplayName: Supreme Bait Tackle Box Fishing Station Tooltip: ''' - Increases fishing skill by 80 + Increases fishing skill by 80, and crate catch chance by 10% Fishing line will never break and decreases chance of bait consumption - Increases chance to catch crates Allows fishing in lava Sonar potion effect The ultimate fishing accessory @@ -1755,11 +1763,10 @@ TheAbsorber: { ''' 12% increased movement and jump speed Grants immunity to knockback - Enemies take immense damage when they touch you and are afflicted with a damaging sickness debuff that reduces damage reduction significantly - Using a healing potion will spawn a cleansing aura - Walking into the aura removes all debuffs one time - The aura grants +3 HP/s life regen, +8% damage, and +5% damage reduction for all players inside for 10 seconds - 5% of the damage from enemy attacks is absorbed and converted into healing + Attackers take immense damage and are afflicted with a crippling sickness debuff + Using a healing potion will spawn a green aura that lasts for 30 seconds + Walking into the aura removes all debuffs once and grants 3 HP/s regen, 8% damage, and 5% damage reduction + 5% of the damage from enemy attacks is converted into healing ''' } @@ -1767,15 +1774,15 @@ TheAmalgam: { DisplayName: The Amalgam Tooltip: ''' - Extends the duration of potion buffs by 100% and potion buffs remain active even after you die 15% increased damage Shade rains down when you are hit Grants the ability to dodge attacks + ''' + HoldShiftTooltip: + ''' Attacks that deal less than 5% of your max life in damage will not be dodged The dodge has a cooldown that ranges between 15 and 90 seconds depending on the dodged attack's damage This cooldown is shared with all other dodges and reflects - Temporarily increases critical strike chance and summon damage after a dodge - Nearby enemies receive a variety of sickness-related debuffs when you are hit ''' } @@ -1785,7 +1792,7 @@ TheBee: { ''' When at full HP, your damage is increased based on your damage reduction Damage taken at full HP is halved - If you have any energy shields, they must also be full for these effects to work + Any energy shields must be fully charged for this effect to apply This has a 10 second cooldown ''' } @@ -1795,8 +1802,7 @@ TheCamper: { Tooltip: ''' You deal 90% less damage unless stationary - Standing still grants buff(s) dependent on what weapon you're holding - Standing still provides a damaging aura around you + Standing still grants buffs depending on held item, and creates a damaging aura around you While moving, you regenerate health as if standing still Provides a small amount of light in the Abyss 'In rest may we find victory' @@ -1825,12 +1831,11 @@ TheEvolution: { DisplayName: The Evolution Tooltip: ''' - You reflect projectiles when they hit you - Reflected projectiles deal no damage to you + Reflects projectiles that hit you, making them harmless to you but 10x more harmful to enemies Projectiles that deal less than 5% of your max life in damage will not be reflected The reflect has a cooldown that ranges between 15 and 90 seconds depending on the reflected projectile's damage This cooldown is shared with all other dodges and reflects - After reflecting something, grants +1 HP/s life regen and accelerated life regen for 5 seconds + Reflecting a projectile grants +1 HP/s life regen and accelerated life regen for 5 seconds If the same enemy projectile type hits you again you will resist its damage by 15% ''' } @@ -1839,8 +1844,8 @@ TheFirstShadowflame: { DisplayName: The First Shadowflame Tooltip: ''' - Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies - Grants immunity to Shadowflame + Increases your max number of minions by 1 + Minion attacks inflict Shadowflame and you are immune to it ''' } @@ -1848,24 +1853,23 @@ TheSponge: { DisplayName: The Sponge Tooltip: ''' - Projects a quantum foam barrier that absorbs up to 180 damage + Gain a barrier with 180 health + The barrier grants 30 defense and 10% damage reduction while active [ADREN] - The barrier grants 30 defense and reduces damage taken by 10% while active - The barrier starts recharging 9 seconds after being hit - Recharging from zero to full charge takes 6 seconds - Being hit again while recharging restarts the charge timer + Once depleted, the barrier will regenerate 9 seconds after being hit + Getting hit resets the timer ''' - ShieldAdren: Halves Adrenaline lost on hit if the barrier fully absorbs the hit + ShieldAdren: Halved Adrenaline loss if all damage is absorbed } TheTransformer: { DisplayName: The Transformer Tooltip: ''' - Multiplies all electricity-based debuff damage by 1.5 + Multiplies all electric debuff damage by 1.5 Taking damage releases a blast of sparks - Reduces the damage you take from all electric debuffs - Enemy bullets do half damage to you and are reflected back at the enemy for 800% their original damage + Complete immunity to Electrified and all electric attacks + You take halved damage from enemy bullets and reflect them for 800% damage ''' } @@ -1873,10 +1877,9 @@ ToxicHeart: { DisplayName: Toxic Heart Tooltip: ''' - Causes your heart to beat with powerful plague pulses, inflicting all nearby enemies with the Plague - The rate of these pulses scales with how low your life regen is - Pulses that kill targets create additional pulses and heal you - Multiplies all sickness-based debuff damage by 1.5 + Your heart beats with the plague, pulsing outside of your body + Pulse frequency scale with regen, and pulses that kill enemies pulse again to heal you + Multiplies all sickness debuff damage by 1.5x ''' } @@ -1884,8 +1887,9 @@ TrinketofChi: { DisplayName: Trinket of Chi Tooltip: ''' - Provides 4% damage reduction after not being hit for 5 seconds, this is removed when you are hit - +1 HP/s life regen for you and everyone on your team + Provides 4% damage reduction 5 seconds after taking damage + This buff expires on hit + +1 HP/s life regen for teammates ''' } @@ -1893,7 +1897,7 @@ UnstableGraniteCore: { DisplayName: Unstable Granite Core Tooltip: ''' - Periodically gain an unstable energy field that repeatedly zaps nearby enemies with arcing energy + Gain an energy field that periodically zaps enemies with arcing energy The arcing energy ignores a substantial amount of enemy defense ''' } @@ -1902,7 +1906,7 @@ VampiricTalisman: { DisplayName: Vampiric Talisman Tooltip: ''' - Rogue projectiles give lifesteal on crits + Rogue critical strikes steal enemy life 12% increased rogue damage ''' } @@ -1912,9 +1916,9 @@ VeneratedLocket: { Tooltip: ''' 10% increased rogue damage - Using a rogue weapon summons a copy of the projectile that falls from the sky - Stealth strikes cause a circular fan of seeking cosmilite knives to be thrown - You'll never be alone, no matter where you go + Rogue projectiles summon a clone from above the cursor + Stealth strikes unleash a ring of seeking cosmilite knives + 'You'll never be alone, no matter where you go' ''' } @@ -1937,8 +1941,8 @@ VoidofExtinction: { Tooltip: ''' 13% increased critical strike chance - Critical strikes explode, causing nearby enemies to ignite with Brimstone Flames - Greatly reduces the damage taken by the Brimstone Flames debuff + Critical strikes explode, igniting enemies with Brimstone Flames + Partially resist the Brimstone Flames debuff ''' } @@ -1946,8 +1950,8 @@ VoltaicJelly: { DisplayName: Voltaic Jelly Tooltip: ''' - +1 max minions - Minion attacks inflict Static Discharge + Increases your max number of minions by 1 + Minion attacks inflict Electrified ''' } @@ -1956,7 +1960,7 @@ WarbanneroftheSun: { Tooltip: ''' Increases melee damage, true melee damage and melee speed the closer you are to enemies - Max boost is 20% increased melee damage, true melee damage and melee speed + These stat boosts max out at 20% ''' } @@ -1990,9 +1994,9 @@ WulfrumBattery: { DisplayName: Wulfrum Battery Tooltip: ''' - Empowers your summons with wulfrum energy, letting them emit light around them if visibility is enabled + Your summons emit light if visibility is on 7% increased summon damage - 50% chance to get an extra scrap when killing wulfrum robots + Wulfrum enemies drop additional scrap Can also be scrapped at an extractinator ''' } @@ -2002,8 +2006,8 @@ YharimsGift: { Tooltip: ''' Flaming meteors rain down after getting hit - Exploding dragon dust is left behind as you move - Damage and movement speed increased by 15% + Volatile dragon dust trails behind you + Increases damage and movement speed by 15% The power to kill a god pulses from within this artifact ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson index 507d66bbd4..11ef329286 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Misc.hjson @@ -85,20 +85,12 @@ CometShard: { Ectoheart: { DisplayName: Ectoheart - Tooltip: - ''' - Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% - Revengeance drop - ''' + Tooltip: Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% } ElectrolyteGelPack: { DisplayName: Electrolyte Gel Pack - Tooltip: - ''' - Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% - Revengeance drop - ''' + Tooltip: Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% } EtherealCore: { @@ -112,11 +104,7 @@ EtherealCore: { InfernalBlood: { DisplayName: Infernal Blood - Tooltip: - ''' - Permanently increases the duration of Rage Mode by 1 second - Revengeance drop - ''' + Tooltip: Permanently increases the duration of Rage Mode by 1 second } MiracleFruit: { @@ -131,11 +119,7 @@ MiracleFruit: { MushroomPlasmaRoot: { DisplayName: Mushroom Plasma Root - Tooltip: - ''' - Permanently increases the duration of Rage Mode by 1 second - Revengeance drop - ''' + Tooltip: Permanently increases the duration of Rage Mode by 1 second } PhantomHeart: { @@ -149,11 +133,7 @@ PhantomHeart: { RedLightningContainer: { DisplayName: Red Lightning Container - Tooltip: - ''' - Permanently increases the duration of Rage Mode by 1 second - Revengeance drop - ''' + Tooltip: Permanently increases the duration of Rage Mode by 1 second } SacredStrawberry: { @@ -178,11 +158,7 @@ SanguineTangerine: { StarlightFuelCell: { DisplayName: Starlight Fuel Cell - Tooltip: - ''' - Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% - Revengeance drop - ''' + Tooltip: Permanently increases Adrenaline Mode damage by 20% and damage reduction by 5% } TaintedCloudberry: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index e75d4b631e..4a904bb8a6 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -1911,6 +1911,121 @@ ExoWorkBench: { Tooltip: "" } +MarniteChest: { + DisplayName: Marnite Chest + Tooltip: "" +} + +MarniteDresser: { + DisplayName: Marnite Dresser + Tooltip: "" +} + +MarniteBathtub: { + DisplayName: Marnite Bathtub + Tooltip: "" +} + +MarniteBed: { + DisplayName: Marnite Bed + Tooltip: "" +} + +MarniteBookcase: { + DisplayName: Marnite Bookcase + Tooltip: "" +} + +MarniteCandelabra: { + DisplayName: Marnite Candelabra + Tooltip: "" +} + +MarniteCandle: { + DisplayName: Marnite Candle + Tooltip: "" +} + +MarniteChair: { + DisplayName: Marnite Chair + Tooltip: "" +} + +MarniteChandelier: { + DisplayName: Marnite Chandelier + Tooltip: "" +} + +MarniteClock: { + DisplayName: Marnite Clock + Tooltip: "" +} + +MarniteDoor: { + DisplayName: Marnite Door + Tooltip: "" +} + +MarniteLamp: { + DisplayName: Marnite Lamp + Tooltip: "" +} + +MarniteLantern: { + DisplayName: Marnite Lantern + Tooltip: "" +} + +MarniteLight: { + DisplayName: Marnite Light + Tooltip: "" +} + +MarniteOrgan: { + DisplayName: Marnite Organ + Tooltip: "" +} + +MarniteSink: { + DisplayName: Marnite Sink + Tooltip: "" +} + +MarniteSofa: { + DisplayName: Marnite Sofa + Tooltip: "" +} + +MarniteTable: { + DisplayName: Marnite Table + Tooltip: "" +} + +MarniteToilet: { + DisplayName: Marnite Toilet + Tooltip: "" +} + +MarniteWorkBench: { + DisplayName: Marnite Work Bench + Tooltip: "" +} + +PolishedMarniteBlock: { + DisplayName: Polished Marnite Block + Tooltip: "" +} + +PolishedMarnitePlatform: { + DisplayName: Polished Marnite Platform + Tooltip: "" +} + +PolishedMarniteWall: { + DisplayName: Polished Marnite Wall + Tooltip: "" +} + MonolithBathtub: { DisplayName: Monolith Bathtub Tooltip: "" @@ -3712,113 +3827,3 @@ ScintillatingBloom: { DisplayName: Scintillating Bloom Tooltip: "" } - -MarniteChest: { - DisplayName: Marnite Chest - Tooltip: "" -} - -MarniteDresser: { - DisplayName: Marnite Dresser - Tooltip: "" -} - -MarniteBathtub: { - DisplayName: Marnite Bathtub - Tooltip: "" -} - -MarniteBed: { - DisplayName: Marnite Bed - Tooltip: "" -} - -MarniteBookcase: { - DisplayName: Marnite Bookcase - Tooltip: "" -} - -MarniteCandelabra: { - DisplayName: Marnite Candelabra - Tooltip: "" -} - -MarniteCandle: { - DisplayName: Marnite Candle - Tooltip: "" -} - -MarniteChair: { - DisplayName: Marnite Chair - Tooltip: "" -} - -MarniteChandelier: { - DisplayName: Marnite Chandelier - Tooltip: "" -} - -MarniteClock: { - DisplayName: Marnite Clock - Tooltip: "" -} - -MarniteDoor: { - DisplayName: Marnite Door - Tooltip: "" -} - -MarniteLamp: { - DisplayName: Marnite Lamp - Tooltip: "" -} - -MarniteLantern: { - DisplayName: Marnite Lantern - Tooltip: "" -} - -MarniteLight: { - DisplayName: Marnite Light - Tooltip: "" -} - -MarniteOrgan: { - DisplayName: Marnite Organ - Tooltip: "" -} - -MarniteSink: { - DisplayName: Marnite Sink - Tooltip: "" -} - -MarniteSofa: { - DisplayName: Marnite Sofa - Tooltip: "" -} - -MarniteTable: { - DisplayName: Marnite Table - Tooltip: "" -} - -MarniteWorkBench: { - DisplayName: Marnite Work Bench - Tooltip: "" -} - -PolishedMarniteBlock: { - DisplayName: Polished Marnite Block - Tooltip: "" -} - -PolishedMarnitePlatform: { - DisplayName: Polished Marnite Platform - Tooltip: "" -} - -PolishedMarniteWall: { - DisplayName: Polished Marnite Wall - Tooltip: "" -} diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index c0c01d0105..cf0b123579 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -144,7 +144,11 @@ BrimroseStaff: { BurningSea: { DisplayName: Burning Sea - Tooltip: Fires a bouncing brimstone fireball that splits into homing fireballs upon collision with water + Tooltip: + ''' + Fires a bouncing brimstone fireball that splits into homing fireballs upon collision with liquid + Enemies inflicted with a water debuff also spawn homing fireballs on hit + ''' } ChronomancersScythe: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index f3b984bfb6..b7baa35dbd 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -775,9 +775,15 @@ NanoblackReaper: { Unleashes a storm of nanoblack energy blades Blades target bosses whenever possible Stealth strikes cause the scythe to create a large amount of homing afterimages instead of energy blades - 'She smothered them in Her hatred' ''' - HoldShiftTooltip: "'He who picks up the pen writes the script. She plans to never let go.'" + HoldShiftTooltip: + ''' + 'He who picks up the pen writes the script. + She has no intention of ever putting it down. + Her design eclipses your countable stars. + The gleam She exudes will put them all to shame.' + ''' + FlavorTooltip: "'She smothered them in Her hatred.'" } NastyCholla: { diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 1ed917404e..190c786713 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -617,3 +617,7 @@ SulphurSea2: Irradiating one of the oceans Roxcalibur: I wanna rock // Hold Shift tooltip default HoldShiftTooltipExtensionIndicator: Hold "Left Shift" for more +HoldShiftTooltipReplacementIndicator: Hold "Left Shift" for details +// Dev and Donor Items +DevItemTooltip: - Dev Item - +DonorItemTooltip: - Donor Item - diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 55b5ac0ac2..cef6c31959 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -1236,6 +1236,10 @@ namespace CalamityMod private static Color MeleeDamageColor = new(254, 121, 2); private static Color MeleeCritColor = new(253, 62, 3); + private static Color MeleeRangedTooltipColor = new(144, 171, 76); + private static Color MeleeRangedDamageColor = new(144, 171, 76); + private static Color MeleeRangedCritColor = new(86, 102, 46); + private static Color RogueTooltipColor = new(206, 132, 227); private static Color RogueDamageColor = new(206, 132, 227); private static Color RogueCritColor = new(194, 38, 212); @@ -1256,6 +1260,9 @@ namespace CalamityMod coloredDamageTypes.Call("AddDamageType", TrueMeleeDamageClass.Instance, MeleeTooltipColor, MeleeDamageColor, MeleeCritColor); coloredDamageTypes.Call("AddDamageType", TrueMeleeNoSpeedDamageClass.Instance, MeleeTooltipColor, MeleeDamageColor, MeleeCritColor); + // Melee-ranged hybrid damage uses a 50% blend between Melee and Ranged, turning into Olive green + coloredDamageTypes.Call("AddDamageType", MeleeRangedHybridDamageClass.Instance, MeleeRangedTooltipColor, MeleeRangedDamageColor, MeleeRangedCritColor); + // Rogue has its own lavender color. Stealth strikes are hued towards violet so they stick out more. // They would be hued towards magenta, but that would make them collide with Nebula-colored Magic in Colored Damage Types config. coloredDamageTypes.Call("AddDamageType", RogueDamageClass.Instance, RogueTooltipColor, RogueDamageColor, RogueCritColor); diff --git a/Projectiles/Magic/BrimstoneFireball.cs b/Projectiles/Magic/BrimstoneFireball.cs index 2ea07787ae..bbf4275495 100644 --- a/Projectiles/Magic/BrimstoneFireball.cs +++ b/Projectiles/Magic/BrimstoneFireball.cs @@ -23,32 +23,19 @@ namespace CalamityMod.Projectiles.Magic Projectile.height = 20; Projectile.friendly = true; Projectile.DamageType = DamageClass.Magic; - Projectile.penetrate = 4; + Projectile.penetrate = 3; Projectile.timeLeft = 300; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 10; + Projectile.localNPCHitCooldown = 20; } public override void AI() { Lighting.AddLight(Projectile.Center, 0.25f, 0f, 0f); - if (Projectile.wet && !Projectile.lavaWet) + if (Projectile.wet) { Projectile.Kill(); - if (Projectile.owner == Main.myPlayer) - { - for (int j = 0; j < 2; j++) - { - Vector2 velocity = new Vector2(Main.rand.NextFloat(-100f, 100f), Main.rand.NextFloat(-100f, -50f)); - while (velocity.X == 0f) - { - velocity.X = (float)Main.rand.Next(-100, 101); - } - velocity.Normalize(); - velocity *= Main.rand.NextFloat(7f, 10f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.oldPosition.X + (float)(Projectile.width / 2), Projectile.oldPosition.Y + (float)(Projectile.height / 2), velocity.X, velocity.Y, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner, 0f, 0f); - } - } + SpawnFireballs(true); } Projectile.localAI[0] += 1f; if (Projectile.localAI[0] > 4f) @@ -113,6 +100,37 @@ namespace CalamityMod.Projectiles.Magic SoundEngine.PlaySound(SoundID.Item20, Projectile.Center); } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 120); + + if (target.HasBuff(BuffID.Wet) || target.Calamity().rTide > 0 || target.Calamity().cDepth > 0) + { + SpawnFireballs(false); + } + } + + public void SpawnFireballs(bool isFromLiquidHit) + { + if (Projectile.owner == Main.myPlayer) + { + int homerAmt = 2; + if (!isFromLiquidHit && Projectile.numHits > 0) + homerAmt = 1; + + for (int j = 0; j < homerAmt; j++) + { + Vector2 velocity = new Vector2(Main.rand.NextFloat(-100f, 100f), Main.rand.NextFloat(-100f, -50f)); + while (velocity.X == 0f) + { + velocity.X = (float)Main.rand.Next(-100, 101); + } + velocity.Normalize(); + velocity *= Main.rand.NextFloat(7f, 10f); + float damageMult = isFromLiquidHit ? 1f : 0.25f; + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.oldPosition.X + (float)(Projectile.width / 2), Projectile.oldPosition.Y + (float)(Projectile.height / 2), velocity.X, velocity.Y, ModContent.ProjectileType(), (int)(Projectile.damage * damageMult), 0f, Projectile.owner, 0f, 0f); + } + } + } } } diff --git a/Projectiles/Magic/BrimstoneHomer.cs b/Projectiles/Magic/BrimstoneHomer.cs index a50b9a5251..a18d3379fd 100644 --- a/Projectiles/Magic/BrimstoneHomer.cs +++ b/Projectiles/Magic/BrimstoneHomer.cs @@ -29,8 +29,8 @@ namespace CalamityMod.Projectiles.Magic int brimstone = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 100, default, 1f); Main.dust[brimstone].noGravity = true; - if (Projectile.timeLeft < 150) - CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 8f, 20f); + if (Projectile.timeLeft < 160) + CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 240f, 8f, 20f); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) diff --git a/Systems/MusicBoxRegistry.cs b/Systems/MusicBoxRegistry.cs deleted file mode 100644 index 8f13b437b2..0000000000 --- a/Systems/MusicBoxRegistry.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod -{ - public class MusicBoxRegistry : ModSystem - { - private static void AddMusicBox(string musicFile, int itemID, int tileID) - { - Mod calamity = CalamityMod.Instance; - int musicID = MusicLoader.GetMusicSlot(calamity, musicFile); - MusicLoader.AddMusicBox(calamity, musicID, itemID, tileID); - } - - public override void PostSetupContent() - { - if (!Main.dedServ) - { - // 24APR2024: Ozzatron: unclear why these two songs are even in main mod, but I don't want to break precedent - AddMusicBox("Sounds/Music/DraedonExoSelect", ModContent.ItemType(), ModContent.TileType()); - AddMusicBox("Sounds/Music/DraedonTalk", ModContent.ItemType(), ModContent.TileType()); - } - } - } -} diff --git a/Tiles/FurnitureMarnite/MarniteBed_Highlight.png b/Tiles/FurnitureMarnite/MarniteBed_Highlight.png index 2b30771f84..81582b1d41 100644 Binary files a/Tiles/FurnitureMarnite/MarniteBed_Highlight.png and b/Tiles/FurnitureMarnite/MarniteBed_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteChair_Highlight.png b/Tiles/FurnitureMarnite/MarniteChair_Highlight.png index 269c508710..be9d8cd4ed 100644 Binary files a/Tiles/FurnitureMarnite/MarniteChair_Highlight.png and b/Tiles/FurnitureMarnite/MarniteChair_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteChest_Highlight.png b/Tiles/FurnitureMarnite/MarniteChest_Highlight.png index 3516e481ce..3d5966a08b 100644 Binary files a/Tiles/FurnitureMarnite/MarniteChest_Highlight.png and b/Tiles/FurnitureMarnite/MarniteChest_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteClock_Highlight.png b/Tiles/FurnitureMarnite/MarniteClock_Highlight.png index d6b078b0b8..2f43f44c90 100644 Binary files a/Tiles/FurnitureMarnite/MarniteClock_Highlight.png and b/Tiles/FurnitureMarnite/MarniteClock_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteDoorClosed_Highlight.png b/Tiles/FurnitureMarnite/MarniteDoorClosed_Highlight.png index 1eef954a5c..375cf079fc 100644 Binary files a/Tiles/FurnitureMarnite/MarniteDoorClosed_Highlight.png and b/Tiles/FurnitureMarnite/MarniteDoorClosed_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteDoorOpen_Highlight.png b/Tiles/FurnitureMarnite/MarniteDoorOpen_Highlight.png index e0fab1a785..4ccf558f84 100644 Binary files a/Tiles/FurnitureMarnite/MarniteDoorOpen_Highlight.png and b/Tiles/FurnitureMarnite/MarniteDoorOpen_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteDresser_Highlight.png b/Tiles/FurnitureMarnite/MarniteDresser_Highlight.png index c987b66e8c..cbdc57053d 100644 Binary files a/Tiles/FurnitureMarnite/MarniteDresser_Highlight.png and b/Tiles/FurnitureMarnite/MarniteDresser_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteSofa_Highlight.png b/Tiles/FurnitureMarnite/MarniteSofa_Highlight.png index f70f03f594..a3aa40c4f1 100644 Binary files a/Tiles/FurnitureMarnite/MarniteSofa_Highlight.png and b/Tiles/FurnitureMarnite/MarniteSofa_Highlight.png differ diff --git a/Tiles/FurnitureMarnite/MarniteToilet.cs b/Tiles/FurnitureMarnite/MarniteToilet.cs new file mode 100644 index 0000000000..115d102068 --- /dev/null +++ b/Tiles/FurnitureMarnite/MarniteToilet.cs @@ -0,0 +1,80 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.DataStructures; +using Terraria.Enums; +using Terraria.GameContent; +using Terraria.GameContent.ObjectInteractions; +using Terraria.ID; +using Terraria.Localization; +using Terraria.ModLoader; +using Terraria.ObjectData; + +namespace CalamityMod.Tiles.FurnitureMarnite +{ + public class MarniteToilet : ModTile + { + public override void SetStaticDefaults() + { + RegisterItemDrop(ModContent.ItemType()); + + Main.tileFrameImportant[Type] = true; + Main.tileWaterDeath[Type] = false; + TileObjectData.newTile.CopyFrom(TileObjectData.Style1x2); + TileObjectData.newTile.CoordinateHeights = new int[] { 16, 18 }; + TileObjectData.newTile.CoordinatePadding = 2; + TileObjectData.newTile.Direction = TileObjectDirection.PlaceLeft; + TileObjectData.newTile.StyleHorizontal = true; + TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile); + TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight; + TileObjectData.addAlternate(1); + TileObjectData.addTile(Type); + + // Toilets count as Chairs + AddToArray(ref TileID.Sets.RoomNeeds.CountsAsChair); + AddMapEntry(new Color(191, 142, 111), Language.GetText("MapObject.Toilet")); + TileID.Sets.CanBeSatOnForNPCs[Type] = true; + TileID.Sets.CanBeSatOnForPlayers[Type] = true; + TileID.Sets.HasOutlines[Type] = true; + AdjTiles = new int[] { TileID.Chairs }; + } + + public override bool CreateDust(int i, int j, ref int type) + { + Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.Granite, 0f, 0f, 1, new Color(255, 255, 255), 1f); + return false; + } + + public override void NumDust(int i, int j, bool fail, ref int num) + { + num = fail ? 1 : 3; + } + + public override void ModifySittingTargetInfo(int i, int j, ref TileRestingInfo info) => CalamityUtils.ChairSitInfo(i, j, ref info, shitter: true); + + public override bool RightClick(int i, int j) => CalamityUtils.ChairRightClick(i, j); + + public override void MouseOver(int i, int j) => CalamityUtils.ChairMouseOver(i, j, ModContent.ItemType()); + + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) + { + return settings.player.IsWithinSnappngRangeToTile(i, j, PlayerSittingHelper.ChairSittingMaxDistance); + } + + public override void HitWire(int i, int j) // I hate this please make it stop. - Merkalto + { + Tile tile = Main.tile[i, j]; + + int spawnX = i; + int spawnY = j - tile.TileFrameY / 18; + + Wiring.SkipWire(spawnX, spawnY); + Wiring.SkipWire(spawnX, spawnY + 1); + + if (Wiring.CheckMech(spawnX, spawnY, 60)) + { + Projectile.NewProjectile(Wiring.GetProjectileSource(spawnX, spawnY), spawnX * 16 + 8, spawnY * 16 + 12, 0f, 0f, ProjectileID.ToiletEffect, 0, 0f, Main.myPlayer); + } + } + } +} diff --git a/Tiles/FurnitureMarnite/MarniteToilet_Highlight.png b/Tiles/FurnitureMarnite/MarniteToilet_Highlight.png new file mode 100644 index 0000000000..5b92e1cc43 Binary files /dev/null and b/Tiles/FurnitureMarnite/MarniteToilet_Highlight.png differ diff --git a/Tiles/MusicBoxes/DraedonExoSelectMusicBox.cs b/Tiles/MusicBoxes/DraedonExoSelectMusicBox.cs index 1d0eea0d42..9651be0290 100644 --- a/Tiles/MusicBoxes/DraedonExoSelectMusicBox.cs +++ b/Tiles/MusicBoxes/DraedonExoSelectMusicBox.cs @@ -2,9 +2,12 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; +using Terraria.GameContent.Drawing; +using Terraria.GameContent.ObjectInteractions; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; +using Terraria.Utilities; namespace CalamityMod.Tiles.MusicBoxes { @@ -15,13 +18,15 @@ namespace CalamityMod.Tiles.MusicBoxes { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; + TileID.Sets.HasOutlines[Type] = true; + TileID.Sets.DisableSmartCursor[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); TileObjectData.newTile.Origin = new Point16(0, 1); TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.DrawYOffset = 2; TileObjectData.newTile.StyleLineSkip = 2; TileObjectData.addTile(Type); - TileID.Sets.DisableSmartCursor[Type] = true; + AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName(ItemID.MusicBox)); } @@ -33,27 +38,25 @@ namespace CalamityMod.Tiles.MusicBoxes player.cursorItemIconID = ModContent.ItemType(); } - public override bool CreateDust(int i, int j, ref int type) - { - return false; - } + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + public override bool CreateDust(int i, int j, ref int type) => false; public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData) { - if (Main.gamePaused || !Main.instance.IsActive || Lighting.UpdateEveryFrame && !Main.rand.NextBool(4)) + if (Lighting.UpdateEveryFrame && new FastRandom(Main.TileFrameSeed).WithModifier(i, j).Next(4) != 0) return; - if (Main.tile[i, j].TileFrameX == 36 && Main.tile[i, j].TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3)) + Tile tile = Main.tile[i, j]; + if (TileDrawing.IsVisible(tile) && tile.TileFrameX == 36 && tile.TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3)) { int goreType = Main.rand.Next(570, 573); Vector2 position = new Vector2(i * 16 + 8, j * 16 - 8); Vector2 velocity = new Vector2(Main.WindForVisuals * 2f, -0.5f); - velocity.X *= 1f + Main.rand.NextFloat(-0.5f, 0.5f); - velocity.Y *= 1f + Main.rand.NextFloat(-0.5f, 0.5f); + velocity.X *= Main.rand.NextFloat(0.5f, 1.5f); + velocity.Y *= Main.rand.NextFloat(0.5f, 1.5f); if (goreType == 572) position.X -= 8f; - - if (goreType == 571) + else if (goreType == 571) position.X -= 4f; Gore.NewGore(new EntitySource_TileUpdate(i, j), position, velocity, goreType, 0.8f); diff --git a/Tiles/MusicBoxes/DraedonExoSelectMusicBox_Highlight.png b/Tiles/MusicBoxes/DraedonExoSelectMusicBox_Highlight.png new file mode 100644 index 0000000000..20fcfbfe79 Binary files /dev/null and b/Tiles/MusicBoxes/DraedonExoSelectMusicBox_Highlight.png differ diff --git a/Tiles/MusicBoxes/DraedonTalkMusicBox.cs b/Tiles/MusicBoxes/DraedonTalkMusicBox.cs index 98c65eac0c..fdb32a490e 100644 --- a/Tiles/MusicBoxes/DraedonTalkMusicBox.cs +++ b/Tiles/MusicBoxes/DraedonTalkMusicBox.cs @@ -2,9 +2,12 @@ using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; +using Terraria.GameContent.Drawing; +using Terraria.GameContent.ObjectInteractions; using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; +using Terraria.Utilities; namespace CalamityMod.Tiles.MusicBoxes { @@ -14,13 +17,15 @@ namespace CalamityMod.Tiles.MusicBoxes { Main.tileFrameImportant[Type] = true; Main.tileObsidianKill[Type] = true; + TileID.Sets.HasOutlines[Type] = true; + TileID.Sets.DisableSmartCursor[Type] = true; TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2); TileObjectData.newTile.Origin = new Point16(0, 1); TileObjectData.newTile.LavaDeath = false; TileObjectData.newTile.DrawYOffset = 2; TileObjectData.newTile.StyleLineSkip = 2; TileObjectData.addTile(Type); - TileID.Sets.DisableSmartCursor[Type] = true; + AddMapEntry(new Color(191, 142, 111), CalamityUtils.GetItemName(ItemID.MusicBox)); } @@ -32,27 +37,25 @@ namespace CalamityMod.Tiles.MusicBoxes player.cursorItemIconID = ModContent.ItemType(); } - public override bool CreateDust(int i, int j, ref int type) - { - return false; - } + public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true; + public override bool CreateDust(int i, int j, ref int type) => false; public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData) { - if (Main.gamePaused || !Main.instance.IsActive || Lighting.UpdateEveryFrame && !Main.rand.NextBool(4)) + if (Lighting.UpdateEveryFrame && new FastRandom(Main.TileFrameSeed).WithModifier(i, j).Next(4) != 0) return; - if (Main.tile[i, j].TileFrameX == 36 && Main.tile[i, j].TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3)) + Tile tile = Main.tile[i, j]; + if (TileDrawing.IsVisible(tile) && tile.TileFrameX == 36 && tile.TileFrameY % 36 == 0 && (int)Main.timeForVisualEffects % 7 == 0 && Main.rand.NextBool(3)) { int goreType = Main.rand.Next(570, 573); Vector2 position = new Vector2(i * 16 + 8, j * 16 - 8); Vector2 velocity = new Vector2(Main.WindForVisuals * 2f, -0.5f); - velocity.X *= 1f + Main.rand.NextFloat(-0.5f, 0.5f); - velocity.Y *= 1f + Main.rand.NextFloat(-0.5f, 0.5f); + velocity.X *= Main.rand.NextFloat(0.5f, 1.5f); + velocity.Y *= Main.rand.NextFloat(0.5f, 1.5f); if (goreType == 572) position.X -= 8f; - - if (goreType == 571) + else if (goreType == 571) position.X -= 4f; Gore.NewGore(new EntitySource_TileUpdate(i, j), position, velocity, goreType, 0.8f); diff --git a/Tiles/MusicBoxes/DraedonTalkMusicBox_Highlight.png b/Tiles/MusicBoxes/DraedonTalkMusicBox_Highlight.png new file mode 100644 index 0000000000..ef156c028a Binary files /dev/null and b/Tiles/MusicBoxes/DraedonTalkMusicBox_Highlight.png differ diff --git a/Utilities/ItemUtils.cs b/Utilities/ItemUtils.cs index acb0ed8438..ac3d171e1d 100644 --- a/Utilities/ItemUtils.cs +++ b/Utilities/ItemUtils.cs @@ -29,9 +29,16 @@ namespace CalamityMod /// The item to check. public static bool IsWhip(this Item item) => item.shoot > ProjectileID.None && ProjectileID.Sets.IsAWhip[item.shoot]; + /// + /// Marks the item as Revengeance Mode exclusive.
+ /// This causes it to have a tooltip line which says "Revengeance", like how vanilla says "Expert" and "Master". + ///
+ /// The item to make difficulty exclusive. + public static void SetRevExclusive(this Item item) => item.Calamity().revengeanceItem = true; + #region Color Constants internal static readonly Color DevItemColor = new Color(255, 0, 255); - internal static readonly Color DonatorItemColor = new Color(196, 35, 44); + internal static readonly Color DonatorItemColor = new Color(255, 121, 156); #endregion // TODO -- This probably isn't the best place to put this but it needs to be somewhere easily accessible. diff --git a/Utilities/TileUtils.cs b/Utilities/TileUtils.cs index ba2d5cf203..7f9f60001e 100644 --- a/Utilities/TileUtils.cs +++ b/Utilities/TileUtils.cs @@ -105,6 +105,9 @@ namespace CalamityMod Wiring.SkipWire(x + k, y + l); } } + + if (Main.netMode != NetmodeID.SinglePlayer) + NetMessage.SendTileSquare(-1, x, y, tileX, tileY); } public static void DrawFlameEffect(Texture2D flameTexture, int i, int j, int offsetX = 0, int offsetY = 0) diff --git a/Walls/DriftwoodWall.cs b/Walls/DriftwoodWall.cs index 247dc7e021..2ad3095d1d 100644 --- a/Walls/DriftwoodWall.cs +++ b/Walls/DriftwoodWall.cs @@ -4,13 +4,15 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class DriftwoodWall : WallVisibleThroughWater + public class DriftwoodWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = true; - AddEntries(new Color(69, 56, 58)); + this.AddMapEntryWithWaterVisibility(new Color(69, 56, 58)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/LimestoneWall.cs b/Walls/LimestoneWall.cs index 1f57ec5c49..2061ef7c8a 100644 --- a/Walls/LimestoneWall.cs +++ b/Walls/LimestoneWall.cs @@ -5,12 +5,14 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class LimestoneWall : WallVisibleThroughWater + public class LimestoneWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { DustType = 22; - AddEntries(new Color(147, 92, 63)); + this.AddMapEntryWithWaterVisibility(new Color(147, 92, 63)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/RunestoneWall.cs b/Walls/RunestoneWall.cs index 84d11681f3..edf0ea6b50 100644 --- a/Walls/RunestoneWall.cs +++ b/Walls/RunestoneWall.cs @@ -5,13 +5,15 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class RunestoneWall : WallVisibleThroughWater + public class RunestoneWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = true; - AddEntries(new Color(122, 59, 48)); + this.AddMapEntryWithWaterVisibility(new Color(122, 59, 48)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/ShellstoneSlabWall.cs b/Walls/ShellstoneSlabWall.cs index 2b28e7dec8..fdc7a59163 100644 --- a/Walls/ShellstoneSlabWall.cs +++ b/Walls/ShellstoneSlabWall.cs @@ -4,14 +4,16 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class ShellstoneSlabWall : WallVisibleThroughWater + public class ShellstoneSlabWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = true; DustType = 24; - AddEntries(new Color(100, 127, 137)); + this.AddMapEntryWithWaterVisibility(new Color(100, 127, 137)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/ShellstoneWall.cs b/Walls/ShellstoneWall.cs index 57edd3df61..89cde319b8 100644 --- a/Walls/ShellstoneWall.cs +++ b/Walls/ShellstoneWall.cs @@ -4,14 +4,16 @@ using Terraria.ModLoader; namespace CalamityMod.Walls { - public class ShellstoneWall : WallVisibleThroughWater + public class ShellstoneWall : ModWall, IVisibleThroughWater { + int IVisibleThroughWater.WaterMapEntry { get; set; } + public override void SetStaticDefaults() { Main.wallHouse[Type] = false; DustType = 24; - AddEntries(new Color(74, 71, 84)); + this.AddMapEntryWithWaterVisibility(new Color(74, 71, 84)); } public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3; diff --git a/Walls/WallVisibleThroughWater.cs b/Walls/WallVisibleThroughWater.cs deleted file mode 100644 index 839304cf49..0000000000 --- a/Walls/WallVisibleThroughWater.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria.Localization; -using Terraria.Map; -using Terraria.ModLoader; - -namespace CalamityMod.Walls -{ - public abstract class WallVisibleThroughWater : ModWall - { - public const float WaterTransparency = 0.5f; - public static readonly Color WaterColor = new Color(9, 61, 191); - - public int WaterMapEntry { get; private set; } - - /// - /// Adds the map entry, and further entries for being covered in water. - /// Please use this over AddMapEntry in walls which utilize this base class. - /// - /// - /// - public void AddEntries(Color baseColor, LocalizedText text = null) - { - AddMapEntry(baseColor, text); - AddMapEntry(Color.Lerp(baseColor, WaterColor, WaterTransparency), text); - } - - public static void InitializeWaterMapEntryLookups() - { - foreach (var wall in CalamityMod.Instance.GetContent()) - { - int lookup = MapHelper.wallLookup[wall.Type]; - wall.WaterMapEntry = lookup + 1; - } - } - } -}