A lot more really epic scenic tiles
No files matched your search
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -0,0 +1,49 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeLogPiles : ModTile
|
||||
{
|
||||
public const int Variants = 2;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 3;
|
||||
TileObjectData.newTile.Height = 3;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 2);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 38;
|
||||
|
||||
AddMapEntry(new Color(114, 72, 49));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 361 B |
@@ -0,0 +1,47 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeMossPiles : ModTile
|
||||
{
|
||||
public const int Variants = 4;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 3;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 38;
|
||||
|
||||
AddMapEntry(new Color(56, 56, 56));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,47 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeSubterraneanGrass : ModTile
|
||||
{
|
||||
public const int Variants = 5;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 3;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 39;
|
||||
|
||||
AddMapEntry(new Color(106, 163, 74));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,42 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeWallFungi : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(165, 126, 84));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 516 B |
@@ -0,0 +1,42 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeWallFungiLeft : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(165, 126, 84));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 526 B |
@@ -0,0 +1,43 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class MediumFloralPlants : ModTile
|
||||
{
|
||||
public const int Variants = 8;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x2);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
HitSound = SoundID.Grass;
|
||||
DustType = 2;
|
||||
AddMapEntry(new Color(106, 135, 69));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (CalamityUtils.ParanoidTileRetrieval(i, j).LiquidAmount > 64)
|
||||
WorldGen.KillTile(i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 5.2 KiB |
@@ -0,0 +1,48 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class MediumLargeMossPiles : ModTile
|
||||
{
|
||||
public const int Variants = 4;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 2;
|
||||
TileObjectData.newTile.Origin = new Point16(1, 1);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16,
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 38;
|
||||
|
||||
AddMapEntry(new Color(56, 56, 56));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@@ -5,15 +5,17 @@ using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class LargeMossPile : ModTile
|
||||
public class MediumMossPiles : ModTile
|
||||
{
|
||||
public const int Variants = 4;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 38;
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -6,7 +6,7 @@ using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class FloralPlants : ModTile
|
||||
public class SmallFloralPlants : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
After Width: | Height: | Size: 563 B |
@@ -0,0 +1,47 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class SmallMossPiles : ModTile
|
||||
{
|
||||
public const int Variants = 4;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 1;
|
||||
TileObjectData.newTile.Height = 1;
|
||||
TileObjectData.newTile.Origin = new Point16(0, 0);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
DustType = 38;
|
||||
|
||||
AddMapEntry(new Color(56, 56, 56));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 885 B |
@@ -0,0 +1,41 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class SmallWallFungi : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 1;
|
||||
TileObjectData.newTile.Height = 1;
|
||||
TileObjectData.newTile.Origin = new Point16(0, 0);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 1, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(165, 126, 84));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 619 B |
@@ -0,0 +1,41 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class SmallWallFungiLeft : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.Width = 1;
|
||||
TileObjectData.newTile.Height = 1;
|
||||
TileObjectData.newTile.Origin = new Point16(0, 0);
|
||||
TileObjectData.newTile.CoordinateHeights = new int[]
|
||||
{
|
||||
16
|
||||
};
|
||||
TileObjectData.newTile.CoordinateWidth = 16;
|
||||
TileObjectData.newTile.CoordinatePadding = 2;
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 1, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(165, 126, 84));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 296 B |
@@ -0,0 +1,43 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class TallFloralPlants : ModTile
|
||||
{
|
||||
public const int Variants = 12;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileObsidianKill[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
HitSound = SoundID.Grass;
|
||||
DustType = 2;
|
||||
AddMapEntry(new Color(106, 135, 69));
|
||||
}
|
||||
|
||||
public override void SetDrawPositions(int i, int j, ref int width, ref int offsetY, ref int height, ref short tileFrameX, ref short tileFrameY)
|
||||
{
|
||||
offsetY = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 4;
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
{
|
||||
if (CalamityUtils.ParanoidTileRetrieval(i, j).LiquidAmount > 64)
|
||||
WorldGen.KillTile(i, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
@@ -0,0 +1,39 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class VineLoops : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileCut[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
Main.tileNoFail[Type] = true;
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x2);
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorTop = new(AnchorType.SolidTile, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
|
||||
ModTranslation name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(47, 75, 32), name);
|
||||
HitSound = SoundID.Grass;
|
||||
DustType = 2;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,32 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class WallLeaves : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorRight = new AnchorData(AnchorType.SolidTile, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(145, 170, 61));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,32 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
|
||||
namespace CalamityMod.Tiles.FloralParadise
|
||||
{
|
||||
public class WallLeavesLeft : ModTile
|
||||
{
|
||||
public const int Variants = 3;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileNoAttach[Type] = true;
|
||||
TileObjectData.newTile.CopyFrom(TileObjectData.Style2x1);
|
||||
TileObjectData.newTile.AnchorBottom = AnchorData.Empty;
|
||||
TileObjectData.newTile.AnchorLeft = new AnchorData(AnchorType.SolidTile, 2, 0);
|
||||
TileObjectData.addTile(Type);
|
||||
DustType = 0;
|
||||
|
||||
AddMapEntry(new Color(145, 170, 61));
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 410 B |
@@ -427,26 +427,50 @@ namespace CalamityMod.World.Minibiomes
|
||||
continue;
|
||||
}
|
||||
|
||||
Main.tile[x, y].TileType = (ushort)ModContent.TileType<FloralPlants>();
|
||||
Main.tile[x, y].TileFrameX = (short)(Utils.SelectRandom(WorldGen.genRand, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 27, 28, 29,
|
||||
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44) * 18);
|
||||
Main.tile[x, y].TileType = (ushort)ModContent.TileType<SmallFloralPlants>();
|
||||
Main.tile[x, y].TileFrameX = (short)(WorldGen.genRand.Next(8) * 18);
|
||||
Main.tile[x, y].TileFrameY = 0;
|
||||
Main.tile[x, y].Get<TileWallWireStateData>().HasTile = true;
|
||||
}
|
||||
|
||||
// TODO -- Move this to another method.
|
||||
for (int i = 0; i < smallFlowerCount / 2; i++)
|
||||
int tries = 0;
|
||||
Dictionary<int, int> possibleScenicTiles = new()
|
||||
{
|
||||
[ModContent.TileType<LargeLogPiles>()] = LargeLogPiles.Variants,
|
||||
[ModContent.TileType<LargeMossPiles>()] = LargeMossPiles.Variants,
|
||||
[ModContent.TileType<LargeSubterraneanGrass>()] = LargeSubterraneanGrass.Variants,
|
||||
[ModContent.TileType<LargeWallFungi>()] = LargeWallFungi.Variants,
|
||||
[ModContent.TileType<LargeWallFungiLeft>()] = LargeWallFungiLeft.Variants,
|
||||
[ModContent.TileType<MediumFloralPlants>()] = MediumFloralPlants.Variants,
|
||||
[ModContent.TileType<MediumLargeMossPiles>()] = MediumLargeMossPiles.Variants,
|
||||
[ModContent.TileType<MediumMossPiles>()] = MediumMossPiles.Variants,
|
||||
[ModContent.TileType<SmallMossPiles>()] = SmallMossPiles.Variants,
|
||||
[ModContent.TileType<SmallWallFungi>()] = SmallWallFungi.Variants,
|
||||
[ModContent.TileType<SmallWallFungiLeft>()] = SmallWallFungiLeft.Variants,
|
||||
[ModContent.TileType<TallFloralPlants>()] = TallFloralPlants.Variants,
|
||||
[ModContent.TileType<VineLoops>()] = VineLoops.Variants,
|
||||
[ModContent.TileType<WallLeaves>()] = WallLeaves.Variants,
|
||||
[ModContent.TileType<WallLeavesLeft>()] = WallLeavesLeft.Variants,
|
||||
};
|
||||
for (int i = 0; i < 960; i++)
|
||||
{
|
||||
tries++;
|
||||
if (tries >= 10000)
|
||||
break;
|
||||
|
||||
int x = placementArea.X + WorldGen.genRand.Next(16, placementArea.Width - 16);
|
||||
int y = placementArea.Y + WorldGen.genRand.Next(12, placementArea.Height - 12);
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(x, y);
|
||||
if (tile.HasTile || tile.LiquidAmount > 0 || !WorldGen.SolidTile(x, y + 1))
|
||||
if (tile.HasTile || tile.LiquidAmount > 0)
|
||||
{
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
WorldGen.PlaceTile(x, y, ModContent.TileType<LargeMossPile>());
|
||||
var tileRegistryIndex = WorldGen.genRand.Next(possibleScenicTiles.Count);
|
||||
int tileID = possibleScenicTiles.Keys.ElementAt(tileRegistryIndex);
|
||||
WorldGen.PlaceTile(x, y, tileID, style: WorldGen.genRand.Next(possibleScenicTiles[tileID]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||