Пример #1
0
        public void SetData(ConceptCardData currentCardData, int prevAwakeCount, int prevLevel, bool includeMaxPowerUp)
        {
            List <ConceptCardEquipEffect> cardSkills = currentCardData.GetCardSkills();
            int           count         = cardSkills.Count;
            int           lvCap         = (int)currentCardData.LvCap;
            int           awakeCountCap = currentCardData.AwakeCountCap;
            List <string> stringList    = new List <string>();

            for (int index = 0; index < count; ++index)
            {
                SkillData cardSkill = cardSkills[index].CardSkill;
                if (cardSkill != null && !stringList.Contains(cardSkill.Name))
                {
                    stringList.Add(cardSkill.Name);
                    SkillPowerUpResultContent.Param obj = new SkillPowerUpResultContent.Param(cardSkill, currentCardData, lvCap, awakeCountCap, prevLevel, prevAwakeCount, includeMaxPowerUp);
                    if (obj.IsBonusParamChanged())
                    {
                        SkillPowerUpResult.DispParam dispParam = new SkillPowerUpResult.DispParam();
                        dispParam.sourceParam = obj;
                        foreach (SkillPowerUpResultContent.DispType dispType in obj.GetAllBonusChangeType())
                        {
                            if (!dispType.isScale)
                            {
                                dispParam.dispTypeList.Add(dispType.type);
                            }
                            else
                            {
                                dispParam.dispTypeListMul.Add(dispType.type);
                            }
                        }
                        this.dispParamList.Add(dispParam);
                    }
                }
            }
        }