Exemple #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;
        }
    }
 protected void SetupSpecies(CharacterStateControl characterStatus)
 {
     if (MonsterDataMng.Instance() != null)
     {
         this.species.text = MonsterTribeData.GetTribeName(characterStatus.characterDatas.tribe);
     }
 }
 public void SetBossDetails(MonsterData monsterData, int resistanceId)
 {
     this.digimonNameLabel.text = monsterData.monsterMG.monsterName;
     this.tribeLabel.text       = MonsterTribeData.GetTribeName(monsterData.monsterMG.tribe);
     this.growStepLabel.text    = MonsterGrowStepData.GetGrowStepName(monsterData.monsterMG.growStep);
     GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM resistanceMaster = MonsterResistanceData.GetResistanceMaster(resistanceId.ToString());
     this.monsterResistanceList.SetValues(resistanceMaster);
     this.monsterInvalidResistanceList.SetInvalid(resistanceMaster);
 }
Exemple #4
0
        private void CreateMasterDataCache()
        {
            MonsterMaster.Initialize();
            MonsterSkillData.Initialize();
            ClassSingleton <EvolutionData> .Instance.Initialize();

            VersionUpMaterialData.Initialize();
            MonsterFriendshipData.Initialize();
            MonsterGrowStepData.Initialize();
            MonsterTribeData.Initialize();
        }
Exemple #5
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);
 }
Exemple #7
0
    private void SetTribeList(List <GameWebAPI.RespDataMA_WorldDungeonSortieLimit.WorldDungeonSortieLimit> limitList)
    {
        List <string> list = new List <string>();
        int           num  = 0;

        for (int i = 0; i < limitList.Count; i++)
        {
            if (num < this.tribeList.Length)
            {
                string tribeName = MonsterTribeData.GetTribeName(limitList[i].tribe);
                if (!list.Contains(tribeName))
                {
                    list.Add(tribeName);
                    this.tribeList[num].gameObject.SetActive(true);
                    this.tribeList[num].SetText(tribeName);
                    num++;
                }
            }
        }
    }
    public void SetBossDetails(int monsterId, int resistanceId)
    {
        GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(monsterId.ToString()).Simple;
        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group  = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group;
        this.digimonNameLabel.text = group.monsterName;
        this.tribeLabel.text       = MonsterTribeData.GetTribeName(group.tribe);
        this.growStepLabel.text    = MonsterGrowStepData.GetGrowStepName(group.growStep);
        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM monsterResistanceM = null;
        string b = resistanceId.ToString();

        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM[] monsterResistanceM2 = MasterDataMng.Instance().RespDataMA_MonsterResistanceM.monsterResistanceM;
        for (int i = 0; i < monsterResistanceM2.Length; i++)
        {
            if (monsterResistanceM2[i].monsterResistanceId == b)
            {
                monsterResistanceM = monsterResistanceM2[i];
                break;
            }
        }
        this.monsterResistanceList.SetValues(monsterResistanceM);
        this.monsterInvalidResistanceList.SetInvalid(monsterResistanceM);
    }
    public void SetSortLSMessage(MonsterSortType sortType)
    {
        for (int i = 0; i < this.monsterIconList.Count; i++)
        {
            this.monsterIconList[i].SetMessageLevel();
            this.monsterIconList[i].SetSortMessageColor(ConstValue.DIGIMON_GREEN);
            MonsterData data = this.monsterIconList[i].Data;
            switch (sortType)
            {
            case MonsterSortType.DATE:
            case MonsterSortType.AROUSAL:
            case MonsterSortType.LEVEL:
                this.monsterIconList[i].SortMess = string.Empty;
                break;

            case MonsterSortType.HP:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.hp);
                break;

            case MonsterSortType.ATK:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.attack);
                break;

            case MonsterSortType.DEF:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.defense);
                break;

            case MonsterSortType.S_ATK:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.spAttack);
                break;

            case MonsterSortType.S_DEF:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.spDefense);
                break;

            case MonsterSortType.SPD:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.speed);
                break;

            case MonsterSortType.LUCK:
                this.monsterIconList[i].SetMonsterSortMessage(data.userMonster.luck);
                break;

            case MonsterSortType.GROW_STEP:
                if (data.userMonster.IsEgg())
                {
                    this.monsterIconList[i].SortMess = MonsterGrowStepData.GetGrowStepName(MonsterGrowStepData.ToGrowStepString(GrowStep.EGG));
                }
                else
                {
                    this.monsterIconList[i].SortMess = MonsterGrowStepData.GetGrowStepName(data.monsterMG.growStep);
                }
                break;

            case MonsterSortType.TRIBE:
            {
                string tribeName = MonsterTribeData.GetTribeName(data.monsterMG.tribe);
                this.monsterIconList[i].SetMonsterSortMessage(tribeName);
                break;
            }
            }
        }
    }