Add NeptuneTrophy

This commit is contained in:
2025-11-11 21:32:27 +00:00
parent 6001cafef9
commit e260b77ffd
6 changed files with 59 additions and 0 deletions
@@ -0,0 +1,19 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ForgottenWawiTech.Content.Items.Tiles.Furniture
{
public class NeptuneTrophyItem : ModItem
{
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<Content.Tiles.NeptuneTrophy>());
Item.width = 128;
Item.height = 64;
Item.maxStack = 9999;
Item.rare = ItemRarityID.Blue;
Item.value = Item.buyPrice(0, 1, 0, 0);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

+32
View File
@@ -0,0 +1,32 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.Enums;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ObjectData;
namespace ForgottenWawiTech.Content.Tiles
{
public class NeptuneTrophy : ModTile
{
public override void SetStaticDefaults()
{
Main.tileFrameImportant[Type] = true;
Main.tileLavaDeath[Type] = true;
TileObjectData.newTile.CopyFrom(TileObjectData.Style3x3Wall);
TileObjectData.newTile.Width = 8;
TileObjectData.newTile.Height = 4;
TileObjectData.newTile.CoordinateHeights = new int[] { 16, 16, 16, 16 };
TileObjectData.newTile.CoordinateWidth = 16;
TileObjectData.newTile.CoordinatePadding = 0;
TileObjectData.newTile.Origin = new Point16(4, 3); // Center bottom anchor point
TileObjectData.newTile.AnchorWall = true;
TileObjectData.addTile(Type);
DustType = 7;
AddMapEntry(new Color(120, 85, 60), Language.GetText("MapObject.Trophy"));
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB