tyling123
Terrarian
using Terraria;
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
namespace Aqonys.Items.Armor
{
// The AutoloadEquip attribute automatically attaches an equip texture to this item.
// Providing the EquipType.Body value here will result in TML expecting X_Arms.png, X_Body.png and X_FemaleBody.png sprite-sheet files to be placed next to the item's main texture.
[AutoloadEquip(EquipType.Body)]
public class ExampleBreastplate : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Fiery Chestplate");
Tooltip.SetDefault("Hoooot"
+ "\nImmunity to 'On Fire!'"
+ "\n+20 max mana and +1 max minions");
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
}
public override void SetDefaults()
{
Item.width = 18; // Width of the item
Item.height = 18; // Height of the item
Item.value = Item.sellPrice(gold: 23); // How many coins the item is worth
Item.rare = ItemRarityID.Green; // The rarity of the item
Item.defense = 19; // The amount of defense the item will give when equipped
}
public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.OnFire] = true; // Make the player immune to Fire
player.statManaMax2 += 20; // Increase how many mana points the player can have by 20
player.maxMinions++; // Increase how many minions the player can have by one
}
// Please see Content/ExampleRecipes.cs for a detailed explanation of recipe creation.
public override void AddRecipes()
{
CreateRecipe().AddIngredient<GuideVoodooDoll, 5 > ()
.AddTile<Tiles.Furniture.Hellforge>()
.Register();
}
}
}
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
namespace Aqonys.Items.Armor
{
// The AutoloadEquip attribute automatically attaches an equip texture to this item.
// Providing the EquipType.Body value here will result in TML expecting X_Arms.png, X_Body.png and X_FemaleBody.png sprite-sheet files to be placed next to the item's main texture.
[AutoloadEquip(EquipType.Body)]
public class ExampleBreastplate : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Fiery Chestplate");
Tooltip.SetDefault("Hoooot"
+ "\nImmunity to 'On Fire!'"
+ "\n+20 max mana and +1 max minions");
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
}
public override void SetDefaults()
{
Item.width = 18; // Width of the item
Item.height = 18; // Height of the item
Item.value = Item.sellPrice(gold: 23); // How many coins the item is worth
Item.rare = ItemRarityID.Green; // The rarity of the item
Item.defense = 19; // The amount of defense the item will give when equipped
}
public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.OnFire] = true; // Make the player immune to Fire
player.statManaMax2 += 20; // Increase how many mana points the player can have by 20
player.maxMinions++; // Increase how many minions the player can have by one
}
// Please see Content/ExampleRecipes.cs for a detailed explanation of recipe creation.
public override void AddRecipes()
{
CreateRecipe().AddIngredient<GuideVoodooDoll, 5 > ()
.AddTile<Tiles.Furniture.Hellforge>()
.Register();
}
}
}