コード例 #1
0
ファイル: ItemUtility.cs プロジェクト: Clawed/ProjectHub
        public static bool CanGiftItem(CatalogItem Item)
        {
            if (!Item.Data.AllowGift || Item.IsLimited || Item.Amount > 1 || Item.Data.ItemName.ToLower().StartsWith("cf_") || Item.Data.ItemName.ToLower().StartsWith("cfc_") || Item.Data.InteractionType == InteractionType.BADGE || (Item.Data.Type != 's' && Item.Data.Type != 'i') || Item.CostDiamonds > 0 || Item.Data.InteractionType == InteractionType.TELEPORT || Item.Data.InteractionType == InteractionType.DEAL)
            {
                return(false);
            }

            if (Item.Data.IsRare)
            {
                return(false);
            }

            if (PetUtility.IsPet(Item.Data.InteractionType))
            {
                return(false);
            }

            return(true);
        }