From 970289e7ecf1eb8e61de0db30261ebe82570c595 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 16 Dec 2025 19:11:53 -0500 Subject: [PATCH] Complete eradication of the Floral Paradise --- BiomeManagers/FloralParadiseBiome.cs | 19 - CalPlayer/CalamityPlayer.cs | 4 +- CalPlayer/CalamityPlayerMiscEffects.cs | 28 - CalPlayer/PlayerEnvironmentEffects.cs | 37 -- ILEditing/MechanicILChanges.cs | 37 +- .../FloralParadise/AlgalSlateItem.cs | 17 - .../FloralParadise/AlgalSlateItem.png | Bin 270 -> 0 bytes Items/Placeables/FloralParadise/PeatItem.cs | 17 - Items/Placeables/FloralParadise/PeatItem.png | Bin 320 -> 0 bytes .../Placeables/FloralParadise/PeatMossItem.cs | 17 - .../FloralParadise/PeatMossItem.png | Bin 380 -> 0 bytes .../FloralParadise/ScintillatingBloom.cs | 17 - .../FloralParadise/ScintillatingBloom.png | Bin 560 -> 0 bytes Systems/Tile/BiomeTileCounterSystem.cs | 4 - Systems/World/WorldgenManagementSystem.cs | 9 - .../{FloralParadise => }/BloodOrangePlant.cs | 2 +- .../{FloralParadise => }/BloodOrangePlant.png | Bin Tiles/FloralParadise/AlgalSlate.cs | 42 -- Tiles/FloralParadise/AlgalSlate.png | Bin 2139 -> 0 bytes Tiles/FloralParadise/LargeLogPiles.cs | 50 -- Tiles/FloralParadise/LargeLogPiles.png | Bin 826 -> 0 bytes Tiles/FloralParadise/LargeMossPiles.cs | 49 -- Tiles/FloralParadise/LargeMossPiles.png | Bin 1025 -> 0 bytes .../FloralParadise/LargeSubterraneanGrass.cs | 49 -- .../FloralParadise/LargeSubterraneanGrass.png | Bin 1315 -> 0 bytes Tiles/FloralParadise/LargeWallFungi.cs | 44 -- Tiles/FloralParadise/LargeWallFungi.png | Bin 516 -> 0 bytes Tiles/FloralParadise/LargeWallFungiLeft.cs | 44 -- Tiles/FloralParadise/LargeWallFungiLeft.png | Bin 526 -> 0 bytes Tiles/FloralParadise/LushVines.cs | 95 ---- Tiles/FloralParadise/LushVines.png | Bin 638 -> 0 bytes Tiles/FloralParadise/MediumFloralPlants.cs | 56 -- Tiles/FloralParadise/MediumFloralPlants.png | Bin 5320 -> 0 bytes Tiles/FloralParadise/MediumLargeMossPiles.cs | 50 -- Tiles/FloralParadise/MediumLargeMossPiles.png | Bin 2784 -> 0 bytes Tiles/FloralParadise/MediumMossPiles.cs | 38 -- Tiles/FloralParadise/MediumMossPiles.png | Bin 1603 -> 0 bytes Tiles/FloralParadise/Peat.cs | 40 -- Tiles/FloralParadise/Peat.png | Bin 2601 -> 0 bytes Tiles/FloralParadise/PeatMoss.cs | 116 ---- Tiles/FloralParadise/PeatMoss.png | Bin 11741 -> 0 bytes Tiles/FloralParadise/PerennialTree.cs | 117 ---- Tiles/FloralParadise/PerennialTree.png | Bin 198 -> 0 bytes Tiles/FloralParadise/PerennialTreeVines.png | Bin 607 -> 0 bytes Tiles/FloralParadise/PinkFlower.cs | 92 --- Tiles/FloralParadise/PinkFlower.png | Bin 411 -> 0 bytes Tiles/FloralParadise/PinkFlowerBig.cs | 103 ---- Tiles/FloralParadise/PinkFlowerBig.png | Bin 620 -> 0 bytes Tiles/FloralParadise/PinkFlowerBigStamen.png | Bin 349 -> 0 bytes Tiles/FloralParadise/PinkFlowerStamen.png | Bin 289 -> 0 bytes Tiles/FloralParadise/SmallFloralPlants.cs | 45 -- Tiles/FloralParadise/SmallFloralPlants.png | Bin 563 -> 0 bytes Tiles/FloralParadise/SmallMossPiles.cs | 49 -- Tiles/FloralParadise/SmallMossPiles.png | Bin 885 -> 0 bytes Tiles/FloralParadise/SmallVines.cs | 95 ---- Tiles/FloralParadise/SmallVines.png | Bin 548 -> 0 bytes Tiles/FloralParadise/SmallWallFungi.cs | 43 -- Tiles/FloralParadise/SmallWallFungi.png | Bin 619 -> 0 bytes Tiles/FloralParadise/SmallWallFungiLeft.cs | 43 -- Tiles/FloralParadise/SmallWallFungiLeft.png | Bin 296 -> 0 bytes Tiles/FloralParadise/TallFloralPlants.cs | 55 -- Tiles/FloralParadise/TallFloralPlants.png | Bin 3989 -> 0 bytes Tiles/FloralParadise/VineLoops.cs | 39 -- Tiles/FloralParadise/VineLoops.png | Bin 1980 -> 0 bytes Tiles/FloralParadise/WallLeaves.cs | 36 -- Tiles/FloralParadise/WallLeaves.png | Bin 1086 -> 0 bytes Tiles/FloralParadise/WallLeavesLeft.cs | 36 -- Tiles/FloralParadise/WallLeavesLeft.png | Bin 410 -> 0 bytes Tiles/FloralParadise/WaterfallCreator.cs | 42 -- Tiles/FloralParadise/WaterfallCreator.png | Bin 182 -> 0 bytes Tiles/Ores/PerennialOre.cs | 1 - Utilities/PlayerUtils.cs | 2 - Utilities/TileUtils.cs | 12 - Waterfalls/WaterfallRenderer.cs | 105 ---- World/Minibiomes/FloralParadiseMinibiome.cs | 535 ------------------ World/Minibiomes/FloralParadiseTree.cs | 138 ----- 76 files changed, 4 insertions(+), 2465 deletions(-) delete mode 100644 BiomeManagers/FloralParadiseBiome.cs delete mode 100644 CalPlayer/PlayerEnvironmentEffects.cs delete mode 100644 Items/Placeables/FloralParadise/AlgalSlateItem.cs delete mode 100644 Items/Placeables/FloralParadise/AlgalSlateItem.png delete mode 100644 Items/Placeables/FloralParadise/PeatItem.cs delete mode 100644 Items/Placeables/FloralParadise/PeatItem.png delete mode 100644 Items/Placeables/FloralParadise/PeatMossItem.cs delete mode 100644 Items/Placeables/FloralParadise/PeatMossItem.png delete mode 100644 Items/Placeables/FloralParadise/ScintillatingBloom.cs delete mode 100644 Items/Placeables/FloralParadise/ScintillatingBloom.png rename Tiles/{FloralParadise => }/BloodOrangePlant.cs (96%) rename Tiles/{FloralParadise => }/BloodOrangePlant.png (100%) delete mode 100644 Tiles/FloralParadise/AlgalSlate.cs delete mode 100644 Tiles/FloralParadise/AlgalSlate.png delete mode 100644 Tiles/FloralParadise/LargeLogPiles.cs delete mode 100644 Tiles/FloralParadise/LargeLogPiles.png delete mode 100644 Tiles/FloralParadise/LargeMossPiles.cs delete mode 100644 Tiles/FloralParadise/LargeMossPiles.png delete mode 100644 Tiles/FloralParadise/LargeSubterraneanGrass.cs delete mode 100644 Tiles/FloralParadise/LargeSubterraneanGrass.png delete mode 100644 Tiles/FloralParadise/LargeWallFungi.cs delete mode 100644 Tiles/FloralParadise/LargeWallFungi.png delete mode 100644 Tiles/FloralParadise/LargeWallFungiLeft.cs delete mode 100644 Tiles/FloralParadise/LargeWallFungiLeft.png delete mode 100644 Tiles/FloralParadise/LushVines.cs delete mode 100644 Tiles/FloralParadise/LushVines.png delete mode 100644 Tiles/FloralParadise/MediumFloralPlants.cs delete mode 100644 Tiles/FloralParadise/MediumFloralPlants.png delete mode 100644 Tiles/FloralParadise/MediumLargeMossPiles.cs delete mode 100644 Tiles/FloralParadise/MediumLargeMossPiles.png delete mode 100644 Tiles/FloralParadise/MediumMossPiles.cs delete mode 100644 Tiles/FloralParadise/MediumMossPiles.png delete mode 100644 Tiles/FloralParadise/Peat.cs delete mode 100644 Tiles/FloralParadise/Peat.png delete mode 100644 Tiles/FloralParadise/PeatMoss.cs delete mode 100644 Tiles/FloralParadise/PeatMoss.png delete mode 100644 Tiles/FloralParadise/PerennialTree.cs delete mode 100644 Tiles/FloralParadise/PerennialTree.png delete mode 100644 Tiles/FloralParadise/PerennialTreeVines.png delete mode 100644 Tiles/FloralParadise/PinkFlower.cs delete mode 100644 Tiles/FloralParadise/PinkFlower.png delete mode 100644 Tiles/FloralParadise/PinkFlowerBig.cs delete mode 100644 Tiles/FloralParadise/PinkFlowerBig.png delete mode 100644 Tiles/FloralParadise/PinkFlowerBigStamen.png delete mode 100644 Tiles/FloralParadise/PinkFlowerStamen.png delete mode 100644 Tiles/FloralParadise/SmallFloralPlants.cs delete mode 100644 Tiles/FloralParadise/SmallFloralPlants.png delete mode 100644 Tiles/FloralParadise/SmallMossPiles.cs delete mode 100644 Tiles/FloralParadise/SmallMossPiles.png delete mode 100644 Tiles/FloralParadise/SmallVines.cs delete mode 100644 Tiles/FloralParadise/SmallVines.png delete mode 100644 Tiles/FloralParadise/SmallWallFungi.cs delete mode 100644 Tiles/FloralParadise/SmallWallFungi.png delete mode 100644 Tiles/FloralParadise/SmallWallFungiLeft.cs delete mode 100644 Tiles/FloralParadise/SmallWallFungiLeft.png delete mode 100644 Tiles/FloralParadise/TallFloralPlants.cs delete mode 100644 Tiles/FloralParadise/TallFloralPlants.png delete mode 100644 Tiles/FloralParadise/VineLoops.cs delete mode 100644 Tiles/FloralParadise/VineLoops.png delete mode 100644 Tiles/FloralParadise/WallLeaves.cs delete mode 100644 Tiles/FloralParadise/WallLeaves.png delete mode 100644 Tiles/FloralParadise/WallLeavesLeft.cs delete mode 100644 Tiles/FloralParadise/WallLeavesLeft.png delete mode 100644 Tiles/FloralParadise/WaterfallCreator.cs delete mode 100644 Tiles/FloralParadise/WaterfallCreator.png delete mode 100644 Waterfalls/WaterfallRenderer.cs delete mode 100644 World/Minibiomes/FloralParadiseMinibiome.cs delete mode 100644 World/Minibiomes/FloralParadiseTree.cs diff --git a/BiomeManagers/FloralParadiseBiome.cs b/BiomeManagers/FloralParadiseBiome.cs deleted file mode 100644 index bfe9d45095..0000000000 --- a/BiomeManagers/FloralParadiseBiome.cs +++ /dev/null @@ -1,19 +0,0 @@ -using CalamityMod.Systems; -using CalamityMod.Waters; -using Terraria; -using Terraria.ModLoader; - -namespace CalamityMod.BiomeManagers -{ - public class FloralParadiseBiome : ModBiome - { - public override ModWaterStyle WaterStyle => FloralParadiseWater.Instance; - public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find("CalamityMod/FloralParadiseBGStyle"); - public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - - public override bool IsBiomeActive(Player player) - { - return BiomeTileCounterSystem.FloralParadiseTiles >= 300; - } - } -} diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 8258fe08dd..625f1d6bd4 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1574,13 +1574,11 @@ namespace CalamityMod.CalPlayer public bool ZoneAbyssLayer3 => Player.InModBiome(); public bool ZoneAbyssLayer4 => Player.InModBiome(); - public bool ZoneFloralParadise => Player.InModBiome(); - public bool ZoneCalamity => Player.InModBiome(); public bool ZoneAstral => Player.InModBiome() && !ZoneAbyss; - public bool InAnyCalamityBiome => ZoneAbyss || ZoneCalamity || ZoneFloralParadise || ZoneSulphur || ZoneSunkenSea || ZoneAstral; + public bool InAnyCalamityBiome => ZoneAbyss || ZoneCalamity || ZoneSulphur || ZoneSunkenSea || ZoneAstral; public bool abyssDeath = false; public int abyssBreathCD; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index e12c3ca848..5229cab18d 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -142,9 +142,6 @@ namespace CalamityMod.CalPlayer // Check if schematics are present on the mouse, for the sake of registering their recipes. CheckIfMouseItemIsSchematic(); - // Do environmental effects. - DoEnvironmentalEffects(); - // Handle Androomba's Right Click function AndroombaRightClick(); @@ -2997,31 +2994,6 @@ namespace CalamityMod.CalPlayer } #endregion - #region Biome Effects - public void DrawPollenInFloralParadise() - { - if (!ZoneFloralParadise || !Main.rand.NextBool(7) || Main.dedServ) - return; - - for (int i = 0; i < 15; i++) - { - Vector2 dustSpawnPosition = Player.Center + Main.rand.NextVector2Square(-360f, 360f); - dustSpawnPosition.Y += 200f; - Tile tile = CalamityUtils.ParanoidTileRetrieval((int)(dustSpawnPosition.X / 16f), (int)(dustSpawnPosition.Y / 16f)); - if (WorldGen.SolidTile(tile) || tile.LiquidAmount > 0) - continue; - - Dust pollen = Dust.NewDustPerfect(dustSpawnPosition, DustID.AncientLight); - pollen.velocity = Main.rand.NextVector2Circular(0.4f, 0.4f); - pollen.scale = Main.rand.NextFloat(0.8f, 1f); - pollen.fadeIn = 2f; - pollen.color = Color.YellowGreen; - pollen.noGravity = true; - break; - } - } - #endregion Biome Effects - #region Abyss Effects private void AbyssEffects() { diff --git a/CalPlayer/PlayerEnvironmentEffects.cs b/CalPlayer/PlayerEnvironmentEffects.cs deleted file mode 100644 index 8dc7eee830..0000000000 --- a/CalPlayer/PlayerEnvironmentEffects.cs +++ /dev/null @@ -1,37 +0,0 @@ -using CalamityMod.Projectiles.Environment; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ModLoader; - -namespace CalamityMod.CalPlayer -{ - public partial class CalamityPlayer : ModPlayer - { - public void DoEnvironmentalEffects() - { - CreateLilyglowInFloralParadise(); - } - - public void CreateLilyglowInFloralParadise() - { - // Don't do anything if the player is not in the floral paradise of if this code is called by anyone other than the player. - if (!ZoneFloralParadise || Main.myPlayer != Player.whoAmI) - return; - - if (!Main.rand.NextBool(12)) - return; - - for (int tries = 0; tries < 50; tries++) - { - Vector2 potentialSpawnPosition = Player.Center + new Vector2(Main.rand.NextFloat(-1000f, 1000f), Main.rand.NextFloat(-300f, 300f)); - if (Collision.SolidCollision(potentialSpawnPosition, 1, 1)) - continue; - - Vector2 spawnVelocity = -Vector2.UnitY.RotatedByRandom(0.82f) * Main.rand.NextFloat(0.5f, 1.35f); - Projectile.NewProjectile(new EntitySource_WorldEvent(), potentialSpawnPosition, spawnVelocity, ModContent.ProjectileType(), 0, 0f, Player.whoAmI); - break; - } - } - } -} diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 0afb4a96a3..324837ce32 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -29,7 +29,6 @@ using CalamityMod.Tiles; using CalamityMod.Utilities.Daybreak; using CalamityMod.Walls; using CalamityMod.Walls.UnsafeWalls; -using CalamityMod.Waterfalls; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Mono.Cecil.Cil; @@ -795,22 +794,12 @@ namespace CalamityMod.ILEditing #region Custom DoDraw Changes private static void CustomDoDrawChanges(ILContext il) { - // This IL edit accomplishes two things: - // 1. Calls a helper function for drawing the fog in the Floral Paradise. - // 2. Allows for drawing additive blend projectiles using IAdditiveDrawer. + // Allows for drawing additive blend projectiles using IAdditiveDrawer. ILCursor cursor = new ILCursor(il); - // First, Floral Paradise fog. + // Move before the place we want to inject code. if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchCallOrCallvirt
("DrawInfernoRings"))) return; - - cursor.EmitDelegate(() => - { - if (!Main.dedServ && BiomeTileCounterSystem.FloralParadiseTiles > 0) - DrawFog(Utils.GetLerpValue(0f, 250f, BiomeTileCounterSystem.FloralParadiseTiles, true)); - }); - - // Then, additive drawing. if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall("Draw"))) return; @@ -835,28 +824,6 @@ namespace CalamityMod.ILEditing Main.spriteBatch.SetBlendState(BlendState.AlphaBlend); }); } - - private static void DrawFog(float intensity) - { - Main.spriteBatch.EnterShaderRegion(); - WaterfallRenderer.DrawWaterfalls(); - - Texture2D fogTexture = ModContent.Request("Terraria/Images/Misc/Perlin").Value; - Vector2 scale = new Vector2(Main.screenWidth, Main.screenHeight) / fogTexture.Size(); - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix); - GameShaders.Misc["CalamityMod:Fog"].UseOpacity(intensity * 0.74f); - GameShaders.Misc["CalamityMod:Fog"].UseColor(Color.Lerp(Color.Lime, Color.Black, 0.85f)); - GameShaders.Misc["CalamityMod:Fog"].UseSaturation(1.67f); - GameShaders.Misc["CalamityMod:Fog"].Shader.Parameters["fogMovementSpeed"].SetValue(1.75f); - GameShaders.Misc["CalamityMod:Fog"].Apply(); - - Main.spriteBatch.Draw(fogTexture, Vector2.Zero, null, Color.White, 0f, Vector2.Zero, scale, SpriteEffects.None, 0f); - - Main.spriteBatch.End(); - Main.spriteBatch.Begin(); - } #endregion #region General Particle Rendering diff --git a/Items/Placeables/FloralParadise/AlgalSlateItem.cs b/Items/Placeables/FloralParadise/AlgalSlateItem.cs deleted file mode 100644 index d8a610e9d1..0000000000 --- a/Items/Placeables/FloralParadise/AlgalSlateItem.cs +++ /dev/null @@ -1,17 +0,0 @@ -using CalamityMod.Tiles.FloralParadise; -using Terraria.ModLoader; - -namespace CalamityMod.Items.Placeables.FloralParadise -{ - public class AlgalSlateItem : ModItem, ILocalizedModType - { - public new string LocalizationCategory => "Items.Placeables"; - - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 100; - } - - public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); - } -} diff --git a/Items/Placeables/FloralParadise/AlgalSlateItem.png b/Items/Placeables/FloralParadise/AlgalSlateItem.png deleted file mode 100644 index a589261603bfb94c5c08aeee4f2a36d086486ba3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 270 zcmV+p0rCEcP)Px#$Vo&&R5*>TlPwRzFc5~Hj%9+cA^1ul`~ZTOK|q4W@Ou$B{sCe^O)Y?8g8{P} zqN!L#vt)hM_4;1#=_M!jhcy66@+_&L->U#%G93v3r%sVcuIjwq?2N{1d_npG08Ynq zX@{V$ak&U8BudQ*)KvAC-}f&7gITX~*43OKO>zL{_>~LQS(nPk(Zdpf3T|O0Nmi0X z|FfDERP)UVJg+4H(j=F=5Sk0(ND{QWuAN;F "Items.Placeables"; - - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 100; - } - - public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); - } -} diff --git a/Items/Placeables/FloralParadise/PeatItem.png b/Items/Placeables/FloralParadise/PeatItem.png deleted file mode 100644 index 2c060a37a8f03106c296ce35e3426ea9093ecfea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 320 zcmV-G0l)rPx#`bk7VR5*>Tld(?2Fc5}6$2?>Pr5LqIy+`vl)1RAw_q^ z_^=`IVF>bh=>d+$5*QqxwGxV(D*z^Y)mJ13;4+il{|TDKPv_ffah^^pe$&T$9)>`T z(p?W=od%%RLjW#L3;_2pQLEs2F$3V?E(=89tn~otC}|xuBuUbKgR&H&^>Q9)5_^5E z0P;7P2j?sR>47-!$2-9H-DlY&04Clh2!V1|9JQ8Sn@!#M8*OY9z;dw)L+}X{pGLo9 S6Q3Xe0000 "Items.Placeables"; - - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 100; - } - - public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); - } -} diff --git a/Items/Placeables/FloralParadise/PeatMossItem.png b/Items/Placeables/FloralParadise/PeatMossItem.png deleted file mode 100644 index e7b019ef743add936d191edd5e0d48925dd8d301..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 380 zcmV-?0fYXDP)Px$Hc3Q5R5*>j)WJ%_KoEf8e@!flyrz*E$uj>Ku_%Hz=7ze*fs~7tHUQQ+=36U);tz2l%U!T*oQ@Wuj z&ZJ~gnFdvlP!g#L-Q^C7bTl3UurM1yoxk(Q`O98k} zn071sBLG2KqvP|FoJ?viLW$~y?nWYsPzqpp^`rr|JxeaNE|W>kNx$3eW<7J5JuQd6 zlUvy8By-iW3=Q8k9Ni=}{frF-5XA-nb~B=0VKFWSy8x`NZvrs6k2HX{-%tSaw-?|a aUhFTMBz69gZS "Items.Placeables"; - - public override void SetStaticDefaults() - { - Item.ResearchUnlockCount = 10; - } - - public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType()); - } -} diff --git a/Items/Placeables/FloralParadise/ScintillatingBloom.png b/Items/Placeables/FloralParadise/ScintillatingBloom.png deleted file mode 100644 index 12b82912c8df8e3fcc49fddae10a83b571d7ea33..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 560 zcmV-00?+-4P)Px$>PbXFR7i=%)z3>*Q5eSY&lM$`7BvahqC`*%EU}Ch(qPfTjSDwHMJ|M($ep!l zsr~`uvbMD=(0$G%<`K!Ah{Q8YKIH71QF*b-d#YZJOy_oqNxF&UwD)JnuPy zGBI)@1=`xSg4x;S9CRKz5WwW4r@8g{Ee+WK<~}9E@wXp>nsN*LtEes4vAD7+Y~+;> z54VHS(NOvDtq0)4SOQ$l9Eym7_48DppfA-6R#tz3sdx3@?v?BLjLz_Ta0}=e90-4B zWL-bhRw-*Gn<3UsWYIl^*0!wcpMv0sE6}l?A{F&2z&Q;2Jmd*HL6hu z>HeV{g}v@-X$6_NS16FQk_q9a#7TXlox+T?kHBimY;WhL|j}Cl_!W! zpSZ#(G7IraE{=$#m?(bNL~ y-hsbGbZahs{Q{mZEtVusHSG(P*Zf2k2>t*q?V@Lz`X$Z)0000 tileCounts) @@ -67,7 +64,6 @@ namespace CalamityMod.Systems SunkenSeaBasaltTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; AbyssTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; SulphurTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; - FloralParadiseTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; ArsenalLabTiles = tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()] + tileCounts[ModContent.TileType()]; UndergroundTiles = tileCounts[TileID.Stone]; diff --git a/Systems/World/WorldgenManagementSystem.cs b/Systems/World/WorldgenManagementSystem.cs index 581f681051..6d51a28c57 100644 --- a/Systems/World/WorldgenManagementSystem.cs +++ b/Systems/World/WorldgenManagementSystem.cs @@ -5,7 +5,6 @@ using CalamityMod.Items.SummonItems; using CalamityMod.Items.Weapons.Rogue; using CalamityMod.Items.Weapons.Summon; using CalamityMod.World; -using CalamityMod.World.Minibiomes; using CalamityMod.World.Planets; using Microsoft.Xna.Framework; using Terraria; @@ -130,14 +129,6 @@ namespace CalamityMod.Systems progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.BetterJungleTemple").Value; CustomTemple.NewJungleTemple(); }); - - // Floral Paradise Biome - tasks.Insert(jungleTempleIndex + 1, new PassLegacy("FloralParadise", (progress, config) => - { - progress.Message = "Growing a floral paradise underground"; - if (FloralParadiseMinibiome.SHOULD_GENERATE) - FloralParadiseMinibiome.GenerateInstances(); - })); } // Improved Golem Arena diff --git a/Tiles/FloralParadise/BloodOrangePlant.cs b/Tiles/BloodOrangePlant.cs similarity index 96% rename from Tiles/FloralParadise/BloodOrangePlant.cs rename to Tiles/BloodOrangePlant.cs index 29a758eb30..6810ed1226 100644 --- a/Tiles/FloralParadise/BloodOrangePlant.cs +++ b/Tiles/BloodOrangePlant.cs @@ -6,7 +6,7 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.ObjectData; -namespace CalamityMod.Tiles.FloralParadise +namespace CalamityMod.Tiles { public class BloodOrangePlant : ModTile { diff --git a/Tiles/FloralParadise/BloodOrangePlant.png b/Tiles/BloodOrangePlant.png similarity index 100% rename from Tiles/FloralParadise/BloodOrangePlant.png rename to Tiles/BloodOrangePlant.png diff --git a/Tiles/FloralParadise/AlgalSlate.cs b/Tiles/FloralParadise/AlgalSlate.cs deleted file mode 100644 index 34d06658d4..0000000000 --- a/Tiles/FloralParadise/AlgalSlate.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Systems; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class AlgalSlate : ModTile - { - public override void SetStaticDefaults() - { - Main.tileSolid[Type] = true; - Main.tileBlockLight[Type] = true; - Main.tileBrick[Type] = true; - TileID.Sets.Stone[Type] = true; - TileID.Sets.Conversion.Stone[Type] = true; - TileID.Sets.CanBeClearedDuringOreRunner[Type] = false; - - CalamityUtils.MergeWithGeneral(Type); - CalamityUtils.MergeWithOres(Type); - CalamityUtils.MergeWithFloralParadise(Type); - - DustType = DustID.t_LivingWood; - - HitSound = SoundID.Tink; - - AddMapEntry(new Color(33, 56, 27)); - } - - public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) - { - TileFramingSystem.CustomMergeFrame(i, j, Type, TileID.Dirt, false, false, false, true); - return false; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/AlgalSlate.png b/Tiles/FloralParadise/AlgalSlate.png deleted file mode 100644 index 86f7743da6b8148ecd0c0f6bff08e2c8359cca92..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2139 zcmV-h2&DIkP)Px#1ZP1_K>z@;j|==^1poj57*I@9MJOmAL{u&`IUyDm6cP~-2?z*oa$W!c0M+D% zh5!Hn2y{|TQ~&?}|NsC00N#VWSpWb432;bRa{vGizW@LZzX3P}QzQTY2e?T@K~#8N z<(lns<2npO(`H-0{~KQ&9igP1^zO&xSB06{CInK1qB!=>-fp+If%o^@?S0}nJOjDT zh%m`{WbXIl`1Omc+wFe;_~7ptn1ci8h|jYXQ{99q9EYP+p2Snev#|0`R`2)EPpk&V z@%9Gu`T73N@$>UII10zqP(lS7v&YKKNwJ#g1xzYhg$6pKvG@1HrQsTw$LxMMfH}@{ zF=~f`E9&fJ)kLK<6j9DshC-al;4Cu>EUWhcr+<4({ob^7I^($*a!{SEnyFQ5`WLH4 zYF5I8OSYR;B(!ImgRryW+6-QMb~3k$U@~fW^d{u=+$d0_X|At~vBqvUnbJ59F)ST= zrfWx@G1Z;?U^cRP95g6Jqohs6h&^Y+oEg-Kqp<>3xxskj*KlrBQ@rYY$CP;)zXAZZ z8w;K>Sz@zh<*ls7C^%d7DpnJxG`6D6WEjcXYUM}kAdV_WnZfpb7CZNX|Xe&&kT_pmIVV$XY9`pb6J@@8{$e^wqypD zJXfWFDD!Zveq@|$i6^YFlT}YUU?;15v4a?aLWUgDNbZ+2`dcM{n zD`Ums{qnH&8td#G(W?cl`D?iRIo|~Z#Y{0UFAMIN16T-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Y#qA1wRY1uCY0=I8(hXcTe!SIllQu16l@Z0(|7jLI5KS$HOpL?E zynL8akvmJj1iM-7c#OpgC$3Sjh>0Gp;R{omIXJJoMmY8g>}7QqY-9B}{sWMNBLKz# RdmR7(002ovPDHLkV1f|81<(Kh diff --git a/Tiles/FloralParadise/LargeLogPiles.cs b/Tiles/FloralParadise/LargeLogPiles.cs deleted file mode 100644 index 6e73e2f86a..0000000000 --- a/Tiles/FloralParadise/LargeLogPiles.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class LargeLogPiles : ModTile - { - public const int Variants = 2; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 3; - TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(1, 2); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - - TileObjectData.addTile(Type); - - DustType = DustID.Mud; - - AddMapEntry(new Color(114, 72, 49)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - } -} diff --git a/Tiles/FloralParadise/LargeLogPiles.png b/Tiles/FloralParadise/LargeLogPiles.png deleted file mode 100644 index e343f8254a5820295256ef243b812c169415de7f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 826 zcmeAS@N?(olHy`uVBq!ia0vp^IY4a2!3-ot*Y@NADaPU;cPEB*=VV?2IV|apzK#qG z8~eH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6+DC&z5Pz)0*iV}t`cV$t}s=5GE?C{lBkpq?nw6qj~g-MQ<<&p)Oz|3+f zPGIaC45P@dQ0SpD1nak3vS%><0K*VrkXL#jfFm-9Z!B`|93yH!kS;_IV00nY=%Zqj zdL)KNqbJ17mB6qHm?C0b%_4()xfs^<8Y83G_v+lP1DLK&-+sZo$BGOgy>6hcQ#=qS zyowA1=k_9_*f1HGJt*|rB7teQLs%9T7|K-XoEWi(FNiWqhoVMxf}dxO!9#=xHPln7 zzCDA1Gg%GVMLJ zRBP}Ar8QQlI0~2yBVf`}MnW73j1|tb!w=iKkl?opu9G)z)^4#dAd5N&2FWyFtO`tB veCDRq#gUM7Thv80m3s$cK=!Deg2ng;&t<$&cM-YZ00000NkvXXu0mjf#{|SZ diff --git a/Tiles/FloralParadise/LargeSubterraneanGrass.cs b/Tiles/FloralParadise/LargeSubterraneanGrass.cs deleted file mode 100644 index b614e182f0..0000000000 --- a/Tiles/FloralParadise/LargeSubterraneanGrass.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class LargeSubterraneanGrass : ModTile - { - public const int Variants = 5; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 3; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - DustType = DustID.JungleGrass; - - AddMapEntry(new Color(106, 163, 74)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - } -} diff --git a/Tiles/FloralParadise/LargeSubterraneanGrass.png b/Tiles/FloralParadise/LargeSubterraneanGrass.png deleted file mode 100644 index 4069f95caeeec75bc5fe160d5ec9806ba9b59f5e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1315 zcmV+;1>E|HP)Px#1ZP1_K>z@;j|==^1poj5Ay76(;P;MrXsy$eQK6H*X zBR(wv001`%RWJYm01I?dPE-H?|NsC0|NsC007_2*@&Et;32;bRa{vGi!2kdb!2!6D zYwZ941awJ6K~!i%?bz#bt2ht@V8A%Oy#E6qeY9o)$2m@I?fz3&1*Fkj8;!u3o^LTV z^x^-Ee;a4s&?mn{^p|CtmSq!s!=U4Yx5-S?(9@!7{Tt?OCqcX8)=ny%Mr`VApV zgZn(M>pU;Z+EB7r3_4DD6C4?r%TL?s_mJ=>FYEgCwXS`#QSnO85sKl_)t0~A_6U)E zZ=jUVCkr&*@92mGy5fdG$0s_j*URN|A)g`LPhP579u25?K9BSqp@8d#=kwN}5RWa# zqF7-4Ob9)Mgy?0tZ$NCKpXncT{EZGvm&@(;{Z(`{D%hGq7c^u{`+EIMhvUr_zTeTo zYF&+9u`CWwxZThZ-;p3l&aw_=6*U^J=s-hS<$gyC2|A91yc9X;Xy9U-bviga7ZS&P z(lO8Mk^l`vkh#;9;E||zC^~ZenGXI7Y3G!gYb1TSp)9fvbQDjL1`R<*(TL4fVhRFg zgO2U+G$PLHOL`^N>&!`a@3evtNWni9UTLO zLB|Oj9gZOzEe*0Pwq&+`j<$1be`BpR}8#3M;mo}t;qaL@tGW{bEHQlfcAjk5CER7{mv zKnFsC=wuWEybk#QYx_S8l&WNqkYpw5ryCOLSPfY4D-#hBkq^Z@4k$^*=ePV+Mv6y) zkyyJ#bh&j3T}%cYo0SU+Du4yW+H@&VVaLy#Ac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4ua79j-$TnXOc2rm*oHlXM!GUpX#t|!y4uW3B@Bmo}k)t`)cweFmE~V(ZaJTJ}>OAC=5G}AFWq6A!7lh QM*si-07*qoM6N<$f+Zv2bpQYW diff --git a/Tiles/FloralParadise/LushVines.cs b/Tiles/FloralParadise/LushVines.cs deleted file mode 100644 index 8c6a9ceecc..0000000000 --- a/Tiles/FloralParadise/LushVines.cs +++ /dev/null @@ -1,95 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class LushVines : ModTile - { - public override void SetStaticDefaults() - { - Main.tileCut[Type] = true; - Main.tileBlockLight[Type] = true; - Main.tileLavaDeath[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileFrameImportant[Type] = true; - AddMapEntry(new Color(47, 75, 32)); - HitSound = SoundID.Grass; - DustType = DustID.Grass; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - - public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem) - { - if (WorldGen.genRand.NextBool(2) && Main.player[(int)Player.FindClosest(new Vector2((float)(i * 16), (float)(j * 16)), 16, 16)].cordage) - Item.NewItem(new EntitySource_TileBreak(i, j), new Vector2(i * 16 + 8f, j * 16 + 8f), ItemID.VineRope); - - if (Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType == Type) - { - WorldGen.KillTile(i, j + 1, false, false, false); - if (!Main.tile[i, j + 1].HasTile && Main.netMode != NetmodeID.SinglePlayer) - { - NetMessage.SendData(MessageID.TileManipulation, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); - } - } - - if (Main.tile[i, j - 1].HasTile && Main.tile[i, j - 1].TileType == Type) - { - Main.tile[i, j - 1].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, j - 1].TileFrameY = 54; - if (Main.netMode != NetmodeID.SinglePlayer) - NetMessage.SendData(MessageID.TileManipulation, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); - } - } - - public override void RandomUpdate(int i, int j) - { - if (Main.tile[i, j + 1] != null) - { - if (!Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType != Type) - { - if (Main.tile[i, j + 1].LiquidAmount >= 128 && Main.tile[i, j + 1].LiquidType == LiquidID.Water) - { - bool canGrow = false; - for (int y = j; y > j - 10; j--) - { - if (Main.tile[i, y].BottomSlope) - { - canGrow = false; - break; - } - if (Main.tile[i, y].HasTile && !Main.tile[i, y].BottomSlope) - { - canGrow = true; - break; - } - } - if (canGrow) - { - int below = j + 1; - Main.tile[i, below].TileType = Type; - Main.tile[i, below].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below].TileFrameY = 54; - Main.tile[i, below - 1].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below - 1].TileFrameY = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below].Get().HasTile = true; - WorldGen.SquareTileFrame(i, below, true); - WorldGen.SquareTileFrame(i, below - 1, true); - if (Main.dedServ) - { - NetMessage.SendTileSquare(-1, i, below, 3, TileChangeType.None); - NetMessage.SendTileSquare(-1, i, below - 1, 3, TileChangeType.None); - } - } - } - } - } - } - } -} diff --git a/Tiles/FloralParadise/LushVines.png b/Tiles/FloralParadise/LushVines.png deleted file mode 100644 index 2ef0db6a25fc1383c88cef28db85c8387f74c51a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 638 zcmeAS@N?(olHy`uVBq!ia0vp^WNn{1`bpw1tTqUKXOqJE;ilqH@P4&IyRSiUAtn5nqO!GXPJ32agdU|R%to6?< zTL0h%P)E0@^EV*HUlQaO{2v7{T)8u2AyA65z$3Dlfr0NJ2s7@OnEe*$i2a@}jv*25 zOQ*e_bVz~6ZRgS}((nK8IQ?<*#$EOYOpK$i8(X$sV&PfaDv<1@_(UeT`q-Q~7lX7~ zUt4Fo{h1Z{hSBRJkA-^N*`CJjy2pZA!aCxUnWFmzye_spJF*=Z(dQVF{Psj? zZf#0BWBFzF1S9pjwIW>4W|*kQ^`3tJ@VdmV|Cgf!gd-HwO++=j*Ib$@yxuMN&F+A; z3q&7XKl82D$I-L+(bbAO5{-*l!#l!_lOuEs*4`?3c4Ym=y(?I~124^~FqNCm^wdjR zsQA%!n}=6T4AxJ4%(%sAPt>_RF0vI)+E3<`?cA_eX7al0`9)_wW{G5+TkyDSvhgi- z%V!m)vd#~~sd>*? zpmSC0P?GR{%Q#<#Bd=LL7HO*9_#w%)a6#qW=O!*~%Qaal_lo3Ih&7umsZEz|s@Qrh zfyYJ_3KmPb$vd^64iEFO==PWmq6JH?0^6$b9#-2|}U3VJt(@ppywoGwY zGD~r$;vtUQQm*~SlCnLw?Cr?-85loP{^8X)`M;A*RCx<){>wk#5`TE<)^F@gv01!E Ts~B{F@yp=p>gTe~DWM4fg5MY@ diff --git a/Tiles/FloralParadise/MediumFloralPlants.cs b/Tiles/FloralParadise/MediumFloralPlants.cs deleted file mode 100644 index 72bd04cc3b..0000000000 --- a/Tiles/FloralParadise/MediumFloralPlants.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class MediumFloralPlants : ModTile - { - public const int Variants = 8; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileCut[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - HitSound = SoundID.Grass; - DustType = DustID.Grass; - AddMapEntry(new Color(106, 135, 69)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - - public override void NearbyEffects(int i, int j, bool closer) - { - if (CalamityUtils.ParanoidTileRetrieval(i, j).LiquidAmount > 64) - WorldGen.KillTile(i, j); - } - } -} diff --git a/Tiles/FloralParadise/MediumFloralPlants.png b/Tiles/FloralParadise/MediumFloralPlants.png deleted file mode 100644 index 643c9e94cc777bc42f218e3120d4826e5b04907b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5320 zcmXw7Wmwa1)cyeqqJWAhQVt{}4N7W&2%{7U5vfs*4o5c_AdLtpph)M0A*BNbDBU@_ zM~w|eZ4*YkT<`mTzdYyp^jzmU=eh6u+$UOJPm}o~=S2Vjn63p8Ganrc9KKQ|5l*xqWZKYH%}ZPU`+gIhBY45nQA(82*#@0NBl&3$UBL-2WV z-xoVE(Pkgt+I;s4;c>X-xzGzAzwll*Iywu({nuX0arcJ^U0$Qw7wXJ5tkWuJWwBQlArPeq1YXgn5n0N^eeGW8 zY4yo8O}Lim7NClLjssN1r4|6ynhFNMf6epcx5f;+{dbP@Kr1T?kX<*Ad#TM0q@BLP zzC0k${`%Yb@OzX3Q1LpG5;AiX^6#Ih^)i9u>6DMrF1VW5AYJ@nS3WNpI6L^jYdfc zk{ze{K#r9jAh^pa0IvfxIu0xzCv*D`_<~8HQh9Jd)h5q2?&u3N_#E*1fMgDYs|qgz zs;J(d;9F(&tJI2xzoT1>mord}+nv(Df;YnED70?Y`)SkWIU2zDL!uaH*(=yjo}!8; zo$?%>*rv`?@(Ca#MhskvRm^wdP23gs>Z_x8M z9o9iH15tP6eQPAt9>8(jz(U?bB>qBx>u1d6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do$`6u{q zdK4Y^E*5xg+qhP*|Na8<+Kd<$_tl(p@b}xg(Y5IsW~hCuc!G^ zVxFHODk(Lg6kUA13F~IzEmYBNO$dP)BXZkma>z5h*KwcG%h(64MUQw=RB4(N2s(;* ziV2Tg$rGfRMBTpur`(QsrHS4s9YwZa89#8U8|0=QFq+0!n V?MUN`^x0|>(ALmXFITgE`#)pll)V4| diff --git a/Tiles/FloralParadise/MediumLargeMossPiles.cs b/Tiles/FloralParadise/MediumLargeMossPiles.cs deleted file mode 100644 index 0651506f46..0000000000 --- a/Tiles/FloralParadise/MediumLargeMossPiles.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class MediumLargeMossPiles : ModTile - { - public const int Variants = 4; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - - TileObjectData.addTile(Type); - - DustType = DustID.Mud; - - AddMapEntry(new Color(56, 56, 56)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - } -} diff --git a/Tiles/FloralParadise/MediumLargeMossPiles.png b/Tiles/FloralParadise/MediumLargeMossPiles.png deleted file mode 100644 index cbf4ace03270dec1af5cdda69909a70be70d2ac6..0000000000000000000000000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#jA4r#azSyT)ukt#EPH2*#cnU>zsx%5X?Ye$5A|96hgZ7#k6%@<7Sd01|X41dfny~ z%lG7dT5Zv0jfUj6w))hv3mGUxPl#y6cT7a&AGn*(djPX@b3i8pBvWYsqA^kX%N#L~ z2QV>t#sF+@ZCd~Mv251BOU6-Xx24Pz6gLRvvS^2r&m;&`f0jRyt>y53*=K>YSg znjMaatL%O$Svta--Bl0~eGlmQlq9;WBrs+uI zC|WJq^NuPvYgevzJ$(U6N7toCMD1Ugy=cupxW8a^ZM9krc*#I+T#XmRM87PGW~o-B z>v-|}xi#;0ZHgc6{Ak59MrvxmRRo|lAQh{OqZK_qEqS?`ro1ARzfnktpK=p`sZ7-l z>~~SxeJRpu8P{sk6>7yRY9;a4R}iLn_)W!{H$`Et#U(k%S^W8-<@fwW(Qc}}(rM|g zi$$AxTvV(3`v0(g@sNQ+^n^&UDCauUGosp66XdqHEyG-Hn{LSa=RNI1IZtu5hRa;) zNA1>D*F1p1K{>yu9mpm>r&J&NM}<&dL*wxupUC8Ba9a_CwJe zsu||zZ&>TJk`FfJeqv_^{dFm8y`oqYhNvFY{c%UdcV(jZ(4gbTW)5W@wVRol0iaMQ zxcrG7{Kr}pX>e~(ss-MQ=anjbf2jrS|EZt9$LeJfApnNK1i@5i*- zaxPY_%6U#aF8A+#ZwIxyzb=jgOT*|o^&5*xKKgb*wOZ+#XLf8%o;~^}?L+=L( diff --git a/Tiles/FloralParadise/Peat.cs b/Tiles/FloralParadise/Peat.cs deleted file mode 100644 index 0d56eb20a0..0000000000 --- a/Tiles/FloralParadise/Peat.cs +++ /dev/null @@ -1,40 +0,0 @@ -using CalamityMod.Systems; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class Peat : ModTile - { - public override void SetStaticDefaults() - { - Main.tileSolid[Type] = true; - Main.tileBlockLight[Type] = true; - Main.tileBrick[Type] = true; - TileID.Sets.Stone[Type] = true; - TileID.Sets.Conversion.Stone[Type] = true; - TileID.Sets.CanBeClearedDuringOreRunner[Type] = false; - - CalamityUtils.MergeWithGeneral(Type); - CalamityUtils.MergeWithOres(Type); - CalamityUtils.MergeWithFloralParadise(Type); - - DustType = DustID.t_LivingWood; - - AddMapEntry(new Color(72, 91, 47)); - } - - public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak) - { - TileFramingSystem.CustomMergeFrame(i, j, Type, TileID.Dirt, false, false, false, true); - return false; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/Peat.png b/Tiles/FloralParadise/Peat.png deleted file mode 100644 index 2ebbd8895167ba9d5017f045b699024eb6d22ccc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2601 zcmV+^3fA?BP)Px#1ZP1_K>z@;j|==^1poj5Do{*RMG_GZ7#$%nDIY5`Iafv~BPbmS2nZ!8EE*aU zIWjCpRa}5}SUyiK0001HCAs7P000hjQchF<|NsC0|NsC0|NsC007byu$N&HU32;bR za{vGizW@LZzX3P}QzQTY32sS5K~#8N?VH<@;y4gQ4VYVl|NnPaM@QMRF}*W8!P96n zV!$eAUD8vQC7`EiIvkD_hl*u6og9nP3CkAUA_EJ)^L#$nAcxCkSxV>@`*7fRsp#2W z$K4V*CXyT><63bmfY&YOg6lOE>S6AYq+TwE!@c2ngfxHSt72Jv?=}NfW5cpUqzRRZ zM6FZFL%MiTL`u|xO-tuQ?D2TNo1OgDbHAJEdWChpQa>Y@;WU@|en;$BQZJWjs!EI0 z`+Zp+1@jy+H0RolV=SD95ese8QA1C>TZAp7EMh+%k%|Qn3s$#$eJORCTIvGic%g|( zCN3jhTd~{!o_QWmDg|Y7uz}C#s-pr60j}3(C|DMzgX{J2;1!q*Jf8}s#A&+SY#-Z~ zcEz9MPF+~^<4CV$>TwW(jN8pfyc?ZK2*15W>G2v(D(MJsGKwY*4TVjq5mYNEAicJ{ zM?9A+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ljkEm<_u(5>b8+tF$ zD@KxfxvWL>ANT_TS&$sYy!)dHjzB`QyvFJ)4crI?`KcuBnRZl$@3Vz#MZP zA8e7zNO?%bE1UJ+=xdB6)i&UR557`oo695t2ty#+3C28=&L8|V$~Pxb04zB9BNjMH zW%ugB;vq7^I0kOwm5L~9VDW&|T#ULx99}9Pwj7T*iM0%pBEzO4kcFo? zxjdGkRD=h_;bW4=gYDt*s8j@`HM>-fZEiVS7$kUs5DCYc%taL9=nY4U_+P3rT73n4 zSez+uNhmT9L6MmlluDz&aihsoQ4}(SRHqZAQfQ_V;f*h++an`3IqSt43lEp%kqU>!BvT+?PrA`_1YBrtzu4FE zDU2o6#!LGak+>rI}jQ1+&JBq3*<*+de+b%!DvzqDokeCwkAl~h{fhv zENf0|02v+;RSr>jxUdxMadL6ABr~2`K83NQD$bTldXd%yw0TeOS;vh~kcSd>M&26u zc^(;jtzndHF6?Uym%})p!e~+{i?9~na&3fyG&-C$e~s8#LhL!&>azR;{jffxgh$ZX00000 LNkvXXu0mjf&(); - TileID.Sets.Conversion.Grass[Type] = true; - - CalamityUtils.SetMerge(Type, TileID.Dirt); - CalamityUtils.SetMerge(Type, TileID.Grass); - CalamityUtils.SetMerge(Type, TileID.CorruptGrass); - CalamityUtils.SetMerge(Type, TileID.HallowedGrass); - CalamityUtils.SetMerge(Type, TileID.CrimsonGrass); - CalamityUtils.MergeWithFloralParadise(Type); - - DustType = DustID.JungleGrass; - HitSound = MineSound; - - AddMapEntry(new Color(65, 142, 101)); - } - - public override void NumDust(int i, int j, bool fail, ref int Type) - { - Type = fail ? 1 : 3; - } - - public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem) - { - if (fail && !effectOnly) - Main.tile[i, j].TileType = (ushort)ModContent.TileType(); - } - - public override void NearbyEffects(int i, int j, bool closer) - { - if (WorldGen.genRand.NextBool(180) && !Main.gamePaused && CalamityUtils.ParanoidTileRetrieval(i, j - 1).LiquidAmount >= 200) - { - Vector2 algaeVelocity = -Vector2.UnitY.RotatedByRandom(0.91f) * Main.rand.NextFloat(0.85f, 1.6f); - Projectile.NewProjectile(new EntitySource_WorldEvent(), new Vector2(i + 0.5f, j - 0.5f) * 16f, algaeVelocity, ModContent.ProjectileType(), 0, 0f); - } - } - - public override void RandomUpdate(int i, int j) - { - int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + Main.maxTilesY * 0.143)); - int nearbyVineCount = 0; - for (int x = i - 15; x <= i + 15; x++) - { - for (int y = j - 15; y <= j + 15; y++) - { - if (WorldGen.InWorld(x, y)) - { - if (CalamityUtils.ParanoidTileRetrieval(x, y).HasTile && - CalamityUtils.ParanoidTileRetrieval(x, y).TileType == (ushort)ModContent.TileType()) - { - nearbyVineCount++; - } - } - } - } - if (Main.tile[i, j + 1] != null && nearbyVineCount < 5) - { - if (!Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType != (ushort)ModContent.TileType()) - { - if (Main.tile[i, j + 1].LiquidAmount == 255 && - Main.tile[i, j + 1].LiquidType == LiquidID.Water) - { - bool growMoss = false; - for (int y = num8; y > num8 - 10; y--) - { - if (Main.tile[i, y].BottomSlope) - { - growMoss = false; - break; - } - if (Main.tile[i, y].HasTile && !Main.tile[i, y].BottomSlope) - { - growMoss = true; - break; - } - } - if (growMoss) - { - int belowY = j + 1; - Main.tile[i, belowY].TileType = (ushort)ModContent.TileType(); - Main.tile[i, belowY].Get().HasTile = true; - WorldGen.SquareTileFrame(i, belowY, true); - if (Main.dedServ) - { - NetMessage.SendTileSquare(-1, i, belowY, 3, TileChangeType.None); - } - } - Main.tile[i, j].Get().Slope = SlopeType.Solid; - Main.tile[i, j].Get().IsHalfBlock = false; - } - } - } - } - } -} diff --git a/Tiles/FloralParadise/PeatMoss.png b/Tiles/FloralParadise/PeatMoss.png deleted file mode 100644 index 8a38476c200ea0d65594d4b73862c576209048aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11741 zcmZX4bzD>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u+L7HrS1RTtPUC#{|&3~m}KsSr%(!@7adZ0&%AGk z?N8YY-rnmbQjw=L8GOhB&&DHU3yZ3J;~4)KnZbny7_%1qdTY(^axh%lD#-2wanx4! z1s-g36@1|VvnCi>99@-I!xTet0!S}I?m?nC2-VSx^L`uTjk+=fXG}-B!i~0wXs_tidpPC4}cm*p7UjLV8B{0wuE`NqnXaJ>BVgyI2 zdQf9xT8L>hYcc6Xj1b0VQ3&4@QM{^H)w}|BVWwE1mHA&Dq>lhNhEUF6C6hu_bSQ@r z^lbuL3Xs>!FN>z+OV{WVBaZp)1UU+b7Wq5HBY1rG4Tol7>*Zy2`62n8buC}EMT6!>z0ZRbl(G45R%+XbupG438e5qf7 zGjL;U655BpoUbI`6DV4i**gB4L(>=Z)$;M*FXm%8Ut&g;V}`QYKmwQMrXHxtS872& z>TBc?ajjKJpd#lBJ~p9$P&og77gi--z)t`~6L`LP@muwgcg4j1*F3gR1OC-W4CG-p@VT|e#h4io(eKypg!aOOfVpB zCHtAxwiv}J4AfIbjDm-e@qxdhZNy9w-CZ=08cN2Z3sG*T)RN}Ug(@n${vyTycCXy! z7GnA6 diff --git a/Tiles/FloralParadise/PerennialTree.cs b/Tiles/FloralParadise/PerennialTree.cs deleted file mode 100644 index 7a0bc73d1d..0000000000 --- a/Tiles/FloralParadise/PerennialTree.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using CalamityMod.DataStructures; -using CalamityMod.Tiles.BaseTiles; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using ReLogic.Content; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class PerennialTree : DynamicallyGrownTree - { - // The max amount that branches can travel. Once the distance of the branches reaches or exceeds this threshold, the tree is done growing. - public override float MaxDistanceBeforeCutoff => 2100f; - - public override float DistanceUsedForTrunk => 140f; - - public override float BranchMaxBendFactor => 0.7f; - - public override float BranchTurnAngleVariance => 0.4f; - - public override float MinBranchLength => 30f; - - public override float TrunkWidth => 16f; - - public override float ChanceToCreateNewBranches => 0.8f; - - public override float VerticalStretchFactor => 12f; - - public override float DownwardBiasFactor => 0.4f; - - public override float BranchGrowthWidthDecay => 0.61f; - - public override int MaxCutoffBranchesPerBranch => 5; - - public Asset VineTexture; - - public override void SetStaticDefaults() - { - Main.tileAxe[Type] = true; - Main.tileFrameImportant[Type] = true; - DustType = DustID.WoodFurniture; - ItemDrop = ItemID.Wood; - UseDefaultSize(); - TileObjectData.addTile(Type); - - AddMapEntry(Color.SaddleBrown); - } - - public void DrawVine(Vector2 vineTop, Vector2 downwardBottom, int totalVinesToDraw, float swayFactor) - { - VineTexture ??= ModContent.Request("CalamityMod/Tiles/FloralParadise/PerennialTreeVines"); - Texture2D vineTexture = VineTexture.Value; - - // Determine the initial points for the vines. - Vector2[] controlPoints = new Vector2[8]; - Vector2 lightOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(-Main.offScreenRange); - for (int i = 0; i < controlPoints.Length; i++) - { - float swayOffset = swayFactor; - controlPoints[i] = Vector2.Lerp(vineTop, downwardBottom, i / (float)(controlPoints.Length - 1f)); - - Point p = (controlPoints[i] + lightOffset + BranchDrawer.PreviousPoint.ToWorldCoordinates()).ToTileCoordinates(); - - // 02JUN2024: Ozzatron: directionY did not exist at the time of the creation of the Perennial Tree. As such, it is ignored here. - Main.instance.TilesRenderer.Wind.GetWindTime(p.X, p.Y, 40, out int windTimeLeft, out int direction, out _); - - float windInterpolant = windTimeLeft / 40f; - swayOffset += Utils.GetLerpValue(0f, 0.45f, windInterpolant, true) * Utils.GetLerpValue(1f, 0.55f, windInterpolant, true) * direction * 28f; - controlPoints[i].X += swayOffset * Utils.GetLerpValue(0f, controlPoints.Length - 1f, i, true); - controlPoints[i].Y -= 4f; - } - BezierCurve vineCurve = new(controlPoints); - - int drawCount = (int)(totalVinesToDraw * 2.4f); - for (int i = 0; i < drawCount - 1; i++) - { - Vector2 vineCenter = vineCurve.Evaluate(i / (float)(drawCount - 1f)); - Vector2 ahead = vineCurve.Evaluate((i + 1f) / (float)(drawCount - 1f)); - float rotation = (ahead - vineCenter).ToRotation() - MathHelper.PiOver2; - vineCenter += BranchDrawer.PreviousPoint.ToWorldCoordinates() - Main.screenPosition; - - // Calculate light values. - Vector2 lightPosition = vineCenter + lightOffset + Main.screenPosition; - - int frameX = 0; - int frameY = 0; - if (i > 0) - frameY = RNG.Next(1, 3); - if (i >= drawCount - 3) - { - frameY = 3; - frameX = RNG.Next(3); - } - if (i == drawCount - 2) - frameY = 4; - - Rectangle frame = vineTexture.Frame(3, 5, frameX, frameY, -2, -2); - Color color = Lighting.GetColor(lightPosition.ToTileCoordinates()); - - Main.spriteBatch.Draw(vineTexture, vineCenter, frame, color, rotation, frame.Size() * 0.5f, 1f, 0f, 0); - } - } - - public override void DrawThingAtEndOfBranch(BranchDrawer.Branch branch) - { - int totalVinesToDraw = RNG.Next(4, 7); - float swayFactor = Main.windSpeedCurrent + (float)Math.Sin(Main.GlobalTimeWrappedHourly * 1.87f + RNG.NextFloat(0.94f)) * 0.4f; - Vector2 top = branch.EndOfCurve + Vector2.UnitY * 12f; - Vector2 bottom = top + Vector2.UnitY * totalVinesToDraw * 30f; - DrawVine(top, bottom, totalVinesToDraw, swayFactor * 35f); - } - } -} diff --git a/Tiles/FloralParadise/PerennialTree.png b/Tiles/FloralParadise/PerennialTree.png deleted file mode 100644 index 77e0372437d8cf402add697207dfc7d4bd90576a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRn!VDzKd=|I>DaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(ehe`~f~8uG$g;i?idJLcKjzMU%}HA8ZM40ZMTectjR6Fz_7&Va6R3v)=** z9XwqeLnJQep1a6-Ab`i|;+h9s>mG2G|DXBGDbw@8U)g{QT9#_2jyh^{HcY(iCLDHM oJs@3rkFb5xi_@% diff --git a/Tiles/FloralParadise/PerennialTreeVines.png b/Tiles/FloralParadise/PerennialTreeVines.png deleted file mode 100644 index 19356dd5fe896054782009902b72a35a4b0736b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 607 zcmV-l0-*hgP)Px#1ZP1_K>z@;j|==^1poj55>QN3ML$m(P;Mr4jx{JX7m=zx00002HF4tr000Jb zQchF<|NsC00JFcOzW@LL32;bRa{vGizW@LZzX3P}QzQTY0mMl}K~z{rwU>)_!XOYt zA(;RF<#HMJB-%E(6P;5djC(oD^3ayOtCTuaMsF<_DqR5E_AYi0+P2oV?VC`f_IQ-i z+H@CkA(DD@)%tA+)e7`>$t?(uWmP$9o&Kdfh|nnbccJ;7k_WL>qX-m#`j>Jcf>~S+ z$8;C+p#IkdO6e2Z$bi5I*K@cFxe(zT!q(nHT!?{ zGJt5Y*vFR-@OdB?!Z=?n3Sp=yjvNNT=`tXU-xrI9(o+$%^;5FZR8y%;8rru;h)fwM70A_N=>E1ZJdg`TC4kK{BAWf*VMdyxh0 tdu*UXDhvaC7WylPSpLsKS2Cb|{{d}ALG^ldRyhCw002ovPDHLkV1f}Z`lSE> diff --git a/Tiles/FloralParadise/PinkFlower.cs b/Tiles/FloralParadise/PinkFlower.cs deleted file mode 100644 index bc1f59ecba..0000000000 --- a/Tiles/FloralParadise/PinkFlower.cs +++ /dev/null @@ -1,92 +0,0 @@ -using CalamityMod.Items.Placeables.FloralParadise; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using ReLogic.Content; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class PinkFlower : ModTile - { - public const int Variants = 2; - - public const int WindPushLifetime = 45; - - public Asset StamenTexture; - - public override void SetStaticDefaults() - { - StamenTexture = ModContent.Request("CalamityMod/Tiles/FloralParadise/PinkFlowerStamen"); - - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 2; - TileObjectData.newTile.Origin = new Point16(1, 1); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - - TileObjectData.addTile(Type); - - HitSound = SoundID.Grass; - DustType = DustID.JungleSpore; - AddMapEntry(new Color(255, 155, 202)); - RegisterItemDrop(ModContent.ItemType()); - } - - public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData) - { - if (drawData.tileFrameX % 36 == 0 && drawData.tileFrameY == 0) - Main.instance.TilesRenderer.AddSpecialLegacyPoint(i, j); - } - - public override void SpecialDraw(int i, int j, SpriteBatch spriteBatch) - { - if (Main.tile[i, j].IsTileActuallyInvisible()) - return; - - // 02JUN2024: Ozzatron: directionY did not exist at the time of the creation of this content. As such, it is ignored here. - Main.instance.TilesRenderer.Wind.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction, out _); - - float windInterpolant = windTimeLeft / (float)WindPushLifetime; - float windRotation = Utils.GetLerpValue(0f, 0.5f, windInterpolant, true) * Utils.GetLerpValue(1f, 0.5f, windInterpolant, true) * direction * 0.34f; - - int frameX = Main.tile[i, j].TileFrameX; - Color drawColor = Lighting.GetColor(i, j); - Texture2D stamenTexture = StamenTexture.Value; - Rectangle stamenFrame = stamenTexture.Frame(2, 1, frameX > 36 ? 1 : 0, 0); - Vector2 stamenOrigin = stamenFrame.Size() * new Vector2(0.5f, 1f); - Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); - Vector2 drawPos = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset + new Vector2(17f, 24f); - - // Create some pollen dust. - if (!Main.gamePaused && windTimeLeft >= 2 && Main.rand.NextBool(6)) - { - Vector2 pollenVelocity = -Vector2.UnitY.RotatedByRandom(windRotation * 2.3f) * 3f; - Dust pollen = Dust.NewDustPerfect(drawPos + Main.screenPosition - drawOffset - Vector2.UnitY * 16f, DustID.JungleSpore); - pollen.velocity = pollenVelocity; - pollen.scale = 1.4f; - } - - Main.spriteBatch.Draw(stamenTexture, drawPos, stamenFrame, drawColor, windRotation, stamenOrigin, 1f, SpriteEffects.None, 0f); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - } -} diff --git a/Tiles/FloralParadise/PinkFlower.png b/Tiles/FloralParadise/PinkFlower.png deleted file mode 100644 index 283ca927313d5da677c70a827f745ffe580aee5d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^9zd+Z!3-p2S$jf&6k~CayA#8@b22Z19F}xPUq=Rp zjs4tz5?O(Kp#Yx{SAQGt-k8E;70dq5K6Pi#VxVx}!h2ajimfEbFZe$QFl^qxWIs@Z zv%n*=n1O-sFbFdq&tH)Ow1C0W#WBRg`|ad|MTZr5SaqfU{@0(Ly4cD8rO(yqdp;Y! zs)(_io9g?k;ofWJs`dXFVuQaGr|qu_aF zouuhjS5u8nz6y2KU*TN4;C0gGEl11lnoa!p{aCo@qQb0-R}q&vjh-Z2+;nZr=M}EG z7K9quvSqs&U$bZSESww3em0|cs(iEmHSW#>H&@tAsOPI= zGSa-C&|jvy{7b}}HLq9;dr~VOZVOn{Q6}*A0q3nBc>$t@OB*t_1$^cFkT~HgtIL}h z?OzVr7AadkKAF02fnmoL?cHt8^-QHJIH&w%)w-#&_UO;44!{6n@O1TaS?83{1OVpY Bt>6Fv diff --git a/Tiles/FloralParadise/PinkFlowerBig.cs b/Tiles/FloralParadise/PinkFlowerBig.cs deleted file mode 100644 index 529a8d630d..0000000000 --- a/Tiles/FloralParadise/PinkFlowerBig.cs +++ /dev/null @@ -1,103 +0,0 @@ -using CalamityMod.Items.Placeables.FloralParadise; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using ReLogic.Content; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class PinkFlowerBig : ModTile - { - public const int Variants = 2; - - public const int WindPushLifetime = 48; - - public Asset StamenTexture; - - public override void SetStaticDefaults() - { - StamenTexture = ModContent.Request("CalamityMod/Tiles/FloralParadise/PinkFlowerBigStamen"); - - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - Main.tileLighted[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 4; - TileObjectData.newTile.Height = 3; - TileObjectData.newTile.Origin = new Point16(2, 2); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16, - 16, - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - - HitSound = SoundID.Grass; - TileObjectData.addTile(Type); - - DustType = DustID.JungleSpore; - AddMapEntry(new Color(255, 155, 202)); - RegisterItemDrop(ModContent.ItemType()); - } - - public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b) - { - r = 0.5f; - g = 0.4f; - b = 0.16f; - } - - public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref TileDrawInfo drawData) - { - if (drawData.tileFrameX % 72 == 0 && drawData.tileFrameY == 0) - Main.instance.TilesRenderer.AddSpecialLegacyPoint(i, j); - } - - public override void SpecialDraw(int i, int j, SpriteBatch spriteBatch) - { - if (Main.tile[i, j].IsTileActuallyInvisible()) - return; - - // 02JUN2024: Ozzatron: directionY did not exist at the time of the creation of this content. As such, it is ignored here. - Main.instance.TilesRenderer.Wind.GetWindTime(i, j, WindPushLifetime, out int windTimeLeft, out int direction, out _); - - float windInterpolant = windTimeLeft / (float)WindPushLifetime; - float windRotation = Utils.GetLerpValue(0f, 0.5f, windInterpolant, true) * Utils.GetLerpValue(1f, 0.5f, windInterpolant, true) * direction * 0.34f; - - int frameX = Main.tile[i, j].TileFrameX; - Color drawColor = Lighting.GetColor(i, j); - Texture2D stamenTexture = StamenTexture.Value; - Rectangle stamenFrame = stamenTexture.Frame(2, 1, frameX > 72 ? 1 : 0, 0); - Vector2 stamenOrigin = stamenFrame.Size() * new Vector2(0.5f, 1f); - Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); - Vector2 drawPos = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset + new Vector2(31f, 38f); - if (frameX < 72) - drawPos.X += 4f; - - // Create some pollen dust. - if (!Main.gamePaused && windTimeLeft >= 2 && Main.rand.NextBool(4)) - { - Vector2 pollenVelocity = -Vector2.UnitY.RotatedByRandom(windRotation * 2.3f) * 3f; - Dust pollen = Dust.NewDustPerfect(drawPos + Main.screenPosition - drawOffset - Vector2.UnitY * 16f, DustID.JungleSpore); - pollen.velocity = pollenVelocity; - pollen.scale = 1.6f; - } - - Main.spriteBatch.Draw(stamenTexture, drawPos, stamenFrame, drawColor, windRotation, stamenOrigin, 1f, SpriteEffects.None, 0f); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - } -} diff --git a/Tiles/FloralParadise/PinkFlowerBig.png b/Tiles/FloralParadise/PinkFlowerBig.png deleted file mode 100644 index b8611c19c87bc0c7828675af4733efab7426219a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 620 zcmV-y0+aoTP)Px#1ZP1_K>z@;j|==^1poj55>QN3MU7l>PdrP;c&7iG%G{iz0001V+_k;{000Jb zQchF<|NsC00JFcOzW@LL32;bRa{vGizyJUazyWI3i3tDz0ntfBK~z{r?UYNB!ypU= zV+Zbk<#DG`!1=M6no+8F3laKr=0%nHJDY z-wAa2L+k}K)3*U_8|&`@&7HCX0kAc-&|NM36n~}B2M9iiUk-hC$P7g3zSp`RdM8P&CBoddS9I5jE$NX^g2KK#fOzU!4^Q3xyF@fn@2n`HYCX zv-DWy5be!Jpmb-wUOQw3%A>46i~z;e+jpP)$Q*`ai0CLY7>BC$dMyPXh7*G>rEMRI zm*eb}6^LZ7BS!uDvQp+Hj4SDdJsX{ykpqq{N}n++phvHKKsJq5zOITW=@{{e8LLKo zBg0lVtHVR_4IqzZo(JnW{xv+}WCaQs(rBi@;1fiwu`tVKYP186rtAhZIe{1v5vikM z#K{OmFj}Jk;)NxuktVl|LnHKPN851X7$bI6aUfTm8RS_RfkXld^@|oSGDf8k=|f~S zc5`Wp;j`DFJzN~DiyU@ZaZ^qpB$O{FFvuZcM4=IXYLQ#%pgy!{&+)8150N-sTj5=K zffNarD-8T$N4+u%u@4qis2`6#4;0Z>a#D7n|5q}gT7Li#_Nn{1``2&1HTz6)2{r~^}WiRLd%b7s2lZjEak-;lFeeBVVfmkF$Ewf8%;DO%BCp!LvI`9-n1&`xh;E zed;9s3uc=`BW1q7W!`c&r}fX`rO6H3W-4uwu;q4DsOP(~Sc~)4!cBWsA2Ho}rcL#Gq)V~S8CL3sE3LdMgWoz(fKFIN1#OuR?sh=6lT9+SF6AX0LYcQBU o_gRwO0q#dNS7Y7?ocPH;?VQlclas1f0)52b>FVdQ&MBb@08!zEGynhq diff --git a/Tiles/FloralParadise/PinkFlowerStamen.png b/Tiles/FloralParadise/PinkFlowerStamen.png deleted file mode 100644 index 9641dcb2800d84a5a88a43db30cc321f5066b065..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 289 zcmeAS@N?(olHy`uVBq!ia0vp^DnKm3!3-pqrme35QjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1``2&1HT>t<7|FV~JXC~MG%b7qi_0ui0B3DSiH_!OLfaE}g)bN`XfIt``G ztE`Qivd%8ha;svDTwT3Zt2%?Nvf+h9TGPXfk0P5Ix43oQ(2W3VXUmZQAQPH%{kU b@QzuofpcT)E`>QjS21|H`njxgN@xNAa*Ala diff --git a/Tiles/FloralParadise/SmallFloralPlants.cs b/Tiles/FloralParadise/SmallFloralPlants.cs deleted file mode 100644 index 4bbd8ef9a8..0000000000 --- a/Tiles/FloralParadise/SmallFloralPlants.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class SmallFloralPlants : ModTile - { - public const int Variants = 8; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileCut[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style1x1); - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - HitSound = SoundID.Grass; - DustType = DustID.Grass; - AddMapEntry(new Color(28, 216, 94)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - - public override void NearbyEffects(int i, int j, bool closer) - { - if (CalamityUtils.ParanoidTileRetrieval(i, j).LiquidAmount > 64) - WorldGen.KillTile(i, j); - } - } -} diff --git a/Tiles/FloralParadise/SmallFloralPlants.png b/Tiles/FloralParadise/SmallFloralPlants.png deleted file mode 100644 index f16c30cd3aaa9621d5a240020851ac9d9095d5be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 563 zcmeAS@N?(olHy`uVBq!ia0vp^eLyV4!3-pKwTm$UDaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(ehe-T^)#u6EM$MPg#!M%woNQmO``v*h`O1O+Ch+822k2IQ$lwAk&; zLBmqj(Nl7#o!$RS*OyOB%W8M=%ThB{R&L0N5>Zz4uQ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IP00000 LNkvXXu0mjfr^2#J diff --git a/Tiles/FloralParadise/SmallVines.cs b/Tiles/FloralParadise/SmallVines.cs deleted file mode 100644 index 7497023bda..0000000000 --- a/Tiles/FloralParadise/SmallVines.cs +++ /dev/null @@ -1,95 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class SmallVines : ModTile - { - public override void SetStaticDefaults() - { - Main.tileCut[Type] = true; - Main.tileBlockLight[Type] = true; - Main.tileLavaDeath[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileFrameImportant[Type] = true; - AddMapEntry(new Color(100, 151, 31)); - HitSound = SoundID.Grass; - DustType = DustID.Grass; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - - public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem) - { - if (WorldGen.genRand.NextBool(2) && Main.player[(int)Player.FindClosest(new Vector2((float)(i * 16), (float)(j * 16)), 16, 16)].cordage) - Item.NewItem(new EntitySource_TileBreak(i, j), new Vector2(i * 16 + 8f, j * 16 + 8f), ItemID.VineRope); - - if (Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType == Type) - { - WorldGen.KillTile(i, j + 1, false, false, false); - if (!Main.tile[i, j + 1].HasTile && Main.netMode != NetmodeID.SinglePlayer) - { - NetMessage.SendData(MessageID.TileManipulation, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); - } - } - - if (Main.tile[i, j - 1].HasTile && Main.tile[i, j - 1].TileType == Type) - { - Main.tile[i, j - 1].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, j - 1].TileFrameY = 54; - if (Main.netMode != NetmodeID.SinglePlayer) - NetMessage.SendData(MessageID.TileManipulation, -1, -1, null, 0, (float)i, (float)j + 1, 0f, 0, 0, 0); - } - } - - public override void RandomUpdate(int i, int j) - { - if (Main.tile[i, j + 1] != null) - { - if (!Main.tile[i, j + 1].HasTile && Main.tile[i, j + 1].TileType != Type) - { - if (Main.tile[i, j + 1].LiquidAmount >= 128 && Main.tile[i, j + 1].LiquidType == LiquidID.Water) - { - bool canGrow = false; - for (int y = j; y > j - 10; j--) - { - if (Main.tile[i, y].BottomSlope) - { - canGrow = false; - break; - } - if (Main.tile[i, y].HasTile && !Main.tile[i, y].BottomSlope) - { - canGrow = true; - break; - } - } - if (canGrow) - { - int below = j + 1; - Main.tile[i, below].TileType = Type; - Main.tile[i, below].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below].TileFrameY = 54; - Main.tile[i, below - 1].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below - 1].TileFrameY = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[i, below].Get().HasTile = true; - WorldGen.SquareTileFrame(i, below, true); - WorldGen.SquareTileFrame(i, below - 1, true); - if (Main.dedServ) - { - NetMessage.SendTileSquare(-1, i, below, 3, TileChangeType.None); - NetMessage.SendTileSquare(-1, i, below - 1, 3, TileChangeType.None); - } - } - } - } - } - } - } -} diff --git a/Tiles/FloralParadise/SmallVines.png b/Tiles/FloralParadise/SmallVines.png deleted file mode 100644 index 6b64a467bedebe1ddf52fbd776f9f6d4a21a67e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 548 zcmeAS@N?(olHy`uVBq!ia0vp^WNn{1`MFV_7T$Sx~{i}`b{iP8d@BeIx*f$tCqGm2_>H2^JX^>lFziE!UKm3vZ)0uSrY72oYYT{^dhgWtl+0p zzAQ0aaIio|@yLuIjdZ!>P3x8lsmln(dTUO5aDDQz6xYp(vp>vOA*HZ%&i1vUCThF3 z<=(NIzCkFhV^t*Qfhpf)O`J=3B_40P`Bv90#r3ycn8~tVIxq7VWh*}6`E+!i;wrX^ zMUsoMO=`^VYA(v$wk51(A&{Fh%aAELPMHf(|!FU zsVSG^mX;suI<|Pv!B4Li-Aodew>z{bjd|Mkw2+r83lm-Vj_q>up76x`L!MXBJK;dn zZ2N$7aUz~!8Pd+XI(0I>b@CoG6nkIYM<{{r-Z3lhR^Pba{l^XN+k0Z zr`LqbazG0gW}CS7)Kzn9PkPL<^@Q0aQ|8q9Z(Xj>$`If0w&0uAW?a1QODr7)kd>n_7V$VEHQYx`njxgN@xNA2n*ja diff --git a/Tiles/FloralParadise/SmallWallFungi.cs b/Tiles/FloralParadise/SmallWallFungi.cs deleted file mode 100644 index aa7d67c480..0000000000 --- a/Tiles/FloralParadise/SmallWallFungi.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class SmallWallFungi : ModTile - { - public const int Variants = 3; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoAttach[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 1; - TileObjectData.newTile.Height = 1; - TileObjectData.newTile.Origin = new Point16(0, 0); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 1, 0); - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - DustType = DustID.Dirt; - - AddMapEntry(new Color(165, 126, 84)); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/SmallWallFungi.png b/Tiles/FloralParadise/SmallWallFungi.png deleted file mode 100644 index de025416bcfc0a0fb1f275f1e5c808ac18625733..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 619 zcmV-x0+juUP)Px%B}qgKmd|PvQ51*2sZAznnv}F*ij}6=paFHG5=2CBC5o>g_zu2=`@VwU z8;Bs{(k@aJim6l*wJAwxOe!%p+O+AoxN`{iCX-mYa_YC5`zPnj{C+v-UJD-{T)PZF z+@1iSy?^8m+m|^zWdW=_&uhP%Plf^5`QCK_vQBttp3Qn!i&Ls~0GNxN(e^d>dRl(J zcryvx0+{gouz#INb3znPFU?p{v;;9SXS>-7(tUOY7} zeEBglZ_0Df%x|*SIRFCem}O4fxulehMJ8Q!S45wo*704OsxS#%}=Z=_vrJ zJ8i8d{G7|bP_^0Vsdw3KcD1~+p1YqL`62RNb|QYtYD}oNlmnuKDBV|F&42u=oRhAV zjqL-2PMe4mLMRgPp1N9IaZ1L5>AZ|v%Uw8XGSS%o*(T) z6{EVV*M{lzI5zU1EPzU_1^j(iHAyTkoU$6rmrCA~a_(GGo#e}@unU9#`PIU%8vE3w zpRy*)7Z(6{xA6^t`DEAvc=@)WYS-(+f?tFuc5I-=Odj963P5i<4#1oD743XV zJ5eo$)a308>V`1x{1MjIiWb0=r>}wj4M^^c2Zu)h6utO<+`Mr<*floRF+sZJIMTB= z0P$JnaG}^3sjwhQuRMEoqWr>t$BxT!6&Ctk`D6svu|GRy#o()|em(#I002ovPDHLk FV1o2jBDVkl diff --git a/Tiles/FloralParadise/SmallWallFungiLeft.cs b/Tiles/FloralParadise/SmallWallFungiLeft.cs deleted file mode 100644 index 7aeb6bf321..0000000000 --- a/Tiles/FloralParadise/SmallWallFungiLeft.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class SmallWallFungiLeft : ModTile - { - public const int Variants = 3; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoAttach[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 1; - TileObjectData.newTile.Height = 1; - TileObjectData.newTile.Origin = new Point16(0, 0); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 1, 0); - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - DustType = DustID.Dirt; - - AddMapEntry(new Color(165, 126, 84)); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/SmallWallFungiLeft.png b/Tiles/FloralParadise/SmallWallFungiLeft.png deleted file mode 100644 index 55d42f575c98912a72f6e7b6c62d8196f2ced239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmeAS@N?(olHy`uVBq!ia0vp^WG*TI6BqZKORh)qeTJG*e||pm177Z6AlBSEK+1dp%toLoEE)_IdL;8*&^`nEyL|=MP?ul~-K5U-?dw>`6M* zJaN-?3i+%1&D8Bcj-QsFr)h>|>5+BECM$B)cE8t3742MN zc+G3|TE&nx{srPswx0OwQR~aBC6Xz4<@k=7D@9{-Re$nr;n0bi^j&UO)I9O?)7p9L hKG?sNj=FVEKih)WbN8vOyMPX3@O1TaS?83{1OU#PYN-GK diff --git a/Tiles/FloralParadise/TallFloralPlants.cs b/Tiles/FloralParadise/TallFloralPlants.cs deleted file mode 100644 index 45b8794cfd..0000000000 --- a/Tiles/FloralParadise/TallFloralPlants.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class TallFloralPlants : ModTile - { - public const int Variants = 12; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileCut[Type] = true; - Main.tileObsidianKill[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.Width = 2; - TileObjectData.newTile.Height = 1; - TileObjectData.newTile.Origin = new Point16(1, 0); - TileObjectData.newTile.CoordinateHeights = new int[] - { - 16 - }; - TileObjectData.newTile.CoordinateWidth = 16; - TileObjectData.newTile.CoordinatePadding = 2; - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - HitSound = SoundID.Grass; - DustType = DustID.Grass; - AddMapEntry(new Color(106, 135, 69)); - } - - public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY) - { - offsetY = 2; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 4; - } - - public override void NearbyEffects(int i, int j, bool closer) - { - if (CalamityUtils.ParanoidTileRetrieval(i, j).LiquidAmount > 64) - WorldGen.KillTile(i, j); - } - } -} diff --git a/Tiles/FloralParadise/TallFloralPlants.png b/Tiles/FloralParadise/TallFloralPlants.png deleted file mode 100644 index 45e35742a059e564bc9a29d4bb5e00fced6f9206..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3989 zcmV;G4{GpPx^Pf0{URCt{2ooQ@b*LBB#Z#XN-A&0w3Nv5nlwj3{ttGIBZNI~kl3ZkU-m)1cM zv}jSML4hVfgSKDtp=r`@ZReI1h_Noez*;Qo$sp$AeUV(ue~0r4SN79*#ZzS*L#J4u>u6x1O$xr z3j$@Tc&*&BrEIwjaP0TC12AxX4uILg1pu1b5+1OS zun7peCm!B=@46MU_0A1Y?0FM91bpRgtP!j-; z9ohoGnNv5*0GV|0m*S~JnX0qq5CEgaQ@bD>M^O-APtN;Nv0k>GQkAG&5 zZ^7?l^ez)zc!%&t5YOjxb022#KKy~Ii`sf1ywA9rA5UY_XC*!tFdG3{S>yGP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QddlHsCSwlTEF1DGrIn+yq?p)>?t7pFu^{r8XG2H@C(pR>ky=(ry$xbR>=iF!A|mtCEPHpyvgY=wS5LKzGR%b&t2?s2wevdmtXTdXU1F2Z{^Xm!>vR86 zdndTt{?w&u*#Uk(!@2px+CIEGfbmi$}RiEyO{1BEd$iI%X<9qyK+7L ztL^?1GpJnlX>2nXIHPSl`|n(r>>N0zNn@7^gg)^tk7}< z+3f)WY(B!d1x(yYHIQ9EwUwfh^CuQ3Qe*F9Qbuy&dKFznYsBK|J}WmjP>=QV%&QW| zIC)L7(RVcYx4RLh7mL0Y$3?X`maDN`6bV@w9IC0@cT~7LiCyHE?fqdo9@SQnuxQn( zE7$z0-=alon`4$`b}h1Mm}+k$a@(7oDq3DWja%t>a~T=m%7VVK!BeCybm0f+$Z(!B^^VmS?tOz?oMEZyJJ|P^%k;HZ!u>+o#X9w zqMbh2Efg0ri5;n=zxOPiF*{|=&eXY_^gGrjmat@qrD;gKfIB-S9oZ|}3qMuCi>-$4q9%22&4|#j`0m?2z5gM*Zn{mlx!|#p)wgySh#Zqs4W1L8MXcr!tH? vp7xy*N6i^cuNf;F^;eBS1I7vvU=#4a{SCDvkiCEr00000NkvXXu0mjf;6L^r diff --git a/Tiles/FloralParadise/VineLoops.cs b/Tiles/FloralParadise/VineLoops.cs deleted file mode 100644 index e7259e51c4..0000000000 --- a/Tiles/FloralParadise/VineLoops.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class VineLoops : ModTile - { - public const int Variants = 3; - - public override void SetStaticDefaults() - { - Main.tileCut[Type] = true; - Main.tileBlockLight[Type] = true; - Main.tileLavaDeath[Type] = true; - Main.tileNoFail[Type] = true; - Main.tileFrameImportant[Type] = true; - - TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2); - TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorTop = new(AnchorType.SolidTile, 2, 0); - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - AddMapEntry(new Color(47, 75, 32)); - HitSound = SoundID.Grass; - DustType = DustID.Grass; - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/VineLoops.png b/Tiles/FloralParadise/VineLoops.png deleted file mode 100644 index 987e3b445db6d1f4070533af797e5347167d6b1a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1980 zcmV;t2SfOYP)Px+c1c7*RA_NoBaswIiKIm8Bm9u%)K*=$u45xGnxIGn7;uZA3nu|u z6e!SLcSZl0qJKew00CMg(W0xsF6^QW5-r@uLSt7}V^^XmQ6lw8Nt7r~7iS)+8Iu*I z2z43E*~r70dGF24J@?#u-?f#_WNd(3BnH63?iLO#fWqP;XMuDkWB%E4zF;z9>2Fl$ zhe|rXmU69U?*2p9xEFr#UDvqr;T{X%+~t4`us&08jnfx6umEC%eE_Vk)@^`y-VOus z;YWL}`8M*~uJOPBvm{5yHP_vnI^BDE^LEDjlMOIi6={eObK3*6CFM0v( zU@UCm&-(yGg4N@0v5p?hIQPBtc2+;!%WJ%~lnqc_tvlz%tZC;wr1)Q;9kY&u&#*2- zgJGFy9B^sanPBqT2mtjB*~U(_-r0RAUBB*V*-lRaXljBtjo|=!y>(BD{noCs-nNG+>1b zWe5z69suy*rt*l~l=7qPntnf$KLKAoFI&E?yk=}lmJ<(zEP!3-eDt0$6+W_CWB4!y2Hqm1|p?PLJ%-vjdYpl_ZXfoXL zd7=Yiq&Mp8G%q_0^;-bzGX+=vWtf&sB`kn4dVZf_T?T9N+K9faqb(*{{H&CBT^PJr zw*dM!4*{6{+e$|hOiYdekV=ZV<2yt4(eYzZS@u7lEC6uht@8ksD=}Ba!!T{OBnEhW zy+Jq`w*bPKejA$6riliPM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22e!yBN3HKknOy*Y-?f*ks~_!d#4ce>E;n`<}@~;qp5GBojRV(itIQ zHY*BA%>{F>vnS(&!vn%qxUL%pttI~77}w8Jg-sa#14s$#R07*qoM6N<$ Eg5fP400000 diff --git a/Tiles/FloralParadise/WallLeavesLeft.cs b/Tiles/FloralParadise/WallLeavesLeft.cs deleted file mode 100644 index d68e4f0195..0000000000 --- a/Tiles/FloralParadise/WallLeavesLeft.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.DataStructures; -using Terraria.Enums; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class WallLeavesLeft : ModTile - { - public const int Variants = 3; - - public override void SetStaticDefaults() - { - Main.tileFrameImportant[Type] = true; - Main.tileNoAttach[Type] = true; - TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1); - TileObjectData.newTile.AnchorBottom = AnchorData.Empty; - TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0); - TileObjectData.newTile.RandomStyleRange = Variants; - TileObjectData.addTile(Type); - - HitSound = SoundID.Grass; - DustType = DustID.Dirt; - - AddMapEntry(new Color(145, 170, 61)); - } - - public override void NumDust(int i, int j, bool fail, ref int num) - { - num = fail ? 1 : 3; - } - } -} diff --git a/Tiles/FloralParadise/WallLeavesLeft.png b/Tiles/FloralParadise/WallLeavesLeft.png deleted file mode 100644 index a82df1d3ea936b7029ded6aa23bcf08f3059b786..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 410 zcmeAS@N?(olHy`uVBq!ia0vp^IY2DL!3-ojC!F>JQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`MFV_7Tt$=>RSiV#{iOo()JpnHC$6#u%1oU0M1MG8>xx2KC^h==#y$$^^=8SpSqR{Q$5|Ien0uD50$XScs6 zxx#Q&iqEa2%TfMH6@T5i#8z$o%X~F)ZS3_Q0tbJWKK(9VWv^v&{gLF49(UB@pjOz^dOBaIXE)J7^w*Si=C6Tr3*gtZlUwzN+QkeXq*Tl|lk(rO#&zIb< xPsX!zZYfy1tGxXFjf>Zvb0gxsHF&yzFf+!>Pc+kh69Nnd22WQ%mvv4FO#q!fq}Kod diff --git a/Tiles/FloralParadise/WaterfallCreator.cs b/Tiles/FloralParadise/WaterfallCreator.cs deleted file mode 100644 index 9bda03602b..0000000000 --- a/Tiles/FloralParadise/WaterfallCreator.cs +++ /dev/null @@ -1,42 +0,0 @@ -using CalamityMod.Particles; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; - -namespace CalamityMod.Tiles.FloralParadise -{ - public class WaterfallCreator : ModTile - { - public override void SetStaticDefaults() - { - Main.tileSolid[Type] = false; - Main.tileBlockLight[Type] = true; - Main.tileBrick[Type] = true; - - CalamityUtils.MergeWithGeneral(Type); - CalamityUtils.MergeWithOres(Type); - CalamityUtils.MergeWithFloralParadise(Type); - - HitSound = SoundID.Tink; - - AddMapEntry(new Color(33, 56, 27)); - } - - public override void NearbyEffects(int i, int j, bool closer) - { - Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j); - if (Main.dedServ || !Main.rand.NextBool() || Main.gamePaused || tile.LiquidAmount > 0) - return; - - for (int k = 0; k < 16; k++) - { - Vector2 waterVelocity = -Vector2.UnitY.RotatedByRandom(0.29f) * Main.rand.NextFloat(1f, 2.4f); - float waterScale = Main.rand.NextFloat(0.08f, 0.12f); - Color waterColor = Color.Lerp(Color.Cyan, Color.SkyBlue, Main.rand.NextFloat()); - Vector2 particlePosition = new Vector2(i + 0.5f, j + 0.5f) * 16f + Vector2.UnitY * Main.rand.NextFloat(24f); - GeneralParticleHandler.SpawnParticle(new WaterFoamParticle(particlePosition, waterVelocity, 150, waterScale, waterColor)); - } - } - } -} diff --git a/Tiles/FloralParadise/WaterfallCreator.png b/Tiles/FloralParadise/WaterfallCreator.png deleted file mode 100644 index 622533204ae4c3f2ac14091eae8c242cddeb5fb0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 182 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF player.Calamity().ZoneSulphur; - public static bool InFloralParadise(this Player player) => player.Calamity().ZoneFloralParadise; - public static bool InAstral(this Player player, int biome = 0) //1 is above ground, 2 is underground, 3 is desert { switch (biome) diff --git a/Utilities/TileUtils.cs b/Utilities/TileUtils.cs index 6830bc572b..28e6382e8d 100644 --- a/Utilities/TileUtils.cs +++ b/Utilities/TileUtils.cs @@ -8,7 +8,6 @@ using CalamityMod.Tiles.Astral; using CalamityMod.Tiles.AstralDesert; using CalamityMod.Tiles.AstralSnow; using CalamityMod.Tiles.Crags; -using CalamityMod.Tiles.FloralParadise; using CalamityMod.Tiles.FurnitureAbyss; using CalamityMod.Tiles.FurnitureAshen; using CalamityMod.Tiles.FurnitureDriftwood; @@ -533,17 +532,6 @@ namespace CalamityMod TileType(), }); - /// - /// Makes the tile merge with all the tile types that generate within various types of floral paradise tiles. - /// - /// The tile whose merging properties will be set. - public static void MergeWithFloralParadise(int type) => MergeWithSet(type, new int[] { - TileType(), - TileType(), - TileType(), - TileType(), - }); - /// /// Makes the tile merge with all the tile types that generate within various types of astral tiles /// diff --git a/Waterfalls/WaterfallRenderer.cs b/Waterfalls/WaterfallRenderer.cs deleted file mode 100644 index c70c472cde..0000000000 --- a/Waterfalls/WaterfallRenderer.cs +++ /dev/null @@ -1,105 +0,0 @@ -using CalamityMod.Graphics.Primitives; -using CalamityMod.Tiles.FloralParadise; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using System.Collections.Generic; -using Terraria; -using Terraria.Graphics.Shaders; -using Terraria.ModLoader; - -namespace CalamityMod.Waterfalls -{ - public static class WaterfallRenderer - { - private static Vector2 currentWaterfallPosition; - - private static float currentWaterfallBrightness; - - private static float currentWaterfallHeight; - - internal static float PrimitiveWidthFunction(float completionRatio, Vector2 vertexPos) - { - float baseWidth = MathHelper.Lerp(16f, 6f, Utils.GetLerpValue(36f, 216f, currentWaterfallHeight, true)); - float positionOffset = currentWaterfallPosition.X * 0.17f % 300f + currentWaterfallPosition.Y * 0.33f % 300f; - float x1Offset = (float)(Math.Sin(-Main.GlobalTimeWrappedHourly * 3f + completionRatio * 9f + positionOffset) * 0.5f + 0.5f) * baseWidth * 0.2f; - float x2Offset = (float)(Math.Sin(-Main.GlobalTimeWrappedHourly * 6f + completionRatio * 6f + positionOffset) * 0.5f + 0.5f) * baseWidth * 0.25f; - - if (completionRatio < 0.2f) - return MathHelper.SmoothStep(1f, baseWidth + x2Offset - x1Offset, Utils.GetLerpValue(0f, 0.2f, completionRatio, true)); - return baseWidth + x2Offset + MathHelper.SmoothStep(0f, baseWidth * 0.85f, Utils.GetLerpValue(0.84f, 0.96f, completionRatio, true)) - x1Offset; - } - - internal static Color PrimitiveColorFunction(float completionRatio, Vector2 vertexPos) - { - Color c = Color.Lerp(Color.Cyan, new Color(1f, 1f, 1f, 0f), (float)Math.Pow(Utils.GetLerpValue(0.75f, 1f, completionRatio, true), 0.68)); - return c; - } - - public static IEnumerable FindNearbyWaterfallRenderers() - { - int waterfallGeneratorID = ModContent.TileType(); - Point center = Main.LocalPlayer.Center.ToTileCoordinates(); - for (int i = -Main.screenWidth / 16 - 10; i < Main.screenWidth / 16 + 10; i++) - { - for (int j = -Main.screenHeight / 16 - 10; j < Main.screenHeight / 16 + 10; j++) - { - Tile tile = CalamityUtils.ParanoidTileRetrieval(center.X + i, center.Y + j); - if (tile.TileType != waterfallGeneratorID || !tile.HasTile) - continue; - - yield return new Vector2(center.X + i, center.Y + j); - } - } - } - - public static void DrawWaterfalls() - { - foreach (Vector2 drawTilePosition in FindNearbyWaterfallRenderers()) - { - Vector2 drawPosition = drawTilePosition * 16f; - Vector2 bottom = drawPosition; - for (int i = 0; i < 16; i++) - { - if (CalamityUtils.ParanoidTileRetrieval((int)drawTilePosition.X, (int)drawTilePosition.Y + i).LiquidAmount > 0) - { - bottom.Y += i * 16f; - break; - } - } - - bottom.Y += 4f; - currentWaterfallHeight = MathHelper.Distance(bottom.Y, drawPosition.Y); - if (currentWaterfallHeight <= 20f) - continue; - - currentWaterfallBrightness = Lighting.Brightness((int)(drawPosition.X / 16f), (int)(drawPosition.Y / 16f)); - currentWaterfallPosition = drawPosition + Vector2.One * 8f; - - Vector2[] drawPoints = new Vector2[] - { - drawPosition, - Vector2.Lerp(drawPosition, bottom, 0.5f), - bottom - }; - - // Determine the position of the waterfall's ambience sound. - float distanceFromWaterfall = Main.LocalPlayer.Distance(drawPosition + Vector2.One * 8f); - float distanceFromOldWaterfall = 100000f; - if (Main.ambientWaterfallX != -1f && Main.ambientWaterfallY != -1f) - distanceFromOldWaterfall = Main.LocalPlayer.Distance(new Vector2(Main.ambientWaterfallX, Main.ambientWaterfallY)); - - if (distanceFromOldWaterfall > distanceFromWaterfall) - { - Main.ambientWaterfallX = drawPosition.X + 8f; - Main.ambientWaterfallY = drawPosition.Y + 8f; - Main.ambientWaterfallStrength = MathHelper.Max(Main.ambientWaterfallStrength, Utils.GetLerpValue(740f, 300f, distanceFromWaterfall, true)); - } - - GameShaders.Misc["CalamityMod:Waterfall"].SetShaderTexture(ModContent.Request("CalamityMod/ExtraTextures/WorleyNoise")); - GameShaders.Misc["CalamityMod:Waterfall"].UseOpacity((float)Math.Pow(currentWaterfallBrightness, 0.62)); - PrimitiveRenderer.RenderTrail(drawPoints, new(PrimitiveWidthFunction, PrimitiveColorFunction, shader: GameShaders.Misc["CalamityMod:Waterfall"]), 80); - } - } - } -} diff --git a/World/Minibiomes/FloralParadiseMinibiome.cs b/World/Minibiomes/FloralParadiseMinibiome.cs deleted file mode 100644 index 511652ec56..0000000000 --- a/World/Minibiomes/FloralParadiseMinibiome.cs +++ /dev/null @@ -1,535 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using CalamityMod.Tiles.DraedonStructures; -using CalamityMod.Tiles.FloralParadise; -using CalamityMod.Tiles.SunkenSea; -using Microsoft.Xna.Framework; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -using Terraria.ObjectData; -using Terraria.Utilities; -using Terraria.WorldBuilding; - -namespace CalamityMod.World.Minibiomes -{ - public class FloralParadiseMinibiome - { - // 02JUN2024: Ozzatron: Disable generation of the Floral Paradise biome on the assumption that it will break horribly until tested. - internal static readonly bool SHOULD_GENERATE = false; - - // Constants pertaining to the more important details of the world-gen, to allow for ease-of-change. - // Certain numbers are hardcoded and not present here, but they tend to be in regards to things that either really shouldn't need changing or - // are extremely subtle details. - public const int TotalCavesInMediumWorld = 3; - - public const int MaxHorizontalDistanceFromWorldCenter = 1250; - - public const int MinSurfaceDepth = 250; - - public const int MaxSurfaceDepth = 420; - - public const int BlacklistedTileCheckArea = 50; - - public const float CaveOpennessFactor = 0.08f; - - public const float WallOpennessFactor = 0.135f; - - public const int TotalSecondaryDirtCreationPasses = 1; - - public const float SecondaryPassDirtCreationChance = 0.5f; - - public const int MinVigorousVineLength = 6; - - public const int MaxVigorousVineLength = 16; - - public const int MinSmallVineLength = 9; - - public const int MaxSmallVineLength = 17; - - public const int MinSmallVineCount = 45; - - public const int MaxSmallVineCount = 64; - - public const int MinPondWaterTileCount = 180; - - public const int MaxPondWaterTileCount = 210; - - public static int[] BlacklistedNearbyTiles => new int[] - { - TileID.Sand, - TileID.Sandstone, - TileID.HardenedSand, - TileID.DesertFossil, - TileID.SnowBlock, - TileID.IceBlock, - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - ModContent.TileType(), - }; - - public static void GenerateInstances() - { - float worldSize = Main.maxTilesX / 4200f; - int totalCaves = (int)(worldSize * TotalCavesInMediumWorld); - int infiniteLoopPreventerIncrement = 0; - List existingCaveAreas = new List(); - for (int i = 0; i < totalCaves - 1; i++) - { - // Use an emergency infinite loop increment. - // The placement loop is left if it exceeds an extremely large quantity. - // This exists primarily due to potential issues in small worlds. - // This will likely never be hit in typical circumstances, but it's better to be safe than sorry. - infiniteLoopPreventerIncrement++; - if (infiniteLoopPreventerIncrement >= 3000) - break; - - int x = Main.maxTilesX / 2 + WorldGen.genRand.Next(-MaxHorizontalDistanceFromWorldCenter, MaxHorizontalDistanceFromWorldCenter); - int y = (int)Main.worldSurface + WorldGen.genRand.Next(MinSurfaceDepth, MaxSurfaceDepth); - int width = (int)(WorldGen.genRand.Next(127, 140) * worldSize); - int height = (int)(WorldGen.genRand.Next(80, 104) * worldSize); - Rectangle caveArea = Utils.CenteredRectangle(new Vector2(x, y), new Vector2(width, height)); - - // Try again if this selected location is near blacklisted tiles. - // This is done to prevent logical consistencies/intrusion on unrelated biomes. - bool needsToTryAgain = false; - for (int dx = -BlacklistedTileCheckArea; dx < BlacklistedTileCheckArea; dx++) - { - for (int dy = -BlacklistedTileCheckArea; dy < BlacklistedTileCheckArea; dy++) - { - if (!needsToTryAgain) - { - Tile tile = CalamityUtils.ParanoidTileRetrieval(x + dx, y + dy); - needsToTryAgain = tile.HasTile && BlacklistedNearbyTiles.Contains(tile.TileType); - } - else - break; - } - } - - // If the blacklisted tile check was passed, check to see if the potential spot is near. - if (!needsToTryAgain) - needsToTryAgain = existingCaveAreas.Any(c => caveArea.Intersects(c)); - - if (needsToTryAgain) - { - i--; - continue; - } - - Place(caveArea); - existingCaveAreas.Add(caveArea); - } - - // Generate a single, special living tree on the surface with a floral paradise biome underneath. - for (int i = 0; i < 2000; i++) - { - int x = Main.maxTilesX / 2 + WorldGen.genRand.Next(330, MaxHorizontalDistanceFromWorldCenter) * WorldGen.genRand.NextBool().ToDirectionInt(); - int y = (int)Main.worldSurface - 120; - if (!FloralParadiseTree.Create(new(x, y))) - continue; - break; - } - } - - public static void Place(Rectangle placementArea) - { - int seed = WorldGen.genRand.Next(); - int pondCount = WorldGen.genRand.Next(3); - int smallVineCount = WorldGen.genRand.Next(MinSmallVineCount, MaxSmallVineCount); - int waterTileCount = WorldGen.genRand.Next(MinPondWaterTileCount, MaxPondWaterTileCount); - int smallFlowerCount = WorldGen.genRand.Next(150, 200); - int bigTreeCount = WorldGen.genRand.Next(2, 5); - - CutOutCave(placementArea, seed, out bool[,] grassDirtMap); - GenerateDirtBehindGrass(placementArea, grassDirtMap); - GenerateWalls(placementArea, unchecked(seed - 8)); - GenerateVines(placementArea, smallVineCount); - GeneratePonds(placementArea, waterTileCount, pondCount); - CreateScenicPlants(placementArea, smallFlowerCount); - CreateTrees(placementArea, bigTreeCount); - - // Place a blood orange. THIS IS FOR TESTING PURPOSES. - for (int i = 0; i < 1; i++) - { - int x = placementArea.X + WorldGen.genRand.Next(24, placementArea.Width - 24); - int y = placementArea.Y + WorldGen.genRand.Next(18, placementArea.Height - 18); - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (!WorldGen.SolidTile(x, y + 1) || !WorldGen.SolidTile(x + 1, y + 1) || tile.HasTile || tile.LiquidAmount > 0) - { - i--; - continue; - } - x--; - - for (int dx = 0; dx < 3; dx++) - { - for (int dy = 0; dy < 3; dy++) - { - Main.tile[x + dx, y + dy].TileType = (ushort)ModContent.TileType(); - Main.tile[x + dx, y + dy].TileFrameX = (short)(dx * 18); - Main.tile[x + dx, y + dy].TileFrameY = (short)(dy * 18); - Main.tile[x + dx, y + dy].Get().HasTile = true; - } - } - } - } - - public static void CutOutCave(Rectangle placementArea, int seed, out bool[,] grassDirtMap) - { - // Calculate the initial cell states with perlin noise. - // To be specific, it uses values near the midpoint of 0.5 as open caves. - // This helps solve the problem of having disconnected areas that using min/max threshold values causes. - bool[,] caveState = new bool[placementArea.Width, placementArea.Height]; - for (int i = 0; i < placementArea.Width; i++) - { - for (int j = 0; j < placementArea.Height; j++) - { - float noise = CalamityUtils.PerlinNoise2D(i / 240f, j / 180f, 3, seed) * 0.5f + 0.5f; - caveState[i, j] = MathHelper.Distance(noise, 0.56f) < CaveOpennessFactor; - if (WorldGen.genRand.NextBool(3)) - caveState[i, j] = WorldGen.genRand.NextBool(); - } - } - - // Repeatedly smoothen out the cave state with celluar automata. - for (int i = 0; i < 8; i++) - caveState = CalamityUtils.SimulateCelluarAutomata(caveState); - - // Reset tile states based on the above results. - ushort grassID = (ushort)ModContent.TileType(); - ushort stoneID = (ushort)ModContent.TileType(); - grassDirtMap = new bool[placementArea.Width, placementArea.Height]; - for (int x = placementArea.X; x < placementArea.X + placementArea.Width; x++) - { - for (int y = placementArea.Y; y < placementArea.Y + placementArea.Height; y++) - { - // Don't attempt to change tile data if a tile is outside of the world for some reason. - if (!WorldGen.InWorld(x, y, 1)) - continue; - - int arrayRelativeX = x - placementArea.X; - int arrayRelativeY = y - placementArea.Y; - Vector2 normalizedPosition = new Vector2(arrayRelativeX / (float)placementArea.Width, arrayRelativeY / (float)placementArea.Height); - float distanceFromCenter = Vector2.Distance(normalizedPosition, Vector2.One * 0.5f) * 1.75f; - if (distanceFromCenter > 1f) - distanceFromCenter = 1f; - - float ditherChance = Utils.GetLerpValue(0.97f, 0.72f, distanceFromCenter, true); - - Main.tile[x, y].WallType = WallID.None; - if (WorldGen.genRand.NextFloat() < ditherChance) - { - if (!caveState[arrayRelativeX, arrayRelativeY] && distanceFromCenter < 0.7f) - Main.tile[x, y].ClearEverything(); - else - { - bool useGrass = CalamityUtils.CountCellsAtPosition(caveState, arrayRelativeX, arrayRelativeY, false) >= 1 && distanceFromCenter < 0.72f; - grassDirtMap[arrayRelativeX, arrayRelativeY] = useGrass; - Main.tile[x, y].ClearEverything(); - Main.tile[x, y].ResetToType(useGrass ? grassID : stoneID); - WorldGen.SquareTileFrame(x, y); - } - } - } - } - } - - public static void GenerateDirtBehindGrass(Rectangle placementArea, bool[,] grassDirtMap) - { - ushort dirtID = (ushort)ModContent.TileType(); - ushort stoneID = (ushort)ModContent.TileType(); - ushort grassID = (ushort)ModContent.TileType(); - - // Perform secondary passes that overlay dirt behind grass. - for (int i = 0; i < TotalSecondaryDirtCreationPasses + 1; i++) - { - for (int x = placementArea.X; x < placementArea.X + placementArea.Width; x++) - { - for (int y = placementArea.Y; y < placementArea.Y + placementArea.Height; y++) - { - int arrayRelativeX = x - placementArea.X; - int arrayRelativeY = y - placementArea.Y; - bool nearbyGrassOrDirt = false; - if (arrayRelativeX - 1 >= 0 && grassDirtMap[arrayRelativeX - 1, arrayRelativeY]) - nearbyGrassOrDirt = true; - else if (arrayRelativeX + 1 < placementArea.Width && grassDirtMap[arrayRelativeX + 1, arrayRelativeY]) - nearbyGrassOrDirt = true; - else if (arrayRelativeY - 1 >= 0 && grassDirtMap[arrayRelativeX, arrayRelativeY - 1]) - nearbyGrassOrDirt = true; - else if (arrayRelativeY + 1 < placementArea.Height && grassDirtMap[arrayRelativeX, arrayRelativeY + 1]) - nearbyGrassOrDirt = true; - - // The first pass always generates dirt behind grass. - // However, successive passes only generate dirt with a specific probability. - // This makes the dirt feel more natural and connected to the underlying rock. - bool canPerformPlacement = i == 0 || WorldGen.genRand.NextFloat() < SecondaryPassDirtCreationChance; - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (canPerformPlacement && tile.HasTile && tile.TileType == stoneID && nearbyGrassOrDirt) - Main.tile[x, y].TileType = dirtID; - } - } - - // Reset the dirt/grass map for the next pass. - // This is skipped on the last pass for performance reasons, since the map won't be used after that point. - if (i >= TotalSecondaryDirtCreationPasses) - continue; - - for (int x = placementArea.X; x < placementArea.X + placementArea.Width; x++) - { - for (int y = placementArea.Y; y < placementArea.Y + placementArea.Height; y++) - { - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - int arrayRelativeX = x - placementArea.X; - int arrayRelativeY = y - placementArea.Y; - grassDirtMap[arrayRelativeX, arrayRelativeY] = tile.TileType == grassID || tile.TileType == dirtID; - } - } - } - } - - public static void GenerateWalls(Rectangle placementArea, int seed) - { - for (int x = placementArea.X; x < placementArea.X + placementArea.Width; x++) - { - for (int y = placementArea.Y; y < placementArea.Y + placementArea.Height; y++) - { - float noise = CalamityUtils.PerlinNoise2D(x / 160f, y / 160f, 3, seed) * 0.5f + 0.5f; - if (MathHelper.Distance(noise, 0.555f) < WallOpennessFactor) - Main.tile[x, y].WallType = WorldGen.genRand.NextBool(4) ? WallID.GrassUnsafe : WallID.FlowerUnsafe; - } - } - } - - public static void GenerateVines(Rectangle placementArea, int smallVineCount) - { - ushort[] vineIDs = new ushort[] - { - (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), - }; - - // Place small vines. - for (int i = 0; i < smallVineCount; i++) - { - int x = placementArea.X + WorldGen.genRand.Next(24, placementArea.Width - 24); - int y = placementArea.Y + WorldGen.genRand.Next(18, placementArea.Height - 18); - - // Ensure that the initial tile is empty and that there's a solid tile above for the vine to hang from. - // If these conditions are not met, try again. - if (CalamityUtils.ParanoidTileRetrieval(x, y).HasTile || !WorldGen.SolidTile(x, y - 1)) - { - i--; - continue; - } - - // Search to ensure that nothing is in the way of the vine's potential positions. - // If something is, try again. - int vineLength = WorldGen.genRand.Next(MinSmallVineLength, MaxSmallVineLength + 1); - bool neeedsToTryAgain = false; - for (int dy = 0; dy < vineLength; dy++) - { - if (CalamityUtils.ParanoidTileRetrieval(x, y + dy).HasTile) - { - neeedsToTryAgain = true; - break; - } - } - - if (neeedsToTryAgain) - { - i--; - continue; - } - - // Perform placement. - ushort vineID = WorldGen.genRand.Next(vineIDs); - for (int dy = 0; dy < vineLength; dy++) - { - Main.tile[x, y + dy].TileType = vineID; - if (dy == vineLength - 1) - { - Main.tile[x, y + dy].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[x, y + dy].TileFrameY = 54; - } - else - { - Main.tile[x, y + dy].TileFrameX = (short)(WorldGen.genRand.Next(3) * 18); - Main.tile[x, y + dy].TileFrameY = (short)(WorldGen.genRand.Next(3) * 18); - } - Main.tile[x, y + dy].Get().HasTile = true; - WorldGen.SquareTileFrame(x, y, true); - } - } - } - - public static void GeneratePonds(Rectangle placementArea, int waterTileCount, int pondCount) - { - for (int i = 0; i < pondCount; i++) - { - int x = placementArea.X + WorldGen.genRand.Next(24, placementArea.Width - 24); - int y = placementArea.Y + WorldGen.genRand.Next(24, placementArea.Height - 24); - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (tile.HasTile || tile.LiquidAmount > 0) - { - i--; - continue; - } - - // Go upward once an open area is found. This is where water will be created. - Point waterSpawnPoint = new Point(x, y); - for (int dy = 0; dy < 100; dy++) - { - if (CalamityUtils.ParanoidTileRetrieval(x, y - dy).HasTile) - { - waterSpawnPoint.Y -= dy - 1; - break; - } - } - - // Create a predetermined quantity of water via recursion. - // This starts at the initial water spawn point and the expands outward in all four cardinal directions repeatedly until either no more locations - // are valid or the water limit has been reached. - int increment = 0; - RecursivelyFillAreaWithWater(x, y, waterTileCount, ref increment); - - // Settle water and create waterfalls. - Liquid.QuickWater(3); - WorldGen.WaterCheck(); - Liquid.quickSettle = true; - Liquid.UpdateLiquid(); - WorldGen.WaterCheck(); - Liquid.quickSettle = false; - - for (int dy = 0; dy < 50; dy++) - { - if (CalamityUtils.ParanoidTileRetrieval(x, y + dy).LiquidAmount > 0) - { - Main.tile[x, y + dy - 8].Get().HasTile = true; - Main.tile[x, y + dy - 8].TileType = (ushort)ModContent.TileType(); - break; - } - } - } - } - - public static void CreateScenicPlants(Rectangle placementArea, int smallFlowerCount) - { - for (int i = 0; i < smallFlowerCount; i++) - { - int x = placementArea.X + WorldGen.genRand.Next(16, placementArea.Width - 16); - int y = placementArea.Y + WorldGen.genRand.Next(12, placementArea.Height - 12); - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (tile.HasTile || tile.LiquidAmount > 0 || !WorldGen.SolidTile(x, y + 1)) - { - i--; - continue; - } - - Main.tile[x, y].TileType = (ushort)ModContent.TileType(); - Main.tile[x, y].TileFrameX = (short)(WorldGen.genRand.Next(8) * 18); - Main.tile[x, y].TileFrameY = 0; - Main.tile[x, y].Get().HasTile = true; - } - - // TODO -- Move this to another method. - int tries = 0; - WeightedRandom tileSelector = new(WorldGen.genRand); - tileSelector.Add(ModContent.TileType(), 0.66D); - tileSelector.Add(ModContent.TileType(), 0.66D); - tileSelector.Add(ModContent.TileType(), 0.66D); - tileSelector.Add(ModContent.TileType(), 0.66D); - tileSelector.Add(ModContent.TileType(), 0.66D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 0.5D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - tileSelector.Add(ModContent.TileType(), 1D); - - for (int i = 0; i < 2400; i++) - { - tries++; - if (tries >= 16000) - break; - - int x = placementArea.X + WorldGen.genRand.Next(16, placementArea.Width - 16); - int y = placementArea.Y + WorldGen.genRand.Next(12, placementArea.Height - 12); - if (WorldGen.genRand.NextBool() && WorldUtils.Find(new(x, y), Searches.Chain(new Searches.Down(400), new Conditions.IsSolid()), out Point result)) - y = result.Y - 1; - - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (tile.HasTile || tile.LiquidAmount > 0) - { - i--; - continue; - } - - int tileID = tileSelector.Get(); - WorldGen.PlaceTile(x, y, tileID, style: WorldGen.genRand.Next(TileObjectData.GetTileData(tileID, 0).RandomStyleRange)); - } - } - - public static void CreateTrees(Rectangle placementArea, int treeCount) - { - int tries = 0; - int treeID = ModContent.TileType(); - - for (int i = 0; i < treeCount; i++) - { - tries++; - - int x = placementArea.X + WorldGen.genRand.Next(16, placementArea.Width - 16); - int y = placementArea.Y + WorldGen.genRand.Next(12, placementArea.Height - 12); - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - Vector2 checkTopLeft = new Vector2(x, y).ToWorldCoordinates() - new Vector2(120f, 300f); - Vector2 checkArea = new Vector2(240f, 200f); - - if (tries >= 2500) - break; - - if (tile.HasTile || tile.LiquidAmount > 0 || !WorldGen.SolidTile(x, y + 1) || - !TileObject.CanPlace(x, y, treeID, 0, 0, out _, true, checkStay: true) || - Collision.SolidCollision(checkTopLeft, (int)checkArea.X, (int)checkArea.Y)) - { - i--; - continue; - } - - WorldGen.PlaceTile(x, y, treeID); - } - } - - #region Biome-Specific Utilities - - public static void RecursivelyFillAreaWithWater(int x, int y, int limit, ref int increment) - { - Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (tile.HasTile || tile.LiquidAmount > 127) - return; - - increment++; - if (increment >= limit) - return; - - Main.tile[x, y].LiquidAmount = 255; - RecursivelyFillAreaWithWater(x + 1, y, limit, ref increment); - RecursivelyFillAreaWithWater(x - 1, y, limit, ref increment); - RecursivelyFillAreaWithWater(x, y + 1, limit, ref increment); - RecursivelyFillAreaWithWater(x, y - 1, limit, ref increment); - } - - #endregion Biome-Specific Utilities - } -} diff --git a/World/Minibiomes/FloralParadiseTree.cs b/World/Minibiomes/FloralParadiseTree.cs deleted file mode 100644 index e6bb80098e..0000000000 --- a/World/Minibiomes/FloralParadiseTree.cs +++ /dev/null @@ -1,138 +0,0 @@ -using Microsoft.Xna.Framework; -using System.Collections.Generic; -using Terraria; -using Terraria.GameContent.Generation; -using Terraria.ID; -using Terraria.WorldBuilding; - -namespace CalamityMod.World.Minibiomes -{ - public class FloralParadiseTree - { - public const int TrunkHeight = 220; - - public const int TrunkWidth = 10; - - public const int TrunkHollowSpace = 4; - - public const int RootCount = 5; - - public static bool Create(Point placementPosition) - { - float worldSize = Main.maxTilesX / 4200f; - if (!WorldUtils.Find(new Point(placementPosition.X - 3, placementPosition.Y), Searches.Chain(new Searches.Down(400), new GenCondition[] - { - new Conditions.IsSolid().AreaAnd(6, 1) - }), out Point ground)) - { - return false; - } - - ground.Y += (int)(TrunkHeight * 0.645f); - - // Get all tiles in a specific area. - Dictionary tileCounts = new Dictionary(); - WorldUtils.Gen(new Point(ground.X - TrunkHeight / 2, ground.Y - TrunkHeight / 2), new Shapes.Rectangle(TrunkHeight, TrunkHeight), new Actions.TileScanner(new ushort[] - { - TileID.Dirt, - TileID.Stone, - TileID.Mud, - TileID.JungleGrass, - TileID.SnowBlock, - TileID.Sand, - }).Output(tileCounts)); - - int overworldTileCount = tileCounts[TileID.Dirt] + tileCounts[TileID.Stone]; - int jungleTileCount = tileCounts[TileID.Mud] + tileCounts[TileID.JungleGrass]; - - // Avoid jungles, deserts, and snow biomes. - if (tileCounts[TileID.SnowBlock] > jungleTileCount || jungleTileCount > overworldTileCount || overworldTileCount < 50 || tileCounts[TileID.Sand] >= 50) - return false; - - float trunkRotation = WorldGen.genRand.NextFloatDirection() * 0.116f; - for (int i = 0; i < TrunkHeight; i += 2) - { - Point currentPoint = (ground.ToVector2() - Vector2.UnitY.RotatedBy(trunkRotation) * i).ToPoint(); - - // Create the trunk. - WorldUtils.Gen(currentPoint, new Shapes.Rectangle(TrunkWidth, TrunkWidth), Actions.Chain(new GenAction[] - { - new Actions.ClearTile(), - new Actions.PlaceWall(WallID.LivingWood, true), - new Actions.PlaceTile(TileID.LivingMahogany) - })); - } - - // Generate roots. - for (int i = 0; i < RootCount; i++) - { - int rootLength = (int)(TrunkHeight * WorldGen.genRand.NextFloat(0.425f, 0.7f)); - float rootAngle = MathHelper.Lerp(-0.89f, 0.89f, i / (float)(RootCount - 1f)) + WorldGen.genRand.NextFloatDirection() * 0.074f + trunkRotation + MathHelper.PiOver2; - WorldUtils.Gen(ground, new ShapeRoot(rootAngle, rootLength, TrunkWidth - 1), Actions.Chain(new GenAction[] - { - new Actions.SetTile(TileID.LivingMahogany), - })); - } - - List branchEnds = new(); - Point topOfTrunk = (ground.ToVector2() - Vector2.UnitY.RotatedBy(trunkRotation) * (TrunkHeight - 4f)).ToPoint(); - - // Create side branches. - for (int i = 0; i < RootCount - 1; i++) - { - int branchLength = WorldGen.genRand.Next(26, 49); - float branchDirectionX = -WorldGen.genRand.NextFloat(1.25f, 4.5f) * WorldGen.genRand.NextBool().ToDirectionInt(); - float branchDirectionY = -2f; - Vector2 branchDirection = new Vector2(branchDirectionX, branchDirectionY).SafeNormalize(Vector2.UnitX); - Point branchStart = (ground.ToVector2() - Vector2.UnitY.RotatedBy(trunkRotation) * Main.rand.NextFloat(0.45f, 0.84f) * TrunkHeight).ToPoint(); - WorldUtils.Gen(branchStart, new ShapeBranch(branchDirection.ToRotation(), branchLength).OutputEndpoints(branchEnds), Actions.Chain(new GenAction[] - { - new Actions.SetTile(TileID.LivingMahogany), - })); - } - - // Create branch leaves. - using (List.Enumerator enumerator = branchEnds.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - WorldUtils.Gen(enumerator.Current, new Shapes.Circle(4), Actions.Chain(new GenAction[] - { - new Modifiers.Blotches(4, 2, 0.3), - new Actions.SetTile(TileID.LivingMahoganyLeaves), - new Actions.SetFrames(true) - })); - } - } - - // Create leaves at the top of the trunk. - WorldUtils.Gen(topOfTrunk, new Shapes.Circle(TrunkWidth * 2), Actions.Chain(new GenAction[] - { - new Modifiers.Blotches(3, 2, 0.1), - new Actions.SetTile(TileID.LivingMahoganyLeaves), - new Actions.SetFrames(true) - })); - - // Generate a cave in the roots of the biome. - int width = (int)(WorldGen.genRand.Next(104, 120) * worldSize); - int height = (int)(WorldGen.genRand.Next(88, 110) * worldSize); - Vector2 cavePosition = ground.ToVector2() + Vector2.UnitY * height * 0.44f; - Rectangle caveArea = Utils.CenteredRectangle(cavePosition, new Vector2(width, height)); - FloralParadiseMinibiome.Place(caveArea); - - // Clear out the inner part of the tiles to create an open space in the tree. - for (int i = 0; i < TrunkHeight * 0.9f; i += 2) - { - Point currentPoint = (ground.ToVector2() - Vector2.UnitY.RotatedBy(trunkRotation) * i).ToPoint(); - Point center = (currentPoint.ToVector2() + Vector2.One * TrunkHollowSpace - Vector2.UnitX * 2f).ToPoint(); - WorldUtils.Gen(center, new Shapes.Rectangle(TrunkHollowSpace, TrunkHollowSpace), Actions.Chain(new GenAction[] - { - new Actions.ClearTile(true), - new Actions.PlaceWall(WallID.LivingWood, true) - })); - } - - return true; - } - } -}