Files
CalamityModPublic/Items/Placeables/PlaceableTurrets/IceTurret.cs
T
Altixal 0b3d4f93df Tile defaulting part 2
- Fixes some walls having incorrect use time
- Fixes some tiles having incorrect use time
- Removes some random rarity/price from certain blocks
- Calamity Living Fire Blocks are now crafted at a Crystal Ball
2024-09-18 02:48:45 +07:00

38 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using CalamityMod.CustomRecipes;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Plates;
using CalamityMod.Tiles.PlayerTurrets;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.PlaceableTurrets
{
public class IceTurret : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<PlayerIceTurret>());
Item.value = Item.sellPrice(gold: 2);
Item.rare = ItemRarityID.Pink;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 2);
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<MysteriousCircuitry>(14).
AddIngredient<DubiousPlating>(20).
AddIngredient<Elumplate>(10).
AddIngredient<EssenceofEleum>(12).
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(2, out Func<bool> condition), condition).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}