reverted sea gen + readded eutro sand walls

This commit is contained in:
GinYuH committed 2025-12-15 20:02:38 -08:00
1 parent c6aa5cb84f
commit 41e9baff6e
13 files changed
+937 -2408

No files matched your search

+10 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Items.Placeables.Walls;
using CalamityMod.Projectiles.Typeless;
using Terraria.ID;
using Terraria.ModLoader;
@@ -22,5 +23,13 @@ namespace CalamityMod.Items.Placeables.SunkenSea
Item.ammo = AmmoID.Sand;
Item.notAmmo = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<EutrophicSandWallSafe>(4).
AddTile(TileID.WorkBenches).
Register();
}
}
}
@@ -0,0 +1,31 @@
using Terraria.ID;
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class EutrophicSandWall : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 400;
ItemID.Sets.DrawUnsafeIndicator[Type] = true;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<EutrophicSandWallSafe>();
}
public override void SetDefaults()
{
Item.width = 12;
Item.height = 12;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 7;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createWall = ModContent.WallType<WallTiles.EutrophicSandWall>();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

@@ -0,0 +1,39 @@
using CalamityMod.Items.Placeables.SunkenSea;
using Terraria.ID;
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class EutrophicSandWallSafe : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 400;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<EutrophicSandWall>();
}
public override void SetDefaults()
{
Item.width = 12;
Item.height = 12;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 7;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createWall = ModContent.WallType<WallTiles.EutrophicSandWallSafe>();
}
public override void AddRecipes()
{
CreateRecipe(4).
AddIngredient<EutrophicSand>().
AddTile(TileID.WorkBenches).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

@@ -4651,3 +4651,13 @@ MossyStone: {
DisplayName: Mossy Stone
Tooltip: ""
}
EutrophicSandWall: {
DisplayName: Unsafe Eutrophic Sand Wall
Tooltip: ""
}
EutrophicSandWallSafe: {
DisplayName: Eutrophic Sand Wall
Tooltip: ""
}
+7 -29
View File
@@ -229,38 +229,16 @@ namespace CalamityMod.Systems
}));
}
// Sunken Sea
int sunkenSeaIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Cactus, Palm Trees, & Coral"));
if (sunkenSeaIndex != -1)
// Sunken sea
int SunkenSeaIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Settle Liquids Again"));
if (SunkenSeaIndex != -1)
{
tasks.Insert(sunkenSeaIndex + 1, new PassLegacy("Sunken Sea", (progress, config) =>
tasks.Insert(SunkenSeaIndex + 1, new PassLegacy("Sunken Sea", (progress, config) =>
{
int sunkenSeaX = (GenVars.UndergroundDesertLocation.Left + GenVars.UndergroundDesertLocation.Right) / 2;
int sunkenSeaY = Main.maxTilesY / 2;
// place each piece of the sunken sea based on the above positons
// messages intentionally in the "incorrect" order for the player's experience.
// they'll see the OG message first, then subsequent biomes are placed in vertical order.
// it breaks up the 3 minute gen time and makes it more interesting for those who dont tab out while worldgen runs,
// rather than keeping the player in the dark about what's happening.
// it doesn't have to make sense, just be cool for the players :) -ena
//SunkenSea.PlaceBasaltGullyBorderBlend(sunkenSeaX, sunkenSeaY + (Main.maxTilesY / 4));
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.SunkenSea").Value;
SunkenSea.PlaceBasaltGully(sunkenSeaX, sunkenSeaY + (Main.maxTilesY / 4));
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.TimelessShores").Value;
SunkenSea.PlaceRadiantReefs(sunkenSeaX, sunkenSeaY + 110);
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.RadiantReefs").Value;
SunkenSea.PlacePolypForest(sunkenSeaX, sunkenSeaY + 500);
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.PolypForest").Value;
SunkenSea.PlaceGleamingBurrows(sunkenSeaX, sunkenSeaY + (Main.maxTilesY / 4) - 50);
SunkenSea.PlaceClamDen(sunkenSeaX, sunkenSeaY + 630);
SunkenSea.PlaceGleamingBurrowsGeodes(sunkenSeaX, sunkenSeaY + (Main.maxTilesY / 4) - 50);
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.GleamingBurrows").Value;
SunkenSea.PlaceTimelessShores(sunkenSeaX, sunkenSeaY);
progress.Message = Language.GetOrRegister("Mods.CalamityMod.UI.BasaltGully").Value;
//SunkenSea.BasaltGullyLavaCleanup(sunkenSeaX, sunkenSeaY + (Main.maxTilesY / 4));
SunkenSea.PlaceSunkenSeaAmbience();
Point ssBottomLeft = new Point(GenVars.UndergroundDesertLocation.Left, Main.maxTilesY - 400);
SunkenSea.Place(ssBottomLeft);
}));
}
+30
View File
@@ -0,0 +1,30 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class EutrophicSandWall : ModWall
{
public override void SetStaticDefaults()
{
DustType = 108;
AddMapEntry(new Color(11, 56, 81));
}
public override void RandomUpdate(int i, int j)
{
if (Main.tile[i, j].LiquidAmount == 0 && j < Main.maxTilesY - 205)
{
Main.tile[i, j].Get<LiquidData>().LiquidType = LiquidID.Water;
Main.tile[i, j].LiquidAmount = byte.MaxValue;
WorldGen.SquareTileFrame(i, j);
if (Main.dedServ)
NetMessage.sendWater(i, j);
}
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

+18
View File
@@ -0,0 +1,18 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class EutrophicSandWallSafe : ModWall
{
public override void SetStaticDefaults()
{
Main.wallHouse[Type] = true;
DustType = 108;
AddMapEntry(new Color(11, 56, 81));
}
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

-1
View File
@@ -3,7 +3,6 @@ using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Walls
{
[LegacyName("EutrophicSandWall")]
public class NavyslateWall : ModWall, IVisibleThroughWater
{
int IVisibleThroughWater.WaterMapEntry { get; set; }
+792 -2377
View File
File diff suppressed because it is too large. Load diff