Exemple #1
0
    public static int GetExtraEffectCorrectionValue(int areaId, List <ExtraEffectStatus> extraEffectStatusList, int baseValue, MonsterData[] chipPlayers, MonsterData[] chipEnemys, MonsterData chipTarget, AffectEffectProperty affectEffectProperty, EffectStatusBase.ExtraEffectType effectType)
    {
        List <ExtraEffectStatus> list = ChipEffectStatus.CheckStageEffectInvalid(areaId, extraEffectStatusList, chipPlayers, chipEnemys, chipTarget);

        if (list.Count == 0)
        {
            return(baseValue);
        }
        bool flag = chipEnemys.Where((MonsterData item) => item.userMonster.userMonsterId == chipTarget.userMonster.userMonsterId).Any <MonsterData>();

        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM         group = MonsterMaster.GetMonsterMasterByMonsterGroupId(chipTarget.monsterM.monsterGroupId).Group;
        GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster responseMonsterIntegrationGroupMaster = MasterDataMng.Instance().ResponseMonsterIntegrationGroupMaster;
        GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup[] source      = responseMonsterIntegrationGroupMaster.monsterIntegrationGroupM.Where((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterId == chipTarget.monsterM.monsterId).ToArray <GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup>();
        string[] monsterIntegrationIds = source.Select((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterIntegrationId).ToArray <string>();
        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM        resistanceMaster     = MonsterResistanceData.GetResistanceMaster(chipTarget.monsterM.resistanceId);
        List <GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM> uniqueResistanceList = MonsterResistanceData.GetUniqueResistanceList(chipTarget.GetResistanceIdList());

        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM data = MonsterResistanceData.AddResistanceFromMultipleTranceData(resistanceMaster, uniqueResistanceList);
        Tolerance tolerance = ServerToBattleUtility.ResistanceToTolerance(data);
        GrowStep  growStep  = MonsterGrowStepData.ToGrowStep(group.growStep);
        List <ExtraEffectStatus> totalExtraEffectStatusList = ExtraEffectStatus.GetTotalExtraEffectStatusList(list, monsterIntegrationIds, chipTarget.monsterM.monsterGroupId, tolerance, group.tribe, growStep, affectEffectProperty, null, (!flag) ? ExtraEffectStatus.ExtraTargetType.Player : ExtraEffectStatus.ExtraTargetType.Enemy, effectType);

        if (totalExtraEffectStatusList.Count > 0)
        {
            return((int)ExtraEffectStatus.GetCorrectionValue((float)baseValue, totalExtraEffectStatusList));
        }
        return(baseValue);
    }
        public void SetViewNextEvolutionMonster(string monsterId, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
        {
            GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(monsterId).Simple;
            GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group  = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group;
            DataMng.ExperienceInfo experienceInfo = DataMng.Instance().GetExperienceInfo(0);
            MonsterData            monsterData    = new MonsterData(new GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList(userMonster)
            {
                monsterId   = monsterId,
                level       = "1",
                ex          = "0",
                levelEx     = "0",
                nextLevelEx = experienceInfo.expLevNext.ToString()
            });

            if (!string.IsNullOrEmpty(group.leaderSkillId) && "0" != group.leaderSkillId)
            {
                monsterData.userMonster.leaderSkillId = group.leaderSkillId;
                monsterData.InitSkillInfo();
            }
            StatusValue statusValue = MonsterStatusData.GetStatusValue(monsterId, "1");

            statusValue.luck = int.Parse(userMonster.luck);
            monsterData.SetStatus(statusValue);
            CMD_CharacterDetailed.DataChg = monsterData;
            GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM resistanceMaster = MonsterResistanceData.GetResistanceMaster(monsterData.monsterM.resistanceId);
            bool active = this.AnyMatchStrongResistance(resistanceMaster, userMonster.tranceResistance, userMonster.tranceStatusAilment);

            this.nextMonsterResistanceAlert.gameObject.SetActive(active);
        }
        private bool LoadDigimonNotCharaParams(string monsterGroupId, AdventureDigimonInfo digimonInfo)
        {
            bool result = true;

            try
            {
                MonsterClientMaster monsterMasterByMonsterGroupId = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterGroupId);
                string     modelId    = monsterMasterByMonsterGroupId.Group.modelId;
                string     filePath   = MonsterObject.GetFilePath(modelId);
                GameObject original   = AssetDataMng.Instance().LoadObject(filePath, null, true) as GameObject;
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original);
                gameObject.name             = "Digimon_" + monsterGroupId;
                gameObject.transform.parent = ClassSingleton <AdventureSceneData> .Instance.scriptObjectRoot.transform;
                gameObject.SetActive(false);
                digimonInfo.model = gameObject;
                CharacterParams component = gameObject.GetComponent <CharacterParams>();
                UnityEngine.Object.Destroy(component);
                CapsuleCollider component2 = gameObject.GetComponent <CapsuleCollider>();
                UnityEngine.Object.Destroy(component2);
                Transform transform = gameObject.transform;
                for (int i = 0; i < transform.childCount; i++)
                {
                    Animation component3 = transform.GetChild(i).GetComponent <Animation>();
                    UnityEngine.Object.Destroy(component3);
                }
            }
            catch
            {
                result = false;
            }
            return(result);
        }
        public void SetEggStatus(MonsterData monsterData)
        {
            this.chipBaseSelect.SetSelectedCharChg(monsterData);
            string eggName = StringMaster.GetString("CharaStatus-06");
            int    num     = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM.Length;

            for (int i = 0; i < num; i++)
            {
                GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM = MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM[i];
                if (monsterEvolutionRouteM.monsterEvolutionRouteId == monsterData.userMonster.monsterEvolutionRouteId)
                {
                    GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterEvolutionRouteM.eggMonsterId).Group;
                    if (group != null)
                    {
                        eggName = group.monsterName;
                    }
                }
            }
            if (!MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare))
            {
                this.skillInfo.ClearSkill();
            }
            else
            {
                this.extraSkillInfo.ClearSkill();
            }
            this.basicInfo.SetEggData(eggName, monsterData.monsterM.rare);
            this.statusList.ClearEggCandidateMedalValues();
            this.changeValueList.SetEggStatusValues();
            this.resistanceList.ClearValues();
            this.medalList.SetValues(monsterData.userMonster);
        }
    private string GetPresentName(GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM masterAssetCategory, string objectId)
    {
        string result = StringMaster.GetString("Present-10");

        if (masterAssetCategory != null)
        {
            result = masterAssetCategory.assetTitle;
        }
        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory)masterAssetCategory.assetCategoryId.ToInt32();
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.FACILITY_KEY:
        {
            FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(objectId);
            if (facilityKeyMaster != null)
            {
                result = facilityKeyMaster.facilityKeyName;
            }
            break;
        }

        default:
            if (assetCategory != MasterDataMng.AssetCategory.MONSTER)
            {
                if (assetCategory == MasterDataMng.AssetCategory.ITEM)
                {
                    GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(objectId);
                    if (itemM != null)
                    {
                        result = itemM.name;
                    }
                }
            }
            else
            {
                GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(objectId).Simple;
                if (simple != null)
                {
                    GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group;
                    if (group != null)
                    {
                        result = group.monsterName;
                    }
                }
            }
            break;

        case MasterDataMng.AssetCategory.DUNGEON_TICKET:
        {
            GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => objectId == x.dungeonTicketId);
            if (dungeonTicketM != null)
            {
                result = dungeonTicketM.name;
            }
            break;
        }
        }
        return(result);
    }
