protected int CompareMonsterIdAndLevel(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList dataA, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList dataB)
        {
            int num  = int.Parse(dataA.monsterId);
            int num2 = int.Parse(dataB.monsterId);

            if (num > num2)
            {
                return(-1);
            }
            if (num < num2)
            {
                return(1);
            }
            num  = int.Parse(dataA.level);
            num2 = int.Parse(dataB.level);
            if (num > num2)
            {
                return(-1);
            }
            if (num < num2)
            {
                return(1);
            }
            num  = int.Parse(dataA.userMonsterId);
            num2 = int.Parse(dataB.userMonsterId);
            if (num > num2)
            {
                return(-1);
            }
            if (num < num2)
            {
                return(1);
            }
            return(0);
        }
        public void AddUserMonsterData(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList responseUserMonster)
        {
            Debug.Assert(null == this.GetMonsterUserData(responseUserMonster.userMonsterId), "既に一覧に登録されています. userMonsterId (" + responseUserMonster.userMonsterId + ")");
            MonsterData item = new MonsterData(responseUserMonster);

            this.userMonsterList.Add(item);
        }
Esempio n. 3
0
 private void DoExec()
 {
     this.useClusterBK = this.CalcCluster();
     GameWebAPI.RequestMN_VersionUP request = new GameWebAPI.RequestMN_VersionUP
     {
         SetSendData = delegate(GameWebAPI.MN_Req_VersionUP param)
         {
             param.baseUserMonsterId = int.Parse(this.baseDigimon.userMonster.userMonsterId);
             param.target            = int.Parse(this.medList_cache[0].md_next.monsterM.monsterId);
             param.material          = this.GetMaterialList();
         },
         OnReceived = delegate(GameWebAPI.RespDataMN_VersionUP response)
         {
             if (response.userMonster != null)
             {
                 this.updatedUserMonster_bk = response.userMonster;
                 ClassSingleton <MonsterUserDataMng> .Instance.AddUserMonsterData(response.userMonster);
             }
         }
     };
     AppCoroutine.Start(request.Run(delegate()
     {
         AppCoroutine.Start(base.GetChipSlotInfo(), false);
     }, delegate(Exception noop)
     {
         RestrictionInput.EndLoad();
         this.ClosePanel(true);
     }, null), false);
 }
        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);
        }
    protected override void EndSuccess()
    {
        int  num = int.Parse(this.baseDigimon.userMonster.friendship);
        int  friendshipMaxValue = MonsterFriendshipData.GetFriendshipMaxValue(this.baseDigimon.monsterMG.growStep);
        bool isArousal          = num >= friendshipMaxValue;
        bool isResetEquipChip   = false;

        if (this.baseDigimon.GetChipEquip().IsAttachedChip())
        {
            isResetEquipChip = true;
            base.RemoveEquipChip(false, this.baseDigimon.userMonster.userMonsterId);
        }
        if (this.partnerDigimon.GetChipEquip().IsAttachedChip())
        {
            isResetEquipChip = true;
            base.RemoveEquipChip(false, this.partnerDigimon.userMonster.userMonsterId);
        }
        string[] userMonsterIdList = new string[]
        {
            this.baseDigimon.userMonster.userMonsterId,
            this.partnerDigimon.userMonster.userMonsterId
        };
        ClassSingleton <MonsterUserDataMng> .Instance.DeleteUserMonsterData(userMonsterIdList);

        GooglePlayGamesTool.Instance.Laboratory();
        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterData = this.GetUserMonsterData();
        MonsterData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(userMonsterData.userMonsterId);

        CutsceneDataFusion cutsceneDataFusion = new CutsceneDataFusion();

        cutsceneDataFusion.path            = "Cutscenes/Fusion";
        cutsceneDataFusion.baseModelId     = this.baseDigimon.GetMonsterMaster().Group.modelId;
        cutsceneDataFusion.materialModelId = this.partnerDigimon.GetMonsterMaster().Group.modelId;
        cutsceneDataFusion.eggModelId      = ClassSingleton <EvolutionData> .Instance.GetEggType(userMonster.userMonster.monsterEvolutionRouteId);

        cutsceneDataFusion.upArousal = isArousal;
        CutsceneDataFusion cutsceneDataFusion2 = cutsceneDataFusion;

        if (CMD_Laboratory.< > f__mg$cache1 == null)
        {
            CMD_Laboratory.< > f__mg$cache1 = new Action(CutSceneMain.FadeReqCutSceneEnd);
        }
        cutsceneDataFusion2.endCallback = CMD_Laboratory.< > f__mg$cache1;
        CutsceneDataFusion cutsceneData = cutsceneDataFusion;

        Loading.Invisible();
        CutSceneMain.FadeReqCutScene(cutsceneData, delegate()
        {
            this.OnStartCutScene(isArousal, isResetEquipChip);
        }, delegate()
        {
            this.characterDetailed.StartAnimation();
            if (!isResetEquipChip)
            {
                RestrictionInput.EndLoad();
            }
        }, 0.5f, 0.5f);
    }
        public void UpdateUserMonsterData(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList responseUserMonster)
        {
            MonsterData monsterUserData = this.GetMonsterUserData(responseUserMonster.userMonsterId);

            Debug.Assert(null != monsterUserData, "該当情報が無い userMonsterId (" + responseUserMonster.userMonsterId + ")");
            monsterUserData.SetMonster(responseUserMonster);
        }
