Files
CalamityModPublic/Items/Placeables/AstralIce.cs
T
Altixal 58a831d74b Chlorophyte Extractinator support
+ forgot astral snow in prev commit
2024-08-10 08:28:56 +07:00

29 lines
938 B
C#

using CalamityMod.Items.Placeables.Walls;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables
{
public class AstralIce : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemTrader.ChlorophyteExtractinator.AddOption_OneWay(Type, 1, ItemID.IceBlock, 1);
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<AstralSnow>();
}
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.AstralSnow.AstralIce>());
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AstralIceWall>(4).
AddTile(TileID.WorkBenches).
Register();
}
}
}