From fcebd7b75435d87db44d49651ea55b2f8daa3815 Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 10 Jun 2026 17:03:43 -0700 Subject: [PATCH] salesman now sells rev items, added new pitches --- .../Mods.CalamityMod.Items.Accessories.hjson | 40 +++++++++++++++++++ .../Mods.CalamityMod.Items.Placeables.hjson | 10 +++++ .../Mods.CalamityMod.Items.SummonItems.hjson | 5 +++ NPCs/TownNPCs/ShadySalesman.cs | 9 +++-- Systems/Collections/CalamityItemSets.cs | 4 +- 5 files changed, 63 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index dc93b32f53..4fc279849c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -875,6 +875,11 @@ FungalSymbiote: { Consuming mushrooms provides [cbuffplr:CalamityMod/Mushy], granting 5 defense and +1 HP/s life regen 10% increased damage while you have [cbuffplr:CalamityMod/Mushy] ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } GiantPearl: { @@ -913,6 +918,11 @@ GladiatorsLocket: { Enemies drop a healing orb on kill Gain an increase to your damage and movement speed the lower your health is, up to 20% at 50% life or below ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } GloveOfPrecision: { @@ -967,6 +977,11 @@ HarpyRing: { HeartofDarkness: { DisplayName: Heart of Darkness Tooltip: You constantly gain rage over time, and rage does not fade away when out of combat + SalesPitch: + ''' + ‘Some people enjoy simple truths in life: good and evil, health and sickness.’ + ‘I’m not sure how healthy they are, but these edgy gadgets are bound to get your blood pumping! Help me give them simple labels and I’ll give you a heart-stopping discount!’ + ''' } HeartoftheElements: { @@ -1127,6 +1142,11 @@ LuxorsGift: { Held item class is not updated when holding a tool When not in use, the scarab will condense itself into a small orb of light ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } ManaPolarizer: { @@ -1869,6 +1889,11 @@ StressPills: { Adrenaline charges 20% faster Increases your max movement speed and acceleration by 5% ''' + SalesPitch: + ''' + ‘Some people enjoy simple truths in life: good and evil, health and sickness.’ + ‘I’m not sure how healthy they are, but these edgy gadgets are bound to get your blood pumping! Help me give them simple labels and I’ll give you a heart-stopping discount!’ + ''' } SupremeBaitTackleBoxFishingStation: { @@ -2045,6 +2070,11 @@ TrinketofChi: { This buff expires on hit +{2} HP/s life regen for you and your teammates ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } UnholyTonic: { @@ -2063,6 +2093,11 @@ UnstableGraniteCore: { Gain an energy field that periodically zaps enemies with arcing energy The arcing energy ignores a substantial amount of enemy defense ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } V8Engine: { @@ -2292,6 +2327,11 @@ FrozenCube: { [DAMAGELINE] [c/7497ED:'What I wanna know is, where's the mammoth?'] ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' EquippedDebuff: Current Cold Debuff boost: +{0}% EquippedElumphant: Current Elumphant Power: +{0}% Unequipped: Equip this accessory to view its statistics diff --git a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson index e3d9888a55..098b6865e4 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Placeables.hjson @@ -677,6 +677,11 @@ CorruptionEffigy: { However, this comes at a cost of {1}% damage reduction This cannot be stacked with Crimson Effigy ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } AltarOfTheAccursedItem: { @@ -737,6 +742,11 @@ CrimsonEffigy: { However, this comes at a cost of {2}% maximum health This cannot be stacked with Corruption Effigy ''' + SalesPitch: + ''' + ‘You know that neat treasure you found when I was definitely not following you?’ + ‘Turns out there was a whole pile of those trinkets, stashed conveniently close to the treasure chest! Finders keepers - or perhaps you wanna seal a deal?’ + ''' } EffigyOfDecay: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson index 3ec4c48e04..216b0fedd3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.SummonItems.hjson @@ -292,6 +292,11 @@ Terminus: { TheHousingContract: { DisplayName: The Housing Contract Tooltip: Use to adopt a piggy for your town + SalesPitch: + ''' + ‘Have you ever wanted to take care of a piggy? As part of our campaign to stop piggy abuse, you can get one here and now!’ + ‘Just sign here and we’ll deliver you one posthaste!’ + ''' } YharonEgg: { diff --git a/NPCs/TownNPCs/ShadySalesman.cs b/NPCs/TownNPCs/ShadySalesman.cs index 81b1fcd964..db9e5e8302 100644 --- a/NPCs/TownNPCs/ShadySalesman.cs +++ b/NPCs/TownNPCs/ShadySalesman.cs @@ -30,7 +30,6 @@ using Terraria.Chat; using Terraria.GameContent.Bestiary; using Terraria.UI.Chat; using Terraria.Utilities; -using static Terraria.ModLoader.ModContent; namespace CalamityMod.NPCs.TownNPCs { @@ -289,6 +288,9 @@ namespace CalamityMod.NPCs.TownNPCs .Add() .Add() .Add() + .Add(Condition.Hardmode) + .Add(Condition.Hardmode) + .Add(Condition.DownedGolem) .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundGladiatorsLocket"), () => RecipeUnlockHandler.HasFoundGladiatorsLocket && Main.moonPhase == 0)) .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundLuxorsGift"), () => RecipeUnlockHandler.HasFoundLuxorsGift && Main.moonPhase == 1)) .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundCrimsonEffigy"), () => RecipeUnlockHandler.HasFoundCrimsonEffigy && Main.moonPhase == 2)) @@ -297,9 +299,8 @@ namespace CalamityMod.NPCs.TownNPCs .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundFrozenCube"), () => RecipeUnlockHandler.HasFoundFrozenCube && Main.moonPhase == 5)) .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundCorruptionEffigy"), () => RecipeUnlockHandler.HasFoundCorruptionEffigy && Main.moonPhase == 6)) .Add(new Condition(CalamityUtils.GetText("Condition.HasFoundTrinketOfChi"), () => RecipeUnlockHandler.HasFoundTrinketOfChi && Main.moonPhase == 7)) - .Add(Condition.Hardmode) - .Add(Condition.Hardmode) - .Add(Condition.DownedGolem) + .Add(Condition.DownedSkeletron, Condition.MoonPhasesEven, CalamityConditions.InRevengeanceMode) + .Add(Condition.DownedSkeletron, Condition.MoonPhasesOdd, CalamityConditions.InRevengeanceMode) .Register(); } diff --git a/Systems/Collections/CalamityItemSets.cs b/Systems/Collections/CalamityItemSets.cs index 24d458e25a..4b6187dbfd 100644 --- a/Systems/Collections/CalamityItemSets.cs +++ b/Systems/Collections/CalamityItemSets.cs @@ -7,6 +7,7 @@ using CalamityMod.Items.Placeables.Furniture; using CalamityMod.Items.Potions; using CalamityMod.Items.Potions.Alcohol; using CalamityMod.Items.Potions.Food; +using CalamityMod.Items.SummonItems.TownPets; using CalamityMod.Items.Tools; using CalamityMod.Items.Weapons.DraedonsArsenal; using CalamityMod.Items.Weapons.Magic; @@ -166,6 +167,7 @@ namespace CalamityMod.Systems.Collections public static bool[] HasSalesmanText = Factory.CreateNamedSet("HasSalesmanText") .Description("Labels this item as having Shady Salesman flavor text, making it draw at the top of the tooltip and the actual tooltip being drawn small below it.") .RegisterBoolSet(ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType()); } }