Ejemplo n.º 1
0
    private void ShowNextMonsterData()
    {
        this.ngTX_MONS_NEXT_NAME.text  = this.data.md_next.monsterMG.monsterName;
        this.ngTX_MONS_NEXT_SKILL.text = MonsterTribeData.GetTribeName(this.data.md_next.monsterMG.tribe);
        this.specificTypeName.text     = MonsterSpecificTypeData.GetSpecificTypeName(this.data.md_next.monsterMG.monsterStatusId);
        int num = 0;

        if (this.evolutionType == "1" || this.evolutionType == "3" || this.evolutionType == "4")
        {
            string monsterId = this.data.md_next.monsterM.monsterId;
            num = EvolutionData.CalcClusterForEvolve(monsterId);
        }
        else if (this.evolutionType == "5")
        {
            string monsterId2 = this.data.md.monsterM.monsterId;
            num = EvolutionData.CalcClusterForVersionUp(monsterId2);
        }
        else if (this.evolutionType == "2")
        {
            string monsterId3 = this.data.md_next.monsterM.monsterId;
            num = EvolutionData.CalcClusterForModeChange(monsterId3);
        }
        this.ngTX_NEED_CHIP.text = StringFormat.Cluster(num);
        int num2 = int.Parse(DataMng.Instance().RespDataUS_PlayerInfo.playerInfo.gamemoney);

        if (num2 < num)
        {
            this.ngTX_NEED_CHIP.color = Color.red;
        }
    }
Ejemplo n.º 2
0
 public void SetMonsterData(PicturebookDetailedInfo viewInfo)
 {
     this.monsterName.text  = viewInfo.monster.monsterMaster.Group.monsterName;
     this.specificType.text = MonsterSpecificTypeData.GetSpecificTypeName(viewInfo.monster.monsterMaster.Group.monsterStatusId);
     this.growStep.text     = MonsterGrowStepData.GetGrowStepName(viewInfo.monster.monsterMaster.Group.growStep);
     this.tribe.text        = MonsterTribeData.GetTribeName(viewInfo.monster.monsterMaster.Group.tribe);
     this.description.text  = viewInfo.monster.monsterMaster.Group.description;
     for (int i = 0; i < viewInfo.uniqueSkillCount; i++)
     {
         this.skillNameList[i].text        = viewInfo.skillGroupSubIdList[i].Simple.name;
         this.skillDescriptionList[i].text = viewInfo.skillGroupSubIdList[i].Simple.description;
     }
 }
 public void SetMonsterData(MonsterData monsterData)
 {
     if (null != this.monsterName)
     {
         this.monsterName.text = monsterData.monsterMG.monsterName;
     }
     this.growName.text  = MonsterGrowStepData.GetGrowStepName(monsterData.monsterMG.growStep);
     this.tribeName.text = MonsterTribeData.GetTribeName(monsterData.monsterMG.tribe);
     if (this.arousalUI.exist)
     {
         this.SetArousal(monsterData.monsterM.rare.ToInt32());
     }
     this.SetLevel(monsterData);
     this.specificTypeName.text = MonsterSpecificTypeData.GetSpecificTypeName(monsterData.monsterMG.monsterStatusId);
 }
Ejemplo n.º 4
0
        protected override void OnUpdatedParts(int listPartsIndex)
        {
            List <EvolutionDiagramData.IconMonster> routeMapData = this.listRoot.GetRouteMapData();

            if (routeMapData != null && listPartsIndex < routeMapData.Count && routeMapData[listPartsIndex] != null)
            {
                EvolutionDiagramData.IconMonster iconMonster = routeMapData[listPartsIndex];
                this.monsterIcon.SetMonsterImage(iconMonster.master);
                if (!MonsterPicturebookData.ExistPicturebook(iconMonster.master.Group.monsterCollectionId))
                {
                    this.monsterIcon.Message.SetSortText(StringMaster.GetString("EvolutionUnkown"));
                }
                else
                {
                    this.monsterIcon.Message.ClearSortText();
                }
                this.growStep.text     = MonsterGrowStepData.GetGrowStepName(iconMonster.master.Group.growStep);
                this.monsterName.text  = iconMonster.master.Group.monsterName;
                this.specificName.text = MonsterSpecificTypeData.GetSpecificTypeName(iconMonster.master.Group.monsterStatusId);
            }
        }
