using Terraria; using Terraria.ModLoader; using ForgottenWawiTech.Content.Rarities; namespace ForgottenWawiTech.Content.Items.Accessories { public class DevInfiniteMana : ModItem { public override void SetDefaults() { Item.width = 28; Item.height = 28; Item.accessory = true; Item.rare = ModContent.RarityType(); Item.value = Item.sellPrice(platinum: 999); } public override void UpdateAccessory(Player player, bool hideVisual) { player.statManaMax2 = 1000; player.statMana = player.statManaMax2; } } }