Terraria.ModLoader.ItemLoader.VerticalWingSpeeds C# (CSharp) Method

VerticalWingSpeeds() public static method

public static VerticalWingSpeeds ( Player player, float &ascentWhenFalling, float &ascentWhenRising, float &maxCanAscendMultiplier, float &maxAscentMultiplier, float &constantAscend ) : void
player Player
ascentWhenFalling float
ascentWhenRising float
maxCanAscendMultiplier float
maxAscentMultiplier float
constantAscend float
return void
        public static void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising,
			ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
        {
            Item item = GetWing(player);
            if (item == null)
            {
                return;
            }
            item.modItem?.VerticalWingSpeeds(ref ascentWhenFalling, ref ascentWhenRising, ref maxCanAscendMultiplier,
                ref maxAscentMultiplier, ref constantAscend);

            foreach (var hook in HookVerticalWingSpeeds)
            {
                hook(item, ref ascentWhenFalling, ref ascentWhenRising,
                    ref maxCanAscendMultiplier, ref maxAscentMultiplier, ref constantAscend);
            }
        }