// Token: 0x060076D6 RID: 30422 RVA: 0x00207EB0 File Offset: 0x002060B0 public void SelectCard(int cardPoolId, bool isSingleSelect, bool isUsingTicket, int guaranteedAccumulatedValue, int guaranteedSelectCardCount) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SelectCardInt32BooleanBooleanInt32Int32_hotfix != null) { this.m_SelectCardInt32BooleanBooleanInt32Int32_hotfix.call(new object[] { this, cardPoolId, isSingleSelect, isUsingTicket, guaranteedAccumulatedValue, guaranteedSelectCardCount }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; CardPool cardPool = this.m_selectCardDS.FindCardPool(cardPoolId); if (cardPool == null) { ConfigDataCardPoolInfo configDataCardPoolInfo = this.m_configDataLoader.GetConfigDataCardPoolInfo(cardPoolId); if (configDataCardPoolInfo == null) { return; } cardPool = new CardPool(cardPoolId); cardPool.Config = configDataCardPoolInfo; } if (isSingleSelect) { if (this.m_selectCardDS.IsFirstSingleSelectCard(cardPool)) { this.m_selectCardDS.FinishFirstSingleSelect(cardPool); } } else if (this.m_selectCardDS.IsFirstTenSelectCard(cardPool)) { this.m_selectCardDS.FinishFirstTenSelect(cardPool); } this.m_selectCardDS.AddSelectCount(cardPool, 1); this.m_selectCardDS.SetGuaranteedAccumulatedValue(guaranteedAccumulatedValue); this.m_selectCardDS.SetGuaranteedSelectCardCount(guaranteedSelectCardCount); base.SelectCardSpendTicketsOrCrystal(cardPool, isSingleSelect, isUsingTicket); if (cardPool.Config.PoolType == CardPoolType.CardPoolType_ActivityCardPool && base.IsActivityCardPoolOnActivityTime(cardPoolId) != 0) { return; } this.m_selectCardDS.AddCardPool(cardPool); }
// Token: 0x06004894 RID: 18580 RVA: 0x00168298 File Offset: 0x00166498 public CardPool GetCardPoolById(int cardPoolId, bool ignoreActivityCheck = true) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetCardPoolByIdInt32Boolean_hotfix != null) { return((CardPool)this.m_GetCardPoolByIdInt32Boolean_hotfix.call(new object[] { this, cardPoolId, ignoreActivityCheck })); } BJLuaObjHelper.IsSkipLuaHotfix = false; CardPool cardPool = this.m_selectCardDS.FindCardPool(cardPoolId); if (cardPool == null) { ConfigDataCardPoolInfo configDataCardPoolInfo = this.m_configDataLoader.GetConfigDataCardPoolInfo(cardPoolId); if (configDataCardPoolInfo == null) { return(null); } if (configDataCardPoolInfo.PoolType == CardPoolType.CardPoolType_ActivityCardPool) { OperationalActivityBase operationalActivityBase = this.m_operationalActivity.FindOperationalActivityByActivityCardPoolId(cardPoolId); if (operationalActivityBase == null) { return(null); } cardPool = new CardPool(cardPoolId); cardPool.ActivityInstanceId = operationalActivityBase.InstanceId; } else { cardPool = new CardPool(cardPoolId); } cardPool.Config = configDataCardPoolInfo; } else if (cardPool.Config.PoolType == CardPoolType.CardPoolType_ActivityCardPool && this.m_operationalActivity.FindOperationalActivityByActivityCardPoolId(cardPoolId) == null) { return(null); } return(cardPool); }
// Token: 0x060076D8 RID: 30424 RVA: 0x002080E8 File Offset: 0x002062E8 public int CanSelectCard(int cardPoolId, bool isSingleSelect, bool isUsingTickets) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CanSelectCardInt32BooleanBoolean_hotfix != null) { return(Convert.ToInt32(this.m_CanSelectCardInt32BooleanBoolean_hotfix.call(new object[] { this, cardPoolId, isSingleSelect, isUsingTickets }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; CardPool cardPool = this.m_selectCardDS.FindCardPool(cardPoolId); if (cardPool == null) { ConfigDataCardPoolInfo configDataCardPoolInfo = this.m_configDataLoader.GetConfigDataCardPoolInfo(cardPoolId); if (configDataCardPoolInfo == null) { return(-1503); } if (configDataCardPoolInfo.PoolType == CardPoolType.CardPoolType_ActivityCardPool) { OperationalActivityBase operationalActivityBase = this.m_operationalActivity.FindOperationalActivityByActivityCardPoolId(cardPoolId); if (operationalActivityBase == null) { return(-1500); } cardPool = new CardPool(cardPoolId); cardPool.ActivityInstanceId = operationalActivityBase.InstanceId; } else { cardPool = new CardPool(cardPoolId); } cardPool.Config = configDataCardPoolInfo; } return(base.CanSelectCard(cardPool, isSingleSelect, isUsingTickets)); }