24 lines
667 B
C#
24 lines
667 B
C#
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<FWTDeveloperItem>();
|
|
Item.value = Item.sellPrice(platinum: 999);
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.statMana = player.statManaMax2;
|
|
player.statManaMax2 += 2000;
|
|
}
|
|
}
|
|
} |