-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
268 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.