WoC
Terrarian
hey guys i got a problem while coding a hood named King's Hood it says :
Error CS0103 : the name "thrownVelocity" does not exist in the current contest
here is my coding :
Error CS0103 : the name "thrownVelocity" does not exist in the current contest
here is my coding :
Code:
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FatalityMod.Items.Armor
{
[AutoloadEquip(EquipType.Head)]
public class KingHood : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("King's Hood");
Tooltip.SetDefault("'This Hood Is So Sticky'");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = 10000;
item.rare = 2;
item.defense = 4;
}
public override bool IsArmorSet(Item head, Item body, Item legs)
{
return body.type == mod.ItemType("KingBreastplate") && legs.type == mod.ItemType("KingLeggings");
}
public override void UpdateEquip(Player player)
{
thrownVelocity += 0.15f;
meleeSpeed += 0.15f;
}
public override void UpdateArmorSet(Player player)
{
player.setBonus = "'Jump Like A Slime'";
autoJump = true;
jumpSpeedBoost += 2.4f;
extraFall += 15;
jumpBoost = true;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "SwampSoul", 5);
recipe.AddIngredient(null, "KingMedal", 1);
recipe.AddIngredient(ItemID.NinjaHood);
recipe.AddTile(TileID.Solidifier);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}