CanUseGrapple() public method

public CanUseGrapple ( Player player ) : bool?
player Terraria.Player
return bool?
Ejemplo n.º 1
0
        public static bool?CanUseGrapple(int type, Player player)
        {
            bool?         flag          = null;
            ModProjectile modProjectile = GetProjectile(type);

            if (modProjectile != null)
            {
                flag = modProjectile.CanUseGrapple(player);
            }
            foreach (GlobalProjectile globalProjectile in globalProjectiles)
            {
                bool?canGrapple = globalProjectile.CanUseGrapple(type, player);
                if (canGrapple.HasValue)
                {
                    flag = canGrapple;
                }
            }
            return(flag);
        }