Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace Osmium.Items.Accessories
- {
- [AutoloadEquip(EquipType.Wings)]
- public class HivePackWings : ModItem
- {
- public override void SetStaticDefaults()
- {
- DisplayName.SetDefault("HivePack+");
- Tooltip.SetDefault("Hive Pack plus wings.\nBee wings are better than normal.");
- }
- public override void SetDefaults()
- {
- item.width = 34;
- item.height = 32;
- item.value = 0;
- item.rare = 3;
- item.accessory = true;
- }
- public override void UpdateAccessory(Player player, bool hideVisual)
- {
- player.strongBees = true;
- 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.5f;
- ascentWhenRising = 0.1f;
- maxCanAscendMultiplier = 0.5f;
- maxAscentMultiplier = 2.27f;
- constantAscend = 0.1f;
- }
- public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
- {
- speed = 6.85f;
- acceleration *= 1.45f;
- }
- public override void AddRecipes()
- {
- ModRecipe recipe = new ModRecipe(mod);
- recipe.needHoney = true;
- recipe.AddIngredient(3333);
- recipe.AddIngredient(ItemID.BeeWings);
- recipe.AddTile(TileID.TinkerersWorkbench);
- recipe.SetResult(this);
- recipe.AddRecipe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement