Very epic tile resprites
No files matched your search
@@ -0,0 +1,29 @@
|
||||
using CalamityMod.Tiles.FloralParadise;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
public class AlgalSlateItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 100;
|
||||
DisplayName.SetDefault("Algal Slate");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.createTile = ModContent.TileType<AlgalSlate>();
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTurn = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.autoReuse = true;
|
||||
Item.consumable = true;
|
||||
Item.width = 16;
|
||||
Item.height = 16;
|
||||
Item.maxStack = 999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 270 B |
@@ -0,0 +1,29 @@
|
||||
using CalamityMod.Tiles.FloralParadise;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables
|
||||
{
|
||||
public class PeatItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 100;
|
||||
DisplayName.SetDefault("Peat");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.createTile = ModContent.TileType<Peat>();
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTurn = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.autoReuse = true;
|
||||
Item.consumable = true;
|
||||
Item.width = 16;
|
||||
Item.height = 16;
|
||||
Item.maxStack = 999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 320 B |
@@ -51,7 +51,7 @@ namespace CalamityMod.Systems
|
||||
AbyssTiles = tileCounts[ModContent.TileType<AbyssGravel>()] + tileCounts[ModContent.TileType<Voidstone>()];
|
||||
SulphurTiles = tileCounts[ModContent.TileType<SulphurousSand>()] + tileCounts[ModContent.TileType<SulphurousSandstone>()] + tileCounts[ModContent.TileType<HardenedSulphurousSandstone>()];
|
||||
ArsenalLabTiles = tileCounts[ModContent.TileType<LaboratoryPanels>()] + tileCounts[ModContent.TileType<LaboratoryPlating>()] + tileCounts[ModContent.TileType<HazardChevronPanels>()];
|
||||
FloralParadiseTiles = tileCounts[ModContent.TileType<FloralStone>()] + tileCounts[ModContent.TileType<FloralGrass>()] + tileCounts[ModContent.TileType<PeatMoss>()];
|
||||
FloralParadiseTiles = tileCounts[ModContent.TileType<AlgalSlate>()] + tileCounts[ModContent.TileType<PeatMoss>()] + tileCounts[ModContent.TileType<Peat>()];
|
||||
|
||||
Layer1Tiles = tileCounts[ModContent.TileType<SulphurousShale>()];
|
||||
Layer2Tiles = tileCounts[ModContent.TileType<AbyssGravel>()] + tileCounts[ModContent.TileType<PlantyMush>()];
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class FloralStone : ModTile
|
||||
public class AlgalSlate : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Tiles.FloralParadise
|
||||
CalamityUtils.MergeWithFloralParadise(Type);
|
||||
|
||||
DustType = 78;
|
||||
// drop = ModContent.ItemType<FloralStoneItem>();
|
||||
ItemDrop = ModContent.ItemType<AlgalSlateItem>();
|
||||
|
||||
HitSound = SoundID.Tink;
|
||||
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -1,113 +0,0 @@
|
||||
using CalamityMod.Projectiles.Environment;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class FloralGrass : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileBrick[Type] = true;
|
||||
|
||||
TileID.Sets.Grass[Type] = true;
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
TileID.Sets.NeedsGrassFramingDirt[Type] = ModContent.TileType<PeatMoss>();
|
||||
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 = 39;
|
||||
|
||||
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<PeatMoss>();
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (WorldGen.genRand.NextBool(60) && !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<WaterAlgae>(), 0, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)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<SmallVines>())
|
||||
{
|
||||
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<SmallVines>())
|
||||
{
|
||||
if (Main.tile[i, j + 1].LiquidAmount == 255 &&
|
||||
Main.tile[i, j + 1].LiquidType == LiquidID.Water)
|
||||
{
|
||||
bool flag13 = false;
|
||||
for (int y = num8; y > num8 - 10; y--)
|
||||
{
|
||||
if (Main.tile[i, y].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, y].HasTile && !Main.tile[i, y].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (flag13)
|
||||
{
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<SmallVines>();
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().IsHalfBlock = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.Placeables;
|
||||
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 = 78;
|
||||
ItemDrop = ModContent.ItemType<PeatItem>();
|
||||
|
||||
AddMapEntry(new Color(72, 91, 47));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, TileID.Dirt);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -1,5 +1,8 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.Environment;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -12,31 +15,101 @@ namespace CalamityMod.Tiles.FloralParadise
|
||||
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);
|
||||
TileID.Sets.Grass[Type] = true;
|
||||
TileID.Sets.NeedsGrassFraming[Type] = true;
|
||||
TileID.Sets.NeedsGrassFramingDirt[Type] = ModContent.TileType<Peat>();
|
||||
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 = 78;
|
||||
// drop = ModContent.ItemType<PeatMossItem>();
|
||||
DustType = 39;
|
||||
ItemDrop = ModContent.ItemType<PeatItem>();
|
||||
|
||||
HitSound = SoundID.Tink;
|
||||
|
||||
AddMapEntry(new Color(72, 91, 47));
|
||||
AddMapEntry(new Color(65, 142, 101));
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
public override void NumDust(int i, int j, bool fail, ref int Type)
|
||||
{
|
||||
TileFraming.CustomMergeFrame(i, j, Type, TileID.Dirt);
|
||||
return false;
|
||||
Type = fail ? 1 : 3;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
if (fail && !effectOnly)
|
||||
Main.tile[i, j].TileType = (ushort)ModContent.TileType<Peat>();
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (WorldGen.genRand.NextBool(60) && !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<WaterAlgae>(), 0, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
public override void RandomUpdate(int i, int j)
|
||||
{
|
||||
int num8 = WorldGen.genRand.Next((int)Main.rockLayer, (int)(Main.rockLayer + (double)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<SmallVines>())
|
||||
{
|
||||
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<SmallVines>())
|
||||
{
|
||||
if (Main.tile[i, j + 1].LiquidAmount == 255 &&
|
||||
Main.tile[i, j + 1].LiquidType == LiquidID.Water)
|
||||
{
|
||||
bool flag13 = false;
|
||||
for (int y = num8; y > num8 - 10; y--)
|
||||
{
|
||||
if (Main.tile[i, y].BottomSlope)
|
||||
{
|
||||
flag13 = false;
|
||||
break;
|
||||
}
|
||||
if (Main.tile[i, y].HasTile && !Main.tile[i, y].BottomSlope)
|
||||
{
|
||||
flag13 = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (flag13)
|
||||
{
|
||||
int num53 = i;
|
||||
int num54 = j + 1;
|
||||
Main.tile[num53, num54].TileType = (ushort)ModContent.TileType<SmallVines>();
|
||||
Main.tile[num53, num54].Get<TileWallWireStateData>().HasTile = true;
|
||||
WorldGen.SquareTileFrame(num53, num54, true);
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
{
|
||||
NetMessage.SendTileSquare(-1, num53, num54, 3, TileChangeType.None);
|
||||
}
|
||||
}
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().Slope = SlopeType.Solid;
|
||||
Main.tile[i, j].Get<TileWallWireStateData>().IsHalfBlock = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 11 KiB |
@@ -31,7 +31,7 @@ namespace CalamityMod.Tiles.FloralParadise
|
||||
TileObjectData.newTile.CoordinateHeights = new[] { 16, 16 };
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorValidTiles = new[] { ModContent.TileType<FloralGrass>() };
|
||||
TileObjectData.newTile.AnchorValidTiles = new[] { ModContent.TileType<PeatMoss>() };
|
||||
TileObjectData.newTile.LavaDeath = true;
|
||||
TileObjectData.newTile.StyleHorizontal = true;
|
||||
TileObjectData.newTile.RandomStyleRange = 2;
|
||||
|
||||
|
Before Width: | Height: | Size: 581 B After Width: | Height: | Size: 581 B |
@@ -465,9 +465,9 @@ namespace CalamityMod
|
||||
/// </summary>
|
||||
/// <param name="type">The tile whose merging properties will be set.</param>
|
||||
public static void MergeWithFloralParadise(int type) => MergeWithSet(type, new int[] {
|
||||
TileType<FloralGrass>(),
|
||||
TileType<PeatMoss>(),
|
||||
TileType<FloralStone>(),
|
||||
TileType<Peat>(),
|
||||
TileType<AlgalSlate>(),
|
||||
TileType<PerennialOre>(),
|
||||
});
|
||||
|
||||
|
||||
@@ -192,8 +192,8 @@ namespace CalamityMod.World.Minibiomes
|
||||
caveState = CalamityUtils.SimulateCelluarAutomata(caveState);
|
||||
|
||||
// Reset tile states based on the above results.
|
||||
ushort grassID = (ushort)ModContent.TileType<FloralGrass>();
|
||||
ushort stoneID = (ushort)ModContent.TileType<FloralStone>();
|
||||
ushort grassID = (ushort)ModContent.TileType<PeatMoss>();
|
||||
ushort stoneID = (ushort)ModContent.TileType<AlgalSlate>();
|
||||
grassDirtMap = new bool[placementArea.Width, placementArea.Height];
|
||||
for (int x = placementArea.X; x < placementArea.X + placementArea.Width; x++)
|
||||
{
|
||||
@@ -232,9 +232,9 @@ namespace CalamityMod.World.Minibiomes
|
||||
|
||||
public static void GenerateDirtBehindGrass(Rectangle placementArea, bool[,] grassDirtMap)
|
||||
{
|
||||
ushort dirtID = (ushort)ModContent.TileType<PeatMoss>();
|
||||
ushort stoneID = (ushort)ModContent.TileType<FloralStone>();
|
||||
ushort grassID = (ushort)ModContent.TileType<FloralGrass>();
|
||||
ushort dirtID = (ushort)ModContent.TileType<Peat>();
|
||||
ushort stoneID = (ushort)ModContent.TileType<AlgalSlate>();
|
||||
ushort grassID = (ushort)ModContent.TileType<PeatMoss>();
|
||||
|
||||
// Perform secondary passes that overlay dirt behind grass.
|
||||
for (int i = 0; i < TotalSecondaryDirtCreationPasses + 1; i++)
|
||||
|
||||