Exemple #6
0
    private void SetDetails()
    {
        string groupId = this.monsterInfos[this.selectedIndex].groupId;

        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(groupId).Group;
        this.nameLabel.text   = group.monsterName;
        this.detailLabel.text = group.description;
        this.line.SetActive(true);
        this.GetLeftDigimonTransform().localPosition             = this.circleTrans.localPosition - Vector3.right * 5f;
        this.monsterTransforms[this.selectedIndex].localPosition = this.circleTrans.localPosition;
        this.GetRightDigimonTransform().localPosition            = this.circleTrans.localPosition + Vector3.right * 5f;
    }
        private bool LoadDigimon(string monsterGroupId, AdventureDigimonInfo digimonInfo)
        {
            bool result = true;

            try
            {
                MonsterClientMaster monsterMasterByMonsterGroupId = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterGroupId);
                string     modelId    = monsterMasterByMonsterGroupId.Group.modelId;
                string     path       = MonsterObject.GetFilePath(modelId);
                GameObject original   = AssetDataMng.Instance().LoadObject(path, null, true) as GameObject;
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(original);
                gameObject.name             = "Digimon_" + monsterGroupId;
                gameObject.transform.parent = ClassSingleton <AdventureSceneData> .Instance.scriptObjectRoot.transform;
                gameObject.SetActive(false);
                digimonInfo.model = gameObject;
                List <GameWebAPI.RespDataMA_GetSkillM.SkillM> list;
                if (!this.LoadUniqueSkill(monsterGroupId, out list))
                {
                    throw new Exception("Error : 固有スキルの読み込みに失敗");
                }
                for (int i = 0; i < list.Count; i++)
                {
                    int num  = list[i].skillGroupSubId.ToInt32();
                    int num2 = num - 1;
                    path                        = CommonResourcesDataMng.Instance().GetUniqueSkillPrefabPathByAttackEffectId(list[i].attackEffect);
                    original                    = (AssetDataMng.Instance().LoadObject(path, null, true) as GameObject);
                    gameObject                  = UnityEngine.Object.Instantiate <GameObject>(original);
                    gameObject.name             = "SkillEffect_" + list[i].attackEffect;
                    gameObject.transform.parent = ClassSingleton <AdventureSceneData> .Instance.scriptObjectRoot.transform;
                    gameObject.SetActive(false);
                    digimonInfo.skillEffectList[num2] = gameObject;
                    InvocationEffectParams component = gameObject.GetComponent <InvocationEffectParams>();
                    path                        = CommonResourcesDataMng.Instance().GetCameraMotionPrefabPathByCameraId(component.cameraMotionId);
                    original                    = (AssetDataMng.Instance().LoadObject(path, null, true) as GameObject);
                    gameObject                  = UnityEngine.Object.Instantiate <GameObject>(original);
                    gameObject.name             = "CameraAnime_" + component.cameraMotionId;
                    gameObject.transform.parent = ClassSingleton <AdventureSceneData> .Instance.scriptObjectRoot.transform;
                    gameObject.SetActive(false);
                    digimonInfo.skillCameraAnimation[num2] = gameObject;
                    digimonInfo.skillEffectSeList[num2]    = list[i].soundEffect;
                }
            }
            catch
            {
                result = false;
                digimonInfo.Delete();
            }
            return(result);
        }
    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);
    }
