Xtrafa
Terrarian
Am I doing this right? This is for very early prehardmode wings I am trying to make. (My old Makeshift Wings from tAPI)
Code:using System.Collections.Generic; using Terraria; using Terraria.ModLoader; namespace TerraWingsMod.Items { public class MakeshiftWings : ModItem { public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips) { equips.Add(EquipType.Wings); return true; } public override void SetDefaults() { item.name = "Makeshift Wings"; item.width = 22; item.height = 36; item.toolTip = "Allows minor flight and slow fall."; item.toolTip2 = "Macgyver would be proud."; item.value = 20; item.rare = 0; item.accessory = true; } public override void UpdateAccessory(Player player, bool hideVisual) { player.wingTimeMax = 25; } public override void VerticalWingSpeeds(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(ref float speed, ref float acceleration) { speed = 1f; acceleration *= 1.0f; } public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(null, "Umbrella", 1); recipe.AddIngredient(null, "RocketBoots", 1); recipe.AddTile(TileID.TinkerersWorkshop); recipe.SetResult(this); recipe.AddRecipe(); } } }
I am trying to make my own prehardmode wings mod, and one of the wings will be my old makeshift wings.
Most of the wings I want to make will be crafted, but one set I want to drop from Queen Bee (with a 15% chance), I am sure once I read around the tutorial pages enough that I will eventually figure out how to add custom drops to vanilla bosses, but if anyone wants to help me speed that process up go ahead.
Actually I think I would much rather make the wings craftable instead of a boss drop, make the player do more then just fight a boss.
I think this is correct:
http://hastebin.com/muhosajelo.cs