feat: coal tile
This commit is contained in:
parent
53f61ab431
commit
58e0970ccf
9 changed files with 64 additions and 3 deletions
18
Content/Items/Materials/Coal.cs
Normal file
18
Content/Items/Materials/Coal.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using continuity.Content.Tiles;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace continuity.Content.Items.Materials
|
||||
{
|
||||
public class Coal : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<CoalTile>());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@ using Terraria;
|
|||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Continuity.Content.Items
|
||||
namespace Continuity.Content.Items.Materials
|
||||
{
|
||||
public class ExquisiteGel : ModItem
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using Terraria;
|
|||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Continuity.Content.Items
|
||||
namespace Continuity.Content.Items.Materials
|
||||
{
|
||||
public class PalishadeTissue : ModItem
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using Continuity.Content.Items;
|
||||
using Continuity.Content.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -9,7 +10,7 @@ using Terraria;
|
|||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace continuity.Content.Items
|
||||
namespace continuity.Content.Items.Weapons
|
||||
{
|
||||
public class Geltana : ModItem
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@ using Terraria.ID;
|
|||
using Terraria.ModLoader;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Continuity.Content.Items;
|
||||
using Continuity.Content.Items.Materials;
|
||||
|
||||
namespace Continuity.Content
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@ using Terraria;
|
|||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Continuity.Content.Items;
|
||||
using Continuity.Content.Items.Materials;
|
||||
|
||||
namespace Continuity.Content
|
||||
{
|
||||
|
|
33
Content/Tiles/CoalTile.cs
Normal file
33
Content/Tiles/CoalTile.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace continuity.Content.Tiles
|
||||
{
|
||||
public class CoalTile : ModTile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
TileID.Sets.Ore[Type] = true;
|
||||
Main.tileSpelunker[Type] = true; // The tile will be affected by spelunker highlighting
|
||||
Main.tileMergeDirt[Type] = true;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
|
||||
LocalizedText name = CreateMapEntryName();
|
||||
AddMapEntry(new Color(55, 51, 52), name);
|
||||
|
||||
DustType = 84;
|
||||
HitSound = SoundID.Tink;
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
|
@ -21,4 +21,11 @@ Items: {
|
|||
'''
|
||||
DisplayName: Geltana
|
||||
}
|
||||
|
||||
Coal: {
|
||||
DisplayName: Coal
|
||||
Tooltip: ""
|
||||
}
|
||||
}
|
||||
|
||||
Tiles.CoalTile.MapEntry: Coal Tile
|
||||
|
|
Reference in a new issue