Exemple #9
0
    public void SetBossInfo(GameWebAPI.RespDataWD_GetDungeonInfo.EncountEnemy enemy)
    {
        this.bossInfo = enemy;
        string text = enemy.monsterId.ToString();

        GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(text).Simple;
        if (simple != null)
        {
            text = simple.monsterGroupId;
            GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(text).Group;
            if (group != null)
            {
                this.monsterIcon.gameObject.SetActive(true);
                this.monsterIcon.SetImage(simple.iconId, group.growStep);
                UIWidget component = this.monsterIcon.GetComponent <UIWidget>();
                if (null != component)
                {
                    this.monsterIcon.SetSize(component.width, component.height);
                }
            }
        }
    }
 private void ShowDetail()
 {
     if (!this.data.userMonster.IsEgg())
     {
         this.ngTX_NAME.text  = this.data.monsterMG.monsterName;
         this.ngTX_GRADE.text = MonsterGrowStepData.GetGrowStepName(this.data.monsterMG.growStep);
         if (CMD_DigiGarden.instance != null && CMD_DigiGarden.instance.IsOfflineModeFlag)
         {
             this.ngTX_EXP.text = StringMaster.GetString("Garden-13");
         }
     }
     else
     {
         string text = StringMaster.GetString("CharaStatus-06");
         foreach (GameWebAPI.RespDataMA_GetMonsterEvolutionRouteM.MonsterEvolutionRouteM monsterEvolutionRouteM2 in MasterDataMng.Instance().RespDataMA_MonsterEvolutionRouteM.monsterEvolutionRouteM)
         {
             if (monsterEvolutionRouteM2.monsterEvolutionRouteId == this.data.userMonster.monsterEvolutionRouteId)
             {
                 MonsterClientMaster monsterMasterByMonsterGroupId = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterEvolutionRouteM2.eggMonsterId);
                 text = monsterMasterByMonsterGroupId.Group.monsterName;
             }
         }
         this.ngTX_NAME.text  = text;
         this.ngTX_GRADE.text = StringMaster.GetString("CharaStatus-04");
         this.ngTX_EXP.text   = StringMaster.GetString("Garden-08");
         this.canEvolveParticle.SetActive(true);
     }
     if (this.data.userMonster.IsEgg())
     {
         this.ngTX_BTN.text = StringMaster.GetString("Garden-12");
     }
     else
     {
         this.ngTX_BTN.text = StringMaster.GetString("EvolutionTitle");
     }
 }
