PC I need help with a mod im making please

rdc2020

Terrarian
this is my code but it says error cs1513 } expected


using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace ChaosUnleashed.items.weapons
{
public class LifeDrainer : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("True Nail");
Tooltip.SetDefault("Steals the life out of enemies.");
}
public override void SetDefaults()
{
item.damage = 210;
item.melee = true;
item.width = 40;
item.height = 50;
item.useTime = 20;
item.useAnimation = 20;
item.useStyle = 1;
item.knockBack = 4;
item.value = 10000;
item.rare = 2;
item.UseSound = SoundID.Item1;
item.autoReuse = true;
}
public override void OnHitNPC (Player player, NPC target, int damage, float knockBack, bool crit)
{
int amountToHeal = damage / 7;
if(amountToHeal + player.statLife > player.statLifeMax2)
amountToHeal = player.statLifeMax2 - player.statLife;
player.statLife += amountToHeal;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Muramasa, 1);
recipe.AddIngredient(ItemID.Soul of Light, 10);
recipe.AddIngredient(ItemID.Soul of Night, 10);
recipe.AddIngredient(ItemID.Life Crystal, 10);
recipe.AddIngredient(ItemID.Life Fruit, 10);
recipe.AddIngredient(ItemID.Soul of Fright, 10);
recipe.AddIngredient(ItemID.Soul of Sight, 10);
recipe.AddIngredient(ItemID.Soul of Might, 10);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
}
idk whats wrong?
 
Back
Top Bottom