From 5473bec14247432877e50ec3d04496a0d0e0ec53 Mon Sep 17 00:00:00 2001 From: Mortis3 <53282720+DylanDoe21@users.noreply.github.com> Date: Tue, 7 Feb 2023 22:18:16 -0500 Subject: [PATCH] abyss changes -new water colors for each layer -new sulphuric depths (basically the actual first layer of the abyss) -added lord metarex's bestiary icons for each layer -modified each abyss biome to check for the exact heights each layer begins at -a few other smaller fixes --- BiomeManagers/AbyssIcon.png | Bin 510 -> 0 bytes BiomeManagers/AbyssLayer1Biome.cs | 24 +- BiomeManagers/AbyssLayer1Icon.png | Bin 0 -> 381 bytes BiomeManagers/AbyssLayer2Biome.cs | 10 +- BiomeManagers/AbyssLayer2Icon.png | Bin 0 -> 498 bytes BiomeManagers/AbyssLayer3Biome.cs | 10 +- BiomeManagers/AbyssLayer3Icon.png | Bin 0 -> 477 bytes BiomeManagers/AbyssLayer4Biome.cs | 8 +- BiomeManagers/AbyssLayer4Icon.png | Bin 0 -> 453 bytes BiomeManagers/SulphurousSeaIcon.png | Bin 512 -> 375 bytes ILEditing/MechanicILChanges.cs | 17 +- Items/Placeables/GloomTorch.png | Bin 0 -> 282 bytes Projectiles/Enemy/ToxicMinnowCloud.cs | 2 +- Tiles/Abyss/AbyssGravel.cs | 2 +- Tiles/Abyss/PlantyMush.cs | 2 +- Tiles/Abyss/Voidstone.cs | 2 +- Tiles/Crags/GloomTorch.png | Bin 0 -> 875 bytes Tiles/Crags/GloomTorchGlowmask.png | Bin 0 -> 349 bytes Waters/MiddleAbyssWater.cs | 28 + Waters/MiddleAbyssWater.png | Bin 0 -> 3899 bytes Waters/MiddleAbyssWater_Block.png | Bin 0 -> 347 bytes Waters/MiddleAbyssWaterflow.cs | 8 + Waters/MiddleAbyssWaterflow.png | Bin 0 -> 886 bytes Waters/SulphuricDepthsWater.cs | 28 + Waters/SulphuricDepthsWater.png | Bin 0 -> 3402 bytes Waters/SulphuricDepthsWater_Block.png | Bin 0 -> 344 bytes Waters/SulphuricDepthsWaterflow.cs | 8 + Waters/SulphuricDepthsWaterflow.png | Bin 0 -> 884 bytes Waters/UpperAbyssWater.cs | 28 + Waters/UpperAbyssWater.png | Bin 0 -> 3921 bytes Waters/UpperAbyssWater_Block.png | Bin 0 -> 345 bytes Waters/UpperAbyssWaterflow.cs | 8 + Waters/UpperAbyssWaterflow.png | Bin 0 -> 885 bytes Waters/{AbyssWater.cs => VoidWater.cs} | 4 +- Waters/{AbyssWater.png => VoidWater.png} | Bin ...yssWater_Block.png => VoidWater_Block.png} | Bin .../{AbyssWaterflow.cs => VoidWaterflow.cs} | 2 +- .../{AbyssWaterflow.png => VoidWaterflow.png} | Bin World/Abyss.cs | 705 ++++++++---------- World/AstralBiome.cs | 2 +- World/BrimstoneCrag.cs | 4 +- World/MiscWorldgenRoutines.cs | 122 --- World/SulphurousSea.cs | 18 +- 43 files changed, 470 insertions(+), 572 deletions(-) delete mode 100644 BiomeManagers/AbyssIcon.png create mode 100644 BiomeManagers/AbyssLayer1Icon.png create mode 100644 BiomeManagers/AbyssLayer2Icon.png create mode 100644 BiomeManagers/AbyssLayer3Icon.png create mode 100644 BiomeManagers/AbyssLayer4Icon.png create mode 100644 Items/Placeables/GloomTorch.png create mode 100644 Tiles/Crags/GloomTorch.png create mode 100644 Tiles/Crags/GloomTorchGlowmask.png create mode 100644 Waters/MiddleAbyssWater.cs create mode 100644 Waters/MiddleAbyssWater.png create mode 100644 Waters/MiddleAbyssWater_Block.png create mode 100644 Waters/MiddleAbyssWaterflow.cs create mode 100644 Waters/MiddleAbyssWaterflow.png create mode 100644 Waters/SulphuricDepthsWater.cs create mode 100644 Waters/SulphuricDepthsWater.png create mode 100644 Waters/SulphuricDepthsWater_Block.png create mode 100644 Waters/SulphuricDepthsWaterflow.cs create mode 100644 Waters/SulphuricDepthsWaterflow.png create mode 100644 Waters/UpperAbyssWater.cs create mode 100644 Waters/UpperAbyssWater.png create mode 100644 Waters/UpperAbyssWater_Block.png create mode 100644 Waters/UpperAbyssWaterflow.cs create mode 100644 Waters/UpperAbyssWaterflow.png rename Waters/{AbyssWater.cs => VoidWater.cs} (88%) rename Waters/{AbyssWater.png => VoidWater.png} (100%) rename Waters/{AbyssWater_Block.png => VoidWater_Block.png} (100%) rename Waters/{AbyssWaterflow.cs => VoidWaterflow.cs} (58%) rename Waters/{AbyssWaterflow.png => VoidWaterflow.png} (100%) diff --git a/BiomeManagers/AbyssIcon.png b/BiomeManagers/AbyssIcon.png deleted file mode 100644 index 0fab848b8606e9770d7a48ef4583c57b9346bab8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 510 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0h38YK~zXf<(AJ% z0zm+WUB&-ISuL6wQB)qfMyH@l5Y=;3Pv8@D^wgz850V5OJ9aFh2)r0sTdpE*>cZOk zoBcsfSb5QjzRNcQuH(nds9LAf@r?q%=b`ie7XGrwnx?_ilS%j!109A$b^~u@-d$q; zT6u=Ko;t<)R0<9T!?10)dR`EZXW-0g4klxp%ic(EmEVQsa^tNGt5cj#&BH96NQk|T z#9}b1S8Z4>Up(4_jf;Dj<$*vH<>i+m=1T4Hx1~+Xf~%%Dr7~-|GjAlgJvo3IjS}qc zG0N2~es9!Z(rP!okznWi!5aw*+e>hE{TMFYJ%sSH0(G|PdSnA= (Main.rockLayer - Main.maxTilesY / 13); if (Abyss.AtLeftSideOfWorld) { - if (point.X < abyssChasmX + 80) + if (point.X < abyssChasmX + 125) abyssPosX = true; } else { - if (point.X > abyssChasmX - 80) + if (point.X > abyssChasmX - 125) abyssPosX = true; } @@ -36,16 +36,13 @@ namespace CalamityMod.BiomeManagers if (WeakReferenceSupport.InAnySubworld()) return false; - return point.Y > SulphurousSea.YStart + SulphurousSea.BlockDepth - 78 && - !player.lavaWet && - !player.honeyWet && - abyssPosY && - abyssPosX; + return !player.lavaWet && !player.honeyWet && abyssPosY && abyssPosX; } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); + //temporarily use sulphur for now + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/SulphuricDepthsWater"); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon"; + public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer1Icon"; public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1"; public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer1"; @@ -61,13 +58,14 @@ namespace CalamityMod.BiomeManagers public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss: First Layer"); + DisplayName.SetDefault("Sulphuric Depths"); } public override bool IsBiomeActive(Player player) { return MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords <= (Main.rockLayer + Main.maxTilesY * 0.03); + playerYTileCoords >= Main.rockLayer - Main.maxTilesY / 15 && + playerYTileCoords <= Main.rockLayer - 22; } } } diff --git a/BiomeManagers/AbyssLayer1Icon.png b/BiomeManagers/AbyssLayer1Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..5d7fc7648e14465a6ea493ffcc380aec19756683 GIT binary patch literal 381 zcmV-@0fPRCP)Px$H%UZ6R7gu>WEdd8I6(F?j9N^$kRRMZ9q*R%A74-`+%<<}4-ln+?iRx=^m2*? zdss?J3dQ4RFPsMR&tKUGrWfv-1CuA{A-oFcZn3XTEI3Y`%{;+AkQ9?f@hQ5`pFMj9 zmS3_3;^WOn78CS2Rv!{rQ7=c~R%O!~7V-bEa6#ko!ufY6^H_uY$;{mr= zf?oi|XF^=;D0~57)VPO9ZaTOP%)I{$lIj^4FzW=YaSZb@-7Llx#Gk*t2Rr-2+oxdq z-M618K39@e0`u=Zz6YkS+`B=Vj|bdh^dNrm@dIiqe)|H<7ZH}gEB*$m4qIHK#4)b8 zrMbn5Ql@xoAr$YCz#-`40kas%6EyKTa(>2DI}Mn{B*Y+jN(olj ModContent.Find("CalamityMod/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/UpperAbyssWater"); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon"; + public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer2Icon"; public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23"; public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23"; public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss: Second Layer"); + DisplayName.SetDefault("Upper Abyss"); } public override bool IsBiomeActive(Player player) { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords > (Main.rockLayer + Main.maxTilesY * 0.03) && - playerYTileCoords <= (Main.rockLayer + Main.maxTilesY * 0.14); + playerYTileCoords > Main.rockLayer - 22 && + playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.145; } } } diff --git a/BiomeManagers/AbyssLayer2Icon.png b/BiomeManagers/AbyssLayer2Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..dda3a0824919c590f4708386711e5b727174b22e GIT binary patch literal 498 zcmVPx$tVu*cR7gu>WEdd8I6(F?5VTmw#QQ(UaRQ=ZSl#&H^((OWl`~rjnuTltLB({p z7-nI#xjI&#o@Ee55x;Tr7z+Q&nXNEBR?p$|@qk&}o?Qfv+o0?O6rVh~`5w$awPz!k zM)&#m_wT^s4{zOo#XVM^M)&u{Gl^EJ$^z%o#_%=M16PKz9`Iu%F!?IC@uMODcl6sK1LkBYIf?y$Q z*Kiac!&38$=l8(kZ=PN!E>+XrVwi<6=fPY&AuSFpWE$#?;%S&qB_x%=;;^zDR(2EZ z;{mf+R@DkzQpu~Jmd!UVoxmE$uv83_{0J?vU_M3g5#Wu0Ht2W o*RCEgi>c^YOrr?)Bxq$j04r)nE^}X0<^TWy07*qoM6N<$f)4xPSpWb4 literal 0 HcmV?d00001 diff --git a/BiomeManagers/AbyssLayer3Biome.cs b/BiomeManagers/AbyssLayer3Biome.cs index cbd29d5c81..57acbda920 100644 --- a/BiomeManagers/AbyssLayer3Biome.cs +++ b/BiomeManagers/AbyssLayer3Biome.cs @@ -17,22 +17,22 @@ namespace CalamityMod.BiomeManagers } } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/MiddleAbyssWater"); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon"; + public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer3Icon"; public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23"; public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer23"; public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss: Third Layer"); + DisplayName.SetDefault("Lower Abyss"); } public override bool IsBiomeActive(Player player) { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords > (Main.rockLayer + Main.maxTilesY * 0.14) && - playerYTileCoords <= (Main.rockLayer + Main.maxTilesY * 0.26); + playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.145 && + playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.262; } } } diff --git a/BiomeManagers/AbyssLayer3Icon.png b/BiomeManagers/AbyssLayer3Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9469ac66000c80cadc7d483cf8c1339d2da2e67a GIT binary patch literal 477 zcmV<30V4j1P)Px$mq|oHR7gu>WEdd8I6(F?P|ac$WxfB%p15=O5?-^1j>YIcgZWZkRT(AL9^SqS z=Hv1?$v&pJ#kefs;Nk-NgqxQKO!M&ZqWF}DPZ-Rb$|R}|7Q>v69;d9oT)WN~|MKl4%xG}*V#G1sErwah!^Mx1k0m7KQBo^R zoswY(nECPP1gt(piFkZI9&n3sIe?c}5G(~twJ>$C)C-GCLOw-_XmrIOK6;Q3n8nx} zhfNGA_2Ts$&NdgikLhMHl0_(~oLC1SXH{%^h-qaGn8hS`l6a-W_?URpNKgp?MXdfG T)!Og300000NkvXXu0mjf|03Eg literal 0 HcmV?d00001 diff --git a/BiomeManagers/AbyssLayer4Biome.cs b/BiomeManagers/AbyssLayer4Biome.cs index 9368527844..8f6b830864 100644 --- a/BiomeManagers/AbyssLayer4Biome.cs +++ b/BiomeManagers/AbyssLayer4Biome.cs @@ -17,21 +17,21 @@ namespace CalamityMod.BiomeManagers } } - public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/AbyssWater"); + public override ModWaterStyle WaterStyle => ModContent.Find("CalamityMod/VoidWater"); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; - public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssIcon"; + public override string BestiaryIcon => "CalamityMod/BiomeManagers/AbyssLayer4Icon"; public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer4"; public override string MapBackground => "CalamityMod/Backgrounds/MapBackgrounds/AbyssBGLayer4"; public override void SetStaticDefaults() { - DisplayName.SetDefault("Abyss: Fourth Layer"); + DisplayName.SetDefault("The Void"); } public override bool IsBiomeActive(Player player) { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.26; + playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.262; } } } diff --git a/BiomeManagers/AbyssLayer4Icon.png b/BiomeManagers/AbyssLayer4Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9edb4373c6f456871920bb65ec0063d90daa402f GIT binary patch literal 453 zcmV;$0XqJPP)Px$eMv+?R7gu>WEdd8I6(F?3~q}>gv9@o5;AYzy(H)%f(k$u(%oWo3%R*vz#f;; zE=36dUVBv({+VtsFdv`K@%otV7Q-wQ5EKWyoP&!C#Ydk%{Ko2YrDkui`0G8lz%)Le zWA!oJEhc2)k8j_=KKbzeCDuf4Qo0RA{Q9&sF#qeG!XngK3zLVR0$yqK4JSF#Vj| z{3vMxIbUOq;{mf+LRt~UCoi7fN8!VK49ll5Nm#x|Px7!_K+wknZZWQW3rn@%?q30W z?%lWTV49T;Qlh~CdVVL`$8@(CJyqiJfvjjMiVtBvhm}+?$v5xdB^^95<4x7D>_Bsi zVHUuOPMFVO;^_GjJ@umVk$ei1!tUb%w;0_4gnUMdPcgiX&2UoNT38YjPJ4)I>>)Xd vq}C<_1McSYkg=H5=*Fp@R38t0ivh{Q3NBb#0Ez$r002ovPDHLkV1fVu|6k6G literal 0 HcmV?d00001 diff --git a/BiomeManagers/SulphurousSeaIcon.png b/BiomeManagers/SulphurousSeaIcon.png index 1c2d2afb0586e795fa707082ad51ecc70ac223fd..c2bbafa75360c827633ef20f8875c8ad581e60bc 100644 GIT binary patch delta 336 zcmV-W0k8gm1or}vFn<9rNklcYvjWILQJjf25r zSP~)G10-tz*@Wa{`dAFJkiA0}Y~jy}%V3(ExF*TR17@*HcnUZ*|7wExn5_=t<2@_q zkR0SB`Izn&!z`3mR|5O&el$0jR$TfOOkdo2mgKl5%Etp{aesVW8#r!nIQ|0rj9p3) z#m7%?-Xl4#iSjYsEyiWx&u8z!KGfLH2Bu*lK}x>H>*E2p_=P6p!%{gZ z`I;yn517R;A4y0;@-Ga$cn-?SE6 z)7@g2^I=6NN=Zbc#wkIc60HE)k^!?A$r0eP8w(&R>OlI4R)}WFfLV;g!^8`d>to_= ipfpY>wh7Gu07=5cAN_~fa{vGU07*qoM6N<$f&c(n?U?QW delta 474 zcmV<00VV$T0)PaNFn<69XF*Lt006O%3;baP00009a7bBm000id000id0mpBsWB>pG zl}SWFR7gu>{Qv(y!$1HgC{1@T@+`(1$Bc}OP!B7mi=^$D{T5}eNe)04=h=PNm>wjY__h>Nv?ZXeSV)hPQ zF#l)8Wib8r%`LFP$9Exo7#Mm!c8y2{(~OKPVEX_6KVZebnjk)AtAqG(&&oMi<9g`% zI4HXeOn-j+9;`@OT?x#;9}P*}ic7zO>5Dthf@$=)9+W=DYw=$xb}$C{6ohX${sLok zAfg}$#z3E@fqyVCu0in)mBkJQXB;Qgw}T~NzGRmY1k*pCy$918``N%WOddU7Ke}@X z%*O@>XB@+Tys-=zOGt8qF**Q+1PG(YHB=fa7~DR7@%$?o!vHJ0@9%2Gef@e}L(qC!S$d zjP6q)0Q+=MmeqKD3~Pb7gr|V%myhp(>C4CV;mV^ZaXR#TOiM68K4xG50EaEhE%Uh^ Q("CalamityMod/SulphuricWater").Slot) - SelectSulphuricWaterColor(x, y, ref initialColor); - if (liquidType == ModContent.Find("CalamityMod/SunkenSeaWater").Slot) - SelectSulphuricWaterColor(x, y, ref initialColor); - - if (liquidType == ModContent.Find("CalamityMod/AbyssWater").Slot) + if (liquidType == ModContent.Find("CalamityMod/SunkenSeaWater").Slot || + liquidType == ModContent.Find("CalamityMod/SulphuricWater").Slot || + liquidType == ModContent.Find("CalamityMod/SulphuricDepthsWater").Slot || + liquidType == ModContent.Find("CalamityMod/UpperAbyssWater").Slot || + liquidType == ModContent.Find("CalamityMod/MiddleAbyssWater").Slot || + liquidType == ModContent.Find("CalamityMod/VoidWater").Slot) + { SelectSulphuricWaterColor(x, y, ref initialColor); + } // Apply any extra color conditions. initialColor = ExtraColorChangeConditions?.Invoke(initialColor, liquidType, new(x, y)) ?? initialColor; @@ -967,8 +969,7 @@ namespace CalamityMod.ILEditing orig(self, x, y, out outputColor); Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y); - if (tile.LiquidAmount <= 0 || tile.HasTile || Main.waterStyle != ModContent.Find("CalamityMod/SulphuricWater").Slot && - Main.waterStyle != ModContent.Find("CalamityMod/SunkenSeaWater").Slot) + if (tile.LiquidAmount <= 0 || tile.HasTile || Main.waterStyle != ModContent.Find("CalamityMod/SulphuricWater").Slot) return; Tile above = CalamityUtils.ParanoidTileRetrieval(x, y - 1); diff --git a/Items/Placeables/GloomTorch.png b/Items/Placeables/GloomTorch.png new file mode 100644 index 0000000000000000000000000000000000000000..d82c0d6d0cc15721e7fdf9d7a9998a170e2156e2 GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM3!3HF=W8NDADaPU;cPEB*=VV?2IlDYv978O6 zlM@seq@LORzHjjTW_?Manv+x^qgajE!^%i^Y)(IJVfNtgahN=QhwRQ?1}5>HeV>YfM+CM5vDk5A8J znStQ&&)eo2n^Ig;Ggs#U`hqVt!ZXd+mq822<^W<4xD-4Y OM0vXUxvX 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) + if (WorldGen.genRand.Next(8) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) { up.TileType = (ushort)ModContent.TileType(); up.HasTile = true; diff --git a/Tiles/Abyss/PlantyMush.cs b/Tiles/Abyss/PlantyMush.cs index 459056b6aa..d55f5dac5b 100644 --- a/Tiles/Abyss/PlantyMush.cs +++ b/Tiles/Abyss/PlantyMush.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Tiles.Abyss Tile up2 = Main.tile[i, j - 2]; //place kelp - if (WorldGen.genRand.Next(5) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) + if (WorldGen.genRand.Next(5) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) { up.TileType = (ushort)ModContent.TileType(); up.HasTile = true; diff --git a/Tiles/Abyss/Voidstone.cs b/Tiles/Abyss/Voidstone.cs index e2e1f9fea0..6640ef6b14 100644 --- a/Tiles/Abyss/Voidstone.cs +++ b/Tiles/Abyss/Voidstone.cs @@ -54,7 +54,7 @@ namespace CalamityMod.Tiles.Abyss Tile up2 = Main.tile[i, j - 2]; //place kelp - if (WorldGen.genRand.Next(25) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) + if (WorldGen.genRand.Next(25) == 0 && !up.HasTile && !up2.HasTile && up.LiquidAmount > 0 && up2.LiquidAmount > 0 && !tile.LeftSlope && !tile.RightSlope && !tile.IsHalfBlock) { up.TileType = (ushort)ModContent.TileType(); up.HasTile = true; diff --git a/Tiles/Crags/GloomTorch.png b/Tiles/Crags/GloomTorch.png new file mode 100644 index 0000000000000000000000000000000000000000..6ff4c4ab259bddee889cc4e02a346eab35cfa23e GIT binary patch literal 875 zcmV-x1C;!UP)Px&3rR#lRA_jL7XZc{-t?}Tc$q_| zq&PYyi~H`}J1^eoJt@A*zRZ!j`Kj}?>Nquy?)ju`1K^ZOwa5WJy{VK`(HgBoZ^}EH zEfkA&<0fs}0vOcfZ7PI8B2*zlj`RC(JSzb3;Pz>0yz1xxl2YgLQvh5zdk%m-Jw4Lk z?@LPnJRf_}+S%mO>spI(Rit?uIWC*YS^&9xPU=@39Y7lAluERiZ&T|a^4#b;m8ZN&=p6U>>66-aTnB-v5C#eD?+~hjg|Z6MGr*eS1VX8+ zzkYk;%HCd?665@9aoLfs!yJ*?1;=|X-loDm&S|y99MRh&T-p)9m?fpz*Go>Lg*Vek?5|0UcqWRpg2isiA1*)x69wFS1Oen zK!4JXOehxHWdY30&l8LnktYBL`}zQ=RDMQ&Ukm4U#bTB}zjR-XAIQ5c*TGZ>gG8u8 zq*I>K9M`R@V4*m5FK(n{ajNgw>1k1%=2bTOFQ0naFZqtp<)`MEjK_iYTL)7i3B!3HE5UzxlIQN=;-P7LeL$-D$|{(8DNhGaCp zy|LGeIZ&YO;dcpZMHUqn?(QucJ*TQ&Pn=u*!D$bB_WHv?8#;SiTc@@-aBSRg;l`V` zH-{$3Z~nL8{pGWAGmN8ag6Fs-l$3HG@cb;&u>EJr%&VHK8F%d5*Aw-}kx0CUrccUo5S?? zs#dQ~S4`L2=zKOZJdZ=PMS79e+HaLi75O?0Gw#?kUU>PPp`y0p&g%T-_q|{L%~hBIgwfcLXXY*+Yw|xfC0gm8sVAd>&pOQa{w_2Tne5HqC8#wT-G@yGywoxS(Eqx literal 0 HcmV?d00001 diff --git a/Waters/MiddleAbyssWater.cs b/Waters/MiddleAbyssWater.cs new file mode 100644 index 0000000000..1c7f8250f8 --- /dev/null +++ b/Waters/MiddleAbyssWater.cs @@ -0,0 +1,28 @@ +using Microsoft.Xna.Framework; +using Terraria.ModLoader; + +namespace CalamityMod.Waters +{ + public class MiddleAbyssWater : ModWaterStyle + { + public override int ChooseWaterfallStyle() + { + return ModContent.Find("CalamityMod/MiddleAbyssWaterflow").Slot; + } + + public override int GetSplashDust() + { + return 33; + } + + public override int GetDropletGore() + { + return 713; + } + + public override Color BiomeHairColor() + { + return Color.Blue; + } + } +} diff --git a/Waters/MiddleAbyssWater.png b/Waters/MiddleAbyssWater.png new file mode 100644 index 0000000000000000000000000000000000000000..2f87227da33af5329aa5d455c06d3b8bb14df2f7 GIT binary patch literal 3899 zcmai1X;@Qd7XB_VLD}1&D1=3ywjfpzX4u3CS`e)R$;d7Uh=OG&5Cs#VceGPMM_hp^ zONdZG*%w(OkX9@TgvB6RLV_@8*b-4f6bQ~2Y&%Zp$K*W8cc1&*-21)fJ@0$YO(naz zsH^Cz007hv9dtSZ*IfW$$?I{7Gu^{9xNL|$=o=4!>Zgh?@^mzL1pp21A*X#Fi6e8P zuEn1@Yk&Xz%(nI2{udf>I%B=55wY0wm$h;lHzeHaC2u>MnkJ0zmN_>g8!jcW-c;2T zTh@$o-Y!Tbtw~Go7dfQXbAp!lZz{gMRX3R2TsOFyT&;XgDl^Qhf0_2J>`jF`Z@P!G zx++sTYX53Z(?KJuIZ(JHsc=YGkbNs(S_VCVyP76^dGYT9mgh7R<(_+lb>O7o{vMsG z=`;tSn;a>&7tmNq=Yfae5gG8>+Qa1!bH_(@-Vo7&uz3@v)FEGHZOfV%9Yl#i(z&vP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v#nOYPIoW&T*BpP?2{`cKKM>tppI~XKx*cQ;mV+Psm5K5$EGe zj&>(dN0MQi!Y-J-D9DiKa-e12j~?kxrZg`Jy<_&Bp$F@sGl~Y-f1-CF`|qxtaLtBR zQDG<+1eteiNowd4ziug0yd!b##3nzkSQ#lpy&w48M1~19cglBfyDxqGFHm%o$}<`< zaO`sh&mmFexY^`uoMf#hNuOpyM=JragH<0$SojKwq>Wp`7ax-yPTqmnDc10HlSqjs zJ!ryMt~C!^mT_8^_Kg8JVN}QS1862fIK2NRKSj&l{@;x(VA$%-j*^Y) zJYUpk)*m|?q3LKHWK*EDmW>3&Ee3$Qn9XXq3qJ+z`ajFV*cH`Zh@lHA2~x%1H9~w2 dg}S-|Q+T}o*W^BRzo|Gn<_125^5!<2@*)b4YK^;oT3;HYs;}6o^PGbLVJOe{=G~mHqeY zXUto_vxx7$c>CdpIZrt{4nKTTf5Pwj?HJ4K^j-FL%U|_WU3`D4>Sm47dh_Sg%&X$F z*H^vo{;vJ#LGA1Qe}6XHxA_S2&in_|)c5=}NYl@TYoFJCkG{YBYt8!0uTwu~vfg>^ za_>d0YpdMXRp&D5tLDb(7j25W@_fzox5ZC#zwTf0O?`I1qH#*wnF*3ceC>yC-VzjO zKWvyH!`GgC!a|1c_=G|W8D}*GWNx40;{uB|9|sw}^y}xOFP6Sp{#bNfCD8kPsS%!O bzP=1vKsE;ugTSTW$so$p)z4*}Q$iB}Y~q%n literal 0 HcmV?d00001 diff --git a/Waters/MiddleAbyssWaterflow.cs b/Waters/MiddleAbyssWaterflow.cs new file mode 100644 index 0000000000..6d7deb015d --- /dev/null +++ b/Waters/MiddleAbyssWaterflow.cs @@ -0,0 +1,8 @@ +using Terraria.ModLoader; +namespace CalamityMod.Waters +{ + public class MiddleAbyssWaterflow : ModWaterfallStyle + { + + } +} diff --git a/Waters/MiddleAbyssWaterflow.png b/Waters/MiddleAbyssWaterflow.png new file mode 100644 index 0000000000000000000000000000000000000000..bb2d5b743b0790e03c9ae1562d73292c0c43bfcd GIT binary patch literal 886 zcmXw2eN0nV6hHUbr+riyT0fD{Zc!l642YY=4f`If1gjCM)(@hiZlWa;hlw9sfb?BV z7GX zd+SVv1+g&+F#r&2+-TSaK*%MeD(A~y8F;RkV}>%!@M`a?L+H zA0N&w^fU4K13J92oN2AezplzSwNf>osxxlB`fOq%E#-K9j_`@)scEX@yTnsNhk5_F zf7UwMW$9+a!_qHhQpvRt$N4qkwbRGn`Ofz(2ecXlLHO^F({R(tceq;BE5;&`FVA|C z970up#X9Hmo-*4%0ruEOH-zGl`_)X6^DJ9YxK%t9R=;ps-|{WtuRsY%3knSJcoXqt zUgtwL@r%DMFm8|AA9fCkCrslrmxPW$+pE9^XR+8`mDR|8wxIndUuyQxbeh-dJJ%Q3 zVEa5W!d+MsDY(}jvd(1rLo>Q2hzEjsPrj7gw=-xUK{JOY@N#poKP2ndKu6=JI?&q^ z=~)ts9H#~n+l$~&jfUou8S*mbgPO7A$5w8Lu9o@uAO)z)W$A8;)mIX`xB^wrpfKpO zXGA6|B3JlW2K`3sJHa|Z^%E|v5-3@HWl>$Ocj~EP&c|;02 ziA=V-I+V>4IFPK%{^lj;c8Y4KCYxosF^fcjUfTcl$z#+K4VxZWW)L)w+GX1nUD8W8 zjjm%s_>p`pllezIAMV$tgK_Gn>+ry?z=HnQcYHOLa;aFHuDhGyk$jU?>suc6_p%w^ zJ3U~Not5HU{pGy*fF)Zg*ff( z4ZY2Jve$M?Ob601CoVrF26@x9#J3U0>$dx_V|Keh)E3Fd!VNUR8wg%yG7Q8`)a1%P h1L6+sHXhuv1=8eNDMu84Z$A@F#{5FVwY+^N{|7sie{}!= literal 0 HcmV?d00001 diff --git a/Waters/SulphuricDepthsWater.cs b/Waters/SulphuricDepthsWater.cs new file mode 100644 index 0000000000..63ab09da0a --- /dev/null +++ b/Waters/SulphuricDepthsWater.cs @@ -0,0 +1,28 @@ +using Microsoft.Xna.Framework; +using Terraria.ModLoader; + +namespace CalamityMod.Waters +{ + public class SulphuricDepthsWater : ModWaterStyle + { + public override int ChooseWaterfallStyle() + { + return ModContent.Find("CalamityMod/SulphuricDepthsWaterflow").Slot; + } + + public override int GetSplashDust() + { + return 33; + } + + public override int GetDropletGore() + { + return 713; + } + + public override Color BiomeHairColor() + { + return Color.Teal; + } + } +} diff --git a/Waters/SulphuricDepthsWater.png b/Waters/SulphuricDepthsWater.png new file mode 100644 index 0000000000000000000000000000000000000000..a7a870a527851568ab7f515c41676ed28ad6df64 GIT binary patch literal 3402 zcmai03se)=7QK@|qWq$QwFLz9EscN*T7Lltf}#i(f>rs5fJH$?`AR_&0;Bbb(LSt# zP(Oqetf(L$ARyng(gsD4m?B6>f`Qb4Bmo)>f8PzQwe4DOy;;f3teLrY?S1av`&^c{ zmz$xUsU85p(0zyN=kRI|fUfr(g7!)4OFF#Fjo#sZ0s#F5+CTDKlspB1fz;jAWzWej zh3JR-W)J6MU&u-i6Z=*qMN_g28^>Rg18?RMKIZU6J*hSp6+SAKL}@_TDkUaQjoHsk zs2XN``-cz4m+MYVol2RSR^8zVbFNQMYj95JsfL-~o_)s?MuQM zGSu(fC}{2(G){3McHx8SYtg{8l+%3;dVBGoZFQO|UX0E?oHI6!wQpUa7d>cxg!Hjf zBC-K*k&--gh&TtI_Iz-t4X7KpA;prWYCFAe2%QUE-GaSR7m1Ey9q*301?$AWLp3;c<6}%7`iaGeOR(Q8#|>N-1J@Qov9kcH2BbxS4+p$&c-}-;s#1{b+?`pXm3j0Fbke9aq&v zJSeNc0)^_<88*Lv5*C{#7G}s=SHB~1$b_ne(Vp`}gpycrGyXRyZ#MY9FNZw^QEx+OcRsobPLJvWQ zD>aS#o*c(=9nDG{tR1K3ooCkt5lg=9RT9iqECJFiP<<8KePWurf$HX?%js#-mJ`2j z^t3z*?-#I4@hA`-Ud|oJ4SbZCzS4`|K*io;_)11Z&dm z%w8{=dnBptAJE$w(n5oT09rS}-ht^vuaU?u`gb9>$j6RX`&+g!E3YIekbNEiU_I^U19Q*Jb^($y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N}=(a;k6zw*46+3XBOGm4i1*qGJ;EO)Z`f>N65-8ncKNByNwm5j!0u(ELv z{tx#2`ouxFS!!Y@g}+b&Pv(_dVv5x{LP>?kvs}j5g4}R^HeqaR;k%*>53?*SHhZB* zNKm2Rwm$-+7ETVEk`X63O=$6VuU<_4`f|BQRsZbNT|E2NvuENF#go`9hI9mb`BTc_ z{PXu_*s{yTC>077aLDyFa3k=5oJ=2GAu+ZjJ`IYit3yn6&nz+zMQWCEc*V4W4y{o` zu+>=mV@ZC6X4cZ)D6V>u){=t`XDpV?2IQdE{M2Btf{Kiz+SO)v)@S&v_m1n>cTI=N zXBxm}>{K_Lp?%9z53>zmb|pCEyIuSKs-$KLF#?NITBVXKJW)_s4WORSj$ zHCw9!DUn@8=Xl5$yD$1~yziOg$kgXV(7G)+^0d{}dBz#Nlb03~2ieIDC=V5p%!!@p zs!Vh|jC5+`H8+tOeL1N9`_G7QCu1U_hXCjY!PX;hUyQs#Je&Y$iT?9^3s7|BiKBdXTNEU{|f`=?`-X7fPUi9l64bw6hI9XyC{L;t^|PW^+G@I=dnpmGzfe>gQi!kXwmzRyu&mU+R{i&IJ*4={l}3YnP+zVacV3rn)fHa}=!L zV7)!o<6Zdj49E;C1KL8u{ehOv!oT=I!Z*(8B8<7cJwozpIgVtKz8g%R_lI4$_6Cps w->>(#G3S%Z^UX(yxg&6xQK+ALn5QSOf%kL%nCAKJbnTt{HZRwrEeB5j7xuOw`Tzg` literal 0 HcmV?d00001 diff --git a/Waters/SulphuricDepthsWater_Block.png b/Waters/SulphuricDepthsWater_Block.png new file mode 100644 index 0000000000000000000000000000000000000000..93beaf16692f421c8ce528174a16a169f6382d44 GIT binary patch literal 344 zcmeAS@N?(olHy`uVBq!ia0y~yU^D`<1vuD%<_1Uic!kUMxja?g-nOLr$0CSq!HiFxqVG#9@=@-?seU-+!5L z@3Noz>=$o8{7~j8N5|oZbLvm5dw)F2vikX^J^Plw>Z!W;{#4b?8m0B-&!?GJ#aFMd zdOv%+<>K#a?SFkf|4+im)g05vVg0H;@U6d@ymQ(Ko|%fqDKdQR#aomW z_}Y_CSjg}lpHOHa)2H~jz@p8^0hue~eC%NX&&&o3nR6@W^3PbEb9s7Q=W?Lm`BEc1 c(|mmyw18|5AO?X;!IMFhr>mdKI;Vst0Gth!F#rGn literal 0 HcmV?d00001 diff --git a/Waters/SulphuricDepthsWaterflow.cs b/Waters/SulphuricDepthsWaterflow.cs new file mode 100644 index 0000000000..0b0e76017e --- /dev/null +++ b/Waters/SulphuricDepthsWaterflow.cs @@ -0,0 +1,8 @@ +using Terraria.ModLoader; +namespace CalamityMod.Waters +{ + public class SulphuricDepthsWaterflow : ModWaterfallStyle + { + + } +} diff --git a/Waters/SulphuricDepthsWaterflow.png b/Waters/SulphuricDepthsWaterflow.png new file mode 100644 index 0000000000000000000000000000000000000000..2bffb3c29487ed279a566c8bbf037f631174e76d GIT binary patch literal 884 zcmX|9e@s(X6h80SN?Q?up%^iFFU44F2sB1E#=>h$YJ@G6&L063D40Q}U`pbTx%txj zBq5?OYT^crWYEk%wkcQ;O-z(h0aFL9i7sk@RUC?AORztf^wmB3c8iH$a_{+a?mgc* z`R+Y$GVWQg*rEV{^+kn-y#OSpkRe-(_m<5CEjY*<3(JoKtV@n9;*rlP0IZ2GGU)f8 zo?iSzZyeJkHvjpoIVWx|B~$r&RDX*qENp1&+di0o>6G)+a{H#0Bl-S$OZW1rv^&G> zFtRo9^}M5Z#=prsJ9#t8^KbWvZN7G9c8VnubtGrAIgnbe`>)CGt6Owsh<^W<*4zDa ze&5KHP(@#keC`kzwtf*D3U%J|=Ua2cXL-AWSKpMJ5PQ61mzOsXG)Oo|1X2fBCEP5Y z{^Z7wzOyJ>sH*!*>{y!lJ*wD@{p*J4)YqQ8XwUoyF-aK^Sl|8=c+@=uYiQ;j2$y>m6fdJcgKttRHv=o= zT9?xx;&!V*0aP!PAy#N>g^d@8wCKs?P@YluPo zGABb8A`o01(vb;^2{&erJ?syU4@DNO&z~L?cUh0qS?-U-UxliKD}kZV?4<7~LzqAk z^PeS6eoT3HaTPgvWtD_1^chIDgQ#7X2 z5?30hdWG%g@DVmh1;(>#nl$}jjw&^&HOUtXERX_3BaCC`TtpY-N)NuNuMRug4@U#( zQhPU4Zbu>W1qX*G*PzvDuz9i;a;GTyr5hr$?;t}bHGoG;tbUd<&eLk2=phg2LZ!LL zxwd=K(Sf9P?p4Yp!1-|!uP56!`kL-j>p+96iJ7YZJ=Ff%Z)52UjdAS+Ond$ a;$l!^E{i2F9__mn3q`w)hHC}YP5%QIm2@8f literal 0 HcmV?d00001 diff --git a/Waters/UpperAbyssWater.cs b/Waters/UpperAbyssWater.cs new file mode 100644 index 0000000000..965861fdf7 --- /dev/null +++ b/Waters/UpperAbyssWater.cs @@ -0,0 +1,28 @@ +using Microsoft.Xna.Framework; +using Terraria.ModLoader; + +namespace CalamityMod.Waters +{ + public class UpperAbyssWater : ModWaterStyle + { + public override int ChooseWaterfallStyle() + { + return ModContent.Find("CalamityMod/UpperAbyssWaterflow").Slot; + } + + public override int GetSplashDust() + { + return 33; + } + + public override int GetDropletGore() + { + return 713; + } + + public override Color BiomeHairColor() + { + return Color.Blue; + } + } +} diff --git a/Waters/UpperAbyssWater.png b/Waters/UpperAbyssWater.png new file mode 100644 index 0000000000000000000000000000000000000000..bb2acdbdf3af3796f0d645e456bc9e6406b5cf92 GIT binary patch literal 3921 zcmai0dsLFy9z7q7TD~V8rwr3-Cdx|F$s9729@aEHuq^WxS~t;5G09h;_T6f3VTIkw zEFF>2NiEbIO(f07+@UZXQ!?LzUWpMEwG1Jj-Gklka`n&UEY|tfw-&#{{_XwS`>;Ir z?=sT2)CT| z9G3X8yPqv`KQJL88U1PY#=|hqG>sK}(g4$`$Vp0hc=_s?;uy@dpedYHf7Ha4{$2IV ztR|qxH6qz0j3g`Ye#+3u>=q!W8Z*0bG(F0(R|OZ<+^r885FI^DxH$sf+N zwN8HMnVHD78k(GP8}2`b;;U`%50{^_o*FiJ|NiiniFQoU__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VjE zn*rkG{)gCpeA~VlQtK;Oi+fmo|9)$1(J*TmqU&&vjX7VOKr9|c6$2VEVMLv%_4K7E)_*UVK=R3&}@|Mj( z-gcr=J&*YpB@%i1bynzedR1k!I-U62dTz91W~p*Cgv~V8=9%K!P={N9;EM@u2LyJb zOk)yJHz5)$$%a1lb3l}*HqtmhQBrr^4?9|w-4CD=LOnw@bl91rgq!yzJEvIw!riM0WcyLJ^%m! literal 0 HcmV?d00001 diff --git a/Waters/UpperAbyssWater_Block.png b/Waters/UpperAbyssWater_Block.png new file mode 100644 index 0000000000000000000000000000000000000000..af1637a72d91a1bf376b98bdfa20881beba2a3c8 GIT binary patch literal 345 zcmeAS@N?(olHy`uVBq!ia0y~yU^D`<1vuD%<_11{4eGoMF>(^$?VMb68Kg}T^1Ghe=WBE|E6Ct*u{C7{c-tCr@w9sId?76e!)mtKh<~+wo%&m*vih(7s=p_nC7flI-YL6oPfpUXO@geCx^*_J*4 literal 0 HcmV?d00001 diff --git a/Waters/UpperAbyssWaterflow.cs b/Waters/UpperAbyssWaterflow.cs new file mode 100644 index 0000000000..855d4f319d --- /dev/null +++ b/Waters/UpperAbyssWaterflow.cs @@ -0,0 +1,8 @@ +using Terraria.ModLoader; +namespace CalamityMod.Waters +{ + public class UpperAbyssWaterflow : ModWaterfallStyle + { + + } +} diff --git a/Waters/UpperAbyssWaterflow.png b/Waters/UpperAbyssWaterflow.png new file mode 100644 index 0000000000000000000000000000000000000000..8c9ae27357fbc85a75c73cc1651912c060e96a5f GIT binary patch literal 885 zcmYjQeN0nV6hH6M&ep*wHWRZfv|CI>m;q;`MyGwS8j1#rS{=$zV7{< zbG|7rD^6SZ&O!i4E79w=0wAhFw(Jdhwk|1Zr9$4IH|+y>>vn<}ueo~{KuTJPuF!bk z;nd^8vPo94aVWpA=CgWyPFIr=XsJ5X^5@xeJL;R7e(>ii!k zBI&#gSEa|R@UXN6mV5Nv^a@-TH+4YJ4c&vh#Dj9w^y>jFqlU=8Xw7COL%|qv6Doq6 za4kQH4YkW)1JfWkG8wo}c&YjNy8Hw-HZ!ycUdAS%`-oA3opo}lfg$gffQmZ{MrG%f zXNLHm(A)VmHAP7Q)Grm|Z1ubWUyvXFjio&?vJy{RnXt$(vui}MJ-nzJwex+^*_DHp zT(6J|QeCn*9VM3W<*HGQ=$vr<4%_Fq5!6bj0mtlG)bJidq(7f*uGjbeas=p#d|pxV bMQJJIP+dkjLH}$!kq{*t%XB?OI}iN_>FbMF literal 0 HcmV?d00001 diff --git a/Waters/AbyssWater.cs b/Waters/VoidWater.cs similarity index 88% rename from Waters/AbyssWater.cs rename to Waters/VoidWater.cs index a6d848a409..bff3e0bf78 100644 --- a/Waters/AbyssWater.cs +++ b/Waters/VoidWater.cs @@ -3,11 +3,11 @@ using Terraria.ModLoader; namespace CalamityMod.Waters { - public class AbyssWater : ModWaterStyle + public class VoidWater : ModWaterStyle { public override int ChooseWaterfallStyle() { - return ModContent.Find("CalamityMod/AbyssWaterflow").Slot; + return ModContent.Find("CalamityMod/VoidWaterflow").Slot; } public override int GetSplashDust() diff --git a/Waters/AbyssWater.png b/Waters/VoidWater.png similarity index 100% rename from Waters/AbyssWater.png rename to Waters/VoidWater.png diff --git a/Waters/AbyssWater_Block.png b/Waters/VoidWater_Block.png similarity index 100% rename from Waters/AbyssWater_Block.png rename to Waters/VoidWater_Block.png diff --git a/Waters/AbyssWaterflow.cs b/Waters/VoidWaterflow.cs similarity index 58% rename from Waters/AbyssWaterflow.cs rename to Waters/VoidWaterflow.cs index 9284d28dd3..3224a16282 100644 --- a/Waters/AbyssWaterflow.cs +++ b/Waters/VoidWaterflow.cs @@ -1,7 +1,7 @@ using Terraria.ModLoader; namespace CalamityMod.Waters { - public class AbyssWaterflow : ModWaterfallStyle + public class VoidWaterflow : ModWaterfallStyle { } diff --git a/Waters/AbyssWaterflow.png b/Waters/VoidWaterflow.png similarity index 100% rename from Waters/AbyssWaterflow.png rename to Waters/VoidWaterflow.png diff --git a/World/Abyss.cs b/World/Abyss.cs index 2cb9fb8120..f092d9b303 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -40,7 +40,7 @@ namespace CalamityMod.World int abyssChasmY = y - 250; //Underworld = y - 200 AbyssChasmBottom = abyssChasmY - 100; //850 small 1450 medium 2050 large - int abyssChasmX = AtLeftSideOfWorld ? genLimit - (genLimit - 135) : genLimit + (genLimit - 135); //2100 - 1965 = 135 : 2100 + 1965 = 4065 + int abyssChasmX = AtLeftSideOfWorld ? genLimit - (genLimit - 135) + 35 : genLimit + (genLimit - 135) - 35; //2100 - 1965 = 135 : 2100 + 1965 = 4065 bool plantyMushSide = true; @@ -49,240 +49,177 @@ namespace CalamityMod.World plantyMushSide = false; } - if (AtLeftSideOfWorld) + int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 130; + int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 130 : x; + + for (int abyssIndex = abyssMinX; abyssIndex < abyssMaxX; abyssIndex++) { - for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY + 50; abyssIndex2++) { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); + + if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0) { - Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); - - if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0) - { - tile.LiquidType = LiquidID.Water; - tile.LiquidAmount = 255; - } - - bool canConvert = tile.HasTile && tile.TileType < TileID.Count && tile.TileType != TileID.DyePlants && tile.TileType != TileID.Trees && - tile.TileType != TileID.PalmTree && tile.TileType != TileID.Sand && tile.TileType != TileID.Containers && tile.TileType != TileID.Coral && - tile.TileType != TileID.BeachPiles && tile.TileType != ModContent.TileType() && tile.TileType != ModContent.TileType(); - - if (abyssIndex2 > rockLayer - WorldGen.genRand.Next(30)) - { - //dithering on the edge of the abyss - if (abyssIndex > abyssChasmX + 75) - { - if (WorldGen.genRand.NextBool(2)) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(3)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - else - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - } - else - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - } - } - else - { - if (canConvert) - { - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.142) && WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - } - tile.WallType = (ushort)ModContent.WallType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - } - else if (!tile.HasTile) - { - tile.Get().HasTile = true; - if (abyssIndex2 > (rockLayer + y * 0.262)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.142) && WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - } - tile.WallType = (ushort)ModContent.WallType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - } - } - } + tile.LiquidType = LiquidID.Water; + tile.LiquidAmount = 255; } - } - } - else - { - for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + + bool canConvert = tile.HasTile && tile.TileType < TileID.Count && tile.TileType != TileID.DyePlants && tile.TileType != TileID.Trees && + tile.TileType != TileID.PalmTree && tile.TileType != TileID.Sand && tile.TileType != TileID.Containers && tile.TileType != TileID.Coral && + tile.TileType != TileID.BeachPiles && tile.TileType != ModContent.TileType(); + + if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) - WorldGen.genRand.Next(30)) { - Tile tile = Framing.GetTileSafely(abyssIndex, abyssIndex2); - - if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0) + //dithering on the edge of the abyss + if ((AtLeftSideOfWorld && abyssIndex > abyssChasmX + 125) || (!AtLeftSideOfWorld && abyssIndex < abyssChasmX - 125)) { - tile.LiquidType = LiquidID.Water; - tile.LiquidAmount = 255; - } - - bool canConvert = tile.HasTile && tile.TileType < TileID.Count && tile.TileType != TileID.DyePlants && tile.TileType != TileID.Trees && - tile.TileType != TileID.PalmTree && tile.TileType != TileID.Sand && tile.TileType != TileID.Containers && tile.TileType != TileID.Coral && - tile.TileType != TileID.BeachPiles && tile.TileType != ModContent.TileType() && tile.TileType != ModContent.TileType(); - - if (abyssIndex2 > rockLayer - WorldGen.genRand.Next(30)) - { - //dithering on the edge of the abyss - if (abyssIndex < abyssChasmX - 75) + if (WorldGen.genRand.NextBool(2)) { - if (WorldGen.genRand.NextBool(2)) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); + WorldGen.KillTile(abyssIndex, abyssIndex2); - if (abyssIndex2 > (rockLayer + y * 0.262)) + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + } + else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(3)) + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + } + else if (abyssIndex2 > (rockLayer + y * 0.145)) + { + if (WorldGen.genRand.NextBool(3)) { WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); } - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(3)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - else - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - } - } else { WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); } } - } - else - { - if (canConvert) + else if (abyssIndex2 >= rockLayer - 20 && abyssIndex2 <= rockLayer - 10) { - if (abyssIndex2 > (rockLayer + y * 0.262)) + if (WorldGen.genRand.NextBool(2)) { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - } - tile.WallType = (ushort)ModContent.WallType(); + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); } else { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); } } - else if (!tile.HasTile) + else if (abyssIndex2 <= rockLayer - 20) { - tile.Get().HasTile = true; - if (abyssIndex2 > (rockLayer + y * 0.262)) + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + } + else + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + } + } + } + else + { + if (canConvert) + { + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 > (rockLayer + y * 0.142) && WorldGen.genRand.NextBool(3)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 > (rockLayer + y * 0.145)) + { + if (WorldGen.genRand.NextBool(3)) { tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - if (WorldGen.genRand.NextBool(3)) - { - tile.TileType = (ushort)ModContent.TileType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - } - tile.WallType = (ushort)ModContent.WallType(); } else { tile.TileType = (ushort)ModContent.TileType(); + } + + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 >= rockLayer - 20 && abyssIndex2 <= rockLayer) + { + if (WorldGen.genRand.NextBool(2)) + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); + tile.TileType = (ushort)ModContent.TileType(); tile.WallType = (ushort)ModContent.WallType(); } + else + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + } + else if (abyssIndex2 <= rockLayer - 20) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + } + else if (!tile.HasTile) + { + tile.Get().HasTile = true; + if (abyssIndex2 > (rockLayer + y * 0.262)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 > (rockLayer + y * 0.142) && WorldGen.genRand.NextBool(3)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 > (rockLayer + y * 0.145)) + { + if (WorldGen.genRand.NextBool(3)) + { + tile.TileType = (ushort)ModContent.TileType(); + } + else + { + tile.TileType = (ushort)ModContent.TileType(); + } + + tile.WallType = (ushort)ModContent.WallType(); + } + else if (abyssIndex2 >= rockLayer - 20 && abyssIndex2 <= rockLayer) + { + if (WorldGen.genRand.NextBool(2)) + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else + { + WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + } + else if (abyssIndex2 <= rockLayer - 20) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + else + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); } } } @@ -290,7 +227,10 @@ namespace CalamityMod.World } } - MiscWorldgenRoutines.ChasmGenerator(abyssChasmX, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); + //just place three craters next to each other to make it wider + MiscWorldgenRoutines.ChasmGenerator(abyssChasmX + 25, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); + MiscWorldgenRoutines.ChasmGenerator(abyssChasmX, (int)WorldGen.worldSurfaceLow + 65, AbyssChasmBottom, true); + MiscWorldgenRoutines.ChasmGenerator(abyssChasmX - 25, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); int maxAbyssIslands = 11; //Small World @@ -308,8 +248,8 @@ namespace CalamityMod.World bool placedFossil = false; //place islands to hide the fossil (funny) - AbyssIsland(abyssChasmX + 32, AbyssChasmBottom + 25, 55, 75, 35, 45, false, true, true); - AbyssIsland(abyssChasmX - 32, AbyssChasmBottom + 25, 55, 75, 35, 45, false, true, true); + AbyssIsland(abyssChasmX + 55, AbyssChasmBottom + 25, 55, 75, 55, 75, false, true, true, false); + AbyssIsland(abyssChasmX - 55, AbyssChasmBottom + 25, 55, 75, 55, 75, false, true, true, false); while (!placedFossil) { @@ -350,12 +290,42 @@ namespace CalamityMod.World } //place a single abyss island under the terminus shrine - AbyssIsland(abyssChasmX, AbyssChasmBottom + 5, 65, 75, 40, 45, false, false, true); + AbyssIsland(abyssChasmX, AbyssChasmBottom + 5, 65, 75, 40, 45, false, false, true, false); //place terminus shrine UndergroundShrines.SpecialHut((ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.WallType(), UndergroundShrines.UndergroundShrineType.Abyss, abyssChasmX, AbyssChasmBottom); + //place islands in the sulphuric depths layer + for (int sulphurIslandY = (rockLayer - Main.maxTilesY / 15) - 5; sulphurIslandY <= rockLayer - 15; sulphurIslandY++) + { + if (WorldGen.genRand.NextBool(2)) + { + int randomIsland = WorldGen.genRand.Next(4); + switch (randomIsland) + { + case 0: + AbyssIsland(abyssChasmX - WorldGen.genRand.Next(55, 78), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + break; + case 1: + AbyssIsland(abyssChasmX + WorldGen.genRand.Next(55, 78), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + break; + case 2: + AbyssIsland(abyssChasmX + WorldGen.genRand.Next(55, 78), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + AbyssIsland(abyssChasmX - WorldGen.genRand.Next(10, 20), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + break; + case 3: + AbyssIsland(abyssChasmX - WorldGen.genRand.Next(55, 78), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + AbyssIsland(abyssChasmX + WorldGen.genRand.Next(10, 20), sulphurIslandY, 55, 75, 35, 45, false, false, false, true); + break; + } + + //increase y value so islands cant be spammed on top of each other + sulphurIslandY += 12; + } + } + + //normal abyss islands int islandLocationOffset = 30; int islandLocationY = rockLayer; @@ -365,35 +335,36 @@ namespace CalamityMod.World int randomIsland = WorldGen.genRand.Next(5); //0 1 2 3 4 bool hasVoidstone = islandLocationY > (rockLayer + y * 0.143); AbyssIslandPositions[TotalPlacedIslandsSoFar].Y = islandLocationY; + int randomPositon = WorldGen.genRand.Next(38, 65); switch (randomIsland) { case 0: - AbyssIsland(islandLocationX, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 40, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone); - AbyssIsland(islandLocationX - 40, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone); + AbyssIsland(islandLocationX, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone, false); + AbyssIsland(islandLocationX + randomPositon, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone, false); + AbyssIsland(islandLocationX - randomPositon, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone, false); break; case 1: - AbyssIsland(islandLocationX + 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone); - AbyssIsland(islandLocationX - 40, islandLocationY + 10, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone); + AbyssIsland(islandLocationX + randomPositon, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone, false); + AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone, false); + AbyssIsland(islandLocationX - randomPositon, islandLocationY + 10, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone, false); islandLocationX += 30; break; case 2: - AbyssIsland(islandLocationX - 30, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 30, islandLocationY + 10, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone); - AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone); + AbyssIsland(islandLocationX - randomPositon, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone, false); + AbyssIsland(islandLocationX + randomPositon, islandLocationY + 10, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone, false); + AbyssIsland(islandLocationX, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone, false); islandLocationX -= 30; break; case 3: - AbyssIsland(islandLocationX + 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX - 5, islandLocationY + 5, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone); - AbyssIsland(islandLocationX - 35, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone); + AbyssIsland(islandLocationX + randomPositon, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone, false); + AbyssIsland(islandLocationX - 5, islandLocationY + 5, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone, false); + AbyssIsland(islandLocationX - randomPositon, islandLocationY + 15, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone, false); islandLocationX += 25; break; case 4: - AbyssIsland(islandLocationX - 25, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone); - AbyssIsland(islandLocationX + 5, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone); - AbyssIsland(islandLocationX + 35, islandLocationY + 5, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone); + AbyssIsland(islandLocationX - randomPositon, islandLocationY, 60, 66, 30, 36, true, false, hasVoidstone, false); + AbyssIsland(islandLocationX + 5, islandLocationY + 15, 60, 66, 30, 36, false, plantyMushSide, hasVoidstone, false); + AbyssIsland(islandLocationX + randomPositon, islandLocationY + 5, 60, 66, 30, 36, false, !plantyMushSide, hasVoidstone, false); islandLocationX -= 25; break; } @@ -415,14 +386,14 @@ namespace CalamityMod.World switch (randomIsland) { case 0: - AbyssIsland(abyssChasmX + WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true); + AbyssIsland(abyssChasmX + WorldGen.genRand.Next(60, 78), voidIslandY, 65, 85, 35, 45, false, true, true, false); break; case 1: - AbyssIsland(abyssChasmX - WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true); + AbyssIsland(abyssChasmX - WorldGen.genRand.Next(60, 78), voidIslandY, 65, 85, 35, 45, false, true, true, false); break; case 2: - AbyssIsland(abyssChasmX + WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true); - AbyssIsland(abyssChasmX - WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true); + AbyssIsland(abyssChasmX + WorldGen.genRand.Next(60, 78), voidIslandY, 65, 85, 35, 45, false, true, true, false); + AbyssIsland(abyssChasmX - WorldGen.genRand.Next(60, 78), voidIslandY, 65, 85, 35, 45, false, true, true, false); break; } @@ -434,93 +405,58 @@ namespace CalamityMod.World AbyssItemArray = CalamityUtils.ShuffleArray(AbyssItemArray); for (int abyssHouse = 0; abyssHouse < TotalPlacedIslandsSoFar; abyssHouse++) //11 15 19 { + bool hasVoidstone = AbyssIslandPositions[abyssHouse].Y + 5 > (rockLayer + y * 0.143); + if (abyssHouse != 20) { + //place an island below the houses + //place the island first so it doesnt destroy the house or chest + AbyssIsland(AbyssIslandPositions[abyssHouse].X, AbyssIslandPositions[abyssHouse].Y + 15, 55, 75, 35, 45, false, true, hasVoidstone, false); + AbyssIslandHouse(AbyssIslandPositions[abyssHouse].X, AbyssIslandPositions[abyssHouse].Y, AbyssItemArray[abyssHouse > 9 ? (abyssHouse - 10) : abyssHouse], //10 choices 0 to 9 - AbyssIslandPositions[abyssHouse].Y > (rockLayer + y * 0.143)); + hasVoidstone); } } //clean up - if (AtLeftSideOfWorld) + for (int abyssIndex = abyssMinX + 5; abyssIndex < abyssMaxX - 5; abyssIndex++) { - for (int abyssIndex = 5; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 + for (int abyssIndex2 = 5; abyssIndex2 < abyssChasmY; abyssIndex2++) { - for (int abyssIndex2 = 5; abyssIndex2 < abyssChasmY; abyssIndex2++) + Tile tile = Main.tile[abyssIndex, abyssIndex2]; + Tile tileUp = Main.tile[abyssIndex, abyssIndex2 - 1]; + Tile tileDown = Main.tile[abyssIndex, abyssIndex2 + 1]; + Tile tileLeft = Main.tile[abyssIndex - 1, abyssIndex2]; + Tile tileRight = Main.tile[abyssIndex + 1, abyssIndex2]; + + if (tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType() || + tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType() || + tile.TileType == ModContent.TileType()) { - Tile tile = Main.tile[abyssIndex, abyssIndex2]; - Tile tileUp = Main.tile[abyssIndex, abyssIndex2 - 1]; - Tile tileDown = Main.tile[abyssIndex, abyssIndex2 + 1]; - Tile tileLeft = Main.tile[abyssIndex - 1, abyssIndex2]; - Tile tileRight = Main.tile[abyssIndex + 1, abyssIndex2]; + //slope tiles + Tile.SmoothSlope(abyssIndex, abyssIndex2, true); - if (tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType() || - tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) - { - //slope tiles - Tile.SmoothSlope(abyssIndex, abyssIndex2, true); - - //kill any individual floating tiles - if (!tileUp.HasTile && !tileDown.HasTile && !tileLeft.HasTile && !tileRight.HasTile) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - } - } - - if (!tile.HasTile && (tile.WallType == ModContent.WallType() || tile.WallType == ModContent.WallType())) - { - //fill up any air pockets with water - tile.LiquidType = LiquidID.Water; - tile.LiquidAmount = 255; - } - - //kill obsidian - if (tile.TileType == TileID.Obsidian) + //kill any individual floating tiles + if (!tileUp.HasTile && !tileDown.HasTile && !tileLeft.HasTile && !tileRight.HasTile) { WorldGen.KillTile(abyssIndex, abyssIndex2); } } - } - } - else - { - for (int abyssIndex = abyssChasmX - 80; abyssIndex < x - 5; abyssIndex++) //3965 - { - for (int abyssIndex2 = 5; abyssIndex2 < abyssChasmY; abyssIndex2++) + + if (!tile.HasTile && (tile.WallType == ModContent.WallType() || tile.WallType == ModContent.WallType() || + tile.WallType == ModContent.WallType())) { - Tile tile = Main.tile[abyssIndex, abyssIndex2]; - Tile tileUp = Main.tile[abyssIndex, abyssIndex2 - 1]; - Tile tileDown = Main.tile[abyssIndex, abyssIndex2 + 1]; - Tile tileLeft = Main.tile[abyssIndex - 1, abyssIndex2]; - Tile tileRight = Main.tile[abyssIndex + 1, abyssIndex2]; + //fill up any air pockets with water + tile.LiquidType = LiquidID.Water; + tile.LiquidAmount = 255; + } - if (tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType() || - tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) - { - //slope tiles - Tile.SmoothSlope(abyssIndex, abyssIndex2, true); - - //kill any individual floating tiles - if (!tileUp.HasTile && !tileDown.HasTile && !tileLeft.HasTile && !tileRight.HasTile) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - } - } - - if (!tile.HasTile && (tile.WallType == ModContent.WallType() || tile.WallType == ModContent.WallType())) - { - //fill up any air pockets with water - tile.LiquidType = LiquidID.Water; - tile.LiquidAmount = 255; - } - - //kill obsidian - if (tile.TileType == TileID.Obsidian) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - } + //kill obsidian + if (tile.TileType == TileID.Obsidian) + { + WorldGen.KillTile(abyssIndex, abyssIndex2); } } } @@ -543,7 +479,7 @@ namespace CalamityMod.World if (Mosses.Contains(tile.TileType)) { - tile.TileType = TileID.Stone; + WorldGen.KillTile(abyssIndex, abyssIndex2); } } } @@ -565,140 +501,92 @@ namespace CalamityMod.World if (Mosses.Contains(tile.TileType)) { - tile.TileType = TileID.Stone; + WorldGen.KillTile(abyssIndex, abyssIndex2); } } } } //ambient tiles and pots - if (AtLeftSideOfWorld) + for (int abyssIndex = abyssMinX + 5; abyssIndex < abyssMaxX - 5; abyssIndex++) { - for (int abyssIndex = 0; abyssIndex < abyssChasmX + 80; abyssIndex++) //235 + for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + if (!Main.tile[abyssIndex, abyssIndex2].HasTile) { - if (!Main.tile[abyssIndex, abyssIndex2].HasTile) + //above the 4th layer + if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) { - //above the 4th layer - if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) + //giant kelp, more often in upper layers + if ((WorldGen.genRand.NextBool(18) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) || + (WorldGen.genRand.NextBool(35) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType())) { - //giant kelp, more often in upper layers - if ((WorldGen.genRand.NextBool(18) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) || - (WorldGen.genRand.NextBool(35) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType())) - { - ushort[] Kelps = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + ushort[] Kelps = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Kelps)); - } - - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(25) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) - { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); - } + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Kelps)); } - //below 4th layer - if (abyssIndex2 >= (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) + //bulb trees on voidstone + if (WorldGen.genRand.NextBool(25) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) { - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(6) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) - { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); - } + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); } - //pots - if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 > rockLayer) + //sulphur shale stuff + if (Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) { - if (WorldGen.genRand.NextBool(5)) + if (WorldGen.genRand.NextBool(8)) { - WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + ushort[] SulphuricFossils = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(SulphuricFossils)); } - } - //sulphur pots - else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 < (int)Main.worldSurface) - { - if (WorldGen.genRand.NextBool(3)) + + if (WorldGen.genRand.NextBool(6)) { - WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); + ushort[] Ribs = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Ribs)); } } } - } - } - } - else - { - for (int abyssIndex = abyssChasmX - 80; abyssIndex < x; abyssIndex++) //3965 - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - if (!Main.tile[abyssIndex, abyssIndex2].HasTile) + + //below 4th layer + if (abyssIndex2 >= (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) { - //above the 4th layer - if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) + //bulb trees on voidstone + if (WorldGen.genRand.NextBool(6) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) { - //giant kelp, more often in upper layers - if ((WorldGen.genRand.NextBool(18) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) || - (WorldGen.genRand.NextBool(35) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType())) - { - ushort[] Kelps = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Kelps)); - } - - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(25) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) - { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); - } + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); } + } - //below 4th layer - if (abyssIndex2 >= (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) + //pots + if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 > rockLayer) + { + if (WorldGen.genRand.NextBool(5)) { - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(6) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) - { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); - } + WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); } - - //pots - if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 > rockLayer) + } + //sulphur pots + else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 < (int)Main.worldSurface) + { + if (WorldGen.genRand.NextBool(3)) { - if (WorldGen.genRand.NextBool(5)) - { - WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } - } - //sulphur pots - else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 < (int)Main.worldSurface) - { - if (WorldGen.genRand.NextBool(3)) - { - WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); - CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); - } + WorldGen.PlacePot(abyssIndex, abyssIndex2, (ushort)ModContent.TileType()); + CalamityUtils.SafeSquareTileFrame(abyssIndex, abyssIndex2, true); } } } @@ -707,7 +595,7 @@ namespace CalamityMod.World } #region Houses - public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, bool hasChest, bool hasPlantyMush, bool isVoid) + public static void AbyssIsland(int i, int j, int sizeMin, int sizeMax, int sizeMin2, int sizeMax2, bool hasChest, bool hasPlantyMush, bool isVoid, bool isShale) { float islandWidth = WorldGen.genRand.Next(sizeMin, sizeMax); //100 150 float smallIslandWidth = (float)WorldGen.genRand.Next(sizeMin, sizeMax) / (float)5; //20 30 @@ -777,7 +665,16 @@ namespace CalamityMod.World islandPositionY = l; } Main.tile[k, l].Get().HasTile = true; - Main.tile[k, l].TileType = (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType()); + + if (!isShale) + { + Main.tile[k, l].TileType = (ushort)(isVoid ? ModContent.TileType() : ModContent.TileType()); + } + else + { + Main.tile[k, l].TileType = (ushort)ModContent.TileType(); + } + CalamityUtils.SafeSquareTileFrame(k, l, true); } } @@ -814,6 +711,7 @@ namespace CalamityMod.World num14 += WorldGen.genRand.Next(-3, 4); num15 = WorldGen.genRand.Next(4, 8); int num16 = isVoid ? ModContent.TileType() : ModContent.TileType(); + if (WorldGen.genRand.NextBool(4)) { num16 = hasChest ? ModContent.TileType() : ModContent.TileType(); @@ -829,7 +727,16 @@ namespace CalamityMod.World if (Math.Sqrt((double)(arg_409_0 * arg_409_0 + num18 * num18)) < (double)(num15 + WorldGen.genRand.Next(2))) { Main.tile[n, num17].Get().HasTile = true; - Main.tile[n, num17].TileType = (ushort)num16; + + if (!isShale) + { + Main.tile[n, num17].TileType = (ushort)num16; + } + else + { + Main.tile[n, num17].TileType = (ushort)ModContent.TileType(); + } + CalamityUtils.SafeSquareTileFrame(n, num17, true); } } diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index 5cd5ecc56d..299432d374 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -127,7 +127,7 @@ namespace CalamityMod.World { float worldEdgeMargin = (float)Main.maxTilesX * 0.08f; int xLimit = Main.maxTilesX / 2; - int x = Abyss.AtLeftSideOfWorld ? rand.Next(Main.dungeonX + 200, xLimit - 350) : rand.Next(xLimit + 350, Main.dungeonX - 200); + int x = Abyss.AtLeftSideOfWorld ? rand.Next(Main.dungeonX + 200, xLimit - 400) : rand.Next(xLimit + 400, Main.dungeonX - 200); //world surface = 920 large 740 medium 560 small int y = (int)(Main.worldSurface * 0.5); //Large = 522, Medium = 444, Small = 336 diff --git a/World/BrimstoneCrag.cs b/World/BrimstoneCrag.cs index ec9a8883e6..86f1ca7b38 100644 --- a/World/BrimstoneCrag.cs +++ b/World/BrimstoneCrag.cs @@ -366,8 +366,8 @@ namespace CalamityMod.World //place lillies on scorched remains grass if (tile.TileType == ModContent.TileType()) { - //place them decently often since they are pretty big tiles, also dont place them in lava - if (WorldGen.genRand.Next(4) == 0) + //place them often since they are pretty big tiles, also dont place them in lava + if (WorldGen.genRand.Next(3) == 0) { ushort[] Lillies = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; diff --git a/World/MiscWorldgenRoutines.cs b/World/MiscWorldgenRoutines.cs index ab1a5d1412..0d90b261cf 100644 --- a/World/MiscWorldgenRoutines.cs +++ b/World/MiscWorldgenRoutines.cs @@ -214,128 +214,6 @@ namespace CalamityMod.World } #endregion - /* - #region UnderworldIslandHouse - public static void UnderworldIslandHouse(int i, int j, int item) - { - ushort type = (ushort)ModContent.TileType(); //tile - int wall = ModContent.WallType(); //wall - Vector2 vector = new Vector2((float)i, (float)j); - int num = 1; - if (WorldGen.genRand.Next(2) == 0) - { - num = -1; - } - int num2 = WorldGen.genRand.Next(7, 12); - int num3 = WorldGen.genRand.Next(5, 7); - vector.X = (float)(i + (num2 + 2) * num); - for (int k = j - 15; k < j + 30; k++) - { - if (Main.tile[(int)vector.X, k].HasTile) - { - vector.Y = (float)(k - 1); - break; - } - } - vector.X = (float)i; - int num4 = (int)(vector.X - (float)num2 - 1f); - int num5 = (int)(vector.X + (float)num2 + 1f); - int num6 = (int)(vector.Y - (float)num3 - 1f); - int num7 = (int)(vector.Y + 2f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int l = num4; l <= num5; l++) - { - for (int m = num6 - 1; m < num7 + 1; m++) - { - if (m != num6 - 1 || (l != num4 && l != num5)) - { - Main.tile[l, m].Get().HasTile = true; - Main.tile[l, m].LiquidAmount = 0; - Main.tile[l, m].TileType = type; - Main.tile[l, m].WallType = 0; - Main.tile[l, m].Get().IsHalfBlock = false; - Main.tile[l, m].Get().Slope = SlopeType.Solid; - } - } - } - num4 = (int)(vector.X - (float)num2); - num5 = (int)(vector.X + (float)num2); - num6 = (int)(vector.Y - (float)num3); - num7 = (int)(vector.Y + 1f); - if (num4 < 0) - { - num4 = 0; - } - if (num5 > Main.maxTilesX) - { - num5 = Main.maxTilesX; - } - if (num6 < 0) - { - num6 = 0; - } - if (num7 > Main.maxTilesY) - { - num7 = Main.maxTilesY; - } - for (int n = num4; n <= num5; n++) - { - for (int num8 = num6; num8 < num7; num8++) - { - if ((num8 != num6 || (n != num4 && n != num5)) && Main.tile[n, num8].WallType == 0) - { - Main.tile[n, num8].Get().HasTile = false; - Main.tile[n, num8].WallType = (ushort)wall; - } - } - } - int num9 = i + (num2 + 1) * num; - int num10 = (int)vector.Y; - for (int num11 = num9 - 2; num11 <= num9 + 2; num11++) - { - Main.tile[num11, num10].Get().HasTile = false; - Main.tile[num11, num10 - 1].Get().HasTile = false; - Main.tile[num11, num10 - 2].Get().HasTile = false; - } - WorldGen.PlaceTile(num9, num10, ModContent.TileType(), true, false, -1); //door - num9 = i + (num2 + 1) * -num - num; - for (int num12 = num6; num12 <= num7 + 1; num12++) - { - Main.tile[num9, num12].Get().HasTile = true; - Main.tile[num9, num12].LiquidAmount = 0; - Main.tile[num9, num12].TileType = type; - Main.tile[num9, num12].WallType = 0; - Main.tile[num9, num12].Get().IsHalfBlock = false; - Main.tile[num9, num12].Get().Slope = SlopeType.Solid; - } - WorldGen.AddBuriedChest(i, num10 - 3, item, false, 4); //chest - int num22 = i + (num2 / 2 + 1) * -num; - WorldGen.PlaceTile(num22, num7 - 1, ModContent.TileType(), true, false, -1); //table - WorldGen.PlaceTile(num22 - 2, num7 - 1, ModContent.TileType(), true, false, 0); //chair - Tile tile = Main.tile[num22 - 2, num7 - 1]; - tile.TileFrameX += 18; - Tile tile2 = Main.tile[num22 - 2, num7 - 2]; - tile2.TileFrameX += 18; - WorldGen.PlaceTile(num22 + 2, num7 - 1, ModContent.TileType(), true, false, 0); //chair - } - #endregion - */ - #region ChasmGenerator public static void ChasmGenerator(int i, int j, int steps, bool ocean = false) { diff --git a/World/SulphurousSea.cs b/World/SulphurousSea.cs index b06f86f7fe..75cf866050 100644 --- a/World/SulphurousSea.cs +++ b/World/SulphurousSea.cs @@ -313,7 +313,7 @@ namespace CalamityMod.World for (int y = top; y < bottom; y++) { if (y >= top + DepthForWater) - Main.tile[x, y + WorldGen.genRand.Next(15, 17)].WallType = (ushort)ModContent.WallType(); + Main.tile[x, y + WorldGen.genRand.Next(22, 25)].WallType = (ushort)ModContent.WallType(); Main.tile[x, y].LiquidAmount = byte.MaxValue; Main.tile[x, y].Get().HasTile = false; } @@ -867,7 +867,7 @@ namespace CalamityMod.World // Try again if there is no tile above or the ceiling is not level. if (!WorldUtils.Find(new(x, y), searchCondition, out Point top) || - !WorldUtils.Find(new(x + 1, y), searchCondition, out Point topRight) || top.Y != topRight.Y) + !WorldUtils.Find(new(x + 1, y), searchCondition, out Point topRight) || top.Y != topRight.Y) { tryAgain = true; } @@ -882,7 +882,10 @@ namespace CalamityMod.World continue; } - GenerateColumn(x, top.Y, y); + if (WorldGen.genRand.NextBool(2)) + { + GenerateColumn(x, top.Y, y); + } } } @@ -983,7 +986,7 @@ namespace CalamityMod.World if (WorldGen.InWorld(x + dx, y + dy)) { if (CalamityUtils.ParanoidTileRetrieval(x + dx, y + dy).TileType != sandstoneID && - SulphSeaTiles.Contains(CalamityUtils.ParanoidTileRetrieval(x + dx, y + dy).TileType)) + SulphSeaTiles.Contains(CalamityUtils.ParanoidTileRetrieval(x + dx, y + dy).TileType)) { Main.tile[x + dx, y + dy].WallType = sandstoneWallID; Main.tile[x + dx, y + dy].TileType = sandstoneID; @@ -1029,9 +1032,12 @@ namespace CalamityMod.World type++; int height = heightFromType(type); - PlaceStalactite(x, y, height, CalamityMod.Instance.Find($"SulphurousStalactite{type}").Type); - if (WorldGen.SolidTile(x, y + dy + 1)) + if ((Main.tile[x, y + dy + 1].TileType == ModContent.TileType() || + Main.tile[x, y + dy + 1].TileType == ModContent.TileType()) && + !Main.tile[x, y + dy + 1].LeftSlope && !Main.tile[x, y + dy + 1].RightSlope && !Main.tile[x, y + dy + 1].IsHalfBlock) + { PlaceStalacmite(x, y + dy, height, CalamityMod.Instance.Find($"SulphurousStalacmite{type}").Type); + } } } }