Ejemplo n.º 5
0
    public void ApplyMonsterDescription(bool isShow, CharacterStateControl characterStatus)
    {
        NGUITools.SetActiveSelf(base.gameObject, isShow);
        if (!isShow)
        {
            return;
        }
        this.monsterName.text = characterStatus.name;
        this.level.text       = characterStatus.level.ToString();
        base.SetupEvolutionStep(characterStatus);
        base.SetupSpecies(characterStatus);
        int num = 0;

        num           += this.ApplyValue(characterStatus.maxHp, characterStatus.extraMaxHp, this.hp, this.hpUpObject, this.hpDownObject);
        num           += this.ApplyValue(characterStatus.attackPower, characterStatus.extraAttackPower, this.atk, this.atkUpObject, this.atkDownObject);
        num           += this.ApplyValue(characterStatus.defencePower, characterStatus.extraDefencePower, this.def, this.defUpObject, this.defDownObject);
        num           += this.ApplyValue(characterStatus.specialAttackPower, characterStatus.extraSpecialAttackPower, this.satk, this.satkUpObject, this.satkDownObject);
        num           += this.ApplyValue(characterStatus.specialDefencePower, characterStatus.extraSpecialDefencePower, this.sdef, this.sdefUpObject, this.sdefDownObject);
        num           += this.ApplyValue(characterStatus.speed, characterStatus.extraSpeed, this.speed, this.speedUpObject, this.speedDownObject);
        this.luck.text = characterStatus.luck.ToString();
        if (MonsterDataMng.Instance() != null)
        {
            this.friendshipLevel.text = MonsterFriendshipData.GetMaxFriendshipFormat(characterStatus.friendshipLevel.ToString(), MonsterGrowStepData.ToGrowStepString(characterStatus.characterDatas.growStep));
        }
        if (characterStatus.isHavingLeaderSkill)
        {
            this.leaderSkillName.text        = characterStatus.leaderSkillStatus.name;
            this.leaderSkillDescription.text = characterStatus.leaderSkillStatus.description;
        }
        else
        {
            this.leaderSkillName.text        = StringMaster.GetString("SystemNone");
            this.leaderSkillDescription.text = string.Empty;
        }
        characterStatus.InitializeSkillExtraStatus();
        if (characterStatus.skillStatus.Length > 1)
        {
            this.deathblow.name.text        = characterStatus.skillStatus[1].name;
            this.deathblow.description.text = characterStatus.skillStatus[1].description;
            int powerFirst = characterStatus.skillStatus[1].GetPowerFirst(characterStatus);
            int extraValue = powerFirst;
            AffectEffectProperty affectEffectFirst = characterStatus.skillStatus[1].GetAffectEffectFirst();
            if (affectEffectFirst != null && AffectEffectProperty.IsDamage(affectEffectFirst.type))
            {
                extraValue = characterStatus.extraDeathblowSkillPower;
            }
            num += this.ApplyValue(powerFirst, extraValue, null, this.deathblow.upObject, this.deathblow.downObject);
        }
        else
        {
            this.deathblow.name.text        = StringMaster.GetString("SystemNone");
            this.deathblow.description.text = "-";
            this.ApplyValue(0, 0, null, this.deathblow.upObject, this.deathblow.downObject);
        }
        if (characterStatus.skillStatus.Length > 2)
        {
            this.inheritance1.name.text        = characterStatus.skillStatus[2].name;
            this.inheritance1.description.text = characterStatus.skillStatus[2].description;
            int powerFirst2 = characterStatus.skillStatus[2].GetPowerFirst(characterStatus);
            int extraValue2 = powerFirst2;
            AffectEffectProperty affectEffectFirst2 = characterStatus.skillStatus[2].GetAffectEffectFirst();
            if (affectEffectFirst2 != null && AffectEffectProperty.IsDamage(affectEffectFirst2.type))
            {
                extraValue2 = characterStatus.extraInheritanceSkillPower;
            }
            num += this.ApplyValue(powerFirst2, extraValue2, null, this.inheritance1.upObject, this.inheritance1.downObject);
        }
        else
        {
            this.inheritance1.name.text        = StringMaster.GetString("SystemNone");
            this.inheritance1.description.text = "-";
            this.ApplyValue(0, 0, null, this.inheritance1.upObject, this.inheritance1.downObject);
        }
        if (characterStatus.isVersionUp)
        {
            this.inheritance2.root.SetActive(true);
        }
        else
        {
            this.inheritance2.root.SetActive(false);
        }
        if (characterStatus.skillStatus.Length > 3)
        {
            this.inheritance2.name.text        = characterStatus.skillStatus[3].name;
            this.inheritance2.description.text = characterStatus.skillStatus[3].description;
            int powerFirst3 = characterStatus.skillStatus[3].GetPowerFirst(characterStatus);
            int extraValue3 = powerFirst3;
            AffectEffectProperty affectEffectFirst3 = characterStatus.skillStatus[3].GetAffectEffectFirst();
            if (affectEffectFirst3 != null && AffectEffectProperty.IsDamage(affectEffectFirst3.type))
            {
                extraValue3 = characterStatus.extraInheritanceSkillPower2;
            }
            num += this.ApplyValue(powerFirst3, extraValue3, null, this.inheritance2.upObject, this.inheritance2.downObject);
        }
        else
        {
            this.inheritance2.name.text        = StringMaster.GetString("SystemNone");
            this.inheritance2.description.text = "-";
            this.ApplyValue(0, 0, null, this.inheritance2.upObject, this.inheritance2.downObject);
        }
        this.stageGimmickObject.SetActive(num > 0 || characterStatus.isChipServerAddValue || characterStatus.isEffectiveBonus());
        this.SetArousal(characterStatus.arousal);
        base.SetupTolerance(characterStatus);
        this.MonsterMedalList.SetValues(characterStatus.talent);
        for (int i = 0; i < this.chipIcons.Length; i++)
        {
            if (i < characterStatus.chipIds.Length)
            {
                GameWebAPI.RespDataMA_ChipM.Chip chipMainData = ChipDataMng.GetChipMainData(characterStatus.chipIds[i].ToString());
                this.chipIcons[i].SetData(chipMainData, -1, -1);
                this.chipIcons[i].SetActive(true);
                this.chipIcons[i].transform.localScale = new Vector3(0.6f, 0.6f, 1f);
            }
            else
            {
                this.chipIcons[i].SetActive(false);
            }
        }
        if (MonsterDataMng.Instance() != null)
        {
            string monsterStatusId  = characterStatus.characterDatas.monsterStatusId;
            string specificTypeName = MonsterSpecificTypeData.GetSpecificTypeName(monsterStatusId);
            this.specificType.text = specificTypeName;
        }
        else
        {
            this.specificType.text = "-";
        }
    }