Exemple #11
0
        private static string GetAssetValueName(int assetCategoryId, string assetValue)
        {
            string result = string.Empty;

            switch (assetCategoryId)
            {
            case 14:
            {
                GameWebAPI.RespDataMA_GetSoulM.SoulM soulMasterBySoulId = VersionUpMaterialData.GetSoulMasterBySoulId(assetValue);
                if (soulMasterBySoulId != null)
                {
                    result = soulMasterBySoulId.soulName;
                }
                break;
            }

            default:
                if (assetCategoryId != 1)
                {
                    if (assetCategoryId == 6)
                    {
                        GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(assetValue);
                        if (itemM != null)
                        {
                            result = itemM.name;
                        }
                    }
                }
                else
                {
                    GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(assetValue).Simple;
                    if (simple != null)
                    {
                        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group;
                        if (group != null)
                        {
                            result = group.monsterName;
                        }
                    }
                }
                break;

            case 16:
            {
                FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(assetValue);
                if (facilityKeyMaster != null)
                {
                    result = facilityKeyMaster.facilityKeyName;
                }
                break;
            }

            case 17:
            {
                int chipId = int.Parse(assetValue);
                GameWebAPI.RespDataMA_ChipM.Chip chipMaster = ChipDataMng.GetChipMaster(chipId);
                if (chipMaster != null)
                {
                    result = chipMaster.name;
                }
                break;
            }

            case 18:
            {
                GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => assetValue == x.dungeonTicketId);
                if (dungeonTicketM != null)
                {
                    result = dungeonTicketM.name;
                }
                break;
            }

            case 19:
            {
                GameWebAPI.RespDataMA_TitleMaster.TitleM titleM = TitleDataMng.GetDictionaryTitleM()[int.Parse(assetValue)];
                if (titleM != null)
                {
                    result = titleM.name;
                }
                break;
            }
            }
            return(result);
        }
    private static int GetExtraChipValue(MonsterData monsterData, EffectStatusBase.ExtraEffectType effectType)
    {
        float num    = 0f;
        int   areaId = ExtraEffectUtil.GetAreaId();

        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(monsterData.monsterM.monsterGroupId).Group;
        foreach (int num2 in monsterData.GetChipEquip().GetChipIdList())
        {
            GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] chipEffectData = ChipDataMng.GetChipEffectData(num2.ToString());
            if (chipEffectData != null)
            {
                GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] invocationList = ChipEffectStatus.GetInvocationList(chipEffectData, EffectStatusBase.EffectTriggerType.Area, monsterData.monsterM.monsterGroupId.ToInt32(), null, areaId);
                int num3 = 0;
                EffectStatusBase.ExtraEffectType effectType2 = EffectStatusBase.ExtraEffectType.Non;
                switch (effectType)
                {
                case EffectStatusBase.ExtraEffectType.Atk:
                    num3        = monsterData.userMonster.attack.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Atk;
                    break;

                case EffectStatusBase.ExtraEffectType.Def:
                    num3        = monsterData.userMonster.defense.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Def;
                    break;

                case EffectStatusBase.ExtraEffectType.Hp:
                    num3        = monsterData.userMonster.hp.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Hp;
                    break;

                case EffectStatusBase.ExtraEffectType.Speed:
                    num3        = monsterData.userMonster.speed.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Speed;
                    break;

                case EffectStatusBase.ExtraEffectType.Satk:
                    num3        = monsterData.userMonster.spAttack.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Satk;
                    break;

                case EffectStatusBase.ExtraEffectType.Sdef:
                    num3        = monsterData.userMonster.spDefense.ToInt32();
                    effectType2 = EffectStatusBase.ExtraEffectType.Sdef;
                    break;

                default:
                    if (effectType == EffectStatusBase.ExtraEffectType.SkillPower || effectType == EffectStatusBase.ExtraEffectType.SkillHit)
                    {
                        num3        = 0;
                        effectType2 = EffectStatusBase.ExtraEffectType.Non;
                    }
                    break;
                }
                GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster responseMonsterIntegrationGroupMaster = MasterDataMng.Instance().ResponseMonsterIntegrationGroupMaster;
                GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup[] source      = responseMonsterIntegrationGroupMaster.monsterIntegrationGroupM.Where((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterId == monsterData.monsterM.monsterId).ToArray <GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup>();
                string[] monsterIntegrationIds = source.Select((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterIntegrationId).ToArray <string>();
                num += ChipEffectStatus.GetChipEffectValueToFloat(invocationList, (float)num3, false, monsterIntegrationIds, monsterData.monsterM.monsterGroupId, ExtraEffectUtil.ResistanceToTolerance(monsterData), group.tribe, MonsterGrowStepData.ToGrowStep(group.growStep), null, null, ChipEffectStatus.TargetType.Actor, effectType2, 0);
            }
        }
        return(Mathf.FloorToInt(num));
    }
Exemple #13
0
    public string GetPresentName(GameWebAPI.RespDataMA_GetAssetCategoryM.AssetCategoryM masterAssetCategory, string objectId, bool showDetail = false)
    {
        string result = StringMaster.GetString("Present-10");

        if (masterAssetCategory != null)
        {
            result = masterAssetCategory.assetTitle;
        }
        MasterDataMng.AssetCategory assetCategory = (MasterDataMng.AssetCategory)masterAssetCategory.assetCategoryId.ToInt32();
        switch (assetCategory)
        {
        case MasterDataMng.AssetCategory.FACILITY_KEY:
        {
            FacilityKeyM facilityKeyMaster = FarmDataManager.GetFacilityKeyMaster(objectId);
            if (facilityKeyMaster != null)
            {
                result = facilityKeyMaster.facilityKeyName;
            }
            break;
        }

        default:
            if (assetCategory != MasterDataMng.AssetCategory.MONSTER)
            {
                if (assetCategory == MasterDataMng.AssetCategory.ITEM)
                {
                    GameWebAPI.RespDataMA_GetItemM.ItemM itemM = MasterDataMng.Instance().RespDataMA_ItemM.GetItemM(objectId);
                    if (itemM != null)
                    {
                        result = itemM.name;
                    }
                }
            }
            else
            {
                GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(objectId).Simple;
                if (simple != null)
                {
                    GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterGroupId(simple.monsterGroupId).Group;
                    if (group != null)
                    {
                        result = group.monsterName;
                    }
                }
            }
            break;

        case MasterDataMng.AssetCategory.DUNGEON_TICKET:
        {
            GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM dungeonTicketM = MasterDataMng.Instance().RespDataMA_DungeonTicketMaster.dungeonTicketM.FirstOrDefault((GameWebAPI.RespDataMA_DungeonTicketMaster.DungeonTicketM x) => objectId == x.dungeonTicketId);
            if (dungeonTicketM != null)
            {
                result = dungeonTicketM.name;
            }
            break;
        }

        case MasterDataMng.AssetCategory.TITLE:
        {
            GameWebAPI.RespDataMA_TitleMaster.TitleM titleM = TitleDataMng.GetDictionaryTitleM()[int.Parse(objectId)];
            if (titleM != null)
            {
                result = titleM.name;
            }
            break;
        }
        }
        if (showDetail)
        {
            MasterDataMng.AssetCategory assetCategory2 = (MasterDataMng.AssetCategory)masterAssetCategory.assetCategoryId.ToInt32();
            if (assetCategory2 != MasterDataMng.AssetCategory.CHIP)
            {
                if (assetCategory2 == MasterDataMng.AssetCategory.SOUL)
                {
                    GameWebAPI.RespDataMA_GetSoulM.SoulM soulMasterBySoulId = VersionUpMaterialData.GetSoulMasterBySoulId(objectId);
                    result = soulMasterBySoulId.soulName;
                }
            }
            else
            {
                int chipId = int.Parse(objectId);
                GameWebAPI.RespDataMA_ChipM.Chip chipMaster = ChipDataMng.GetChipMaster(chipId);
                result = chipMaster.name;
            }
        }
        return(result);
    }
    public static List <ExtraEffectStatus> CheckStageEffectInvalid(int areaId, List <ExtraEffectStatus> extraEffectStatusList, MonsterData[] chipPlayers, MonsterData[] chipEnemys, MonsterData chipTarget)
    {
        List <ExtraEffectStatus> list = new List <ExtraEffectStatus>();
        bool flag = chipEnemys.Where((MonsterData item) => item.userMonster.userMonsterId == chipTarget.userMonster.userMonsterId).Any <MonsterData>();

        GameWebAPI.RespDataMA_GetMonsterMG.MonsterM         group = MonsterMaster.GetMonsterMasterByMonsterGroupId(chipTarget.monsterM.monsterGroupId).Group;
        GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster responseMonsterIntegrationGroupMaster = MasterDataMng.Instance().ResponseMonsterIntegrationGroupMaster;
        GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup[] source      = responseMonsterIntegrationGroupMaster.monsterIntegrationGroupM.Where((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterId == chipTarget.monsterM.monsterId).ToArray <GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup>();
        string[] monsterIntegrationIds = source.Select((GameWebAPI.RespDataMA_MonsterIntegrationGroupMaster.MonsterIntegrationGroup item) => item.monsterIntegrationId).ToArray <string>();
        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM        resistanceMaster     = MonsterResistanceData.GetResistanceMaster(chipTarget.monsterM.resistanceId);
        List <GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM> uniqueResistanceList = MonsterResistanceData.GetUniqueResistanceList(chipTarget.GetResistanceIdList());

        GameWebAPI.RespDataMA_GetMonsterResistanceM.MonsterResistanceM data = MonsterResistanceData.AddResistanceFromMultipleTranceData(resistanceMaster, uniqueResistanceList);
        Tolerance tolerance = ServerToBattleUtility.ResistanceToTolerance(data);
        GrowStep  growStep  = MonsterGrowStepData.ToGrowStep(group.growStep);

        foreach (ExtraEffectStatus extraEffectStatus in extraEffectStatusList)
        {
            bool flag2 = true;
            for (int i = 0; i < chipPlayers.Length; i++)
            {
                MonsterData chipActer = chipPlayers[i];
                if (chipActer != null)
                {
                    ChipEffectStatus.TargetType targetType;
                    if (chipActer.userMonster.userMonsterId == chipTarget.userMonster.userMonsterId)
                    {
                        targetType = ChipEffectStatus.TargetType.Actor;
                    }
                    else if (!chipEnemys.Where((MonsterData item) => item.userMonster.userMonsterId == chipActer.userMonster.userMonsterId).Any <MonsterData>())
                    {
                        if (!flag)
                        {
                            targetType = ChipEffectStatus.TargetType.Player;
                        }
                        else
                        {
                            targetType = ChipEffectStatus.TargetType.Enemy;
                        }
                    }
                    else if (flag)
                    {
                        targetType = ChipEffectStatus.TargetType.Player;
                    }
                    else
                    {
                        targetType = ChipEffectStatus.TargetType.Enemy;
                    }
                    foreach (int num in chipActer.GetChipEquip().GetChipIdList())
                    {
                        GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] array = ChipDataMng.GetChipEffectData(num.ToString());
                        array = ChipEffectStatus.GetStageEffectInvalidList(areaId, array, extraEffectStatus).ToArray();
                        if (array.Length > 0)
                        {
                            List <GameWebAPI.RespDataMA_ChipEffectM.ChipEffect> totalChipEffectStatusList = ChipEffectStatus.GetTotalChipEffectStatusList(array, flag, monsterIntegrationIds, chipTarget.monsterM.monsterGroupId, tolerance, group.tribe, growStep, null, null, targetType, EffectStatusBase.ExtraEffectType.StageEffextInvalid);
                            if (totalChipEffectStatusList.Count > 0)
                            {
                                flag2 = false;
                                break;
                            }
                        }
                    }
                }
            }
            if (flag2)
            {
                list.Add(extraEffectStatus);
            }
        }
        return(list);
    }