Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Laugic authored Sep 11, 2017
1 parent 8b315b7 commit a0dd420
Show file tree
Hide file tree
Showing 14 changed files with 268 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Tiles/AlchemicalInfuser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class AlchemicalInfuser : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Alchemical Infuser");
AddMapEntry(new Color(170, 200, 120), name);
disableSmartCursor = true;
//adjTiles = new int[] { TileID.WorkBenches };
}

public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 108, 54, mod.ItemType("AlchemicalInfuser"));
}
}
}
Binary file added Tiles/AlchemicalInfuser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Tiles/AncientEnchanter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class AncientEnchanter : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Ancient Enchanter");
AddMapEntry(new Color(220, 200, 160), name);
disableSmartCursor = true;
//adjTiles = new int[] { TileID.WorkBenches };
}

public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 108, 54, mod.ItemType("AncientEnchanter"));
}
}
}
Binary file added Tiles/AncientEnchanter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Tiles/CrystalineInfuser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class CrystalineInfuser : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Crystaline Infuser");
AddMapEntry(new Color(150, 0, 150), name);
disableSmartCursor = true;
//adjTiles = new int[] { TileID.WorkBenches };
}

public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 108, 54, mod.ItemType("CrystalineInfuser"));
}
}
}
Binary file added Tiles/CrystalineInfuser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions Tiles/LaugicalWorkbench.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class LaugicalWorkbench : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
TileObjectData.newTile.Width = 7;
TileObjectData.newTile.Height = 3;
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Laugical Workbench");
AddMapEntry(new Color(200, 200, 200), name);
disableSmartCursor = true;
//adjTiles = new int[] { TileID.WorkBenches };
}
/*int animationFrameWidth = 126;
public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
{
// Tweak the frame drawn by x position so tiles next to each other are off-sync and look much more interesting.
int uniqueAnimationFrame = Main.tileFrame[Type] + i;
if (i % 2 == 0)
{
uniqueAnimationFrame += 3;
}
if (i % 3 == 0)
{
uniqueAnimationFrame += 3;
}
if (i % 4 == 0)
{
uniqueAnimationFrame += 3;
}
uniqueAnimationFrame = uniqueAnimationFrame % 6;
frameXOffset = 0;
}
public override void AnimateTile(ref int frame, ref int frameCounter)
{
frameCounter++;
if (frameCounter > 128)
{
frameCounter = 0;
frame++;
if (frame > 26)
{
frame = 0;
}
}
// Above code works, but since we are just mimicing another tile, we can just use the same value.
}*/

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 112, 48, mod.ItemType("LaugicalWorkbench"));
}
}
}
Binary file added Tiles/LaugicalWorkbench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Tiles/MineralEnchanter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class MineralEnchanter : ModTile
{
public override void SetDefaults()
{
Main.tileSolidTop[Type] = false;
Main.tileFrameImportant[Type] = true;
Main.tileNoAttach[Type] = true;
Main.tileTable[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style6x3);
TileObjectData.addTile(Type);
ModTranslation name = CreateMapEntryName();
name.SetDefault("Mineral Enchanter");
AddMapEntry(new Color(150, 150, 150), name);
disableSmartCursor = true;
//adjTiles = new int[] { TileID.WorkBenches };
}

public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}

public override void KillMultiTile(int i, int j, int frameX, int frameY)
{
Item.NewItem(i * 16, j * 16, 108, 56, mod.ItemType("MineralEnchanter"));
}
}
}
Binary file added Tiles/MineralEnchanter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tiles/ObsidiumOre.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions Tiles/ObsidiumOreBlock.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ObjectData;

namespace Laugicality.Tiles
{
public class ObsidiumOreBlock : ModTile
{
public override void SetDefaults()
{
Main.tileSolid[Type] = true;
Main.tileMerge[56][mod.TileType("ObsidiumOreBlock")] = true;
Main.tileMerge[mod.TileType("ObsidiumOreBlock")][56] = true;
Main.tileSpelunker[Type] = true;
Main.tileLighted[Type] = true;
ModTranslation name = CreateMapEntryName();
name.SetDefault("Obsidium Ore");
AddMapEntry(new Color(50, 50, 50), name);
mineResist = 1f;
minPick = 60;
drop = mod.ItemType("ObsidiumOre");
}

public override void NumDust(int i, int j, bool fail, ref int num)
{
num = fail ? 1 : 3;
}

public override void ModifyLight(int i, int j, ref float r, ref float g, ref float b)
{
r = 0.2f;
g = 0.1f;
b = 0.2f;
}

public override bool CanExplode(int i, int j)
{
return false;
}

}
}
Binary file added Tiles/ObsidiumOreBlock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tiles/ObsidiumOreBlockbkup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0dd420

Please sign in to comment.