whenever i try to build and reload i get this:
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(1,31) : error CS0246: The type or namespace name 'ModItem' could not be found (are you missing a using directive or an assembly reference?)
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(11,82) : error CS0246: The type or namespace name 'EquipType' could not be found (are you missing a using directive or an assembly reference?)
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(11,76) : error CS0246: The type or namespace name 'IList' could not be found (are you missing a using directive or an assembly reference?)
and the code is:
public class RalseiCake : ModItem
{
public override void SetDefaults()
{
item.CloneDefaults(ItemID.SuperHealingPotion);
item.name = "Ralsei's cake";
item.tooltip = "";
item.healLife = Main.player[item.owner].statLifeMax2;
}
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
texture = "cake.png" + ItemID.SuperHealingPotion;
return true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(1,31) : error CS0246: The type or namespace name 'ModItem' could not be found (are you missing a using directive or an assembly reference?)
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(11,82) : error CS0246: The type or namespace name 'EquipType' could not be found (are you missing a using directive or an assembly reference?)
c:\Users\(name)\Documents\My Games\Terraria\ModLoader\Mod Sources\deltarune\Items\cake\RalseiCake.cs(11,76) : error CS0246: The type or namespace name 'IList' could not be found (are you missing a using directive or an assembly reference?)
and the code is:
public class RalseiCake : ModItem
{
public override void SetDefaults()
{
item.CloneDefaults(ItemID.SuperHealingPotion);
item.name = "Ralsei's cake";
item.tooltip = "";
item.healLife = Main.player[item.owner].statLifeMax2;
}
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
texture = "cake.png" + ItemID.SuperHealingPotion;
return true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.SetResult(this);
recipe.AddRecipe();
}
}