Esempio n. 7
0
 public void InitSkillInfo()
 {
     GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList monster = base.GetMonster();
     base.SetUniqueSkill(monster.monsterId, monster.defaultSkillGroupSubId);
     base.SetCommonSkill(monster.commonSkillId);
     base.SetExtraCommonSkill(monster.extraCommonSkillId);
     base.SetLeaderSkill(monster.leaderSkillId);
 }
    public void SetViewNextEvolutionMonster(string monsterId, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
    {
        this.statusList.SetViewNextEvolutionMonster(monsterId, userMonster);
        this.ShowChgInfo();
        GameObject protectionButton = this.leftUI.GetProtectionButton();

        protectionButton.SetActive(false);
    }
 public void SetValues(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterData)
 {
     this.SetMedalIcon(userMonsterData.hpAbilityFlg, userMonsterData.hpAbility, this.hpIcon);
     this.SetMedalIcon(userMonsterData.attackAbilityFlg, userMonsterData.attackAbility, this.attackIcon);
     this.SetMedalIcon(userMonsterData.defenseAbilityFlg, userMonsterData.defenseAbility, this.defenseIcon);
     this.SetMedalIcon(userMonsterData.spAttackAbilityFlg, userMonsterData.spAttackAbility, this.magicAttackIcon);
     this.SetMedalIcon(userMonsterData.spDefenseAbilityFlg, userMonsterData.spDefenseAbility, this.magicDefenseIcon);
     this.SetMedalIcon(userMonsterData.speedAbilityFlg, userMonsterData.speedAbility, this.speedIcon);
 }
        protected int GetMonsterParameter(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster, string value)
        {
            int result = -1;

            if (!userMonster.IsEgg())
            {
                result = int.Parse(value);
            }
            return(result);
        }
Esempio n. 11
0
        public int GetTotalAbilityCount(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList materialMonster)
        {
            int num = 0;

            num += ((!this.ExistMedalByMedalType(materialMonster.hpAbilityFlg)) ? 0 : 1);
            num += ((!this.ExistMedalByMedalType(materialMonster.attackAbilityFlg)) ? 0 : 1);
            num += ((!this.ExistMedalByMedalType(materialMonster.defenseAbilityFlg)) ? 0 : 1);
            num += ((!this.ExistMedalByMedalType(materialMonster.spAttackAbilityFlg)) ? 0 : 1);
            num += ((!this.ExistMedalByMedalType(materialMonster.spDefenseAbilityFlg)) ? 0 : 1);
            return(num + ((!this.ExistMedalByMedalType(materialMonster.speedAbilityFlg)) ? 0 : 1));
        }
    private int[] GetFiriendShipAddPoints()
    {
        int[] array = new int[this.deckData.monsterList.Length];
        int   i     = 0;

        while (i < this.deckData.monsterList.Length)
        {
            string tgtId = string.Empty;
            int    num   = -1;
            if (!this.isMulti)
            {
                tgtId = this.deckData.monsterList[i].userMonsterId;
                GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList = this.memoryMonsterList.Single((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId);
                num = userMonsterList.friendship.ToInt32();
                goto IL_15F;
            }
            GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo;
            int partyIndex   = DataMng.Instance().GetPartyIndex(i);
            int monsterIndex = DataMng.Instance().GetMonsterIndex(i);
            GameWebAPI.Common_MonsterData common_MonsterData = respData_WorldMultiStartInfo.party[partyIndex].userMonsters[monsterIndex];
            if (int.Parse(common_MonsterData.userId) == DataMng.Instance().RespDataCM_Login.playerInfo.UserId)
            {
                tgtId = respData_WorldMultiStartInfo.party[partyIndex].userMonsters[monsterIndex].userMonsterId;
                for (int j = 0; j < this.oldMonsterInfoList.Length; j++)
                {
                    if (this.oldMonsterInfoList != null && tgtId == this.oldMonsterInfoList[j].userMonsterId)
                    {
                        num = this.oldMonsterInfoList[j].friendship.ToInt32();
                        break;
                    }
                }
                goto IL_15F;
            }
            array[i] = 0;
IL_1C1:
            i++;
            continue;
IL_15F:
            MonsterData monsterDataByUserMonsterID = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(tgtId, false);
            if (string.IsNullOrEmpty(monsterDataByUserMonsterID.userMonster.friendship))
            {
                monsterDataByUserMonsterID.userMonster.friendship = "0";
            }
            int num2 = int.Parse(monsterDataByUserMonsterID.userMonster.friendship);
            if (num == -1)
            {
                num = num2;
            }
            int num3 = num2 - num;
            array[i] = num3;
            goto IL_1C1;
        }
        return(array);
    }
 public void Initialize(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster, int defaultLevel)
 {
     this.userMonster  = userMonster;
     this.defaultLevel = defaultLevel;
     if (this.levelLabel != null)
     {
         MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(this.userMonster.monsterId);
         this.levelLabel.text = string.Format(StringMaster.GetString("SystemFraction"), this.defaultLevel.ToString(), monsterMasterByMonsterId.Simple.maxLevel);
     }
     this.displayLevel = defaultLevel;
     this.HideDifference();
 }
Esempio n. 14
0
 public float GetMaxAbility(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList baseMonster)
 {
     return((float)Mathf.Max(new int[]
     {
         this.GetMedalParcentage(baseMonster.hpAbility),
         this.GetMedalParcentage(baseMonster.attackAbility),
         this.GetMedalParcentage(baseMonster.defenseAbility),
         this.GetMedalParcentage(baseMonster.spAttackAbility),
         this.GetMedalParcentage(baseMonster.spDefenseAbility),
         this.GetMedalParcentage(baseMonster.speedAbility)
     }));
 }
Esempio n. 15
0
 public static MonsterData CreateMonsterData(string monsterId)
 {
     GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster = new GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList
     {
         userMonsterId          = "-1",
         monsterId              = monsterId,
         level                  = "1",
         defaultSkillGroupSubId = "1",
         commonSkillId          = "473",
         extraCommonSkillId     = string.Empty,
         leaderSkillId          = "0"
     };
     return(new MonsterData(userMonster));
 }
 public void Initialize(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterData)
 {
     this.labelModelView.text = StringMaster.GetString("CharaDetailsFullScreen");
     if (userMonsterData.IsEgg())
     {
         this.buttonProtection.SetActive(false);
     }
     else
     {
         this.isLocked = userMonsterData.IsLocked;
         this.SetProtectionImage(userMonsterData.IsLocked);
         this.buttonEvolution.SetActive(true);
     }
 }
    private IEnumerator DigimonInfos()
    {
        yield return(new WaitForSeconds(0.6f));

        this.particleRemover.SetActive(true);
        if (this.digimonInfos != null)
        {
            for (int i = 0; i < this.digimonInfos.Length; i++)
            {
                NGUITools.SetActiveSelf(this.digimonInfos[i].gameObject, true);
                TweenAlpha tweenAlpha = this.digimonInfos[i].gameObject.AddComponent <TweenAlpha>();
                tweenAlpha.from = 0f;
                tweenAlpha.to   = 1f;
                if (!this.isMulti)
                {
                    string tgtId = this.deckData.monsterList[i].userMonsterId;
                    GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList = this.memoryMonsterList.Single((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId);
                    MonsterData monsterDataByUserMonsterID = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(tgtId, false);
                    this.digimonInfos[i].CreateDetails(userMonsterList.ex.ToInt32(), userMonsterList.level.ToInt32(), monsterDataByUserMonsterID.monsterM.maxLevel.ToInt32());
                }
                else
                {
                    GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo;
                    int partyIndex   = DataMng.Instance().GetPartyIndex(i);
                    int monsterIndex = DataMng.Instance().GetMonsterIndex(i);
                    GameWebAPI.RespData_WorldMultiStartInfo.Party party = respData_WorldMultiStartInfo.party[partyIndex];
                    GameWebAPI.Common_MonsterData common_MonsterData    = party.userMonsters[monsterIndex];
                    MonsterData monsterData = common_MonsterData.ToMonsterData();
                    string      tgtId       = common_MonsterData.userMonsterId;
                    GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonsterList2 = this.memoryMonsterList.SingleOrDefault((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId);
                    if (userMonsterList2 != null)
                    {
                        this.digimonInfos[i].CreateDetails(userMonsterList2.ex.ToInt32(), userMonsterList2.level.ToInt32(), monsterData.monsterM.maxLevel.ToInt32());
                    }
                    else
                    {
                        this.digimonInfos[i].CreateDetails(monsterData);
                    }
                }
            }
            BattleResultDigimonInfo[] growDigimonInfos = this.GetGrowDigimonInfos(this.digimonInfos);
            IEnumerator countUpExp = this.CountUpExp(growDigimonInfos);
            while (countUpExp.MoveNext())
            {
                yield return(null);
            }
        }
        yield break;
    }
Esempio n. 18
0
    protected IEnumerator GetChipSlotInfo()
    {
        GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList[] monsterList = new GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList[]
        {
            this.GetUserMonsterData()
        };
        GameWebAPI.MonsterSlotInfoListLogic request = ChipDataMng.RequestAPIMonsterSlotInfo(monsterList);
        yield return(AppCoroutine.Start(request.Run(new Action(this.EndSuccess), delegate(Exception noop)
        {
            RestrictionInput.EndLoad();
            this.ClosePanel(true);
        }, null), false));

        yield break;
    }
Esempio n. 19
0
 public Talent(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
 {
     this.hpAbilityFlg        = userMonster.hpAbilityFlg;
     this.hpAbility           = userMonster.hpAbility;
     this.attackAbilityFlg    = userMonster.attackAbilityFlg;
     this.attackAbility       = userMonster.attackAbility;
     this.defenseAbilityFlg   = userMonster.defenseAbilityFlg;
     this.defenseAbility      = userMonster.defenseAbility;
     this.spAttackAbilityFlg  = userMonster.spAttackAbilityFlg;
     this.spAttackAbility     = userMonster.spAttackAbility;
     this.spDefenseAbilityFlg = userMonster.spDefenseAbilityFlg;
     this.spDefenseAbility    = userMonster.spDefenseAbility;
     this.speedAbilityFlg     = userMonster.speedAbilityFlg;
     this.speedAbility        = userMonster.speedAbility;
 }
Esempio n. 20
0
    private List <string> CheckHaveMedal(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList UserMonsterData)
    {
        List <string> list  = new List <string>();
        List <string> list2 = new List <string>();

        list2.Add(UserMonsterData.hpAbilityFlg);
        list2.Add(UserMonsterData.attackAbilityFlg);
        list2.Add(UserMonsterData.defenseAbilityFlg);
        list2.Add(UserMonsterData.spAttackAbilityFlg);
        list2.Add(UserMonsterData.spDefenseAbilityFlg);
        list2.Add(UserMonsterData.speedAbilityFlg);
        int num = 0;

        foreach (string s in list2)
        {
            if (!int.TryParse(s, out num))
            {
                global::Debug.LogError("Error : int.TryParse for userMonsterData of AbilityFlg");
            }
            else if (num != 1)
            {
                if (num == 2)
                {
                    list.Add("Common02_Talent_Silver");
                }
            }
            else
            {
                list.Add("Common02_Talent_Gold");
            }
        }
        if (list.Count > 1)
        {
            list.Sort(delegate(string a, string b)
            {
                if (a == "Common02_Talent_Gold" && b != "Common02_Talent_Gold")
                {
                    return(-1);
                }
                if (a != "Common02_Talent_Gold" && b == "Common02_Talent_Gold")
                {
                    return(1);
                }
                return(0);
            });
        }
        return(list);
    }
 private IEnumerator FriendshipUpEndPop()
 {
     for (int i = 0; i < this.deckData.monsterList.Length; i++)
     {
         string tgtId = string.Empty;
         if (!this.isMulti)
         {
             tgtId = this.deckData.monsterList[i].userMonsterId;
         }
         else
         {
             if (this.oldMonsterInfoList.Length <= i || this.oldMonsterInfoList[i] == null)
             {
                 break;
             }
             tgtId = this.oldMonsterInfoList[i].userMonsterId;
         }
         this.memoryUserMonsterList = this.memoryMonsterList.SingleOrDefault((GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList x) => x.userMonsterId == tgtId);
         if (this.memoryUserMonsterList == null)
         {
             break;
         }
         MonsterData afterMonsterData = MonsterDataMng.Instance().GetMonsterDataByUserMonsterID(tgtId, false);
         if (string.IsNullOrEmpty(afterMonsterData.userMonster.friendship))
         {
             afterMonsterData.userMonster.friendship = "0";
         }
         int fShipBefore = int.Parse(this.memoryUserMonsterList.friendship);
         int fShipAfter  = int.Parse(afterMonsterData.userMonster.friendship);
         int upVal       = fShipAfter - fShipBefore;
         if (0 < upVal)
         {
             int surplus = fShipAfter % ConstValue.RIZE_CONDITION_FRENDSHIPSTATUS;
             if (surplus < upVal)
             {
                 IEnumerator popFriendshipUpStatus = this.PopFriendshipUpStatus(afterMonsterData);
                 while (popFriendshipUpStatus.MoveNext())
                 {
                     yield return(null);
                 }
             }
         }
     }
     this.isCantGoNext = false;
     yield break;
 }
Esempio n. 22
0
        public MonsterAbilityStatusInfo CreateAbilityStatus(MonsterData baseData, MonsterData partnerData)
        {
            MonsterAbilityStatusInfo monsterAbilityStatusInfo = new MonsterAbilityStatusInfo();
            float campaignFix = this.GetCampaignFix();

            GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster  = baseData.userMonster;
            GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster2 = partnerData.userMonster;
            string growStep = partnerData.monsterMG.growStep;

            this.SetAbilityInfo(userMonster.hpAbility, userMonster2.hpAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.hpAbilityFlg, ref monsterAbilityStatusInfo.hpAbility, ref monsterAbilityStatusInfo.hpAbilityRate, ref monsterAbilityStatusInfo.hpNoMaterial, ref monsterAbilityStatusInfo.hpIsAbilityMax, ref monsterAbilityStatusInfo.hpAbilityMinGuarantee, ref monsterAbilityStatusInfo.hpAbilityMinGuaranteeRate);
            this.SetAbilityInfo(userMonster.attackAbility, userMonster2.attackAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.attackAbilityFlg, ref monsterAbilityStatusInfo.attackAbility, ref monsterAbilityStatusInfo.attackAbilityRate, ref monsterAbilityStatusInfo.attackNoMaterial, ref monsterAbilityStatusInfo.attackIsAbilityMax, ref monsterAbilityStatusInfo.attackAbilityMinGuarantee, ref monsterAbilityStatusInfo.attackAbilityMinGuaranteeRate);
            this.SetAbilityInfo(userMonster.defenseAbility, userMonster2.defenseAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.defenseAbilityFlg, ref monsterAbilityStatusInfo.defenseAbility, ref monsterAbilityStatusInfo.defenseAbilityRate, ref monsterAbilityStatusInfo.defenseNoMaterial, ref monsterAbilityStatusInfo.defenseIsAbilityMax, ref monsterAbilityStatusInfo.defenseAbilityMinGuarantee, ref monsterAbilityStatusInfo.defenseAbilityMinGuaranteeRate);
            this.SetAbilityInfo(userMonster.spAttackAbility, userMonster2.spAttackAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.spAttackAbilityFlg, ref monsterAbilityStatusInfo.spAttackAbility, ref monsterAbilityStatusInfo.spAttackAbilityRate, ref monsterAbilityStatusInfo.spAttackNoMaterial, ref monsterAbilityStatusInfo.spAttackIsAbilityMax, ref monsterAbilityStatusInfo.spAttackAbilityMinGuarantee, ref monsterAbilityStatusInfo.spAttackAbilityMinGuaranteeRate);
            this.SetAbilityInfo(userMonster.spDefenseAbility, userMonster2.spDefenseAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.spDefenseAbilityFlg, ref monsterAbilityStatusInfo.spDefenseAbility, ref monsterAbilityStatusInfo.spDefenseAbilityRate, ref monsterAbilityStatusInfo.spDefenseNoMaterial, ref monsterAbilityStatusInfo.spDefenseIsAbilityMax, ref monsterAbilityStatusInfo.spDefenseAbilityMinGuarantee, ref monsterAbilityStatusInfo.spDefenseAbilityMinGuaranteeRate);
            this.SetAbilityInfo(userMonster.speedAbility, userMonster2.speedAbility, growStep, campaignFix, ref monsterAbilityStatusInfo.speedAbilityFlg, ref monsterAbilityStatusInfo.speedAbility, ref monsterAbilityStatusInfo.speedAbilityRate, ref monsterAbilityStatusInfo.speedNoMaterial, ref monsterAbilityStatusInfo.speedIsAbilityMax, ref monsterAbilityStatusInfo.speedAbilityMinGuarantee, ref monsterAbilityStatusInfo.speedAbilityMinGuaranteeRate);
            return(monsterAbilityStatusInfo);
        }
Esempio n. 23
0
        public bool IsSuccsessAbilityUpgrade(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList beforeUserMonster, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList afterUserMonster)
        {
            int num  = 0;
            int num2 = 0;

            num  += this.GetMedalParcentage(beforeUserMonster.hpAbility);
            num  += this.GetMedalParcentage(beforeUserMonster.attackAbility);
            num  += this.GetMedalParcentage(beforeUserMonster.defenseAbility);
            num  += this.GetMedalParcentage(beforeUserMonster.spAttackAbility);
            num  += this.GetMedalParcentage(beforeUserMonster.spDefenseAbility);
            num  += this.GetMedalParcentage(beforeUserMonster.speedAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.hpAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.attackAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.defenseAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.spAttackAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.spDefenseAbility);
            num2 += this.GetMedalParcentage(afterUserMonster.speedAbility);
            return(num < num2);
        }
Esempio n. 24
0
 private void EndExecSuccess()
 {
     if (this.execMeatNum > 0)
     {
         GooglePlayGamesTool.Instance.Meal(this.execMeatNum);
     }
     base.StartCoroutine(this.PlayGiftMeatAnimation(delegate
     {
         DataMng.Instance().US_PlayerInfoSubMeatNum(CMD_MealExecution.execMeatNum_bk);
         MonsterUserData userMonster = ClassSingleton <MonsterUserDataMng> .Instance.GetUserMonster(CMD_MealExecution.monsterdata_bk.userMonster.userMonsterId);
         GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList monster = userMonster.GetMonster();
         monster.ex    = CMD_MealExecution.last_exp_info_bk.exp.ToString();
         monster.level = CMD_MealExecution.last_exp_info_bk.lev.ToString();
         CMD_MealExecution.monsterdata_bk = null;
         this.execMeatNum = 0;
         this.consumptionScheduleNum.text  = "0";
         this.consumptionLevelUpCount      = 0;
         this.consumptionLevelUpLabel.text = string.Empty;
         this.SetStatus();
         this.IsLockClose = false;
         this.meatNumDownButtonSprite.spriteName       = "Common02_Meal_Down_G";
         this.meatNumDownButtonCollider.activeCollider = false;
         if (!this.meatNumUpButtonCollider.activeCollider)
         {
             this.meatNumUpButtonSprite.spriteName       = "Common02_Meal_UP";
             this.meatNumUpButtonCollider.activeCollider = true;
         }
         DataMng.ExperienceInfo expInfo = this.GetExpInfo();
         if (expInfo.lev >= int.Parse(CMD_MealExecution.DataChg.monsterM.maxLevel))
         {
             this.meatNumUpButtonSprite.spriteName       = "Common02_Meal_UP_G";
             this.meatNumUpButtonCollider.activeCollider = false;
         }
         this.InitBtnHQMeat();
     }));
     RestrictionInput.EndLoad();
 }
Esempio n. 25
0
        public void SetMedal(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
        {
            int num  = 0;
            int num2 = 0;

            this.CountMedal(userMonster.hpAbilityFlg, ref num, ref num2);
            this.CountMedal(userMonster.attackAbilityFlg, ref num, ref num2);
            this.CountMedal(userMonster.defenseAbilityFlg, ref num, ref num2);
            this.CountMedal(userMonster.spAttackAbilityFlg, ref num, ref num2);
            this.CountMedal(userMonster.spDefenseAbilityFlg, ref num, ref num2);
            this.CountMedal(userMonster.speedAbilityFlg, ref num, ref num2);
            if (0 < num)
            {
                this.SetMedalSpriteName(this.medalLeft, "Common02_Talent_Gold");
                if (0 < num2)
                {
                    this.SetSilverMedal(this.medalRight, num2);
                }
            }
            else if (0 < num2)
            {
                this.SetSilverMedal(this.medalLeft, num2);
            }
        }
Esempio n. 26
0
 public List <AbilityData.GoldMedalInheritanceState> GetGoldMedalInheritanceList(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList baseMonster, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList matMonster)
 {
     return(new List <AbilityData.GoldMedalInheritanceState>
     {
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.HP,
             goldUpState = this.CheckGoldMedalState(baseMonster.hpAbilityFlg, baseMonster.hpAbility, matMonster.hpAbilityFlg)
         },
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.ATK,
             goldUpState = this.CheckGoldMedalState(baseMonster.attackAbilityFlg, baseMonster.attackAbility, matMonster.attackAbilityFlg)
         },
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.DEF,
             goldUpState = this.CheckGoldMedalState(baseMonster.defenseAbilityFlg, baseMonster.defenseAbility, matMonster.defenseAbilityFlg)
         },
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.S_ATK,
             goldUpState = this.CheckGoldMedalState(baseMonster.spAttackAbilityFlg, baseMonster.spAttackAbility, matMonster.spAttackAbilityFlg)
         },
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.S_DEF,
             goldUpState = this.CheckGoldMedalState(baseMonster.spDefenseAbilityFlg, baseMonster.spDefenseAbility, matMonster.spDefenseAbilityFlg)
         },
         new AbilityData.GoldMedalInheritanceState
         {
             abilityState = AbilityData.ABILITY_STATE.SPD,
             goldUpState = this.CheckGoldMedalState(baseMonster.speedAbilityFlg, baseMonster.speedAbility, matMonster.speedAbilityFlg)
         }
     });
 }
 public void SetMonster(GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
 {
     this.userMonster = userMonster;
     this.SetMonsterData();
 }
Esempio n. 28
0
 public static bool CanVersionUp(GameWebAPI.RespDataMA_GetMonsterMS.MonsterM monsterM, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster, List <HaveSoulData> almightyHsdL)
 {
     return(VersionUpMaterialData.IsMaxLevel(monsterM, userMonster) && VersionUpMaterialData.CheckMaterialNum(monsterM, almightyHsdL) && VersionUpMaterialData.IsEnoughCluster(monsterM));
 }
Esempio n. 29
0
        private static bool IsMaxLevel(GameWebAPI.RespDataMA_GetMonsterMS.MonsterM monsterM, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
        {
            int num  = int.Parse(userMonster.level);
            int num2 = int.Parse(monsterM.maxLevel);

            return(num2 <= num);
        }
Esempio n. 30
0
 public static bool CanVersionUpWithoutMaterial(GameWebAPI.RespDataMA_GetMonsterMS.MonsterM monsterM, GameWebAPI.RespDataUS_GetMonsterList.UserMonsterList userMonster)
 {
     return(VersionUpMaterialData.IsMaxLevel(monsterM, userMonster) && VersionUpMaterialData.IsEnoughCluster(monsterM));
 }