Basalted
This commit is contained in:
1 parent
048f7b19cd
commit
3b42401f31
2 files changed
+6
-14
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -7,21 +8,13 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
{
|
||||
public class Basalt : ModTile
|
||||
{
|
||||
private int sheetWidth = 234;
|
||||
private int sheetHeight = 90;
|
||||
|
||||
public byte[,] tileAdjacency;
|
||||
public byte[,] secondTileAdjacency;
|
||||
public byte[,] thirdTileAdjacency;
|
||||
public byte[,] fourthTileAdjacency;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
TileID.Sets.GeneralPlacementTiles[Type] = false;
|
||||
|
||||
TileID.Sets.HasSlopeFrames[Type] = true;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileShine2[Type] = true;
|
||||
Main.tileShine2[Type] = false;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
CalamityUtils.MergeWithDesert(Type);
|
||||
@@ -52,10 +45,9 @@ namespace CalamityMod.Tiles.SunkenSea
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
frameXOffset = i % 4 * sheetWidth;
|
||||
frameYOffset = j % 4 * sheetHeight;
|
||||
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 8.9 KiB |
Reference in new issue
Block a user