// Token: 0x0600489A RID: 18586 RVA: 0x001688D8 File Offset: 0x00166AD8
 protected bool IsCrystalOrActivityCardPool(CardPoolType cardPoolType)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsCrystalOrActivityCardPoolCardPoolType_hotfix != null)
     {
         return(Convert.ToBoolean(this.m_IsCrystalOrActivityCardPoolCardPoolType_hotfix.call(new object[]
         {
             this,
             cardPoolType
         })));
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     return(cardPoolType == CardPoolType.CardPoolType_CrystalCardPool || cardPoolType == CardPoolType.CardPoolType_ActivityCardPool);
 }
        // Token: 0x06004899 RID: 18585 RVA: 0x0016873C File Offset: 0x0016693C
        protected int CanSelectCard(CardPool cardPool, bool isSingleSelect, bool isUsingTickets)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanSelectCardCardPoolBooleanBoolean_hotfix != null)
            {
                return(Convert.ToInt32(this.m_CanSelectCardCardPoolBooleanBoolean_hotfix.call(new object[]
                {
                    this,
                    cardPool,
                    isSingleSelect,
                    isUsingTickets
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (!isSingleSelect && cardPool.Config.SelectType == CardSelectType.CardSelectType_SingleSelect)
            {
                return(-1504);
            }
            if (!isUsingTickets && cardPool.Config.CrystalCost == 0)
            {
                return(-1505);
            }
            CardPoolType poolType = cardPool.Config.PoolType;

            if (poolType != CardPoolType.CardPoolType_FreeCardPool)
            {
                if (poolType != CardPoolType.CardPoolType_CrystalCardPool)
                {
                    if (poolType == CardPoolType.CardPoolType_ActivityCardPool)
                    {
                        if (this.IsUsedOutActivityCardPoolSelectOpportunity(cardPool))
                        {
                            return(-1501);
                        }
                        if (!isUsingTickets)
                        {
                            return(-1516);
                        }
                    }
                }
                else if (!isUsingTickets)
                {
                    return(-1513);
                }
            }
            else if (!isUsingTickets)
            {
                return(-1506);
            }
            if (this.m_bag.IsBagFullByCurrentSize())
            {
                return(-500);
            }
            if (isUsingTickets)
            {
                int ticketNums = (!isSingleSelect) ? 10 : 1;
                return(this.CanUseTicketSelectCard(cardPool, ticketNums));
            }
            bool flag         = false;
            int  crystalCount = this.GetCrystalCount(cardPool, isSingleSelect, out flag);

            if (!this.m_basicInfo.IsCrystalEnough(crystalCount))
            {
                return(-401);
            }
            return(0);
        }
Esempio n. 3
0
 // Token: 0x06007707 RID: 30471 RVA: 0x002086DC File Offset: 0x002068DC
 public bool __callBase_IsCrystalOrActivityCardPool(CardPoolType cardPoolType)
 {
     return(this.m_owner.__callBase_IsCrystalOrActivityCardPool(cardPoolType));
 }
 // Token: 0x060048C0 RID: 18624 RVA: 0x001694FC File Offset: 0x001676FC
 public bool IsCrystalOrActivityCardPool(CardPoolType cardPoolType)
 {
     return(this.m_owner.IsCrystalOrActivityCardPool(cardPoolType));
 }
Esempio n. 5
0
 // Token: 0x060076EE RID: 30446 RVA: 0x00208368 File Offset: 0x00206568
 private bool __callBase_IsCrystalOrActivityCardPool(CardPoolType cardPoolType)
 {
     return(base.IsCrystalOrActivityCardPool(cardPoolType));
 }