diff --git a/DataStructures/Attunement.cs b/DataStructures/Attunement.cs index 4488f4a01a..b54fcaf615 100644 --- a/DataStructures/Attunement.cs +++ b/DataStructures/Attunement.cs @@ -602,8 +602,8 @@ namespace CalamityMod.DataStructures { id = AttunementID.SuperPogo; name = "Sanguine Fury"; - function_description = "Conjures molten blades in front of you that get larger and stronger the more you hit enemies.\n The blades can also be used to bounce off tiles when in the air"; - function_description_extra = "Releasing the attack button sends the charged blades hurtling forwards like a wheel.\n Attacking again immediately thereafter dashes to the wheel, shredding anything in the way"; + function_description = "Conjures molten blades in front of you that get larger and stronger the more you hit enemies\nThe blades can also be used to bounce off tiles when in the air"; + function_description_extra = "Releasing the attack button sends the charged blades hurtling forwards like a wheel\nAttacking again immediately thereafter dashes to the wheel, shredding anything in the way"; passive_description = "Striking enemies rarely steals a small amount of life"; tooltipColor = new Color(216, 55, 22); tooltipColor2 = new Color(216, 131, 22); @@ -642,7 +642,7 @@ namespace CalamityMod.DataStructures { id = AttunementID.Shockwave; name = "Mercurial Tides"; - function_description = "Hold the attack button to charge a heaven-shattering lunge, release to unleash the devastating blow.\n Shock waves are emitted as the sword charges up"; + function_description = "Hold the attack button to charge a heaven-shattering lunge, release to unleash the devastating blow\nShock waves are emitted as the sword charges up"; function_description_extra = "Striking the earth with the lunge will cause a massive shock wave on impact which raises a flood of monoliths"; passive_description = "Periodically emit shock waves while attacking"; tooltipColor = new Color(132, 109, 233); diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index f0758c5c04..e875a4a13d 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -702,11 +702,11 @@ namespace CalamityMod.Items // Iron if (item.type == ItemID.IronHelmet || item.type == ItemID.AncientIronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves) - AddTooltip("Reduces damage taken by 3%"); + AddTooltip("Increases damage reduction by 3%"); // Lead if (item.type == ItemID.LeadHelmet || item.type == ItemID.LeadChainmail || item.type == ItemID.LeadGreaves) - AddTooltip("Reduces damage taken by 3%"); + AddTooltip("Increases damage reduction by 3%"); // Silver if (item.type == ItemID.SilverHelmet) @@ -728,7 +728,7 @@ namespace CalamityMod.Items if (item.type == ItemID.GoldHelmet || item.type == ItemID.AncientGoldHelmet) AddTooltip("6% increased damage"); if (item.type == ItemID.GoldChainmail) - AddTooltip("Reduces damage taken by 5%"); + AddTooltip("Increases damage reduction by 5%"); if (item.type == ItemID.GoldGreaves) AddTooltip("10% increased movement speed"); diff --git a/Items/VanillaArmorChanges/IronArmorSetChange.cs b/Items/VanillaArmorChanges/IronArmorSetChange.cs index 5a16cb1d9d..3bf3a7a576 100644 --- a/Items/VanillaArmorChanges/IronArmorSetChange.cs +++ b/Items/VanillaArmorChanges/IronArmorSetChange.cs @@ -29,7 +29,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\nReduces damage taken by 6%\n+2 life regen"); + sb.Append("\nIncreases damage reduction by 6%\n+2 life regen"); setBonusText += sb.ToString(); } diff --git a/Items/VanillaArmorChanges/LeadArmorSetChange.cs b/Items/VanillaArmorChanges/LeadArmorSetChange.cs index 03f649fc89..5683e3af9d 100644 --- a/Items/VanillaArmorChanges/LeadArmorSetChange.cs +++ b/Items/VanillaArmorChanges/LeadArmorSetChange.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { StringBuilder sb = new StringBuilder(256); - sb.Append("\nReduces damage taken by 3%\n+1 life regen\nGrants immunity to knockback"); + sb.Append("\nIncreases damage reduction by 3%\n+1 life regen\nGrants immunity to knockback"); setBonusText += sb.ToString(); } diff --git a/Items/Weapons/Magic/Eternity.cs b/Items/Weapons/Magic/Eternity.cs index ec0b58893f..bb6bc6b781 100644 --- a/Items/Weapons/Magic/Eternity.cs +++ b/Items/Weapons/Magic/Eternity.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Magic TooltipLine line = tooltips.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); if (line != null) - line.Text = $"[" + DisoHex + "There's pictures of ponies in the book]"; + line.Text = $"[" + DisoHex + "'There's pictures of ponies in the book']"; } public static string DisoHex => "c/" + ((int)(156 + Main.DiscoR * 99f / 255f)).ToString("X2") diff --git a/Items/Weapons/Melee/ArkoftheCosmos.cs b/Items/Weapons/Melee/ArkoftheCosmos.cs index 1372188e2e..777378ed7a 100644 --- a/Items/Weapons/Melee/ArkoftheCosmos.cs +++ b/Items/Weapons/Melee/ArkoftheCosmos.cs @@ -39,16 +39,16 @@ namespace CalamityMod.Items.Weapons.Melee public static float SwirlBoltAmount = 6f; //The amount of cosmic bolts produced during hte swirl attack public static float SwirlBoltDamageMultiplier = 0.7f; //This is the damage multiplier for ALL THE BOLTS: Aka, said damage multiplier is divided by the amount of bolts in a swirl and the full damage multiplier is gotten if you hit all the bolts - const string ComboTooltip = "Using left click performs a 5-swing combo that ends by throwing the blade\n" + + const string ComboTooltip = "Pressing left click performs a 5-swing combo that ends by throwing the blade\n" + "The thrown blade will follow your cursor\n" + "Releasing left click while the blade is out will cause an exploding snap"; - const string ParryTooltip = "Using right click will snip out the scissor blades in front of you\n" + + const string ParryTooltip = "Pressing right click will snip out the scissor blades in front of you\n" + "Hitting an enemy with it will parry them, granting you brief invulnerability\n" + "You can parry projectiles to make them deal 200 less damage for a short period\n" + "Parrying anything will empower the next 10 swings of the sword"; - const string BlastTooltip = "Using right click while pressing UP with empowered charges will provoke a Big Rip in spacetime and use all charges\n" + + const string BlastTooltip = "Pressing right click while holding UP with empowered charges will provoke a Big Rip in spacetime and use all charges\n" + "If more than 5 charges were used, you can dash across the rip by holding UP"; diff --git a/Items/Weapons/Melee/ArkoftheElements.cs b/Items/Weapons/Melee/ArkoftheElements.cs index ca15b5be7f..3eb9059b0f 100644 --- a/Items/Weapons/Melee/ArkoftheElements.cs +++ b/Items/Weapons/Melee/ArkoftheElements.cs @@ -31,15 +31,15 @@ namespace CalamityMod.Items.Weapons.Melee public static float blastFalloffStrenght = 0.75f; //Value between 0 and 1 that determines how much falloff increases affect the damage : Closer to 0 = damage falls off less intensely, closer to 1 : damage falls off way harder - const string ComboTooltip = "Using left click performs a 5-swing combo that ends by throwing the blade\n" + + const string ComboTooltip = "Pressing left click performs a 5-swing combo that ends by throwing the blade\n" + "Releasing left click while the blade is out will deal extra damage and give 2 charges"; - const string ParryTooltip = "Using right click will snip out the scissor blades in front of you\n" + + const string ParryTooltip = "Pressing right click will snip out the scissor blades in front of you\n" + "Hitting an enemy with it will parry them, granting you brief invulnerability\n" + "You can also parry projectiles to make them deal 200 less damage for a short period\n" + "Parrying will empower the next 10 swings of the sword, letting you use both blades at once"; - const string BlastTooltip = "Using right click while pressing UP with empowered charges will provoke a Big Rip in spacetime and use all charges\n" + + const string BlastTooltip = "Pressing right click while holding UP with empowered charges will provoke a Big Rip in spacetime and use all charges\n" + "If more than 5 charges were used, you can dash across the rip by holding UP"; public override void SetStaticDefaults() diff --git a/Items/Weapons/Melee/BrokenBiomeBlade.cs b/Items/Weapons/Melee/BrokenBiomeBlade.cs index a5798bb410..c19b2ce730 100644 --- a/Items/Weapons/Melee/BrokenBiomeBlade.cs +++ b/Items/Weapons/Melee/BrokenBiomeBlade.cs @@ -82,7 +82,7 @@ namespace CalamityMod.Items.Weapons.Melee //Default stuff if (effectDescTooltip != null) { - effectDescTooltip.Text = "Does nothing..yet"; + effectDescTooltip.Text = "Does nothing... yet"; effectDescTooltip.OverrideColor = new Color(163, 163, 163); } diff --git a/Items/Weapons/Melee/FracturedArk.cs b/Items/Weapons/Melee/FracturedArk.cs index 9ad93b084e..ececb3c785 100644 --- a/Items/Weapons/Melee/FracturedArk.cs +++ b/Items/Weapons/Melee/FracturedArk.cs @@ -23,10 +23,10 @@ namespace CalamityMod.Items.Weapons.Melee public static float beamDamageMultiplier = 0.8f; //Damage multiplier for the charged shots (remember it applies ontop of the charge damage multiplied - const string ParryTooltip = "Using RMB will extend the Ark out in front of you\n" + + const string ParryTooltip = "Pressing right click will extend the Ark out in front of you\n" + "Hitting an enemy with it will parry them, granting you a small window of invulnerability\n" + "You can also parry projectiles and temporarily make them deal 100 less damage\n" + - "Parrying will empower the next 10 swings of the sword, boosting their damage and letting them throw projectiles out"; + "Parrying empowers the next 10 swings of the sword, boosting damage and letting them throw projectiles"; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Melee/OmegaBiomeBlade.cs b/Items/Weapons/Melee/OmegaBiomeBlade.cs index af92390ada..c30f1ec4ae 100644 --- a/Items/Weapons/Melee/OmegaBiomeBlade.cs +++ b/Items/Weapons/Melee/OmegaBiomeBlade.cs @@ -126,7 +126,7 @@ namespace CalamityMod.Items.Weapons.Melee //Default stuff if (effectDescTooltip != null) { - effectDescTooltip.Text = "Does nothing..yet\nIt seems that upgrading the blade expanded the scope of the previous attunements"; + effectDescTooltip.Text = "Does nothing... yet\nIt seems that upgrading the blade expanded the scope of the previous attunements"; effectDescTooltip.OverrideColor = new Color(163, 163, 163); } diff --git a/Items/Weapons/Melee/TrueArkoftheAncients.cs b/Items/Weapons/Melee/TrueArkoftheAncients.cs index 77353f936f..d37207f3e7 100644 --- a/Items/Weapons/Melee/TrueArkoftheAncients.cs +++ b/Items/Weapons/Melee/TrueArkoftheAncients.cs @@ -26,11 +26,11 @@ namespace CalamityMod.Items.Weapons.Melee public static float blastFalloffSpeed = 0.1f; //How much the blast damage falls off as you hit more and more targets public static float blastFalloffStrenght = 0.75f; //Value between 0 and 1 that determines how much falloff increases affect the damage : Closer to 0 = damage falls off less intensely, closer to 1 : damage falls off way harder - const string ParryTooltip = "Using right click will extend the Ark out in front of you." + + const string ParryTooltip = "Pressing right click will extend the Ark out in front of you\n" + "Hitting an enemy with it will parry them, granting you brief invulnerability\n" + "You can also parry projectiles to make them deal 160 less damage for a short period\n" + "Parrying empowers the next 10 swings of the sword, letting them throw stronger projectiles\n" + - "Using right click and pressing UP will release all empowered charges in a powerful burst of energy"; + "Pressing right click while holding UP will release all empowered charges in a powerful burst of energy"; public override void SetStaticDefaults() { diff --git a/Items/Weapons/Melee/TrueBiomeBlade.cs b/Items/Weapons/Melee/TrueBiomeBlade.cs index 1d2353fc42..fd45add3fb 100644 --- a/Items/Weapons/Melee/TrueBiomeBlade.cs +++ b/Items/Weapons/Melee/TrueBiomeBlade.cs @@ -107,7 +107,7 @@ namespace CalamityMod.Items.Weapons.Melee if (effectDescTooltip != null) { //Default stuff - effectDescTooltip.Text = "Does nothing..yet\nRepairing the blade seems to have improved its attuning capacities"; + effectDescTooltip.Text = "Does nothing... yet\nRepairing the blade seems to have improved its attuning capacities"; effectDescTooltip.OverrideColor = new Color(163, 163, 163); } diff --git a/Localization/en-US/Items/Weapons/RangedWeapons.hjson b/Localization/en-US/Items/Weapons/RangedWeapons.hjson index fe4c4ef879..216a86ede1 100644 --- a/Localization/en-US/Items/Weapons/RangedWeapons.hjson +++ b/Localization/en-US/Items/Weapons/RangedWeapons.hjson @@ -689,7 +689,7 @@ Mods : { DisplayName: Midas Prime Tooltip: ''' - Press to coss a Gold Coin or Silver Coin in the air + Press to toss a Gold Coin or Silver Coin in the air Striking a coin with a bullet causes it to ricochet into the nearest enemy Up to 4 coins can be tossed simultaneously, and shots will ricochet off multiple coins if possible Ricocheted bullets always critically strike and do bonus damage based on the coins used diff --git a/Localization/en-US/UI.hjson b/Localization/en-US/UI.hjson index 1b8c8535ad..7d47d06c7a 100644 --- a/Localization/en-US/UI.hjson +++ b/Localization/en-US/UI.hjson @@ -41,6 +41,41 @@ Mods: { Lecherous.DisplayName: Lecherous Lecherous.Description: Spawns a resilient brimstone monster that stays between you and your mouse that interferes with your homing weapons. It releases a bunch of hearts on death. Disenchant: Disenchant + + /* Worldgen Tasks */ + EvilIslandCorrupt: Adding a putrid floating island + EvilIslandCrimson: Adding a grotesque floating island + BetterJungleTemple: Building a bigger jungle temple + JungleTempleAltar: Placing the Lihzahrd altar + GiantBeehive: Building a giant beehive + MechanicShed: Placing mechanic shed + VernalPass: Blessing a flourishing jungle grove + SunkenSea: Partially flooding an overblown desert + GemAdjustment: Sensibly shuffling gem depth + DungeonArchive: Entombing occult literature + SulphurSea: Polluting one of the oceans + BrimstoneCrags: Incinerating Azafure + HiddenShrines: Hiding forbidden shrines + CrimsonShrine: Slaying a vengeful god + CorruptShrine: Rotting a god's grave + DesertShrine: Burrowing an artifact from Osiris + GraniteShrine: Crystallizing a deep blue geode + IceShrine: Hiding a beast tamer's igloo + MarbleShrine: Recovering a piece of the Parthenon + MushroomShrine: Planting a mushroom rich of hyphae + SurfaceShrine: Assembling a shinobi hideout + Aerialite: Hiding wyvern's gold in plain sight + DraedonLabs: Rust and Dust + HellLab: Forging with the fires of hell + SunkenLab: Studying marine biology + IceLab: Prototyping quantum supercooling + PlagueLab: Developing abhorrent bioweaponry + CavernLab: Strip mining for minerals + DraedonWorkshop: Abandoned engineering projects + DraedonFacility: Other minor research projects + Abyss: Disposing of Silva's remains + SulphurSea2: Irradiating one of the oceans + Roxcalibur: I wanna rock } } } \ No newline at end of file diff --git a/Systems/WorldgenManagementSystem.cs b/Systems/WorldgenManagementSystem.cs index c5ee8f71de..7d78758693 100644 --- a/Systems/WorldgenManagementSystem.cs +++ b/Systems/WorldgenManagementSystem.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Systems { tasks.Insert(islandIndex + 2, new PassLegacy("Evil Island", (progress, config) => { - progress.Message = WorldGen.crimson ? "Adding a putrid floating island" : "Adding a grotesque floating island"; + progress.Message = Language.GetOrRegister(WorldGen.crimson ? "Mods.Calamity.UI.EvilIslandCrimson" : "Mods.Calamity.UI.EvilIslandCorrupt"); WorldEvilIsland.PlaceEvilIsland(); })); } @@ -51,7 +51,7 @@ namespace CalamityMod.Systems int JungleTempleIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Jungle Temple")); tasks[JungleTempleIndex] = new PassLegacy("Jungle Temple", (progress, config) => { - progress.Message = "Building a bigger jungle temple"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.BetterJungleTemple").Value; CustomTemple.NewJungleTemple(); }); @@ -59,7 +59,7 @@ namespace CalamityMod.Systems int JungleTempleIndex2 = tasks.FindIndex(genpass => genpass.Name.Equals("Temple")); tasks[JungleTempleIndex2] = new PassLegacy("Temple", (progress, config) => { - progress.Message = "Building a better jungle temple"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.BetterJungleTemple").Value; Main.tileSolid[162] = false; Main.tileSolid[226] = true; CustomTemple.NewJungleTemplePart2(); @@ -70,7 +70,7 @@ namespace CalamityMod.Systems int LihzahrdAltarIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Lihzahrd Altars")); tasks[LihzahrdAltarIndex] = new PassLegacy("Lihzahrd Altars", (progress, config) => { - progress.Message = "Placing the Lihzahrd altar"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.JungleTempleAltar").Value; CustomTemple.NewJungleTempleLihzahrdAltar(); }); @@ -80,7 +80,7 @@ namespace CalamityMod.Systems { tasks.Insert(giantHiveIndex + 1, new PassLegacy("Giant Hive", (progress, config) => { - progress.Message = "Building a giant beehive"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.GiantBeehive").Value; int attempts = 0; while (attempts < 1000) { @@ -98,7 +98,7 @@ namespace CalamityMod.Systems { tasks.Insert(mechanicIndex + 1, new PassLegacy("Mechanic Shed", (progress, config) => { - progress.Message = "Placing mechanic shed"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.MechanicShed").Value; MechanicShed.PlaceMechanicShed(GenVars.structures); })); } @@ -109,7 +109,7 @@ namespace CalamityMod.Systems { tasks.Insert(vernalIndex + 1, new PassLegacy("Vernal Pass", (progress, config) => { - progress.Message = "Blessing a flourishing jungle grove"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.VernalPass").Value; VernalPass.PlaceVernalPass(GenVars.structures); })); } @@ -120,7 +120,7 @@ namespace CalamityMod.Systems { tasks.Insert(SunkenSeaIndex + 1, new PassLegacy("Sunken Sea", (progress, config) => { - progress.Message = "Partially flooding an overblown desert"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.SunkenSea").Value; int sunkenSeaX = GenVars.UndergroundDesertLocation.Left; int sunkenSeaY = Main.maxTilesY - 400; @@ -137,14 +137,16 @@ namespace CalamityMod.Systems int currentFinalIndex = FinalIndex; tasks.Insert(++currentFinalIndex, new PassLegacy("Gem Depth Adjustment", (progress, config) => { - progress.Message = "Sensibly shuffling gem depth"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.GemAdjustment").Value; + MiscWorldgenRoutines.SmartGemGen(); })); //Forsaken Archive structure in the Dungeon tasks.Insert(++currentFinalIndex, new PassLegacy("Forsaken Archive", (progress, config) => { - progress.Message = "Entombing occult literature"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.DungeonArchive").Value; + DungeonArchive.PlaceArchive(); })); @@ -157,7 +159,8 @@ namespace CalamityMod.Systems { tasks.Insert(SulphurIndex + 1, new PassLegacy("Sulphur Sea", (progress, config) => { - progress.Message = "Polluting one of the oceans"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.SulphurSea").Value; + SulphurousSea.PlaceSulphurSea(); })); } @@ -165,44 +168,44 @@ namespace CalamityMod.Systems //Brimstone Crags tasks.Insert(++currentFinalIndex, new PassLegacy("Brimstone Crag", (progress, config) => { - progress.Message = "Incinerating Azafure"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.BrimstoneCrags").Value; BrimstoneCrag.GenAllCragsStuff(); })); //Biome shrines tasks.Insert(++currentFinalIndex, new PassLegacy("Special Shrines", (progress, config) => { - progress.Message = "Hiding forbidden shrines"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.HiddenShrines").Value; //Cuts down on worldgen time to process the right one. //TODO -- Possible Both Evils compat whenever if (WorldGen.crimson) { - progress.Message = "Slaying a vengeful god"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.CrimsonShrine").Value; UndergroundShrines.PlaceCrimsonShrine(GenVars.structures); } else { - progress.Message = "Rotting a god's grave"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.CorruptShrine").Value; UndergroundShrines.PlaceCorruptionShrine(GenVars.structures); } - progress.Message = "Burrowing an artifact from Osiris"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.DesertShrine").Value; UndergroundShrines.PlaceDesertShrine(GenVars.structures); - progress.Message = "Crystallizing a deep blue geode"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.GraniteShrine").Value; UndergroundShrines.PlaceGraniteShrine(GenVars.structures); - progress.Message = "Hiding a beast tamer's igloo"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.IceShrine").Value; UndergroundShrines.PlaceIceShrine(GenVars.structures); - progress.Message = "Recovering a piece of the Parthenon"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.MarbleShrine").Value; UndergroundShrines.PlaceMarbleShrine(GenVars.structures); - progress.Message = "Planting a mushroom rich of hyphae"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.MushroomShrine").Value; UndergroundShrines.PlaceMushroomShrine(GenVars.structures); - progress.Message = "Assembling a shinobi hideout"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.SurfaceShrine").Value; UndergroundShrines.PlaceSurfaceShrine(GenVars.structures); })); @@ -210,14 +213,14 @@ namespace CalamityMod.Systems //this MUST generate after the evil island, otherwise the ores keep getting painted from the evil island gen tasks.Insert(++currentFinalIndex, new PassLegacy("Aerialite", (progress, config) => { - progress.Message = "Hiding wyvern's gold in plain sight"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.Aerialite").Value; AerialiteOreGen.Generate(false); })); //Draedon Labs tasks.Insert(++currentFinalIndex, new PassLegacy("Draedon Structures", (progress, config) => { - progress.Message = "Rust and Dust"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.DraedonLabs").Value; List workshopPositions = new List(); // Small: 4, Normal: 7, Large: 9 @@ -228,33 +231,33 @@ namespace CalamityMod.Systems // Tries to scale up reasonably for XL worlds int labCount = Main.maxTilesX / 1500; - progress.Message = "Forging with the fires of hell"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.HellLab").Value; DraedonStructures.PlaceHellLab(out Point hellPlacementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(hellPlacementPosition); - progress.Message = "Studying marine biology"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.SunkenLab").Value; DraedonStructures.PlaceSunkenSeaLab(out Point sunkenSeaPlacementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(sunkenSeaPlacementPosition); - progress.Message = "Prototyping quantum supercooling"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.IceLab").Value; DraedonStructures.PlaceIceLab(out Point icePlacementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(icePlacementPosition); - progress.Message = "Developing abhorrent bioweaponry"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.PlagueLab").Value; DraedonStructures.PlacePlagueLab(out Point plaguePlacementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(plaguePlacementPosition); - progress.Message = "Strip mining for minerals"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.CavernLab").Value; DraedonStructures.PlaceCavernLab(out Point cavernPlacementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(cavernPlacementPosition); - progress.Message = "Abandoned engineering projects"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.DraedonWorkshop").Value; for (int i = 0; i < workshopCount; i++) { DraedonStructures.PlaceWorkshop(out Point placementPosition, workshopPositions, GenVars.structures); workshopPositions.Add(placementPosition); } - progress.Message = "Other minor research projects"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.DraedonFacility").Value; for (int i = 0; i < labCount; i++) { DraedonStructures.PlaceResearchFacility(out Point placementPosition, workshopPositions, GenVars.structures); @@ -265,21 +268,21 @@ namespace CalamityMod.Systems //Abyss tasks.Insert(++currentFinalIndex, new PassLegacy("Abyss", (progress, config) => { - progress.Message = "Disposing of Silva's remains"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.Abyss").Value; Abyss.PlaceAbyss(); })); //Sulphurous Sea (Part 2, after Abyss) tasks.Insert(++currentFinalIndex, new PassLegacy("Sulphur Sea 2", (progress, config) => { - progress.Message = "Irradiating one of the oceans"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.SulphurSea2").Value; SulphurousSea.SulphurSeaGenerationAfterAbyss(); })); //Roxcalibur tasks.Insert(++currentFinalIndex, new PassLegacy("Roxcalibur", (progress, config) => { - progress.Message = "I wanna rock"; + progress.Message = Language.GetOrRegister("Mods.Calamity.UI.Roxcalibur").Value; MiscWorldgenRoutines.PlaceRoxShrine(); })); } diff --git a/Tiles/Crags/BrimstoneSlag.png b/Tiles/Crags/BrimstoneSlag.png index b5f042995d..b107715443 100644 Binary files a/Tiles/Crags/BrimstoneSlag.png and b/Tiles/Crags/BrimstoneSlag.png differ diff --git a/Tiles/Crags/Tree/SpineTree.cs b/Tiles/Crags/Tree/SpineTree.cs index c987fa27ae..ae316bf2fe 100644 --- a/Tiles/Crags/Tree/SpineTree.cs +++ b/Tiles/Crags/Tree/SpineTree.cs @@ -86,51 +86,23 @@ namespace CalamityMod.Tiles.Crags.Tree } } - if (height < 4 || height < minSize) + if (height < minSize) { return false; } - //this places the base, probably a bit weird looking here but it works - //problem is messing around with this completely broke the hell out of the tree so i refuse to modify it for now - //if someone else by some miracle can figure out how to change it, please let me know :) - bool[] extraPlaces = new bool[5]; - for (int k = -2; k <= 2; k++) + //make sure the block is valid for the tree to place on + if ((SolidTopTile(i, j + 1) || SolidTile(i, j + 1)) && !Framing.GetTileSafely(i, j).HasTile) { - extraPlaces[k + 2] = false; - - if ((SolidTopTile(i + k, j + 1) || SolidTile(i + k, j + 1)) && !Framing.GetTileSafely(i + k, j).HasTile) - { - extraPlaces[k + 2] = true; - } + WorldGen.PlaceTile(i, j, ModContent.TileType(), true); + Framing.GetTileSafely(i, j).TileFrameY = (short)(WorldGen.genRand.Next(3) * 18); } - - if (!extraPlaces[1]) extraPlaces[0] = false; - if (!extraPlaces[3]) extraPlaces[4] = false; - - if (!extraPlaces[2]) + //otherwise dont allow the tree to grow + else { return false; } - extraPlaces = new bool[5] { false, false, true, false, false }; - - //place the actual base - for (int k = -2; k <= 2; k++) - { - if (extraPlaces[k + 2]) - { - WorldGen.PlaceTile(i + k, j, ModContent.TileType(), true); - - Framing.GetTileSafely(i + k, j).TileFrameX = 0; - Framing.GetTileSafely(i, j - k).TileFrameY = (short)(Main.rand.Next(3) * 18); - } - else - { - continue; - } - } - int branchSegmentDelay = 0; for (int k = 1; k < height; k++)