public void StartAnimation(string growStep) { this.rareSignParticleSpark.Clear(); if (MonsterGrowStepData.IsGrowStepHigh(growStep)) { this.rareSignRainbowBox.SetActive(true); } else { this.rareSignRainbowBox.SetActive(false); } this.subCamera.transform.localPosition = new Vector3(0f, 1f, -2f); if (MonsterGrowStepData.IsRipeScope(growStep)) { this.mainCamera.backgroundColor = this.bgColorRareLow; this.subCamera.backgroundColor = this.bgColorRareLow; } else if (MonsterGrowStepData.IsGrowStepHigh(growStep)) { this.mainCamera.backgroundColor = this.bgColorRareMiddle; this.subCamera.backgroundColor = this.bgColorRareMiddle; } else { this.mainCamera.backgroundColor = this.bgColorRareNone; this.subCamera.backgroundColor = this.bgColorRareNone; } this.cameraSwitcher.SetLookAtObject(this.rareSignParticle); this.cameraSwitcher.EnableSubCamera(); base.EndCallback(); }
public void Initialize() { float num = 0.227450982f; this.grayOutTextColor = new Color(num, num, num); this.selectedSpriteName = this.buttonSprite.spriteName; this.buttonCollider = base.gameObject.GetComponent <BoxCollider>(); if (0 < this.growList.Length && this.growList[0] != GrowStep.NONE) { this.label.text = string.Empty; for (int i = 0; i < this.growList.Length; i++) { int num2 = (int)this.growList[i]; if (string.IsNullOrEmpty(this.label.text)) { this.label.text = MonsterGrowStepData.GetGrowStepName(num2.ToString()); } else { UILabel uilabel = this.label; uilabel.text = uilabel.text + "\n" + MonsterGrowStepData.GetGrowStepName(num2.ToString()); } } } }
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 static void SetThumbnailFrame(UISprite background, UISprite frame, int growStep) { if (MonsterGrowStepData.IsEggScope(growStep) || MonsterGrowStepData.IsChild1Scope(growStep) || MonsterGrowStepData.IsChild2Scope(growStep)) { background.spriteName = "Common02_Thumbnail_bg1"; frame.spriteName = "Common02_Thumbnail_waku1"; } else if (MonsterGrowStepData.IsGrowingScope(growStep)) { background.spriteName = "Common02_Thumbnail_bg2"; frame.spriteName = "Common02_Thumbnail_waku2"; } else if (MonsterGrowStepData.IsRipeScope(growStep)) { background.spriteName = "Common02_Thumbnail_bg3"; frame.spriteName = "Common02_Thumbnail_waku3"; } else if (MonsterGrowStepData.IsPerfectScope(growStep)) { background.spriteName = "Common02_Thumbnail_bg4"; frame.spriteName = "Common02_Thumbnail_waku4"; } else if (MonsterGrowStepData.IsUltimateScope(growStep)) { background.spriteName = "Common02_Thumbnail_bg5"; frame.spriteName = "Common02_Thumbnail_waku5"; } else { background.spriteName = "Common02_Thumbnail_Question"; frame.spriteName = "Common02_Thumbnail_wakuQ"; } }
public void SkipAnimation() { AppCoroutine.Stop(this.animationTextImage, false); GashaAnimationCommon.PlayParticle(this.circleParticleRoot); this.subCamera.fieldOfView = 30f; this.subCamera.transform.localPosition = new Vector3(2f, 1f, 0f); if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.mainCamera.backgroundColor = this.bgColorRareHigh; this.subCamera.backgroundColor = this.bgColorRareHigh; } CharacterParams component = this.gashaMonster.GetComponent <CharacterParams>(); if (!this.gashaMonster.activeSelf) { this.gashaMonster.SetActive(true); component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.subCamera); } this.cameraSwitcher.SetLookAtObject(component.characterFaceCenterTarget); if (!SoundMng.Instance().IsPlayingSE_Ex(this.seHandle1) && !SoundMng.Instance().IsPlayingSE_Ex(this.seHandle2)) { this.sound.PlaySE("SEInternal/Cutscene/se_214"); } }
public IEnumerator StartAnimation() { this.shockWaveparticle.Play(); this.circleParticleAppear.Play(); yield return(new WaitForSeconds(0.5f)); this.sound.PlaySE("SEInternal/Cutscene/se_210"); if (MonsterGrowStepData.IsRipeScope(this.growStep)) { this.auraParticleYellow.Play(); } else if (MonsterGrowStepData.IsGrowStepHigh(this.growStep)) { this.auraParticleRed.Play(); } else { this.auraParticleBlue.Play(); } yield return(new WaitForSeconds(0.9f)); this.rareSignParticleSpark.Stop(); yield return(new WaitForSeconds(1.2f)); base.EndCallback(); yield break; }
public static bool IsExtraEffectMonster(MonsterData monsterData, GameWebAPI.RespDataMA_GetWorldDungeonExtraEffectM.WorldDungeonExtraEffectM[] effectArray) { if (MonsterGrowStepData.IsGardenDigimonScope(monsterData.monsterMG.growStep)) { return(false); } int areaId = ExtraEffectUtil.GetAreaId(); foreach (int num in monsterData.GetChipEquip().GetChipIdList()) { GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] chipEffectData = ChipDataMng.GetChipEffectData(num.ToString()); if (chipEffectData != null) { GameWebAPI.RespDataMA_ChipEffectM.ChipEffect[] invocationList = ChipEffectStatus.GetInvocationList(chipEffectData, EffectStatusBase.EffectTriggerType.Area, monsterData.monsterM.monsterGroupId.ToInt32(), null, areaId); if (invocationList.Length > 0) { return(true); } } } GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus[] eventPointBonuses = ExtraEffectUtil.GetEventPointBonuses(ExtraEffectUtil.GetDungeonId().ToString()); foreach (GameWebAPI.RespDataMA_EventPointBonusM.EventPointBonus eventPointBonus in eventPointBonuses) { bool flag = ExtraEffectUtil.CheckExtraParams(monsterData, eventPointBonus); if (flag) { return(true); } } return(ExtraEffectUtil.CheckExtraStageParams(monsterData, effectArray)); }
public static int CalcClusterForModeChange(string monsterId) { GameWebAPI.RespDataMA_GetMonsterMG.MonsterM group = MonsterMaster.GetMonsterMasterByMonsterId(monsterId).Group; int num = 0; int num2 = 0; int growStep = group.growStep.ToInt32(); if (MonsterGrowStepData.IsRipeScope(growStep)) { num = ConstValue.MODE_CHANGE_COEFFICIENT_FOR_5; } else if (MonsterGrowStepData.IsPerfectScope(growStep)) { num = ConstValue.MODE_CHANGE_COEFFICIENT_FOR_6; } else if (MonsterGrowStepData.IsUltimateScope(growStep)) { num = ConstValue.MODE_CHANGE_COEFFICIENT_FOR_7; } else { Debug.Log("growStepの値が不正です"); } GameWebAPI.RespDataMA_GetMonsterMS.MonsterM simple = MonsterMaster.GetMonsterMasterByMonsterId(monsterId).Simple; int arousal = simple.GetArousal(); if (arousal >= 0 && arousal < ConstValue.MODE_CHANGE_COEFFICIENT_RARE.Length) { num2 = ConstValue.MODE_CHANGE_COEFFICIENT_RARE[arousal]; } return(num2 * num); }
private void StartAnimationGrowStepText() { if (MonsterGrowStepData.IsChild1Scope(this.growStep)) { this.growAnimator.SetTrigger("Child_1"); } else if (MonsterGrowStepData.IsChild2Scope(this.growStep)) { this.growAnimator.SetTrigger("Child_2"); } else if (MonsterGrowStepData.IsGrowingGroup(this.growStep)) { this.growAnimator.SetTrigger("Growing"); } else if (MonsterGrowStepData.IsRipeGroup(this.growStep)) { this.growAnimator.SetTrigger("Ripe"); } else if (MonsterGrowStepData.IsPerfectGroup(this.growStep)) { this.growAnimator.SetTrigger("Perfect"); } else if (MonsterGrowStepData.IsUltimateGroup(this.growStep)) { this.growAnimator.SetTrigger("Ultimate"); } else if (MonsterGrowStepData.IsArmorGroup(this.growStep)) { this.growAnimator.SetTrigger("Armor"); } else if (MonsterGrowStepData.IsHybridGroup(this.growStep)) { this.growAnimator.SetTrigger("Hybrid"); } }
protected void SetupEvolutionStep(CharacterStateControl characterStatus) { if (MonsterDataMng.Instance() != null) { string growStep = MonsterGrowStepData.ToGrowStepString(characterStatus.characterDatas.growStep); this.evolutionStep.text = MonsterGrowStepData.GetGrowStepName(growStep); } }
public void SetParams(List <MonsterData> selectedMonsterDataList, string getCluster) { this.titleLabel.text = StringMaster.GetString("SaleConfirmTitle"); this.normalMessageLabel.text = StringMaster.GetString("SaleConfirmInfo"); bool flag = MonsterUserDataMng.AnyChipEquipMonster(selectedMonsterDataList); bool flag2 = MonsterUserDataMng.AnyHighGrowStepMonster(selectedMonsterDataList); List <string> list = new List <string>(); bool flag3 = false; bool flag4 = false; foreach (MonsterData monsterData in selectedMonsterDataList) { bool flag5 = MonsterStatusData.IsArousal(monsterData.GetMonsterMaster().Simple.rare); bool flag6 = MonsterStatusData.IsVersionUp(monsterData.GetMonsterMaster().Simple.rare); if (flag6) { flag4 = true; } else if (flag5) { flag3 = true; } } if (flag3) { list.Add(StringMaster.GetString("SaleCautionArousal")); } if (flag4) { list.Add(StringMaster.GetString("SaleCautionVersionUp")); } if (flag) { list.Add(StringMaster.GetString("SaleCautionChip")); } if (flag2) { string growStep = ConstValue.GROW_STEP_HIGH.ToString(); string growStepName = MonsterGrowStepData.GetGrowStepName(growStep); list.Add(string.Format(StringMaster.GetString("SaleCautionGrowth"), growStepName)); } if (list.Count >= 3) { int num = (this.warningMessageLabel.fontSize + this.warningMessageLabel.spacingY) * (list.Count - 2); base.GetComponent <UIWidget>().height += num; } this.warningMessageLabel.text = string.Join("\n", list.ToArray()); for (int i = 0; i < this.guiMonsterIcons.Length; i++) { if (selectedMonsterDataList.Count > i) { GUIMonsterIcon guimonsterIcon = this.guiMonsterIcons[i]; MonsterData md = selectedMonsterDataList[i]; this.CreateIcon(i, md, guimonsterIcon.gameObject); } } this.getClusterLabel.text = getCluster; }
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); }
private void CreateMasterDataCache() { MonsterMaster.Initialize(); MonsterSkillData.Initialize(); ClassSingleton <EvolutionData> .Instance.Initialize(); VersionUpMaterialData.Initialize(); MonsterFriendshipData.Initialize(); MonsterGrowStepData.Initialize(); MonsterTribeData.Initialize(); }
public void SetImage(string iconId, string growStep) { string resourcePath = GUIMonsterIcon.InternalGetMonsterIconPathByIconId(iconId); string monsterIconPathByIconId = GUIMonsterIcon.GetMonsterIconPathByIconId(iconId); this.monsterImage.enabled = false; GUIMonsterIcon.SetTextureMonsterParts(this.monsterImage, resourcePath, monsterIconPathByIconId, true); this.monsterImage.enabled = true; UISprite component = base.gameObject.GetComponent <UISprite>(); int growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep); GUIMonsterIcon.SetThumbnailFrame(component, this.frameImage, growStep2); }
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; } }
private float GetAbilityUpgradeRate(string baseAbility, string materialAbility, string baseGrowStep, ref bool hasMedal) { if (this.abilityUpgradeDataList == null) { this.SetupAbilityUpgradeDataList(); } float result = 0f; hasMedal = this.ExistMedalByParcentage(baseAbility); int medalParcentage = this.GetMedalParcentage(baseAbility); int growStep = int.Parse(baseGrowStep); float num = 1f; float num2 = 1f; if (MonsterGrowStepData.IsGrowingScope(growStep)) { num = ConstValue.ABILITY_UPGRADE_MULRATE_GROWING; num2 = (float)ConstValue.ABILITY_INHERITRATE_GROWING; } else if (MonsterGrowStepData.IsRipeScope(growStep)) { num = ConstValue.ABILITY_UPGRADE_MULRATE_RIPE; num2 = (float)ConstValue.ABILITY_INHERITRATE_RIPE; } else if (MonsterGrowStepData.IsPerfectScope(growStep)) { num = ConstValue.ABILITY_UPGRADE_MULRATE_PERFECT; num2 = (float)ConstValue.ABILITY_INHERITRATE_PERFECT; } else if (MonsterGrowStepData.IsUltimateScope(growStep)) { num = ConstValue.ABILITY_UPGRADE_MULRATE_ULTIMATE; num2 = (float)ConstValue.ABILITY_INHERITRATE_ULTIMATE; } if (medalParcentage < 20) { if (hasMedal) { string key = baseAbility + "_" + materialAbility; if (this.abilityUpgradeDataList.ContainsKey(key)) { result = num * this.abilityUpgradeDataList[key]; } } else { result = num2; } } return(result); }
private int GetDigiHouseMonsterNum(List <MonsterData> monsterDataList) { int num = 0; for (int i = 0; i < monsterDataList.Count; i++) { int growStep = (int)MonsterGrowStepData.ToGrowStep(monsterDataList[i].monsterMG.growStep); if (!MonsterGrowStepData.IsGardenDigimonScope(growStep)) { num++; } } return(num); }
private int GetGardenGrowingMonsterNum(List <MonsterData> monsterDataList) { int num = 0; for (int i = 0; i < monsterDataList.Count; i++) { int growStep = (int)MonsterGrowStepData.ToGrowStep(monsterDataList[i].monsterMG.growStep); if (MonsterGrowStepData.IsGardenDigimonScope(growStep) && (monsterDataList[i].userMonster.IsEgg() || monsterDataList[i].userMonster.IsGrowing())) { num++; } } return(num); }
public static void InitializeMonsterPosition(GameObject monster, string growStep) { if (MonsterGrowStepData.IsGardenDigimonScope(growStep)) { monster.transform.localPosition = Vector3.zero; } else if (MonsterGrowStepData.IsGrowingScope(growStep)) { monster.transform.localPosition = new Vector3(0f, 0.3f, 0f); } else { monster.transform.localPosition = new Vector3(0f, 0.5f, 0f); } }
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); }
public List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> GetAfterMonsterEvolutionList(string monsterId, string growStep) { List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> list = null; if (!this.monsterEvolutionDic.TryGetValue(monsterId, out list)) { int growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep); list = new List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution>(); if (MonsterGrowStepData.IsEggScope(growStep2) || MonsterGrowStepData.IsChild1Scope(growStep2) || MonsterGrowStepData.IsChild2Scope(growStep2)) { this.GetAfterEvolutionChildList(monsterId, ref list); this.monsterEvolutionDic.Add(monsterId, list); } } return(list); }
private int GetShortenTimeValue(GameWebAPI.RespDataUS_GetGardenInfo gardenInfoList, string userMonsterId) { int result = 0; foreach (GameWebAPI.GardenInfo.MonsterInfo monsterInfo in gardenInfoList.gardenInfo.monster) { if (userMonsterId == monsterInfo.userMonsterId.ToString()) { if (MonsterGrowStepData.IsChild1Scope(monsterInfo.growStep)) { result = gardenInfoList.gardenInfo.time1; } else { result = gardenInfoList.gardenInfo.time2; } } } return(result); }
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); } }
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 IEnumerator StartAnimation() { this.circleParticleRoot.Play(); this.subCamera.fieldOfView = 30f; this.subCamera.transform.localPosition = new Vector3(2f, 1f, 0f); if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.mainCamera.backgroundColor = this.bgColorRareHigh; this.subCamera.backgroundColor = this.bgColorRareHigh; } this.gashaMonster.SetActive(true); CharacterParams charaParam = this.gashaMonster.GetComponent <CharacterParams>(); charaParam.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null); CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.subCamera); this.cameraSwitcher.SetLookAtObject(charaParam.characterFaceCenterTarget); if (MonsterGrowStepData.IsRipeScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareLow"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else if (MonsterGrowStepData.IsPerfectScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareMiddle"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else if (MonsterGrowStepData.IsUltimateScope(this.growStep)) { this.animationTextImage = this.StartAnimationRareTextImage("RareHigh"); yield return(AppCoroutine.Start(this.animationTextImage, false)); } else { yield return(null); } this.seHandle2 = this.sound.PlaySE("SEInternal/Cutscene/se_214"); base.EndCallback(); yield break; }
public void SetIconGrayOutPartnerMonster(MonsterData baseDigimon, List <MonsterData> partnerMonsterList) { List <MonsterData> monsterDataList = MonsterDataMng.Instance().GetMonsterDataList(); for (int i = 0; i < monsterDataList.Count; i++) { if (monsterDataList[i] != baseDigimon) { string b = string.Empty; if (baseDigimon != null) { b = baseDigimon.monsterMG.monsterGroupId; } else if (partnerMonsterList != null && 0 < partnerMonsterList.Count) { b = partnerMonsterList[0].monsterMG.monsterGroupId; } if (monsterDataList[i].monsterMG.monsterGroupId != b || MonsterGrowStepData.IsUltimateScope(monsterDataList[i].GetMonsterMaster().Group.growStep)) { GUIMonsterIcon icon = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(monsterDataList[i]); this.iconGrayOut.SetCanNotDecideIcon(icon); } else if (0 < partnerMonsterList.Count && monsterDataList[i] == partnerMonsterList[0]) { GUIMonsterIcon icon2 = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(monsterDataList[i]); this.iconGrayOut.SetPartnerIcon(icon2); } else if (baseDigimon != null && (monsterDataList[i].userMonster.IsLocked || MonsterStatusData.IsSpecialTrainingType(monsterDataList[i].GetMonsterMaster().Group.monsterType) || 0 < partnerMonsterList.Count)) { GUIMonsterIcon icon3 = ClassSingleton <GUIMonsterIconList> .Instance.GetIcon(monsterDataList[i]); this.iconGrayOut.BlockLockIcon(icon3); } } } }
public void AddMonsterData(EvolutionDiagramData.IconMonster monsterData) { switch (MonsterGrowStepData.ToGrowStep(monsterData.master.Group.growStep)) { case GrowStep.CHILD_1: case GrowStep.CHILD_2: this.monsterListChild.Add(monsterData); break; case GrowStep.GROWING: this.monsterListGrowing.Add(monsterData); break; case GrowStep.RIPE: this.monsterListPipe.Add(monsterData); break; case GrowStep.PERFECT: this.monsterListPerfect.Add(monsterData); break; case GrowStep.ULTIMATE: this.monsterListUltimate.Add(monsterData); break; case GrowStep.ARMOR_1: case GrowStep.ARMOR_2: this.monsterListArmor.Add(monsterData); break; case GrowStep.HYBRID_GROWING: case GrowStep.HYBRID_RIPE: case GrowStep.HYBRID_PERFECT: case GrowStep.HYBRID_ULTIMATE: this.monsterListHybrid.Add(monsterData); break; } }
private void SetGrowStepList(List <GameWebAPI.RespDataMA_WorldDungeonSortieLimit.WorldDungeonSortieLimit> limitList) { List <string> list = new List <string>(); int num = 0; for (int i = 0; i < limitList.Count; i++) { string growStepName = MonsterGrowStepData.GetGrowStepName(limitList[i].growStep); if (!list.Contains(growStepName)) { SortieLimitListItem growStepListItem = this.GetGrowStepListItem(); if (null != growStepListItem) { list.Add(growStepName); growStepListItem.gameObject.SetActive(true); growStepListItem.SetText(growStepName); num++; } } } this.growStepRoot.columns = num; this.growStepRoot.Reposition(); }
public List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> GetBeforeMonsterEvolutionList(string monsterId, string growStep) { List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution> list = null; if (!this.baseMonsterEvolutionTable.TryGetValue(monsterId, out list)) { int growStep2 = (int)MonsterGrowStepData.ToGrowStep(growStep); list = new List <GameWebAPI.RespDataMA_GetMonsterEvolutionM.Evolution>(); if (!MonsterGrowStepData.IsEggScope(growStep2)) { if (MonsterGrowStepData.IsChild1Scope(growStep2) || MonsterGrowStepData.IsChild2Scope(growStep2) || MonsterGrowStepData.IsGrowingScope(growStep2)) { this.GetBeforeEvolutionChildList(monsterId, ref list); } else { this.GetBeforeEvolutionList(monsterId, ref list); } } this.baseMonsterEvolutionTable.Add(monsterId, list); } return(list); }
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"); } }