39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using CalamityMod.Items.Placeables.Walls;
|
|
using CalamityMod.Projectiles.Typeless;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Placeables
|
|
{
|
|
public class EutrophicSand : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Placeables";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 100;
|
|
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<Navystone>();
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.EutrophicSand>());
|
|
Item.ammo = AmmoID.Sand;
|
|
Item.notAmmo = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<EutrophicSandWallSafe>(4).
|
|
AddTile(TileID.WorkBenches).
|
|
Register();
|
|
|
|
CreateRecipe().
|
|
AddIngredient<EutrophicSandWall>(4).
|
|
AddTile(TileID.WorkBenches).
|
|
Register();
|
|
}
|
|
}
|
|
}
|