Doctor Hex
Terrarian
Soooooooo I could need some help. Whenever I try to Build and Load my Mod it comes up with the "{ expected" error
My Code is:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
namespace ScourgeImage.Items
{
public class Scourge : ModItem
{
public override void SetDefaults()
{
item.name = "Scourge of Zophran the Sprite";
item.damage = 70;
item.thrown = true;
item.noMelee = true;
item.width = 20;
item.height = 20;
item.useTime = 10;
item.useAnimation = 10;
item.useStyle = 1;
item.knockBack = 6;
item.value = 100;
item.rare = 10;
item.reuseDelay = 10;
item.useSound = 1;
item.autoReuse = true;
item.shoot = mod.ProjectileType("ThrownScourge");
item.shootSpeed = 9f;
item.useTurn = true;
item.maxStack = 1;
item.consumable = false;
item.noUseGraphic = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Wood, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Would be glad for anybody to help me out on this one
My Code is:
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
namespace ScourgeImage.Items
{
public class Scourge : ModItem
{
public override void SetDefaults()
{
item.name = "Scourge of Zophran the Sprite";
item.damage = 70;
item.thrown = true;
item.noMelee = true;
item.width = 20;
item.height = 20;
item.useTime = 10;
item.useAnimation = 10;
item.useStyle = 1;
item.knockBack = 6;
item.value = 100;
item.rare = 10;
item.reuseDelay = 10;
item.useSound = 1;
item.autoReuse = true;
item.shoot = mod.ProjectileType("ThrownScourge");
item.shootSpeed = 9f;
item.useTurn = true;
item.maxStack = 1;
item.consumable = false;
item.noUseGraphic = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Wood, 1);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Would be glad for anybody to help me out on this one