2 - (Example) Post DoG items are now 2 platinum instead of 1 platinum 40 gold. 3 - (Example) Dev items are now 2 platinum 80 gold instead of 2 platinum. 4 - Privated numeric rarity item values. 5 - All assigned item values use the rarity's names, e.g. RarityLightPurpleBuyPrice.
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class MirageMirror : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Accessories";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 30;
|
|
Item.height = 30;
|
|
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
|
|
Item.rare = ItemRarityID.Orange;
|
|
Item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.stealthGenStandstill += 0.25f;
|
|
modPlayer.stealthGenMoving += 0.12f;
|
|
player.aggro -= 200;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.MagicMirror).
|
|
AddIngredient(ItemID.BlackLens).
|
|
AddIngredient(ItemID.Bone, 50).
|
|
AddTile(TileID.TinkerersWorkbench).
|
|
Register();
|
|
|
|
CreateRecipe().
|
|
AddIngredient(ItemID.IceMirror).
|
|
AddIngredient(ItemID.BlackLens).
|
|
AddIngredient(ItemID.Bone, 50).
|
|
AddTile(TileID.TinkerersWorkbench).
|
|
Register();
|
|
}
|
|
}
|
|
}
|