how do i make a custom Cloak ? do i need to make 2 .cs and .png Front and Back
and how do i make my custom Cloak have flying properties ?
This is my code:
namespace "BlahBlah".Items.Accessories.Cloaks
{
[AutoloadEquip(EquipType.Front)]
public class "BlahBlah": ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("BlahBlah");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 34;
item.value = 10;
item.rare = 11;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.noKnockback = true;
player.lifeRegen = 100;
player.wingTimeMax = 150;
}
/////////////////////////////////////////////
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising,
ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 0.85f;
ascentWhenRising = 0.15f;
maxCanAscendMultiplier = 1f;
maxAscentMultiplier = 3f;
constantAscend = 0.135f;
}
/////////////////////////////////////////////
public override void HorizontalWingSpeeds (Player player, ref float speed, ref float acceleration)
{
speed = 9f;
acceleration *= 2.5f;
}
public override void AddRecipes()
{ //this is how to craft this item
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.DirtBlock, 1);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
There is no error .. it just doesn't have the flying properties ...
and i'm asking if i need to make 2 .png is because this is what happened
and also i'm new to this site so i don't really know how to make a Spoiler thingy ..