| | |
| | | var rankKey = UIHelper.GetIntervalAward(fairyLeagueModel.integralRankAwardDict.Keys, _index + 1);
|
| | | if (rankKey != -1)
|
| | | {
|
| | | var _awardItem = fairyLeagueModel.integralRankAwardDict[rankKey][0];
|
| | | var _per = fairyLeagueModel.integralRankAwardPer[fairyLeagueModel.fairyLeagueGroupId - 1];
|
| | | var _count = (int)Mathf.Max(_awardItem.item.count * ((float)_per / 100), 1);
|
| | | m_AwardItem.Init(_awardItem.item.id, _count, _awardItem.isBind);
|
| | | var _item = fairyLeagueModel.integralRankAwardDict[rankKey][0];
|
| | | var _per = 100;
|
| | | if ((fairyLeagueModel.fairyLeagueGroupId - 1) >= 0
|
| | | && (fairyLeagueModel.fairyLeagueGroupId - 1) < fairyLeagueModel.integralRankAwardPer.Length)
|
| | | {
|
| | | _per = fairyLeagueModel.integralRankAwardPer[fairyLeagueModel.fairyLeagueGroupId - 1];
|
| | | }
|
| | | var _count = (int)Mathf.Max(_item.count * (_item.isPer == 1 ? ((float)_per / 100) : 1), 1);
|
| | | m_AwardItem.Init(_item.id, _count, _item.bind);
|
| | | }
|
| | | }
|
| | |
|