TheCrazyDuck1
Terrarian
So I've came back after maybe 2-3 months and Previously in tmodloader V 0.9.2.3 my mod worked just fine. But i've came back trying to fix it and I'm not very good at coding and just can't find it out. If someone could help that would be greatly appreciated.
Errors:
c:\Users\(user)\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Breastplate.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Breastplate.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
c:\Users\(user\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Helmet.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Helmet.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
c:\Users\(user)\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Leggings.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Leggings.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
Code:
(Volron_Breastplate)
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using System.Collections.Generic;
namespace CrazyItems.Items.Armor
{
public class Volron_Breastplate : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Body);
return true;
}
public override void SetDefaults()
{
item.name = "Volron Breastplate";
item.width = 18;
item.height = 18;
AddTooltip("Durable Breastplate of Volron.");
AddTooltip2("5% increased movement speed");
item.value = 10;
item.rare = 2;
item.defense = 10;
}
public override void UpdateEquip(Player player)
{
player.moveSpeed += 0.05f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
If you need the code to the other 2 pieces of armor just ask for it. I'll send it
Thank you very much.
Errors:
c:\Users\(user)\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Breastplate.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Breastplate.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
c:\Users\(user\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Helmet.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Helmet.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
c:\Users\(user)\Documents\My Games\Terraria\ModLoader\Mod Sources\CrazyItems\Items\Armor\Volron_Leggings.cs(10,30) : error CS0115: 'CrazyItems.Items.Armor.Volron_Leggings.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
Code:
(Volron_Breastplate)
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using System.Collections.Generic;
namespace CrazyItems.Items.Armor
{
public class Volron_Breastplate : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Body);
return true;
}
public override void SetDefaults()
{
item.name = "Volron Breastplate";
item.width = 18;
item.height = 18;
AddTooltip("Durable Breastplate of Volron.");
AddTooltip2("5% increased movement speed");
item.value = 10;
item.rare = 2;
item.defense = 10;
}
public override void UpdateEquip(Player player)
{
player.moveSpeed += 0.05f;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 10);
recipe.AddTile(TileID.WorkBenches);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
If you need the code to the other 2 pieces of armor just ask for it. I'll send it
Thank you very much.