Sulphurous sandstone, sulphurous sand & sandstone walls and a minor fix for otherworldly/uelibloom bricks

This commit is contained in:
AlterraKira committed 2020-03-02 14:36:35 +00:00
1 parent 83c53d0fe7
commit ee1c0d109a
23 files changed
+267 -10

No files matched your search

+10
View File
@@ -21,5 +21,15 @@ namespace CalamityMod.Items.Placeables
item.height = 10;
item.maxStack = 999;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddTile(18);
recipe.AddIngredient(ModContent.ItemType<Walls.SulphurousSandWall>(), 4);
recipe.SetResult(this);
recipe.AddRecipe();
base.AddRecipes();
}
}
}
+35
View File
@@ -0,0 +1,35 @@
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
{
public class SulphurousSandstone : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sulphurous Sandstone");
}
public override void SetDefaults()
{
item.createTile = ModContent.TileType<Tiles.Abyss.SulphurousSandstone>();
item.useStyle = 1;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
item.width = 13;
item.height = 10;
item.maxStack = 999;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddTile(18);
recipe.AddIngredient(ModContent.ItemType<Walls.SulphurousSandstoneWall>(), 4);
recipe.SetResult(this);
recipe.AddRecipe();
base.AddRecipes();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

@@ -0,0 +1,36 @@
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class SulphurousSandWall : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sulphurous Sand Wall");
}
public override void SetDefaults()
{
item.createWall = ModContent.WallType<WallTiles.SulphurousSandWallSafe>();
item.useStyle = 1;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
item.width = 16;
item.height = 16;
item.maxStack = 999;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddTile(18);
recipe.AddIngredient(ModContent.ItemType<SulphurousSand>());
recipe.SetResult(this, 4);
recipe.AddRecipe();
base.AddRecipes();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

@@ -0,0 +1,36 @@
using Terraria.ModLoader;
using WallTiles = CalamityMod.Walls;
namespace CalamityMod.Items.Placeables.Walls
{
public class SulphurousSandstoneWall : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sulphurous Sandstone Wall");
}
public override void SetDefaults()
{
item.createWall = ModContent.WallType<WallTiles.SulphurousSandstoneWallSafe>();
item.useStyle = 1;
item.useTurn = true;
item.useAnimation = 15;
item.useTime = 10;
item.autoReuse = true;
item.consumable = true;
item.width = 16;
item.height = 16;
item.maxStack = 999;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddTile(18);
recipe.AddIngredient(ModContent.ItemType<SulphurousSandstone>());
recipe.SetResult(this, 4);
recipe.AddRecipe();
base.AddRecipes();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

+2 -5
View File
@@ -12,7 +12,6 @@ namespace CalamityMod.Tiles.Abyss
public override void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileMergeDirt[Type] = true;
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
@@ -20,9 +19,7 @@ namespace CalamityMod.Tiles.Abyss
dustType = 32;
drop = ModContent.ItemType<Items.Placeables.SulphurousSand>();
ModTranslation name = CreateMapEntryName();
name.SetDefault("Sulphurous Sand");
AddMapEntry(new Color(150, 100, 50), name);
AddMapEntry(new Color(150, 100, 50));
mineResist = 1f;
minPick = 55;
soundType = 0;
@@ -189,7 +186,7 @@ namespace CalamityMod.Tiles.Abyss
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<SulphurousSandstone>(), false, false, false, false, resetFrame);
return false;
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

+37
View File
@@ -0,0 +1,37 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Tiles.Abyss
{
public class SulphurousSandstone : ModTile
{
public override void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileBlockLight[Type] = true;
CalamityUtils.MergeWithGeneral(Type);
CalamityUtils.MergeWithAbyss(Type);
dustType = 32;
drop = ModContent.ItemType<Items.Placeables.SulphurousSandstone>();
AddMapEntry(new Color(113, 90, 71));
mineResist = 1f;
minPick = 55;
soundType = 0;
}
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
{
TileFraming.CustomMergeFrame(i, j, Type, ModContent.TileType<AbyssGravel>(), false, false, false, false, resetFrame);
return false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+3 -2
View File
@@ -36,8 +36,9 @@ namespace CalamityMod.Tiles.FurnitureOccult
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
{
if (Main.tile[i - 1, j - 1].type != Type || Main.tile[i, j - 1].type != Type || Main.tile[i + 1, j - 1].type != Type ||
Main.tile[i - 1, j - 2].type != Type || Main.tile[i, j - 2].type != Type || Main.tile[i + 1, j - 2].type != Type)
if ((Main.tile[i - 1, j - 1].type != Type || Main.tile[i, j - 1].type != Type || Main.tile[i + 1, j - 1].type != Type ||
Main.tile[i - 1, j - 2].type != Type || Main.tile[i, j - 2].type != Type || Main.tile[i + 1, j - 2].type != Type) &&
nextSpecialDrawIndex < Main.specX.Length)
{
Main.specX[nextSpecialDrawIndex] = i;
Main.specY[nextSpecialDrawIndex] = j;
+3 -2
View File
@@ -35,8 +35,9 @@ namespace CalamityMod.Tiles
public override void DrawEffects(int i, int j, SpriteBatch spriteBatch, ref Color drawColor, ref int nextSpecialDrawIndex)
{
if (Main.tile[i - 1, j - 1].type != Type || Main.tile[i, j - 1].type != Type || Main.tile[i + 1, j - 1].type != Type ||
Main.tile[i - 1, j - 2].type != Type || Main.tile[i, j - 2].type != Type || Main.tile[i + 1, j - 2].type != Type)
if ((Main.tile[i - 1, j - 1].type != Type || Main.tile[i, j - 1].type != Type || Main.tile[i + 1, j - 1].type != Type ||
Main.tile[i - 1, j - 2].type != Type || Main.tile[i, j - 2].type != Type || Main.tile[i + 1, j - 2].type != Type) &&
nextSpecialDrawIndex < Main.specX.Length)
{
Main.specX[nextSpecialDrawIndex] = i;
Main.specY[nextSpecialDrawIndex] = j;
+1
View File
@@ -775,6 +775,7 @@ namespace CalamityMod
public static void MergeWithAbyss(int type) => MergeWithSet(type, new int[] {
// Sulphurous Sea
ModContent.TileType<SulphurousSand>(),
ModContent.TileType<SulphurousSandstone>(),
// Abyss
ModContent.TileType<AbyssGravel>(),
ModContent.TileType<Voidstone>(),
+2 -1
View File
@@ -90,8 +90,9 @@ namespace CalamityMod
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<ChaoticOre>()] = true;
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<PlantyMush>()] = true;
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<Voidstone>()] = true;
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<SulphurousSand>()] = true;
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<SulphurousSandstone>()] = true;
tileMergeTypes[ModContent.TileType<AbyssGravel>()][ModContent.TileType<Tenebris>()] = true;
tileMergeTypes[ModContent.TileType<SulphurousSandstone>()][ModContent.TileType<SulphurousSand>()] = true;
}
internal static void Unload()
+29
View File
@@ -0,0 +1,29 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class SulphurousSandWall : ModWall
{
public override void SetDefaults()
{
dustType = 32;
AddMapEntry(new Color(84, 71, 46));
}
public override void RandomUpdate(int i, int j)
{
if (Main.tile[i, j].liquid <= 0)
{
Main.tile[i, j].liquid = 255;
Main.tile[i, j].lava(false);
}
}
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: 8.7 KiB

+22
View File
@@ -0,0 +1,22 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class SulphurousSandWallSafe : ModWall
{
public override void SetDefaults()
{
Main.wallHouse[Type] = true;
dustType = 32;
drop = ModContent.ItemType<Items.Placeables.Walls.SulphurousSandWall>();
AddMapEntry(new Color(84, 71, 46));
}
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: 8.7 KiB

+29
View File
@@ -0,0 +1,29 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class SulphurousSandstoneWall : ModWall
{
public override void SetDefaults()
{
dustType = 32;
AddMapEntry(new Color(57, 45, 38));
}
public override void RandomUpdate(int i, int j)
{
if (Main.tile[i, j].liquid <= 0)
{
Main.tile[i, j].liquid = 255;
Main.tile[i, j].lava(false);
}
}
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: 9.5 KiB

+22
View File
@@ -0,0 +1,22 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Walls
{
public class SulphurousSandstoneWallSafe : ModWall
{
public override void SetDefaults()
{
Main.wallHouse[Type] = true;
dustType = 32;
drop = ModContent.ItemType<Items.Placeables.Walls.SulphurousSandstoneWall>();
AddMapEntry(new Color(57, 45, 38));
}
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: 9.5 KiB