-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from misprit7/color-pixel-box
Color Pixel Boxes
- Loading branch information
Showing
11 changed files
with
195 additions
and
33 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
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
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,19 @@ | ||
using Terraria; | ||
using Terraria.GameContent; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace WireHead.Items | ||
{ | ||
public class ColorPixelBox : ModItem | ||
{ | ||
public override void SetStaticDefaults() { | ||
Item.ResearchUnlockCount = 25; | ||
} | ||
|
||
public override void SetDefaults() { | ||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.ColorPixelBox>()); | ||
Item.value = 750; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
|
@@ -18,4 +18,9 @@ Items: { | |
DisplayName: Trigger Staff | ||
Tooltip: "" | ||
} | ||
|
||
ColorPixelBox: { | ||
Tooltip: "" | ||
DisplayName: Color Pixel Box | ||
} | ||
} |
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,20 @@ | ||
using Microsoft.Xna.Framework; | ||
using Terraria; | ||
using Terraria.ModLoader; | ||
using Terraria.ObjectData; | ||
using Terraria.ID; | ||
|
||
namespace WireHead.Tiles | ||
{ | ||
public class ColorPixelBox : ModTile | ||
{ | ||
// Probably a better way to do this but it saves a bunch of typing | ||
public static int ID = ModContent.TileType<ColorPixelBox>(); | ||
public override void SetStaticDefaults() | ||
{ | ||
|
||
Main.tileFrameImportant[Type] = true; | ||
AddMapEntry(new Color(200, 200, 200)); | ||
} | ||
} | ||
} |
Binary file not shown.
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