Files
CalamityModPublic/Items/Placeables/PlaceableTurrets/LabTurret.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

36 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using CalamityMod.CustomRecipes;
using CalamityMod.Items.Materials;
using CalamityMod.Tiles.PlayerTurrets;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.PlaceableTurrets
{
public class LabTurret : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.DefaultToPlaceableTile(ModContent.TileType<PlayerLabTurret>());
Item.value = Item.buyPrice(0, 5, 0, 0);
Item.rare = ItemRarityID.Orange;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 1);
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<MysteriousCircuitry>(14).
AddIngredient<DubiousPlating>(20).
AddIngredient<SuspiciousScrap>().
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(1, out Func<bool> condition), condition).
AddTile(TileID.Anvils).
Register();
}
}
}