From 59de3922a36de48cfde5068af1f6cf67f9d111dc Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sun, 11 Jun 2023 18:59:52 +0700 Subject: [PATCH] left trigger, deaths, other cleanups --- CalPlayer/CalamityPlayer.cs | 56 +++++++--------- CalPlayer/CalamityPlayerLifeRegen.cs | 2 +- CalPlayer/CalamityPlayerMiscEffects.cs | 4 +- .../Armor/Bloodflare/BloodflareHeadRanged.cs | 2 +- Items/Armor/Brimflame/BrimflameScowl.cs | 2 +- Items/Armor/Demonshade/DemonshadeHelm.cs | 2 +- Items/Armor/DesertProwler/DesertProwlerSet.cs | 4 +- Items/Armor/ForbiddenCirclet.cs | 2 +- Items/Armor/GemTech/GemTechHeadgear.cs | 16 ++--- Items/Armor/GodSlayer/GodSlayerHeadMelee.cs | 2 +- Items/Armor/GodSlayer/GodSlayerHeadRanged.cs | 2 +- Items/Armor/GodSlayer/GodSlayerHeadRogue.cs | 2 +- Items/Armor/OmegaBlue/OmegaBlueHelmet.cs | 2 +- Items/Armor/PlagueReaper/PlagueReaperMask.cs | 2 +- Items/Armor/Prismatic/PrismaticHelmet.cs | 2 +- Items/Armor/Tarragon/TarragonHeadMelee.cs | 2 +- Items/Armor/Wulfrum/WulfrumSet.cs | 4 +- Items/Potions/AstralInjection.cs | 3 +- Items/SummonItems/CosmicWorm.cs | 2 +- Items/Weapons/Magic/ThornBlossom.cs | 2 +- Items/Weapons/Ranged/BloodBoiler.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Tools.hjson | 2 +- ...ityMod.Items.Weapons.DraedonsArsenal.hjson | 4 +- ...Mods.CalamityMod.Items.Weapons.Magic.hjson | 2 +- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 8 +-- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 16 ++--- ...s.CalamityMod.Items.Weapons.Typeless.hjson | 6 +- .../en-US/Mods.CalamityMod.NPCs.hjson | 24 ++----- ...son => Mods.CalamityMod.Status.Boss.hjson} | 0 .../en-US/Mods.CalamityMod.Status.Death.hjson | 39 +++++++++++ ...Mods.CalamityMod.Status.Progression.hjson} | 0 NPCs/AquaticScourge/AquaticScourgeHead.cs | 2 +- NPCs/AstrumAureus/AstrumAureus.cs | 4 +- NPCs/AstrumDeus/AstrumDeusHead.cs | 2 +- NPCs/CalClone/CalamitasClone.cs | 2 +- NPCs/CalamityAI.cs | 4 +- NPCs/CalamityGlobalNPCLoot.cs | 34 +++++----- NPCs/Cryogen/Cryogen.cs | 4 +- NPCs/DesertScourge/DesertScourgeHead.cs | 4 +- NPCs/DevourerofGods/DevourerofGodsHead.cs | 18 ++--- NPCs/ExoMechs/Ares/AresBody.cs | 2 +- NPCs/ExoMechs/Draedon.cs | 66 +++++++++---------- NPCs/HiveMind/HiveMind.cs | 2 +- NPCs/NormalNPCs/FearlessGoldfishWarrior.cs | 2 +- NPCs/Perforator/PerforatorHive.cs | 2 +- .../PlaguebringerGoliath.cs | 2 +- NPCs/Polterghast/Polterghast.cs | 6 +- NPCs/Providence/Providence.cs | 10 +-- NPCs/SlimeGod/SlimeGodCore.cs | 2 +- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 34 +++++----- NPCs/TownNPCs/AndroombaFriendly.cs | 1 + NPCs/TownNPCs/FAP.cs | 23 +++---- NPCs/Yharon/Yharon.cs | 4 +- Projectiles/Boss/HealOrbProv.cs | 3 +- Projectiles/Pets/ChibiiDoggo.cs | 2 +- Projectiles/Rogue/CorpusAvertorStealth.cs | 2 +- Systems/WorldMiscUpdateSystem.cs | 2 +- Tiles/Astral/AstralBeacon.cs | 2 +- World/AstralBiome.cs | 2 +- 59 files changed, 238 insertions(+), 223 deletions(-) rename Localization/en-US/{Mods.CalamityMod.BossMessages.hjson => Mods.CalamityMod.Status.Boss.hjson} (100%) create mode 100644 Localization/en-US/Mods.CalamityMod.Status.Death.hjson rename Localization/en-US/{Mods.CalamityMod.ProgressionMessages.hjson => Mods.CalamityMod.Status.Progression.hjson} (100%) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b0c8396301..714503aeaf 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3890,103 +3890,91 @@ namespace CalamityMod.CalPlayer { if (alcoholPoisoning) { - if (Main.rand.NextBool()) - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " downed too many shots."); - else - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s liver failed."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AlcoholBig" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (vHex) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was charred by the brimstone inferno."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.VulnerabilityHex").Format(Player.name)); } if (ZoneCalamity && Player.lavaWet) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s soul was released by the lava."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SearingLava").Format(Player.name)); } if (gsInferno) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s soul was extinguished."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.GodSlayerInferno").Format(Player.name)); } if (sulphurPoison) { if (Main.rand.NextBool(2)) - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was melted by the toxic waste."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SulphuricPoisoning").Format(Player.name)); else damageSource = PlayerDeathReason.ByOther(9); } if (dragonFire) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s ashes scatter in the wind."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Dragonfire").Format(Player.name)); } if (miracleBlight) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + (Main.rand.NextBool() ? " was blown away by miraculous technological advancements." : " disintegrated from the overpowering exotic resonance.")); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.MiracleBlight" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (hInferno) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was turned to ashes by the Profaned Goddess."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HolyInferno").Format(Player.name)); } if (hFlames || banishingFire) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " fell prey to their sins."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HolyFlames").Format(Player.name)); } if (shadowflame) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s spirit was turned to ash."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Shadowflame").Format(Player.name)); } if (bBlood) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " became a blood geyser."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BurningBlood").Format(Player.name)); } if (cDepth) { - if (Main.rand.NextBool()) - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was crushed by the pressure."); - else - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s lungs collapsed."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CrushDepth" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (bFlames || weakBrimstoneFlames) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was consumed by the black flames."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrimstoneFlames").Format(Player.name)); } if (pFlames) { - if (Main.rand.NextBool()) - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s flesh was melted by the plague."); - else - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " didn't vaccinate."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Plague" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (astralInfection) { - if (Main.rand.NextBool()) - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s infection spread too far."); - else - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s skin was replaced by the astral virus."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInfection" + Main.rand.Next(1, 2 + 1)).Format(Player.name)); } if (nightwither) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was incinerated by lunar rays."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Nightwither").Format(Player.name)); } if (vaporfied) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " vaporized into thin air."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Vaporfied").Format(Player.name)); } if (manaOverloader || ManaBurn) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + "'s life was completely converted into mana."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ManaConversion").Format(Player.name)); } if (bloodyMary || everclear || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine || Player.tipsy) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " succumbed to alcohol sickness."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AlcoholSmall").Format(Player.name)); } if (witheredDebuff) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " withered away."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Withered").Format(Player.name)); } } if (profanedCrystalBuffs && !profanedCrystalHide) { - damageSource = PlayerDeathReason.ByCustomReason(Player.name + " was summoned too soon."); + damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ProfanedSoulCrystal").Format(Player.name)); } if (NPC.AnyNPCs(ModContent.NPCType())) @@ -6892,7 +6880,7 @@ namespace CalamityMod.CalPlayer Player.HealEffect(-5); Player.statLife -= 5; if (Player.statLife <= 0) - Player.KillMe(PlayerDeathReason.ByCustomReason($"{Player.name} converted all of their life to mana."), 1000, -1); + Player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ManaConversionAlt").Format(Player.name)), 1000, -1); } for (int i = 0; i < 8; i++) diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index 51a1894cbf..2df97b4e85 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -194,7 +194,7 @@ namespace CalamityMod.CalPlayer if (SulphWaterPoisoningLevel >= 1f) { SulphWaterPoisoningLevel = 0f; - Player.Hurt(PlayerDeathReason.ByCustomReason($"{Player.name}'s flesh was dissolved by sulphuric water."), Math.Min(Player.statLifeMax2 / 4, 150), 0); + Player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.SulphurMeter").Format(Player.name)), Math.Min(Player.statLifeMax2 / 4, 150), 0); } } else diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 480f83af40..c414685461 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -538,7 +538,7 @@ namespace CalamityMod.CalPlayer var yeetVec = Vector2.Normalize(Player.Center - touchedTile.ToWorldCoordinates()); Player.velocity += yeetVec * auricRejectionKB; - Player.Hurt(PlayerDeathReason.ByCustomReason(Player.name + " was not worthy."), auricRejectionDamage, 0); + Player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AuricRejection").Format(Player.name)), auricRejectionDamage, 0); Player.AddBuff(BuffID.Electrified, 300); SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/ExoMechs/TeslaShoot1")); } @@ -1348,7 +1348,7 @@ namespace CalamityMod.CalPlayer Player.statLife = upperHealthLimit; if (necroReviveCounter >= NecroArmorSetChange.PostMortemDuration * 60) - Player.KillMe(PlayerDeathReason.ByCustomReason($"{Player.name} fell to the inevitable."), 1000, -1); + Player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.NecroRevive").Format(Player.name)), 1000, -1); else if (necroReviveCounter % 60 == 59) SoundEngine.PlaySound(SoundID.Item17, Player.Center); } diff --git a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs index 5aaa719932..9f0ac5d667 100644 --- a/Items/Armor/Bloodflare/BloodflareHeadRanged.cs +++ b/Items/Armor/Bloodflare/BloodflareHeadRanged.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Armor.Bloodflare modPlayer.bloodflareSet = true; modPlayer.bloodflareRanged = true; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString() + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); player.crimsonRegen = true; } diff --git a/Items/Armor/Brimflame/BrimflameScowl.cs b/Items/Armor/Brimflame/BrimflameScowl.cs index 9bdf3139e3..0992c6f900 100644 --- a/Items/Armor/Brimflame/BrimflameScowl.cs +++ b/Items/Armor/Brimflame/BrimflameScowl.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Items.Armor.Brimflame player.GetDamage() += 0.15f; player.GetCritChance() += 15; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey); } public override void AddRecipes() diff --git a/Items/Armor/Demonshade/DemonshadeHelm.cs b/Items/Armor/Demonshade/DemonshadeHelm.cs index 320d499bd4..24d2536055 100644 --- a/Items/Armor/Demonshade/DemonshadeHelm.cs +++ b/Items/Armor/Demonshade/DemonshadeHelm.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Demonshade public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey); var modPlayer = player.Calamity(); modPlayer.dsSetBonus = true; modPlayer.wearingRogueArmor = true; diff --git a/Items/Armor/DesertProwler/DesertProwlerSet.cs b/Items/Armor/DesertProwler/DesertProwlerSet.cs index e92d15d609..a4c3538f4e 100644 --- a/Items/Armor/DesertProwler/DesertProwlerSet.cs +++ b/Items/Armor/DesertProwler/DesertProwlerSet.cs @@ -82,7 +82,7 @@ namespace CalamityMod.Items.Armor.DesertProwler public override void UpdateArmorSet(Player player) { - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(FlatDamageBonus).ToString(); //More gets edited in elsewhere + player.setBonus = this.GetLocalization("SetBonus").Format(FlatDamageBonus); //More gets edited in elsewhere DesertProwlerPlayer armorPlayer = player.GetModPlayer(); armorPlayer.desertProwlerSet = true; @@ -174,7 +174,7 @@ namespace CalamityMod.Items.Armor.DesertProwler setBonus1.OverrideColor = Color.Lerp(new Color(255, 229, 156), new Color(233, 225, 198), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f)); tooltips.Insert(setBonusIndex + 1, setBonus1); - TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").WithFormatArgs(FreeCrit, BonusDamageCap, LightsOutReset / 60f).ToString()); + TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").Format(FreeCrit, BonusDamageCap, LightsOutReset / 60f)); setBonus2.OverrideColor = new Color(204, 181, 72); tooltips.Insert(setBonusIndex + 2, setBonus2); } diff --git a/Items/Armor/ForbiddenCirclet.cs b/Items/Armor/ForbiddenCirclet.cs index 8ee91cc844..56fd87d361 100644 --- a/Items/Armor/ForbiddenCirclet.cs +++ b/Items/Armor/ForbiddenCirclet.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor { int stormMana = (int)(manaCost * player.manaCost); string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey, stormMana).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey, stormMana); CalamityPlayer modPlayer = player.Calamity(); modPlayer.forbiddenCirclet = true; modPlayer.rogueStealthMax += 0.4f; diff --git a/Items/Armor/GemTech/GemTechHeadgear.cs b/Items/Armor/GemTech/GemTechHeadgear.cs index 6c16b88d91..70254d81dc 100644 --- a/Items/Armor/GemTech/GemTechHeadgear.cs +++ b/Items/Armor/GemTech/GemTechHeadgear.cs @@ -106,42 +106,42 @@ namespace CalamityMod.Items.Armor.GemTech else { setBonusIndex++; - TooltipLine largerDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextFromModItem("GeneralGemInfo").WithFormatArgs(GemBreakDamageLowerBound, GemDamage, GemRegenTime / 60).ToString()); + TooltipLine largerDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextFromModItem("GeneralGemInfo").Format(GemBreakDamageLowerBound, GemDamage, GemRegenTime / 60)); largerDescription.OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.5f); tooltips.Insert(setBonusIndex, largerDescription); setBonusIndex++; - TooltipLine redGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("RedGemInfo").WithFormatArgs(ItemID.Ruby, RogueStealthBoost).ToString()); + TooltipLine redGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("RedGemInfo").Format(ItemID.Ruby, RogueStealthBoost)); redGemTooltip.OverrideColor = new Color(224, 24, 0); tooltips.Insert(setBonusIndex, redGemTooltip); setBonusIndex++; - TooltipLine yellowGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", CalamityUtils.GetTextFromModItem("YellowGemInfo").WithFormatArgs(ItemID.Topaz).ToString()); + TooltipLine yellowGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus3", CalamityUtils.GetTextFromModItem("YellowGemInfo").Format(ItemID.Topaz)); yellowGemTooltip.OverrideColor = new Color(237, 170, 43); tooltips.Insert(setBonusIndex, yellowGemTooltip); setBonusIndex++; - TooltipLine greenGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus4", CalamityUtils.GetTextFromModItem("GreenGemInfo").WithFormatArgs(ItemID.Emerald).ToString()); + TooltipLine greenGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus4", CalamityUtils.GetTextFromModItem("GreenGemInfo").Format(ItemID.Emerald)); greenGemTooltip.OverrideColor = new Color(37, 188, 108); tooltips.Insert(setBonusIndex, greenGemTooltip); setBonusIndex++; - TooltipLine blueGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus5", CalamityUtils.GetTextFromModItem("BlueGemInfo").WithFormatArgs(ItemID.Sapphire, SummonMinionCountBoost).ToString()); + TooltipLine blueGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus5", CalamityUtils.GetTextFromModItem("BlueGemInfo").Format(ItemID.Sapphire, SummonMinionCountBoost)); blueGemTooltip.OverrideColor = new Color(37, 119, 206); tooltips.Insert(setBonusIndex, blueGemTooltip); setBonusIndex++; - TooltipLine purpleGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus6", CalamityUtils.GetTextFromModItem("PurpleGemInfo").WithFormatArgs(ItemID.Amethyst, MagicManaBoost).ToString()); + TooltipLine purpleGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus6", CalamityUtils.GetTextFromModItem("PurpleGemInfo").Format(ItemID.Amethyst, MagicManaBoost)); purpleGemTooltip.OverrideColor = new Color(200, 58, 209); tooltips.Insert(setBonusIndex, purpleGemTooltip); setBonusIndex++; - TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", CalamityUtils.GetTextFromModItem("PinkGemInfo").WithFormatArgs(ItemID.Diamond, BaseGemDefenseBoost, BaseGemLifeRegenBoost).ToString()); + TooltipLine pinkGemTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus7", CalamityUtils.GetTextFromModItem("PinkGemInfo").Format(ItemID.Diamond, BaseGemDefenseBoost, BaseGemLifeRegenBoost)); pinkGemTooltip.OverrideColor = new Color(255, 115, 206); tooltips.Insert(setBonusIndex, pinkGemTooltip); setBonusIndex++; - TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", CalamityUtils.GetTextFromModItem("GemBonusInfo").WithFormatArgs(AllGemsWeaponUseLifeRegenBoost, AllGemsLifeRegenBoostTime / 60, AllGemsMultiWeaponUseLifeRegenBoost, AllGemsMultiWeaponLifeRegenBoostTime / 60f).ToString()); + TooltipLine liferegenTooltip = new TooltipLine(item.Mod, "CalamityMod:SetBonus8", CalamityUtils.GetTextFromModItem("GemBonusInfo").Format(AllGemsWeaponUseLifeRegenBoost, AllGemsLifeRegenBoostTime / 60, AllGemsMultiWeaponUseLifeRegenBoost, AllGemsMultiWeaponLifeRegenBoostTime / 60f)); liferegenTooltip.OverrideColor = new Color(230, 230, 230); tooltips.Insert(setBonusIndex, liferegenTooltip); } diff --git a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs index 8914d7da96..74dcd2004e 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadMelee.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.godSlayer = true; modPlayer.godSlayerDamage = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(hotkey, GodslayerArmorDash.GodslayerCooldown); player.thorns += 2.5f; player.aggro += 1000; diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs index 33a5922779..60e0d5650b 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRanged.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.godSlayer = true; modPlayer.godSlayerRanged = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(hotkey, GodslayerArmorDash.GodslayerCooldown); if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID)) { diff --git a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs index f50c93d10a..288baab07a 100644 --- a/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs +++ b/Items/Armor/GodSlayer/GodSlayerHeadRogue.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Armor.GodSlayer modPlayer.rogueStealthMax += 1.2f; modPlayer.wearingRogueArmor = true; var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").WithFormatArgs(hotkey, GodslayerArmorDash.GodslayerCooldown).ToString(); + player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextFromModItem("CommonSetBonus").Format(hotkey, GodslayerArmorDash.GodslayerCooldown); if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID)) { diff --git a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs index 2e121810aa..d3447e98c4 100644 --- a/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs +++ b/Items/Armor/OmegaBlue/OmegaBlueHelmet.cs @@ -66,7 +66,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey); var mp = player.Calamity(); player.GetArmorPenetration() += 15; diff --git a/Items/Armor/PlagueReaper/PlagueReaperMask.cs b/Items/Armor/PlagueReaper/PlagueReaperMask.cs index 8438660bb3..6b98928d5a 100644 --- a/Items/Armor/PlagueReaper/PlagueReaperMask.cs +++ b/Items/Armor/PlagueReaper/PlagueReaperMask.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper public override void UpdateArmorSet(Player player) { var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey); var modPlayer = player.Calamity(); modPlayer.plagueReaper = true; player.ammoCost75 = true; diff --git a/Items/Armor/Prismatic/PrismaticHelmet.cs b/Items/Armor/Prismatic/PrismaticHelmet.cs index c64f2c50e5..21783f1963 100644 --- a/Items/Armor/Prismatic/PrismaticHelmet.cs +++ b/Items/Armor/Prismatic/PrismaticHelmet.cs @@ -40,7 +40,7 @@ namespace CalamityMod.Items.Armor.Prismatic player.manaCost *= 0.85f; player.manaRegenBonus += 8; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString(); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Tarragon/TarragonHeadMelee.cs b/Items/Armor/Tarragon/TarragonHeadMelee.cs index 0f3c3426ff..4910568a4b 100644 --- a/Items/Armor/Tarragon/TarragonHeadMelee.cs +++ b/Items/Armor/Tarragon/TarragonHeadMelee.cs @@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor.Tarragon modPlayer.tarraMelee = true; player.aggro += 800; var hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString(); - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(hotkey).ToString() + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); + player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem("CommonSetBonus"); } public override void UpdateEquip(Player player) diff --git a/Items/Armor/Wulfrum/WulfrumSet.cs b/Items/Armor/Wulfrum/WulfrumSet.cs index 6c451c6d1a..5e86fc3f4c 100644 --- a/Items/Armor/Wulfrum/WulfrumSet.cs +++ b/Items/Armor/Wulfrum/WulfrumSet.cs @@ -136,7 +136,7 @@ namespace CalamityMod.Items.Armor.Wulfrum armorPlayer.wulfrumSet = true; - player.setBonus = this.GetLocalization("SetBonus").WithFormatArgs(MinionSlotBoost).ToString(); //The cooler part of the set bonus happens in modifytooltips because i can't recolor it otherwise. Madge + player.setBonus = this.GetLocalization("SetBonus").Format(MinionSlotBoost); //The cooler part of the set bonus happens in modifytooltips because i can't recolor it otherwise. Madge player.maxMinions += MinionSlotBoost; if (PowerModeEngaged(player, out var cd)) { @@ -238,7 +238,7 @@ namespace CalamityMod.Items.Armor.Wulfrum int AmmoItem = ModContent.ItemType(); string AmmoDisplay = $"[i:{AmmoItem}] {CalamityUtils.GetItemName(AmmoItem)}"; - TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").WithFormatArgs(AmmoDisplay).ToString()); + TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem("AbilityDescription").Format(AmmoDisplay)); setBonus2.OverrideColor = new Color(110, 192, 93); tooltips.Insert(setBonusIndex + 2, setBonus2); diff --git a/Items/Potions/AstralInjection.cs b/Items/Potions/AstralInjection.cs index c057a5c9ab..e4436fa59c 100644 --- a/Items/Potions/AstralInjection.cs +++ b/Items/Potions/AstralInjection.cs @@ -12,7 +12,6 @@ namespace CalamityMod.Items.Potions public new string LocalizationCategory => "Items.Potions"; public override void SetStaticDefaults() { - Item.ResearchUnlockCount = 20; Item.ResearchUnlockCount = 30; } @@ -43,7 +42,7 @@ namespace CalamityMod.Items.Potions } if (player.statLife <= 0) { - player.KillMe(PlayerDeathReason.ByCustomReason(player.name + "'s blood vessels burst from drug overdose."), 1000.0, 0, false); + player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInjection").Format(player.name)), 1000.0, 0, false); } } diff --git a/Items/SummonItems/CosmicWorm.cs b/Items/SummonItems/CosmicWorm.cs index 8ee882c338..21df78b0d2 100644 --- a/Items/SummonItems/CosmicWorm.cs +++ b/Items/SummonItems/CosmicWorm.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.SummonItems public override bool? UseItem(Player player) { - string key = "Mods.CalamityMod.BossMessages.EdgyBossText7"; + string key = "Mods.CalamityMod.Status.Boss.EdgyBossText7"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/Items/Weapons/Magic/ThornBlossom.cs b/Items/Weapons/Magic/ThornBlossom.cs index 051d6fa3b9..4172d95cdd 100644 --- a/Items/Weapons/Magic/ThornBlossom.cs +++ b/Items/Weapons/Magic/ThornBlossom.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Magic player.statLife -= 3; if (player.statLife <= 0) { - player.KillMe(PlayerDeathReason.ByCustomReason(player.name + " was violently pricked by a flower."), 1000.0, 0, false); + player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ThornBlossom").Format(player.name)), 1000.0, 0, false); } for (int index = 0; index < 3; ++index) { diff --git a/Items/Weapons/Ranged/BloodBoiler.cs b/Items/Weapons/Ranged/BloodBoiler.cs index 2c80867bf1..9348f54939 100644 --- a/Items/Weapons/Ranged/BloodBoiler.cs +++ b/Items/Weapons/Ranged/BloodBoiler.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Ranged --player.statLife; if (player.statLife <= 0) { - PlayerDeathReason pdr = PlayerDeathReason.ByCustomReason(Main.rand.NextBool(2) ? player.name + " suffered from severe anemia." : player.name + " was unable to obtain a blood transfusion."); + PlayerDeathReason pdr = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BloodBoiler" + Main.rand.Next(1, 2 + 1)).Format(player.name)); player.KillMe(pdr, 1000.0, 0, false); return false; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Tools.hjson b/Localization/en-US/Mods.CalamityMod.Items.Tools.hjson index 68f045813f..424df415ef 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Tools.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Tools.hjson @@ -158,7 +158,7 @@ SeismicHampick: { Tooltip: ''' Capable of mining Lihzahrd Bricks - Press {InputTrigger_UseOrAttack} to use as a pickaxe + Press to use as a pickaxe Press to use as a hammer ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson index 36c32f7951..879b58bb79 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.DraedonsArsenal.hjson @@ -102,7 +102,7 @@ PlasmaCaster: { DisplayName: Plasma Caster Tooltip: ''' - Press {InputTrigger_UseOrAttack} to fire a large, exploding plasma bolt + Press to fire a large, exploding plasma bolt Press to fire in turbo mode, increasing rate of fire but with hindered accuracy ''' } @@ -211,7 +211,7 @@ TheAnomalysNanogun: { DisplayName: The Anomaly's Nanogun Tooltip: ''' - Press {InputTrigger_UseOrAttack} to charge up 5 rapid-fire plasma beams + Press to charge up 5 rapid-fire plasma beams Press to launch 3 fission bombs 'Welcome to the party, pal' ''' diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson index b14dd0ea3b..46c9c8e8ba 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Magic.hjson @@ -726,7 +726,7 @@ SubsumingVortex: { DisplayName: Subsuming Vortex Tooltip: ''' - Press {InputTrigger_UseOrAttack} to release a barrage of vortices that race towards enemies + Press to release a barrage of vortices that race towards enemies Press to cast a gigantic vortex in front of you with a bias towards the mouse When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them After enough time has passed the vortex stops shooting, and releasing fires the vortex towards the mouse diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index e3817cf911..3c3cd79c01 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -447,10 +447,10 @@ Exoblade: { DisplayName: Exoblade Tooltip: ''' - Press {InputTrigger_UseOrAttack} to release multiple energy beams that home in on enemies and slice them on hit + Press to release multiple energy beams that home in on enemies and slice them on hit Press to dash in the direction of the cursor with the blade Enemy hits from the blade during the dash result in massive damage and a rebound - Press {InputTrigger_UseOrAttack} immediately after a rebound to perform a powerful slash that explodes on enemy hits + Press immediately after a rebound to perform a powerful slash that explodes on enemy hits ''' } @@ -774,7 +774,7 @@ OldLordClaymore: { Tooltip: ''' Holding rapidly absorbs energy into the blade until it is charged - Press {InputTrigger_UseOrAttack} while charged to fly in the direction of the cursor + Press while charged to fly in the direction of the cursor Using the lunge resets the blade's charge to zero ''' } @@ -918,7 +918,7 @@ Roxcalibur: { Tooltip: ''' The hellish Wall of Flesh holds the key to this weapon's power - Press {InputTrigger_UseOrAttack} to shoot several rock shards + Press to shoot several rock shards Press to dive downwards and bounce off enemies Diving into blocks creates a shockwave You couldn't get it out of the rock, so you just brought the rock instead diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index dcd5b80bc6..259d77c619 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -248,7 +248,7 @@ Condemnation: { Tooltip: ''' Fires powerful scarlet bolts suffused with hateful magics - Hold {InputTrigger_UseOrAttack} to load up to eight bolts for powerful burst fire + Hold to load up to eight bolts for powerful burst fire Hold to use the repeater full auto ''' } @@ -388,7 +388,7 @@ DragonsBreath: { DisplayName: Dragon's Breath Tooltip: ''' - Press {InputTrigger_UseOrAttack} to fire in two-shot bursts + Press to fire in two-shot bursts The first shot is a spread of 6 normal bullets The second shot is a tight spread of 6 Dragon's Breath rounds Press to fire full auto and mix the bullets randomly, but deal 20% less damage @@ -494,8 +494,8 @@ FreedomStar: { DisplayName: Freedom Star Tooltip: ''' - Tap {InputTrigger_UseOrAttack} to fire energy orbs - Hold {InputTrigger_UseOrAttack} to charge and fire a beam that explodes on hit + Tap to fire energy orbs + Hold to charge and fire a beam that explodes on hit ''' } @@ -610,7 +610,7 @@ Hydra: { ''' Fires a spread of 4 toxic bullets Grows a gun-head every 3 seconds, up to a maximum of 3 heads - Press {InputTrigger_UseOrAttack} to command any existing heads to fire + Press to command any existing heads to fire Press to launch the heads for powerful explosive damage [c/9D80B0:Fusion of heavy machinery and Lernaean blood] ''' @@ -888,7 +888,7 @@ PristineFury: { Pumpler: { DisplayName: Pumpler - Tooltip: Hold {InputTrigger_UseOrAttack} to load up to five pumpkin grenades at once + Tooltip: Hold to load up to five pumpkin grenades at once } RealmRavager: { @@ -1115,7 +1115,7 @@ SurgeDriver: { DisplayName: Surge Driver Tooltip: ''' - Press {InputTrigger_UseOrAttack} to release a laser ray that explodes on collision + Press to release a laser ray that explodes on collision Press to release a barrage of laser beams that release homing energy on enemy hits ''' } @@ -1172,7 +1172,7 @@ TheSevensStriker: { DisplayName: The Sevens Striker Tooltip: ''' - Press {InputTrigger_UseOrAttack} to consume 1 coin and play a slot machine + Press to consume 1 coin and play a slot machine The quality of the outcome depends on the coin used Press to rapidly fire a barrage of coins The coin barrage has an 80% chance to save ammo and will not fire platinum coins diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson index 8f411f7c0e..4c28f827be 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Typeless.hjson @@ -35,9 +35,9 @@ RelicOfDeliverance: { DisplayName: Relic of Deliverance Tooltip: ''' - Press {InputTrigger_UseOrAttack} to begin charging up a lunging spear attack - Press {InputTrigger_UseOrAttack} again to release the charge and lunge towards the cursor - Pressing {InputTrigger_UseOrAttack} while lunging to redirect the lunge to the cursor + Press to begin charging up a lunging spear attack + Press again to release the charge and lunge towards the cursor + Pressing while lunging to redirect the lunge to the cursor Holding any other item will cancel the charge ''' } diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index 42d8407b72..92cd23177b 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -285,21 +285,9 @@ SoulSeekerSupreme.DisplayName: Soul Seeker SupremeCalamitas.DisplayName: Supreme Witch, Calamitas SupremeCataclysm.DisplayName: Cataclysm SupremeCatastrophe.DisplayName: Catastrophe - -AndroombaFriendly: { - DisplayName: Androomba Pal - - TownNPCMood: { - Princess_LovesNPC: I like {NPCName}. - LikeNPC_Princess: I like {NPCName}. - HateCrowded: I hate how crowded I am. - DislikeCrowded: I dislike how crowded I am. - LoveSpace: I love having so much space. - FarFromHome: I am too far from home. - NoHome: I hate not having a home. - Content: I am content. - } -} +Yharon.DisplayName: Yharon, Dragon of Rebirth +// Town NPCs, Pets, etc +AndroombaFriendly.DisplayName: Androomba Pal DILF: { DisplayName: Archmage @@ -308,7 +296,7 @@ DILF: { Content: The weather is cool today. NoHome: Without a place to rest, my studies cannot proceed. Could you procure me a living space? I no longer like to make my homes using ice magic. LoveSpace: Too many people can disrupt the flow of mana. I much prefer the breathing room here. - FarFromHome: My sense of direction is…subpar. I loathe to admit it, but I have a tendency to not venture outside too often. + FarFromHome: My sense of direction is... subpar. I loathe to admit it, but I have a tendency to not venture outside too often. DislikeCrowded: My spells are precise, and cannot be interrupted. I would like some more room to practice with them. HateCrowded: I'd hate for one of your associates to be caught up in my magic. Alas, there are too many here to mitigate that risk. LikeBiome: The temperature here allows me to save my magic power, as my creations can sustain their shape without melting in the cold. @@ -411,6 +399,4 @@ WITCH: { LikeNPC_Princess: What a strangely pleasant kid {NPCName} is to be around. Princess_LovesNPC: I like {NPCName}. } -} - -Yharon.DisplayName: Yharon, Dragon of Rebirth \ No newline at end of file +} \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.BossMessages.hjson b/Localization/en-US/Mods.CalamityMod.Status.Boss.hjson similarity index 100% rename from Localization/en-US/Mods.CalamityMod.BossMessages.hjson rename to Localization/en-US/Mods.CalamityMod.Status.Boss.hjson diff --git a/Localization/en-US/Mods.CalamityMod.Status.Death.hjson b/Localization/en-US/Mods.CalamityMod.Status.Death.hjson new file mode 100644 index 0000000000..6a14f31f90 --- /dev/null +++ b/Localization/en-US/Mods.CalamityMod.Status.Death.hjson @@ -0,0 +1,39 @@ +AlcoholBig1: "{0} downed too many shots." +AlcoholBig2: "{0}'s liver failed." +AlcoholSmall: "{0} succumbed to alcohol sickness." +AstralInfection1: "{0}'s infection spread too far." +AstralInfection2: "{0}'s skin was replaced by the astral virus." +AstralInjection: "{0}'s blood vessels burst from drug overdose." +AuricRejection: "{0} was not worthy." +BloodBoiler1: "{0} suffered from severe anemia." +BloodBoiler2: "{0} was unable to obtain a blood transfusion." +BrimstoneFlames: "{0} was consumed by the black flames." +BurningBlood: "{0} became a blood geyser." +ChibiiDoggo: "{0} couldn't stand the sharp objects." +CirrusSlap: "{0} was slapped too hard." +CorpusAvertor: "{0} became the blood god's sacrifice." +CrushDepth1: "{0} was crushed by the pressure." +CrushDepth2: "{0}'s lungs collapsed." +Dragonfire: "{0}'s ashes scatter in the wind." +GodSlayerInferno: "{0}'s soul was extinguished." +Goldfish: "{0} was once again impaled by Goldfish." +HolyFlames: "{0} fell prey to their sins." +HolyInferno: "{0} was turned to ashes by the Profaned Goddess." +ManaConversion: "{0}'s life was completely converted into mana." +ManaConversionAlt: "{0} converted all of their life to mana." +MiracleBlight1: "{0} was blown away by miraculous technological advancements." +MiracleBlight2: "{0} disintegrated from the overpowering exotic resonance." +NecroRevive: "{0} fell to the inevitable." +Nightwither: "{0} was incinerated by lunar rays." +Plague1: "{0}'s flesh was melted by the plague." +Plague2: "{0} didn't vaccinate." +ProfanedSoulCrystal: "{0} was summoned too soon." +ProvidenceMelt: "{0} burst into sinless ash." +SearingLava: "{0}'s soul was released by the lava." +Shadowflame: "{0}'s spirit was turned to ash." +SulphurMeter: "{0}'s flesh was dissolved by sulphuric water." +SulphuricPoisoning: "{0} was melted by the toxic waste." +ThornBlossom: "{0} was violently pricked by a flower." +Vaporfied: "{0} vaporized into thin air." +VulnerabilityHex: "{0} was charred by the brimstone inferno." +Withered: "{0} withered away." \ No newline at end of file diff --git a/Localization/en-US/Mods.CalamityMod.ProgressionMessages.hjson b/Localization/en-US/Mods.CalamityMod.Status.Progression.hjson similarity index 100% rename from Localization/en-US/Mods.CalamityMod.ProgressionMessages.hjson rename to Localization/en-US/Mods.CalamityMod.Status.Progression.hjson diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index af4352bf4f..7be129ad7b 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -276,7 +276,7 @@ namespace CalamityMod.NPCs.AquaticScourge if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) SoundEngine.PlaySound(Mauler.RoarSound, Main.player[Main.myPlayer].Center); - string sulfSeaBoostKey = "Mods.CalamityMod.ProgressionMessages.WetWormBossText"; + string sulfSeaBoostKey = "Mods.CalamityMod.Status.Progression.WetWormBossText"; Color sulfSeaBoostColor = AcidRainEvent.TextColor; CalamityUtils.DisplayLocalizedText(sulfSeaBoostKey, sulfSeaBoostColor); diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 4ea1b7d157..0a08c0fe12 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -405,8 +405,8 @@ namespace CalamityMod.NPCs.AstrumAureus // If Astrum Aureus has not yet been killed, notify players of new Astral enemy drops if (!DownedBossSystem.downedAstrumAureus) { - string key = "Mods.CalamityMod.ProgressionMessages.AureusBossText"; - string key2 = "Mods.CalamityMod.ProgressionMessages.AureusBossText2"; + string key = "Mods.CalamityMod.Status.Progression.AureusBossText"; + string key2 = "Mods.CalamityMod.Status.Progression.AureusBossText2"; Color messageColor = Color.Gold; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index 0ccbf0da66..ef8ea1ac13 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.AstrumDeus // Notify players that Astral Ore can be mined if Deus has never been killed yet if (!DownedBossSystem.downedAstrumDeus) { - string key = "Mods.CalamityMod.ProgressionMessages.AstralBossText"; + string key = "Mods.CalamityMod.Status.Progression.AstralBossText"; Color messageColor = Color.Gold; CalamityUtils.DisplayLocalizedText(key, messageColor); } diff --git a/NPCs/CalClone/CalamitasClone.cs b/NPCs/CalClone/CalamitasClone.cs index 61a9784ab6..888e6d5206 100644 --- a/NPCs/CalClone/CalamitasClone.cs +++ b/NPCs/CalClone/CalamitasClone.cs @@ -235,7 +235,7 @@ namespace CalamityMod.NPCs.CalClone CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType() }, DownedBossSystem.downedCalamitasClone); // Abyss awakens after killing Calamitas - string key = "Mods.CalamityMod.ProgressionMessages.PlantBossText"; + string key = "Mods.CalamityMod.Status.Progression.PlantBossText"; Color messageColor = Color.RoyalBlue; if (!DownedBossSystem.downedCalamitasClone) diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index ae50d247ef..eed270d506 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -1312,7 +1312,7 @@ namespace CalamityMod.NPCs } } - string key = "Mods.CalamityMod.BossMessages.CalamitasBossText3"; + string key = "Mods.CalamityMod.Status.Boss.CalamitasBossText3"; Color messageColor = Color.Orange; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -1348,7 +1348,7 @@ namespace CalamityMod.NPCs NPC.NewNPC(npc.GetSource_FromAI(), (int)npc.Center.X, (int)npc.position.Y + npc.height, ModContent.NPCType(), npc.whoAmI); } - string key = "Mods.CalamityMod.BossMessages.CalamitasBossText2"; + string key = "Mods.CalamityMod.Status.Boss.CalamitasBossText2"; Color messageColor = Color.Orange; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 37ccd56aab..79b0738fb9 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1783,7 +1783,7 @@ namespace CalamityMod.NPCs { World.Abyss.UnlockAllAbyssChests(); - string keysk = "Mods.CalamityMod.ProgressionMessages.SkeletronAbyssChestNotification"; + string keysk = "Mods.CalamityMod.Status.Progression.SkeletronAbyssChestNotification"; CalamityUtils.DisplayLocalizedText(keysk, new Color(76, 181, 76)); } break; @@ -1798,14 +1798,14 @@ namespace CalamityMod.NPCs if (CalamityConfig.Instance.EarlyHardmodeProgressionRework) WorldGen.altarCount++; - string key2 = "Mods.CalamityMod.ProgressionMessages.UglyBossText"; + string key2 = "Mods.CalamityMod.Status.Progression.UglyBossText"; Color messageColor2 = Color.Aquamarine; CalamityUtils.DisplayLocalizedText(key2, messageColor2); // TODO -- this should probably be moved to a thread like Aureus meteor if (CalamityConfig.Instance.EarlyHardmodeProgressionRework) { - string key3 = "Mods.CalamityMod.ProgressionMessages.HardmodeOreTier1Text"; + string key3 = "Mods.CalamityMod.Status.Progression.HardmodeOreTier1Text"; Color messageColor3 = new Color(50, 255, 130); CalamityUtils.SpawnOre(TileID.Cobalt, 12E-05, 0.45f, 0.7f, 3, 8); CalamityUtils.SpawnOre(TileID.Palladium, 12E-05, 0.45f, 0.7f, 3, 8); @@ -1862,9 +1862,9 @@ namespace CalamityMod.NPCs // Spawn Perennial Ore if Plantera has never been killed if (!NPC.downedPlantBoss) { - string key = "Mods.CalamityMod.ProgressionMessages.PlantOreText"; + string key = "Mods.CalamityMod.Status.Progression.PlantOreText"; Color messageColor = Color.GreenYellow; - string key2 = "Mods.CalamityMod.ProgressionMessages.SandSharkText3"; + string key2 = "Mods.CalamityMod.Status.Progression.SandSharkText3"; Color messageColor2 = Color.Goldenrod; // TODO -- this should probably be moved to a thread like Aureus meteor @@ -1901,7 +1901,7 @@ namespace CalamityMod.NPCs if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) SoundEngine.PlaySound(PlagueSound, Main.player[Main.myPlayer].Center); - string key3 = "Mods.CalamityMod.ProgressionMessages.BabyBossText"; + string key3 = "Mods.CalamityMod.Status.Progression.BabyBossText"; Color messageColor3 = Color.Lime; CalamityUtils.DisplayLocalizedText(key3, messageColor3); @@ -1930,13 +1930,13 @@ namespace CalamityMod.NPCs SetNewShopVariable(new int[] { NPCID.Princess, ModContent.NPCType() }, NPC.downedMoonlord); SetNewBossJustDowned(npc); - string key5 = "Mods.CalamityMod.ProgressionMessages.MoonBossText"; + string key5 = "Mods.CalamityMod.Status.Progression.MoonBossText"; Color messageColor5 = Color.Orange; - string key6 = "Mods.CalamityMod.ProgressionMessages.MoonBossText2"; + string key6 = "Mods.CalamityMod.Status.Progression.MoonBossText2"; Color messageColor6 = Color.Violet; - string key7 = "Mods.CalamityMod.ProgressionMessages.ProfanedBossText2"; + string key7 = "Mods.CalamityMod.Status.Progression.ProfanedBossText2"; Color messageColor7 = Color.Cyan; - string key8 = "Mods.CalamityMod.ProgressionMessages.FutureOreText"; + string key8 = "Mods.CalamityMod.Status.Progression.FutureOreText"; Color messageColor8 = Color.LightGray; if (!CalamityWorld.HasGeneratedLuminitePlanetoids) @@ -1974,7 +1974,7 @@ namespace CalamityMod.NPCs { if (!NPC.downedMechBossAny) { - string key = "Mods.CalamityMod.ProgressionMessages.HardmodeOreTier2Text"; + string key = "Mods.CalamityMod.Status.Progression.HardmodeOreTier2Text"; Color messageColor = new Color(50, 255, 130); CalamityUtils.SpawnOre(TileID.Mythril, 12E-05, 0.55f, 0.8f, 3, 8); CalamityUtils.SpawnOre(TileID.Orichalcum, 12E-05, 0.55f, 0.8f, 3, 8); @@ -1982,7 +1982,7 @@ namespace CalamityMod.NPCs } else if ((!NPC.downedMechBoss1 && !NPC.downedMechBoss2) || (!NPC.downedMechBoss2 && !NPC.downedMechBoss3) || (!NPC.downedMechBoss3 && !NPC.downedMechBoss1)) { - string key = "Mods.CalamityMod.ProgressionMessages.HardmodeOreTier3Text"; + string key = "Mods.CalamityMod.Status.Progression.HardmodeOreTier3Text"; Color messageColor = new Color(50, 255, 130); CalamityUtils.SpawnOre(TileID.Adamantite, 12E-05, 0.65f, 0.9f, 3, 8); CalamityUtils.SpawnOre(TileID.Titanium, 12E-05, 0.65f, 0.9f, 3, 8); @@ -1990,7 +1990,7 @@ namespace CalamityMod.NPCs } else { - string key = "Mods.CalamityMod.ProgressionMessages.HardmodeOreTier4Text"; + string key = "Mods.CalamityMod.Status.Progression.HardmodeOreTier4Text"; Color messageColor = new Color(50, 255, 130); CalamityUtils.SpawnOre(ModContent.TileType(), 12E-05, 0.55f, 0.9f, 3, 8, TileID.Pearlstone, TileID.HallowHardenedSand, TileID.HallowSandstone, TileID.HallowedIce); CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -2060,14 +2060,14 @@ namespace CalamityMod.NPCs CalamityMod.ghostKillCount++; if (CalamityMod.ghostKillCount == 10) { - string key = "Mods.CalamityMod.BossMessages.GhostBossText2"; + string key = "Mods.CalamityMod.Status.Boss.GhostBossText2"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); } else if (CalamityMod.ghostKillCount == 20) { - string key = "Mods.CalamityMod.BossMessages.GhostBossText3"; + string key = "Mods.CalamityMod.Status.Boss.GhostBossText3"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -2097,14 +2097,14 @@ namespace CalamityMod.NPCs CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) { - string key = "Mods.CalamityMod.BossMessages.SandSharkText"; + string key = "Mods.CalamityMod.Status.Boss.SandSharkText"; Color messageColor = Color.Goldenrod; CalamityUtils.DisplayLocalizedText(key, messageColor); } else if (CalamityMod.sharkKillCount == 8) { - string key = "Mods.CalamityMod.BossMessages.SandSharkText2"; + string key = "Mods.CalamityMod.Status.Boss.SandSharkText2"; Color messageColor = Color.Goldenrod; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 761412efea..d33ba251ce 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -926,7 +926,7 @@ namespace CalamityMod.NPCs.Cryogen if (Main.rand.NextBool(chance)) { - string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.BossMessages.PyrogenBossText" : "Mods.CalamityMod.BossMessages.CryogenBossText"; + string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.Status.Boss.PyrogenBossText" : "Mods.CalamityMod.Status.Boss.CryogenBossText"; Color messageColor = CalamityWorld.getFixedBoi ? Color.Orange : Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); } @@ -1333,7 +1333,7 @@ namespace CalamityMod.NPCs.Cryogen // If Cryogen has not been killed, notify players about Cryonic Ore if (!DownedBossSystem.downedCryogen) { - string key = "Mods.CalamityMod.ProgressionMessages.IceOreText"; + string key = "Mods.CalamityMod.Status.Progression.IceOreText"; Color messageColor = Color.LightSkyBlue; CalamityUtils.SpawnOre(ModContent.TileType(), 15E-05, 0.45f, 0.7f, 3, 8, TileID.SnowBlock, TileID.IceBlock, TileID.CorruptIce, TileID.FleshIce, TileID.HallowedIce, ModContent.TileType(), ModContent.TileType()); diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index c797c9d3f4..420c9fab60 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -677,9 +677,9 @@ namespace CalamityMod.NPCs.DesertScourge // If Desert Scourge has not been killed yet, notify players that the Sunken Sea is open and Sandstorms can happen if (!DownedBossSystem.downedDesertScourge) { - string key = "Mods.CalamityMod.ProgressionMessages.OpenSunkenSea"; + string key = "Mods.CalamityMod.Status.Progression.OpenSunkenSea"; Color messageColor = Color.Aquamarine; - string key2 = "Mods.CalamityMod.ProgressionMessages.SandstormTrigger"; + string key2 = "Mods.CalamityMod.Status.Progression.SandstormTrigger"; Color messageColor2 = Color.PaleGoldenrod; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index ee76cce223..9373726d63 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -547,7 +547,7 @@ namespace CalamityMod.NPCs.DevourerofGods // Dialogue the moment the second phase starts if (NPC.localAI[2] == 60f) { - string key = "Mods.CalamityMod.BossMessages.EdgyBossText5"; + string key = "Mods.CalamityMod.Status.Boss.EdgyBossText5"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); } @@ -705,7 +705,7 @@ namespace CalamityMod.NPCs.DevourerofGods calamityGlobalNPC.newAI[3] = 0f; // Anger message - string key = "Mods.CalamityMod.BossMessages.EdgyBossText6"; + string key = "Mods.CalamityMod.Status.Boss.EdgyBossText6"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -1513,7 +1513,7 @@ namespace CalamityMod.NPCs.DevourerofGods if (revenge) spawnDoGCountdown = 10; - string key = "Mods.CalamityMod.BossMessages.EdgyBossText"; + string key = "Mods.CalamityMod.Status.Boss.EdgyBossText"; Color messageColor = Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -2499,11 +2499,11 @@ namespace CalamityMod.NPCs.DevourerofGods // If DoG has not been killed yet, notify players that the holiday moons are buffed if (!DownedBossSystem.downedDoG) { - string key = "Mods.CalamityMod.ProgressionMessages.DoGBossText"; + string key = "Mods.CalamityMod.Status.Progression.DoGBossText"; Color messageColor = Color.Cyan; - string key2 = "Mods.CalamityMod.ProgressionMessages.DoGBossText2"; + string key2 = "Mods.CalamityMod.Status.Progression.DoGBossText2"; Color messageColor2 = Color.Orange; - string key3 = "Mods.CalamityMod.ProgressionMessages.DargonBossText"; + string key3 = "Mods.CalamityMod.Status.Progression.DargonBossText"; CalamityUtils.DisplayLocalizedText(key, messageColor); CalamityUtils.DisplayLocalizedText(key2, messageColor2); @@ -2696,9 +2696,9 @@ namespace CalamityMod.NPCs.DevourerofGods { string text = Utils.SelectRandom(Main.rand, new string[] { - "Mods.CalamityMod.BossMessages.EdgyBossText2", - "Mods.CalamityMod.BossMessages.EdgyBossText3", - "Mods.CalamityMod.BossMessages.EdgyBossText4" + "Mods.CalamityMod.Status.Boss.EdgyBossText2", + "Mods.CalamityMod.Status.Boss.EdgyBossText3", + "Mods.CalamityMod.Status.Boss.EdgyBossText4" }); Color messageColor = Color.Cyan; Rectangle location = new Rectangle((int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height); diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index cf5f64c12c..c4fadea6e7 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -844,7 +844,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares // Draedon comments on how foolish it is to run if (Main.netMode != NetmodeID.MultiplayerClient) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonAresEnrageText", Draedon.TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonAresEnrageText", Draedon.TextColor); // Enrage EnragedState = (float)Enraged.Yes; diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index 801c9065c4..c9c58bc064 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -240,7 +240,7 @@ namespace CalamityMod.NPCs.ExoMechs NPC.Opacity = MathHelper.Clamp(NPC.Opacity + 0.05f, 0f, 1f); KillReappearTextCountdown--; if (KillReappearTextCountdown == 20) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndKillAttemptText", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndKillAttemptText", TextColor); return; } @@ -268,25 +268,25 @@ namespace CalamityMod.NPCs.ExoMechs { if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonIntroductionText1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonIntroductionText1", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonIntroductionText2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonIntroductionText2", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine * 2f) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonIntroductionText3", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonIntroductionText3", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine * 3f) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonIntroductionText4", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonIntroductionText4", TextColor); NPC.netUpdate = true; } @@ -294,11 +294,11 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine * 4f) { if (bossRush) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonBossRushText", TextColorEdgy); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonBossRushText", TextColorEdgy); else if (CalamityWorld.TalkedToDraedon) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonResummonText", TextColorEdgy); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonResummonText", TextColorEdgy); else - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonIntroductionText5", TextColorEdgy); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonIntroductionText5", TextColorEdgy); // Mark Draedon as talked to. if (!CalamityWorld.TalkedToDraedon) @@ -338,7 +338,7 @@ namespace CalamityMod.NPCs.ExoMechs { if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonMechdusaBeginText", TextColorEdgy); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonMechdusaBeginText", TextColorEdgy); NPC.netUpdate = true; } @@ -392,13 +392,13 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase1Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase1Text1", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase1Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase1Text2", TextColor); NPC.netUpdate = true; } @@ -411,14 +411,14 @@ namespace CalamityMod.NPCs.ExoMechs SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase2Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase2Text1", TextColor); NPC.netUpdate = true; } } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase2Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase2Text2", TextColor); NPC.netUpdate = true; } @@ -428,7 +428,7 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase3Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase3Text1", TextColor); NPC.netUpdate = true; } @@ -437,7 +437,7 @@ namespace CalamityMod.NPCs.ExoMechs SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase3Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase3Text2", TextColor); NPC.netUpdate = true; } } @@ -448,13 +448,13 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase4Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase4Text1", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase4Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase4Text2", TextColor); NPC.netUpdate = true; } @@ -464,13 +464,13 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase5Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase5Text1", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase5Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase5Text2", TextColor); NPC.netUpdate = true; } @@ -480,13 +480,13 @@ namespace CalamityMod.NPCs.ExoMechs if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase6Text1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase6Text1", TextColor); NPC.netUpdate = true; } if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase6Text2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase6Text2", TextColor); NPC.netUpdate = true; } @@ -495,7 +495,7 @@ namespace CalamityMod.NPCs.ExoMechs SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonExoPhase6Text3", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonExoPhase6Text3", TextColor); NPC.netUpdate = true; } } @@ -680,43 +680,43 @@ namespace CalamityMod.NPCs.ExoMechs if (exoMechdusa) { if (DefeatTimer == DelayBeforeDefeatStandup + 50f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonMechdusaEndText1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonMechdusaEndText1", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay + 50f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonMechdusaEndText2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonMechdusaEndText2", TextColor); } // Otherwise do normal text else { if (DefeatTimer == DelayBeforeDefeatStandup + 50f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText1", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText1", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay + 50f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText2", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText2", TextColor); // After this point Draedon becomes vulnerable. // He sits back down as well as he thinks for a bit. // Killing him will cause gore to appear but also for Draedon to come back as a hologram. if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 2f + 50f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText3", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText3", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 3f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText4", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText4", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 4f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText5", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText5", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 5f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText6", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText6", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 6f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText7", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText7", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 7f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText8", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText8", TextColor); if (DefeatTimer == DelayBeforeDefeatStandup + TalkDelay * 8f + 165f) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DraedonEndText9", TextColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DraedonEndText9", TextColor); } } diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 8c8a203362..e4d21aba87 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -1125,7 +1125,7 @@ namespace CalamityMod.NPCs.HiveMind // If neither The Hive Mind nor The Perforator Hive have been killed yet, notify players of Aerialite Ore if (!DownedBossSystem.downedHiveMind && !DownedBossSystem.downedPerforator) { - string key = "Mods.CalamityMod.ProgressionMessages.SkyOreText"; + string key = "Mods.CalamityMod.Status.Progression.SkyOreText"; Color messageColor = Color.Cyan; AerialiteOreGen.Generate(true); diff --git a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs index 7b77fbe314..9ee8b4bd6e 100644 --- a/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs +++ b/NPCs/NormalNPCs/FearlessGoldfishWarrior.cs @@ -406,7 +406,7 @@ namespace CalamityMod.NPCs.NormalNPCs if (instakill) { - target.KillMe(PlayerDeathReason.ByCustomReason(target.name + " was once again impaled by Goldfish."), 1000.0, 0, false); + target.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Goldfish").Format(target.name)), 1000.0, 0, false); modifiers.FinalDamage *= target.statLifeMax2 * Main.rand.NextFloat(2.0f, 3.5f); } } diff --git a/NPCs/Perforator/PerforatorHive.cs b/NPCs/Perforator/PerforatorHive.cs index 1565664fe0..7ae9aa4c4d 100644 --- a/NPCs/Perforator/PerforatorHive.cs +++ b/NPCs/Perforator/PerforatorHive.cs @@ -523,7 +523,7 @@ namespace CalamityMod.NPCs.Perforator // If neither The Hive Mind nor The Perforator Hive have been killed yet, notify players of Aerialite Ore if (!DownedBossSystem.downedHiveMind && !DownedBossSystem.downedPerforator) { - string key = "Mods.CalamityMod.ProgressionMessages.SkyOreText"; + string key = "Mods.CalamityMod.Status.Progression.SkyOreText"; Color messageColor = Color.Cyan; AerialiteOreGen.Generate(true); diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index ad7d586285..ddb2a2ae4f 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -186,7 +186,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath // Show message if (!halfLife && phase3 && expertMode) { - string key = "Mods.CalamityMod.BossMessages.PlagueBossText"; + string key = "Mods.CalamityMod.Status.Boss.PlagueBossText"; Color messageColor = Color.Lime; CalamityUtils.DisplayLocalizedText(key, messageColor); SoundEngine.PlaySound(NukeWarningSound, NPC.Center); diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index c95551ca81..3ed4fd599a 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -1093,14 +1093,14 @@ namespace CalamityMod.NPCs.Polterghast if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active) SoundEngine.PlaySound(ReaperShark.SearchRoarSound, Main.player[Main.myPlayer].Center); - string key = "Mods.CalamityMod.ProgressionMessages.GhostBossText"; + string key = "Mods.CalamityMod.Status.Progression.GhostBossText"; Color messageColor = Color.RoyalBlue; - string sulfSeaBoostMessage = "Mods.CalamityMod.ProgressionMessages.GhostBossText4"; + string sulfSeaBoostMessage = "Mods.CalamityMod.Status.Progression.GhostBossText4"; Color sulfSeaBoostColor = AcidRainEvent.TextColor; if ((Main.rand.NextBool(20) && DateTime.Now.Month == 4 && DateTime.Now.Day == 1) || CalamityWorld.getFixedBoi) { - sulfSeaBoostMessage = "Mods.CalamityMod.ProgressionMessages.AprilFools2"; // Goddamn boomer duke moments + sulfSeaBoostMessage = "Mods.CalamityMod.Status.Progression.AprilFools2"; // Goddamn boomer duke moments } CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 1e27b38f97..a2e0d3924c 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1278,7 +1278,7 @@ namespace CalamityMod.NPCs.Providence if (NPC.ai[3] >= (phaseTime * 1.5f) && !text) { text = true; - string key = "Mods.CalamityMod.BossMessages.ProfanedBossText"; + string key = "Mods.CalamityMod.Status.Boss.ProfanedBossText"; Color messageColor = Color.Orange; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -1853,9 +1853,9 @@ namespace CalamityMod.NPCs.Providence // If Providence has not been killed, notify players of Uelibloom Ore if (!DownedBossSystem.downedProvidence) { - string key2 = "Mods.CalamityMod.ProgressionMessages.ProfanedBossText3"; + string key2 = "Mods.CalamityMod.Status.Progression.ProfanedBossText3"; Color messageColor2 = Color.Orange; - string key3 = "Mods.CalamityMod.ProgressionMessages.TreeOreText"; + string key3 = "Mods.CalamityMod.Status.Progression.TreeOreText"; Color messageColor3 = Color.LightGreen; CalamityUtils.SpawnOre(ModContent.TileType(), 17E-05, 0.55f, 0.9f, 8, 14, TileID.Mud); @@ -1868,7 +1868,7 @@ namespace CalamityMod.NPCs.Providence { if (Main.netMode == NetmodeID.SinglePlayer) { - Main.NewText(Language.GetTextValue("Mods.CalamityMod.ProgressionMessages.ProfanedBossText4"), Color.DarkOrange); + Main.NewText(Language.GetTextValue("Mods.CalamityMod.Status.Progression.ProfanedBossText4"), Color.DarkOrange); } } @@ -2594,7 +2594,7 @@ namespace CalamityMod.NPCs.Providence Target.statLife -= NegativeHealValue; if (Target.statLife < 0) { - PlayerDeathReason CustomSource = PlayerDeathReason.ByCustomReason(Target.name + " burst into sinless ash."); + PlayerDeathReason CustomSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ProvidenceMelt").Format(Target.name)); Target.KillMe(CustomSource, NegativeHealValue, 0); } NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, Target.whoAmI, NegativeHealValue); diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 5fd5598351..6a338b1e2a 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -248,7 +248,7 @@ namespace CalamityMod.NPCs.SlimeGod // Let the player know that the Slime God isn't dead fr if (!DownedBossSystem.downedSlimeGod) { - string key = "Mods.CalamityMod.BossMessages.SlimeGodRun"; + string key = "Mods.CalamityMod.Status.Boss.SlimeGodRun"; Color messageColor = Color.Magenta; CalamityUtils.DisplayLocalizedText(key, messageColor); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 00c5bc881d..bc855097d9 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -440,7 +440,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalSummonText"; + string key = "Mods.CalamityMod.Status.Boss.SCalSummonText"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -841,7 +841,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalBH2Text"; + string key = "Mods.CalamityMod.Status.Boss.SCalBH2Text"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -902,7 +902,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalBH3Text"; + string key = "Mods.CalamityMod.Status.Boss.SCalBH3Text"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -972,7 +972,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalBH4Text"; + string key = "Mods.CalamityMod.Status.Boss.SCalBH4Text"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1041,7 +1041,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } if (!startFifthAttack && lifeRatio <= 0.1f) { - string key = "Mods.CalamityMod.BossMessages.SCalBH5Text"; + string key = "Mods.CalamityMod.Status.Boss.SCalBH5Text"; if (!bossRush) { @@ -1094,11 +1094,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } else if (giveUpCounter == 900 && !bossRush) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.SCalAcceptanceText1", textColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.SCalAcceptanceText1", textColor); else if(giveUpCounter == 600 && !bossRush) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.SCalAcceptanceText2", textColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.SCalAcceptanceText2", textColor); else if(giveUpCounter == 300 && !bossRush) - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.SCalAcceptanceText3", textColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.SCalAcceptanceText3", textColor); if (giveUpCounter <= 0) { if (bossRush) @@ -1142,7 +1142,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalDesparationText4"; + string key = "Mods.CalamityMod.Status.Boss.SCalDesparationText4"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1154,7 +1154,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalDesparationText3"; + string key = "Mods.CalamityMod.Status.Boss.SCalDesparationText3"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1166,7 +1166,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalDesparationText2"; + string key = "Mods.CalamityMod.Status.Boss.SCalDesparationText2"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1178,7 +1178,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalDesparationText1"; + string key = "Mods.CalamityMod.Status.Boss.SCalDesparationText1"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1247,7 +1247,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalPhase2Text"; + string key = "Mods.CalamityMod.Status.Boss.SCalPhase2Text"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -1261,7 +1261,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!bossRush) { - string key = "Mods.CalamityMod.BossMessages.SCalSeekerRingText"; + string key = "Mods.CalamityMod.Status.Boss.SCalSeekerRingText"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); @@ -2362,9 +2362,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (attackCastDelay == 0) { - string key = "Mods.CalamityMod.BossMessages.SCalStartText"; + string key = "Mods.CalamityMod.Status.Boss.SCalStartText"; if (NPC.life <= NPC.lifeMax * 0.08) - key = "Mods.CalamityMod.BossMessages.SCalSepulcher2Text"; + key = "Mods.CalamityMod.Status.Boss.SCalSepulcher2Text"; if (!BossRushEvent.BossRushActive) { @@ -2488,7 +2488,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (!BossRushEvent.BossRushActive) { - string key = "Mods.CalamityMod.BossMessages.SCalBrothersText"; + string key = "Mods.CalamityMod.Status.Boss.SCalBrothersText"; if (DownedBossSystem.downedCalamitas) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, textColor); diff --git a/NPCs/TownNPCs/AndroombaFriendly.cs b/NPCs/TownNPCs/AndroombaFriendly.cs index ac70e417ab..824285213d 100644 --- a/NPCs/TownNPCs/AndroombaFriendly.cs +++ b/NPCs/TownNPCs/AndroombaFriendly.cs @@ -20,6 +20,7 @@ namespace CalamityMod.NPCs.TownNPCs { Main.npcFrameCount[NPC.type] = 9; Main.npcCatchable[NPC.type] = true; + NPCID.Sets.NoTownNPCHappiness[Type] = true; NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0); value.Position.Y += 16; value.PortraitPositionYOverride = 36f; diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 1408830b79..b94c5b2295 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -23,7 +23,6 @@ namespace CalamityMod.NPCs.TownNPCs { public override void SetStaticDefaults() { - Main.npcFrameCount[NPC.type] = 25; NPCID.Sets.ExtraFramesCount[NPC.type] = 9; NPCID.Sets.AttackFrameCount[NPC.type] = 4; @@ -101,10 +100,11 @@ namespace CalamityMod.NPCs.TownNPCs public override string GetChat() { + Player player = Main.player[Main.myPlayer]; if (CalamityWorld.getFixedBoi) { - Main.player[Main.myPlayer].Hurt(PlayerDeathReason.ByCustomReason(Main.player[Main.myPlayer].name + " was slapped too hard."), Main.player[Main.myPlayer].statLife / 2, -Main.player[Main.myPlayer].direction, false, false, -1, false); - SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, Main.player[Main.myPlayer].Center); + player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap").Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); + SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center); } if (CalamityUtils.AnyBossNPCS()) @@ -139,8 +139,8 @@ namespace CalamityMod.NPCs.TownNPCs } else { - Main.player[Main.myPlayer].Hurt(PlayerDeathReason.ByCustomReason(Main.player[Main.myPlayer].name + " was slapped too hard."), Main.player[Main.myPlayer].statLife / 2, -Main.player[Main.myPlayer].direction, false, false, -1, false); ; - SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, Main.player[Main.myPlayer].Center); + player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap").Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); ; + SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center); return "Sorry, I have no moral compass at the moment."; } } @@ -228,16 +228,16 @@ namespace CalamityMod.NPCs.TownNPCs if (witch != -1) dialogue.Add("The abuse " + Main.npc[witch].GivenName + " went through is something I can hardly comprehend. I'd offer her a drink, but I don't think she'd enjoy it."); - if (Main.player[Main.myPlayer].Calamity().chibii) + if (player.Calamity().chibii) dialogue.Add("The hell is that? Looks like something I'd carry around if I was 5 years old."); - if (Main.player[Main.myPlayer].Calamity().aquaticHeart && !Main.player[Main.myPlayer].Calamity().aquaticHeartHide) + if (player.Calamity().aquaticHeart && !player.Calamity().aquaticHeartHide) dialogue.Add("Nice scales... is it hot in here or is it just me?"); - if (Main.player[Main.myPlayer].Calamity().fabsolVodka) + if (player.Calamity().fabsolVodka) dialogue.Add("Do you like my vodka? I created it by mixing fairy dust, crystallized cave sweat and other magical crap."); - if (Main.player[Main.myPlayer].HasItem(ModContent.ItemType())) + if (player.HasItem(ModContent.ItemType())) { dialogue.Add("So... you found my special bottle. Hope you enjoy it, I know I will."); dialogue.Add("Be sure to dismount me once in a while, I get tired. And besides, I can't rip you off-I mean offer you excellent deals you won't find anywhere else if you're riding me 24/7."); @@ -350,7 +350,8 @@ namespace CalamityMod.NPCs.TownNPCs .Register(); } - public override void ModifyActiveShop(string shopName, Item[] items) + // TODO -- This breaks the shop. + /*public override void ModifyActiveShop(string shopName, Item[] items) { for (int i = 0; i < items.Length; i++) { @@ -359,7 +360,7 @@ namespace CalamityMod.NPCs.TownNPCs items[i].shopCustomPrice = Item.buyPrice(gold: 8); } } - } + }*/ // Make this Town NPC teleport to the Queen statue when triggered. public override bool CanGoToStatue(bool toKingStatue) => !toKingStatue; diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 94e4d7b490..a3fafd8b17 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -1565,7 +1565,7 @@ namespace CalamityMod.NPCs.Yharon { moveCloser = true; - string key = "Mods.CalamityMod.BossMessages.FlameText"; + string key = "Mods.CalamityMod.Status.Boss.FlameText"; Color messageColor = Color.Orange; CalamityUtils.DisplayLocalizedText(key, messageColor); @@ -2911,7 +2911,7 @@ namespace CalamityMod.NPCs.Yharon { CalamityUtils.SpawnOre(ModContent.TileType(), 2E-05, 0.75f, 0.9f, 10, 20); - string key = "Mods.CalamityMod.ProgressionMessages.AuricOreText"; + string key = "Mods.CalamityMod.Status.Progression.AuricOreText"; Color messageColor = Color.Gold; CalamityUtils.DisplayLocalizedText(key, messageColor); } diff --git a/Projectiles/Boss/HealOrbProv.cs b/Projectiles/Boss/HealOrbProv.cs index b5642bb97f..9031f5941b 100644 --- a/Projectiles/Boss/HealOrbProv.cs +++ b/Projectiles/Boss/HealOrbProv.cs @@ -42,9 +42,10 @@ namespace CalamityMod.Projectiles.Boss { Main.player[num487].statLife = Main.player[num487].statLifeMax2; } + // TODO -- but why if (Main.player[num487].statLife < 0) { - Main.player[num487].KillMe(PlayerDeathReason.ByCustomReason(Main.player[Main.myPlayer].name + " burst into sinless ash."), 1000.0, 0, false); + Main.player[num487].KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ProvidenceMelt").Format(Main.player[num487].name)), 1000.0, 0, false); } NetMessage.SendData(MessageID.SpiritHeal, -1, -1, null, num487, (float)num492, 0f, 0f, 0, 0, 0); } diff --git a/Projectiles/Pets/ChibiiDoggo.cs b/Projectiles/Pets/ChibiiDoggo.cs index a1e19d29bd..f13a710fba 100644 --- a/Projectiles/Pets/ChibiiDoggo.cs +++ b/Projectiles/Pets/ChibiiDoggo.cs @@ -214,7 +214,7 @@ namespace CalamityMod.Projectiles.Pets } else { - player.Hurt(PlayerDeathReason.ByCustomReason(player.name + " couldn't stand the sharp objects."), 500, 0); + player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ChibiiDoggo").Format(player.name)), 500, 0); } player.RemoveAllIFrames(); } diff --git a/Projectiles/Rogue/CorpusAvertorStealth.cs b/Projectiles/Rogue/CorpusAvertorStealth.cs index 56bc2b2c77..cce0fc74e3 100644 --- a/Projectiles/Rogue/CorpusAvertorStealth.cs +++ b/Projectiles/Rogue/CorpusAvertorStealth.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Rogue if (Main.myPlayer == player.whoAmI) player.HealEffect(-lifeLossAmt, true); if (player.statLife <= 0) - player.KillMe(PlayerDeathReason.ByCustomReason(player.name + " became the blood god's sacrifice."), 1000.0, 0, false); + player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CorpusAvertor").Format(player.name)), 1000.0, 0, false); } else if (Main.LocalPlayer.team == player.team && player.team != 0) { diff --git a/Systems/WorldMiscUpdateSystem.cs b/Systems/WorldMiscUpdateSystem.cs index 309f25ecb2..e439e4eb4f 100644 --- a/Systems/WorldMiscUpdateSystem.cs +++ b/Systems/WorldMiscUpdateSystem.cs @@ -87,7 +87,7 @@ namespace CalamityMod.Systems // Very, very, very rarely display a Lorde joke text if the system clock is set to April Fools Day. if (Main.rand.NextBool(100000000) && DateTime.Now.Month == 4 && DateTime.Now.Day == 1) { - string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.BossMessages.AprilFoolsGFB" : "Mods.CalamityMod.BossMessages.AprilFools"; + string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.Status.Boss.AprilFoolsGFB" : "Mods.CalamityMod.Status.Boss.AprilFools"; Color messageColor = Color.Crimson; CalamityUtils.DisplayLocalizedText(key, messageColor); } diff --git a/Tiles/Astral/AstralBeacon.cs b/Tiles/Astral/AstralBeacon.cs index 6d3eef824d..1a54d29b07 100644 --- a/Tiles/Astral/AstralBeacon.cs +++ b/Tiles/Astral/AstralBeacon.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.Astral if (Main.dayTime) { - CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossMessages.DeusAltarRejectNightText", FailColor); + CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.DeusAltarRejectNightText", FailColor); return false; } diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index db9e725a51..2547f5eb8e 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -194,7 +194,7 @@ namespace CalamityMod.World // If the meteor actually dropped, post the message stating as such. if (meteorDropped) { - string key = "Mods.CalamityMod.ProgressionMessages.AstralText"; + string key = "Mods.CalamityMod.Status.Progression.AstralText"; Color messageColor = Color.Gold; CalamityUtils.DisplayLocalizedText(key, messageColor);