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"; } }
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); }
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 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); }