private void Calc9SlotHeroStandingPosition(CSDT_BATTLE_PLAYER_BRIEF stBattlePlayer) { Calc9SlotHeroData[] heroes = new Calc9SlotHeroData[3]; IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.StaticLobbyDataProvider); ActorStaticData actorData = new ActorStaticData(); ActorMeta actorMeta = new ActorMeta(); if (Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo() != null) { for (int i = 0; (i < stBattlePlayer.astFighter[0].astChoiceHero.Length) && (i < 3); i++) { uint dwHeroID = stBattlePlayer.astFighter[0].astChoiceHero[i].stBaseInfo.stCommonInfo.dwHeroID; if (dwHeroID != 0) { actorMeta.ConfigId = (int)dwHeroID; actorDataProvider.GetActorStaticData(ref actorMeta, ref actorData); heroes[i].Level = 1; heroes[i].Quality = 1; heroes[i].RecommendPos = actorData.TheHeroOnlyInfo.RecommendStandPos; heroes[i].Ability = (uint)CHeroDataFactory.CreateHeroData(dwHeroID).combatEft; heroes[i].ConfigId = dwHeroID; heroes[i].selected = false; heroes[i].BornIndex = -1; } } this.ImpCalc9SlotHeroStandingPosition(ref heroes); for (int j = 0; (j < stBattlePlayer.astFighter[0].astChoiceHero.Length) && (j < 3); j++) { stBattlePlayer.astFighter[0].astChoiceHero[j].stHeroExtral.iHeroPos = heroes[j].BornIndex; } for (int k = 0; (k < stBattlePlayer.astFighter[1].astChoiceHero.Length) && (k < 3); k++) { uint id = stBattlePlayer.astFighter[1].astChoiceHero[k].stBaseInfo.stCommonInfo.dwHeroID; if (id != 0) { actorMeta.ConfigId = (int)id; actorDataProvider.GetActorStaticData(ref actorMeta, ref actorData); heroes[k].Level = stBattlePlayer.astFighter[1].astChoiceHero[k].stBaseInfo.stCommonInfo.wLevel; heroes[k].Quality = stBattlePlayer.astFighter[1].astChoiceHero[k].stBaseInfo.stCommonInfo.stQuality.wQuality; heroes[k].RecommendPos = actorData.TheHeroOnlyInfo.RecommendStandPos; heroes[k].Ability = (uint)CHeroDataFactory.CreateHeroData(id).combatEft; heroes[k].ConfigId = id; heroes[k].selected = false; heroes[k].BornIndex = -1; } } this.ImpCalc9SlotHeroStandingPosition(ref heroes); for (int m = 0; (m < stBattlePlayer.astFighter[1].astChoiceHero.Length) && (m < 3); m++) { stBattlePlayer.astFighter[1].astChoiceHero[m].stHeroExtral.iHeroPos = heroes[m].BornIndex; } } }
public CMallItem(uint heroID, CMallItem.IconType iconType = CMallItem.IconType.Normal) { this.m_type = CMallItem.ItemType.Hero; this.m_iconType = iconType; this.m_heroData = CHeroDataFactory.CreateHeroData(heroID); if (this.m_heroData != null) { this.m_firstName = this.m_heroData.heroName; this.m_secondName = null; string s_Sprite_Dynamic_Icon_Dir = CUIUtility.s_Sprite_Dynamic_Icon_Dir; if (iconType == CMallItem.IconType.Small) { this.m_useable = CUseableManager.CreateUseable(4, heroID, 1); if (this.m_useable != null) { this.m_iconPath = this.m_useable.GetIconPath(); } else { this.m_iconPath = null; } } else if (this.m_heroData.heroCfgInfo != null) { this.m_iconPath = CUIUtility.s_Sprite_Dynamic_BustHero_Dir + this.m_heroData.heroCfgInfo.szImagePath; } else { this.m_iconPath = null; } ResHeroPromotion resPromotion = this.m_heroData.promotion(); this.m_payInfoSet = CMallSystem.GetPayInfoSetOfGood(this.m_heroData.heroCfgInfo, resPromotion); } else { this.m_useable = null; this.m_firstName = null; this.m_secondName = null; this.m_iconPath = null; this.m_payInfoSet = default(stPayInfoSet); } }
public int Get_HeroMaxHP(uint heroCfgID) { CHeroInfo info2; int totalValue = -1; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo.GetHeroInfo(heroCfgID, out info2, true)) { if (info2 != null) { totalValue = info2.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MAXHP].totalValue; } return(totalValue); } if (masterRoleInfo.IsFreeHero(heroCfgID)) { totalValue = ((CCustomHeroData)CHeroDataFactory.CreateCustomHeroData(heroCfgID)).heroMaxHP; } return(totalValue); }
public int Get_HeroMaxHP(uint heroCfgID) { int result = -1; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CHeroInfo cHeroInfo; if (masterRoleInfo.GetHeroInfo(heroCfgID, out cHeroInfo, true)) { if (cHeroInfo != null) { result = cHeroInfo.mActorValue[RES_FUNCEFT_TYPE.RES_FUNCEFT_MAXHP].totalValue; } } else if (masterRoleInfo.IsFreeHero(heroCfgID)) { result = ((CCustomHeroData)CHeroDataFactory.CreateCustomHeroData(heroCfgID)).heroMaxHP; } return(result); }
public CMallItem(uint heroID, uint skinID, IconType iconType = 0) { this.m_type = ItemType.Skin; this.m_iconType = iconType; this.m_heroData = CHeroDataFactory.CreateHeroData(heroID); this.m_skinData = CSkinInfo.GetHeroSkin(heroID, skinID); if ((this.m_heroData != null) && (this.m_skinData != null)) { this.m_firstName = this.m_heroData.heroName; this.m_secondName = this.m_skinData.szSkinName; if (iconType == IconType.Small) { this.m_useable = CUseableManager.CreateUseable(COM_ITEM_TYPE.COM_OBJTYPE_HEROSKIN, this.m_skinData.dwID, 1); if (this.m_useable != null) { this.m_iconPath = this.m_useable.GetIconPath(); } else { this.m_iconPath = null; } } else { this.m_iconPath = CUIUtility.s_Sprite_Dynamic_BustHero_Dir + this.m_skinData.szSkinPicID; } ResSkinPromotion skinPromotion = CSkinInfo.GetSkinPromotion(heroID, skinID); this.m_payInfoSet = CMallSystem.GetPayInfoSetOfGood(this.m_skinData, skinPromotion); } else { this.m_useable = null; this.m_firstName = null; this.m_secondName = null; this.m_iconPath = null; this.m_payInfoSet = new stPayInfoSet(); } }
public CMallItem(uint heroID, IconType iconType = 0) { this.m_type = ItemType.Hero; this.m_iconType = iconType; this.m_heroData = CHeroDataFactory.CreateHeroData(heroID); if (this.m_heroData != null) { this.m_firstName = this.m_heroData.heroName; this.m_secondName = null; string str = CUIUtility.s_Sprite_Dynamic_Icon_Dir; if (iconType == IconType.Small) { this.m_useable = CUseableManager.CreateUseable(COM_ITEM_TYPE.COM_OBJTYPE_HERO, heroID, 1); if (this.m_useable != null) { this.m_iconPath = this.m_useable.GetIconPath(); } else { this.m_iconPath = null; } } else { this.m_iconPath = CUIUtility.s_Sprite_Dynamic_BustHero_Dir + this.m_heroData.imagePath; } ResHeroPromotion resPromotion = this.m_heroData.promotion(); this.m_payInfoSet = CMallSystem.GetPayInfoSetOfGood(this.m_heroData.heroCfgInfo, resPromotion); } else { this.m_useable = null; this.m_firstName = null; this.m_secondName = null; this.m_iconPath = null; this.m_payInfoSet = new stPayInfoSet(); } }
public CMallItem(uint heroID, uint skinID, CMallItem.IconType iconType = CMallItem.IconType.Normal) { this.m_type = CMallItem.ItemType.Skin; this.m_iconType = iconType; this.m_heroData = CHeroDataFactory.CreateHeroData(heroID); this.m_skinData = CSkinInfo.GetHeroSkin(heroID, skinID); if (this.m_heroData != null && this.m_skinData != null) { this.m_firstName = this.m_heroData.heroName; this.m_secondName = this.m_skinData.szSkinName; if (iconType == CMallItem.IconType.Small) { this.m_useable = CUseableManager.CreateUseable(7, this.m_skinData.dwID, 1); if (this.m_useable != null) { this.m_iconPath = this.m_useable.GetIconPath(); } else { this.m_iconPath = null; } } else { this.m_iconPath = CUIUtility.s_Sprite_Dynamic_BustHero_Dir + this.m_skinData.szSkinPicID; } ResSkinPromotion skinPromotion = CSkinInfo.GetSkinPromotion(heroID, skinID); this.m_payInfoSet = CMallSystem.GetPayInfoSetOfGood(this.m_skinData, skinPromotion); } else { this.m_useable = null; this.m_firstName = null; this.m_secondName = null; this.m_iconPath = null; this.m_payInfoSet = default(stPayInfoSet); } }
private void Calc9SlotHeroStandingPosition(CSDT_BATTLE_PLAYER_BRIEF stBattlePlayer) { PlayerBuilder.Calc9SlotHeroData[] array = new PlayerBuilder.Calc9SlotHeroData[3]; IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .get_instance().GetActorDataProvider(GameActorDataProviderType.StaticLobbyDataProvider); ActorStaticData actorStaticData = default(ActorStaticData); ActorMeta actorMeta = default(ActorMeta); if (Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo() == null) { return; } int num = 0; while (num < stBattlePlayer.astFighter[0].astChoiceHero.Length && num < 3) { uint dwHeroID = stBattlePlayer.astFighter[0].astChoiceHero[num].stBaseInfo.stCommonInfo.dwHeroID; if (dwHeroID != 0u) { actorMeta.ConfigId = (int)dwHeroID; actorDataProvider.GetActorStaticData(ref actorMeta, ref actorStaticData); array[num].Level = 1u; array[num].Quality = 1; array[num].RecommendPos = actorStaticData.TheHeroOnlyInfo.RecommendStandPos; array[num].Ability = (uint)CHeroDataFactory.CreateHeroData(dwHeroID).combatEft; array[num].ConfigId = dwHeroID; array[num].selected = false; array[num].BornIndex = -1; } num++; } this.ImpCalc9SlotHeroStandingPosition(ref array); int num2 = 0; while (num2 < stBattlePlayer.astFighter[0].astChoiceHero.Length && num2 < 3) { stBattlePlayer.astFighter[0].astChoiceHero[num2].stHeroExtral.iHeroPos = array[num2].BornIndex; num2++; } int num3 = 0; while (num3 < stBattlePlayer.astFighter[1].astChoiceHero.Length && num3 < 3) { uint dwHeroID2 = stBattlePlayer.astFighter[1].astChoiceHero[num3].stBaseInfo.stCommonInfo.dwHeroID; if (dwHeroID2 != 0u) { actorMeta.ConfigId = (int)dwHeroID2; actorDataProvider.GetActorStaticData(ref actorMeta, ref actorStaticData); array[num3].Level = (uint)stBattlePlayer.astFighter[1].astChoiceHero[num3].stBaseInfo.stCommonInfo.wLevel; array[num3].Quality = (int)stBattlePlayer.astFighter[1].astChoiceHero[num3].stBaseInfo.stCommonInfo.stQuality.wQuality; array[num3].RecommendPos = actorStaticData.TheHeroOnlyInfo.RecommendStandPos; array[num3].Ability = (uint)CHeroDataFactory.CreateHeroData(dwHeroID2).combatEft; array[num3].ConfigId = dwHeroID2; array[num3].selected = false; array[num3].BornIndex = -1; } num3++; } this.ImpCalc9SlotHeroStandingPosition(ref array); int num4 = 0; while (num4 < stBattlePlayer.astFighter[1].astChoiceHero.Length && num4 < 3) { stBattlePlayer.astFighter[1].astChoiceHero[num4].stHeroExtral.iHeroPos = array[num4].BornIndex; num4++; } }
private void Draw(CMail mail) { if (this.form != null) { Text componetInChild = Utility.GetComponetInChild <Text>(this.form.gameObject, "Panel/msgContainer/name"); Text componetInChild2 = Utility.GetComponetInChild <Text>(this.form.gameObject, "Panel/msgContainer/msg"); Text componetInChild3 = Utility.GetComponetInChild <Text>(this.form.gameObject, "Panel/msgContainer/from"); if (componetInChild == null || componetInChild2 == null || componetInChild3 == null) { return; } CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo == null) { DebugHelper.Assert(false, "Master Role Info is null"); return; } componetInChild.set_text(string.Format(Singleton <CTextManager> .GetInstance().GetText("Mail_Ask_For_Myself"), masterRoleInfo.Name)); componetInChild2.set_text(mail.mailContent); componetInChild3.set_text(string.Format(Singleton <CTextManager> .GetInstance().GetText("Mail_Ask_For_From", new string[] { mail.from }), new object[0])); if (mail.accessUseable == null || mail.accessUseable.Count == 0) { return; } CUseable cUseable = mail.accessUseable[0]; switch (cUseable.m_type) { case COM_ITEM_TYPE.COM_OBJTYPE_HERO: { ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(cUseable.m_baseID); DebugHelper.Assert(dataByKey != null); if (dataByKey != null) { Text component = this.form.transform.Find("Panel/Title/titleText").GetComponent <Text>(); component.set_text(Singleton <CTextManager> .GetInstance().GetText("Ask_For_Hero_Friend_Title")); Text component2 = this.form.transform.Find("Panel/skinBgImage/skinNameText").GetComponent <Text>(); component2.set_text(StringHelper.UTF8BytesToString(ref dataByKey.szName)); Image component3 = this.form.transform.Find("Panel/skinBgImage/skinIconImage").GetComponent <Image>(); component3.SetSprite(CUIUtility.s_Sprite_Dynamic_BustHero_Dir + StringHelper.UTF8BytesToString(ref dataByKey.szImagePath), this.form, false, true, true, true); this.form.transform.Find("Panel/Panel_Prop").gameObject.CustomSetActive(false); Transform transform = this.form.transform.Find("Panel/skinPricePanel"); Transform costIcon = transform.Find("costImage"); CHeroSkinBuyManager.SetPayCostIcon(this.form, costIcon, enPayType.DianQuan); Transform costTypeText = transform.Find("costTypeText"); CHeroSkinBuyManager.SetPayCostTypeText(costTypeText, enPayType.DianQuan); uint payValue = 0u; IHeroData heroData = CHeroDataFactory.CreateHeroData(cUseable.m_baseID); ResHeroPromotion resPromotion = heroData.promotion(); stPayInfoSet payInfoSetOfGood = CMallSystem.GetPayInfoSetOfGood(dataByKey, resPromotion); for (int i = 0; i < payInfoSetOfGood.m_payInfoCount; i++) { if (payInfoSetOfGood.m_payInfos[i].m_payType == enPayType.Diamond || payInfoSetOfGood.m_payInfos[i].m_payType == enPayType.DianQuan || payInfoSetOfGood.m_payInfos[i].m_payType == enPayType.DiamondAndDianQuan) { payValue = payInfoSetOfGood.m_payInfos[i].m_payValue; break; } } Transform transform2 = transform.Find("costPanel"); if (transform2) { Transform currentPrice = transform2.Find("costText"); CHeroSkinBuyManager.SetPayCurrentPrice(currentPrice, payValue); } } break; } case COM_ITEM_TYPE.COM_OBJTYPE_HEROSKIN: { uint heroId = 0u; uint skinId = 0u; CSkinInfo.ResolveHeroSkin(cUseable.m_baseID, out heroId, out skinId); ResHeroSkin heroSkin = CSkinInfo.GetHeroSkin(cUseable.m_baseID); DebugHelper.Assert(heroSkin != null, "heroSkin is null"); if (heroSkin != null) { Text component4 = this.form.transform.Find("Panel/Title/titleText").GetComponent <Text>(); component4.set_text(Singleton <CTextManager> .GetInstance().GetText("Ask_For_Skin_Friend_Title")); Image component5 = this.form.transform.Find("Panel/skinBgImage/skinIconImage").GetComponent <Image>(); string prefabPath = string.Format("{0}{1}", CUIUtility.s_Sprite_Dynamic_BustHero_Dir, StringHelper.UTF8BytesToString(ref heroSkin.szSkinPicID)); component5.SetSprite(prefabPath, this.form, false, true, true, true); Text component6 = this.form.transform.Find("Panel/skinBgImage/skinNameText").GetComponent <Text>(); component6.set_text(StringHelper.UTF8BytesToString(ref heroSkin.szSkinName)); this.form.transform.Find("Panel/Panel_Prop").gameObject.CustomSetActive(true); GameObject gameObject = this.form.transform.Find("Panel/Panel_Prop/List_Prop").gameObject; CSkinInfo.GetHeroSkinProp(heroId, skinId, ref CHeroInfoSystem2.s_propArr, ref CHeroInfoSystem2.s_propPctArr, ref CHeroInfoSystem2.s_propImgArr); CUICommonSystem.SetListProp(gameObject, ref CHeroInfoSystem2.s_propArr, ref CHeroInfoSystem2.s_propPctArr); Transform transform3 = this.form.transform.Find("Panel/skinPricePanel"); Transform costIcon2 = transform3.Find("costImage"); CHeroSkinBuyManager.SetPayCostIcon(this.form, costIcon2, enPayType.DianQuan); Transform costTypeText2 = transform3.Find("costTypeText"); CHeroSkinBuyManager.SetPayCostTypeText(costTypeText2, enPayType.DianQuan); uint payValue2 = 0u; stPayInfoSet skinPayInfoSet = CSkinInfo.GetSkinPayInfoSet(heroId, skinId); for (int j = 0; j < skinPayInfoSet.m_payInfoCount; j++) { if (skinPayInfoSet.m_payInfos[j].m_payType == enPayType.Diamond || skinPayInfoSet.m_payInfos[j].m_payType == enPayType.DianQuan || skinPayInfoSet.m_payInfos[j].m_payType == enPayType.DiamondAndDianQuan) { payValue2 = skinPayInfoSet.m_payInfos[j].m_payValue; break; } } Transform transform4 = transform3.Find("costPanel"); if (transform4 != null) { Transform currentPrice2 = transform4.Find("costText"); CHeroSkinBuyManager.SetPayCurrentPrice(currentPrice2, payValue2); } } break; } } } }
public static bool CheckTriggerCondition(uint id, NewbieGuideTriggerConditionItem condition) { bool flag6; uint dwCfgID; switch (condition.wType) { case 1: return(CheckCompleteNewbieDungeonCondition(condition)); case 2: return(CheckCompleteNormalDungeonCondition(condition)); case 3: return(CheckOwnCompleteNewbieGuideCondition(condition)); case 4: return(CheckUnCompleteNewbieGuideCondition(condition)); case 5: return(false); case 6: return(false); case 7: AvailableTask = null; return(Singleton <CTaskSys> .instance.model.AnyTaskOfState(COM_TASK_STATE.COM_TASK_HAVEDONE, RES_TASK_TYPE.RES_TASKTYPE_MAIN, out AvailableTask)); case 8: return(false); case 9: return(false); case 10: return(false); case 11: { uint num3 = condition.Param[0]; uint num4 = condition.Param[1]; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo == null) { return(false); } uint haveHeroCount = (uint)masterRoleInfo.GetHaveHeroCount(false); switch (num4) { case 0: return(haveHeroCount == num3); case 1: return(haveHeroCount > num3); case 2: return(haveHeroCount < num3); } DebugHelper.Assert(false); return(false); } case 12: { flag6 = false; dwCfgID = condition.Param[0]; RES_SHOPBUY_COINTYPE coinType = (condition.Param[1] != 0) ? RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_PVPCOIN : RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_COUPONS; CRoleInfo info5 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (info5 != null) { if (dwCfgID <= 0) { ListView <ResHeroCfgInfo> .Enumerator enumerator = CHeroDataFactory.GetAllHeroList().GetEnumerator(); while (enumerator.MoveNext()) { dwCfgID = enumerator.Current.dwCfgID; flag6 |= info5.CheckHeroBuyable(dwCfgID, coinType); if (flag6) { break; } } break; } flag6 = info5.CheckHeroBuyable(dwCfgID, coinType); } break; } case 13: return(Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 14: return(((Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().GoldCoin >= condition.Param[0]) && Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SHOP)) && Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 15: return(CAdventureSys.IsChapterFullStar(Singleton <CAdventureSys> .GetInstance().currentChapter, Singleton <CAdventureSys> .GetInstance().currentDifficulty)); case 0x10: { uint num7 = condition.Param[0]; if (num7 <= 0) { return(false); } if (!Singleton <CAdventureSys> .GetInstance().IsLevelFinished((int)num7)) { return(false); } return(CAdventureSys.IsLevelFullStar((int)num7)); } case 0x11: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPMODE)); case 0x12: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().GetUseableContainer(enCONTAINER_TYPE.ITEM).GetUseableStackCount(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, CAdventureSys.MOPUP_TICKET_ID) >= condition.Param[0]); case 0x13: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZONGSHILIAN)); case 20: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZHUANGZIHUANMENG)); case 0x15: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG)); case 0x16: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ELITELEVEL)); case 0x17: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_UNION)); case 0x18: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SYMBOL)); case 0x19: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_BLACKSHOP) && Singleton <CShopSystem> .GetInstance().IsMysteryShopAvailable()); case 0x1a: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPCOINSHOP)); case 0x1b: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_TASK)); case 0x1c: return(false); case 30: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(0x1a)); case 0x1f: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(0x1b)); case 0x20: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(0x15)); case 0x21: { CRoleInfo info7 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return((info7 != null) && (info7.GoldCoin >= condition.Param[0])); } case 0x22: return(false); case 0x24: return(false); case 0x25: { bool flag = false; uint baseID = condition.Param[0]; CRoleInfo info = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (info != null) { CUseableContainer useableContainer = info.GetUseableContainer(enCONTAINER_TYPE.ITEM); if ((useableContainer != null) && (useableContainer.GetUseableByBaseID(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, baseID) != null)) { flag = true; } } AvailableItemId = !flag ? 0 : baseID; return(flag); } case 0x26: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(9)); case 0x27: { uint num2 = condition.Param[0]; CRoleInfo info3 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return((info3 != null) && (info3.GetHaveHeroCount(false) >= num2)); } case 40: { CRoleInfo info2 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (info2 == null) { return(false); } return(info2.m_symbolInfo.CheckAnyWearSymbol(out AvailableSymbolPos, out AvailableSymbolId)); } case 0x29: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ARENA)); case 0x2a: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(0x2c)); case 0x2b: { uint key = condition.Param[0]; ResSymbolInfo dataByKey = GameDataMgr.symbolInfoDatabin.GetDataByKey(key); if (dataByKey == null) { goto Label_057D; } CRoleInfo info9 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (info9 == null) { goto Label_057D; } return(info9.SymbolCoin >= dataByKey.dwMakeCoin); } case 0x2c: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ADDEDSKILL)); case 0x2d: return(CAddSkillSys.IsSelSkillAvailable()); case 0x2e: return(CheckOwnCompleteNewWeakGuideCondition(condition)); case 0x2f: return(CheckOwnCompleteNewWeakGuideCondition(condition)); case 0x30: if (Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().m_symbolInfo.m_pageCount <= 1) { return(false); } return(true); case 0x31: { LevelRewardData levelRewardData = Singleton <CTaskSys> .instance.model.GetLevelRewardData((int)condition.Param[0]); if (levelRewardData == null) { return(false); } return(!levelRewardData.m_bHasGetReward); } case 50: if (Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().m_freeDrawInfo[4].dwLeftFreeDrawCnt <= 0) { return(false); } return(true); case 0x33: return(Singleton <CFunctionUnlockSys> .instance.FucIsUnlock((RES_SPECIALFUNCUNLOCK_TYPE)condition.Param[0])); case 0x34: { CRoleInfo info12 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (((info12 == null) || !info12.IsOldPlayer()) || info12.IsOldPlayerGuided()) { return(false); } return(true); } case 0x35: { SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); if (curLvelContext == null) { return(false); } return(curLvelContext.IsMultilModeWithWarmBattle()); } case 0x36: { bool flag12 = false; CRoleInfo info13 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (info13 != null) { flag12 = info13.IsGuidedStateSet(0x62); } return(flag12); } case 0x37: return(CBattleGuideManager.EnableHeroVictoryTips()); case 0x38: return(Singleton <GameReplayModule> .GetInstance().HasRecord); default: return(false); } if (flag6) { AvailableHeroId = dwCfgID; } return(flag6); Label_057D: return(false); }
public static bool CheckTriggerCondition(uint id, NewbieGuideTriggerConditionItem condition) { switch (condition.wType) { case 1: return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNewbieDungeonCondition(condition)); case 2: return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNormalDungeonCondition(condition)); case 3: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewbieGuideCondition(condition)); case 4: return(NewbieGuideCheckTriggerConditionUtil.CheckUnCompleteNewbieGuideCondition(condition)); case 5: return(false); case 6: return(false); case 7: NewbieGuideCheckTriggerConditionUtil.AvailableTask = null; return(Singleton <CTaskSys> .instance.model.AnyTaskOfState(COM_TASK_STATE.COM_TASK_HAVEDONE, RES_TASK_TYPE.RES_TASKTYPE_MAIN, out NewbieGuideCheckTriggerConditionUtil.AvailableTask)); case 8: return(false); case 9: return(false); case 10: return(false); case 11: { uint num = condition.Param[0]; uint num2 = condition.Param[1]; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo != null) { uint haveHeroCount = (uint)masterRoleInfo.GetHaveHeroCount(false); bool result = false; switch (num2) { case 0u: result = (haveHeroCount == num); break; case 1u: result = (haveHeroCount > num); break; case 2u: result = (haveHeroCount < num); break; default: DebugHelper.Assert(false); break; } return(result); } return(false); } case 12: { bool flag = false; uint num3 = condition.Param[0]; RES_SHOPBUY_COINTYPE coinType = (condition.Param[1] == 0u) ? RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_COUPONS : RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_PVPCOIN; CRoleInfo masterRoleInfo2 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo2 != null) { if (num3 > 0u) { flag = masterRoleInfo2.CheckHeroBuyable(num3, coinType); } else { ListView <ResHeroCfgInfo> .Enumerator enumerator = CHeroDataFactory.GetAllHeroList().GetEnumerator(); while (enumerator.MoveNext()) { num3 = enumerator.Current.dwCfgID; flag |= masterRoleInfo2.CheckHeroBuyable(num3, coinType); if (flag) { break; } } } } if (flag) { NewbieGuideCheckTriggerConditionUtil.AvailableHeroId = num3; } return(flag); } case 13: return(Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 14: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().GoldCoin >= condition.Param[0] && Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SHOP) && Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 15: return(CAdventureSys.IsChapterFullStar(Singleton <CAdventureSys> .GetInstance().currentChapter, Singleton <CAdventureSys> .GetInstance().currentDifficulty)); case 16: { uint num4 = condition.Param[0]; return(num4 > 0u && Singleton <CAdventureSys> .GetInstance().IsLevelFinished((int)num4) && CAdventureSys.IsLevelFullStar((int)num4)); } case 17: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPMODE)); case 18: { CRoleInfo masterRoleInfo3 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CUseableContainer useableContainer = masterRoleInfo3.GetUseableContainer(enCONTAINER_TYPE.ITEM); int useableStackCount = useableContainer.GetUseableStackCount(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, CAdventureSys.MOPUP_TICKET_ID); return((long)useableStackCount >= (long)((ulong)condition.Param[0])); } case 19: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZONGSHILIAN)); case 20: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZHUANGZIHUANMENG)); case 21: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG)); case 22: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ELITELEVEL)); case 23: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_UNION)); case 24: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SYMBOL)); case 25: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_BLACKSHOP) && Singleton <CShopSystem> .GetInstance().IsMysteryShopAvailable()); case 26: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPCOINSHOP)); case 27: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_TASK)); case 28: return(false); case 30: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(26)); case 31: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(27)); case 32: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(21)); case 33: { CRoleInfo masterRoleInfo4 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo4 != null && masterRoleInfo4.GoldCoin >= condition.Param[0]); } case 34: return(false); case 36: return(false); case 37: { bool flag2 = false; uint num5 = condition.Param[0]; CRoleInfo masterRoleInfo5 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo5 != null) { CUseableContainer useableContainer2 = masterRoleInfo5.GetUseableContainer(enCONTAINER_TYPE.ITEM); if (useableContainer2 != null) { CUseable useableByBaseID = useableContainer2.GetUseableByBaseID(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, num5); if (useableByBaseID != null) { flag2 = true; } } } NewbieGuideCheckTriggerConditionUtil.AvailableItemId = (flag2 ? num5 : 0u); return(flag2); } case 38: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(9)); case 39: { uint num6 = condition.Param[0]; CRoleInfo masterRoleInfo6 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo6 != null && (long)masterRoleInfo6.GetHaveHeroCount(false) >= (long)((ulong)num6)); } case 40: { CRoleInfo masterRoleInfo7 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo7 != null) { masterRoleInfo7.m_symbolInfo.CheckAnyWearSymbol(out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos, out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolId, 2); return((long)NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos == (long)((ulong)condition.Param[0])); } return(false); } case 41: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ARENA)); case 42: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(44)); case 43: { uint num7 = condition.Param[0]; CRoleInfo masterRoleInfo8 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo8 != null && masterRoleInfo8.SymbolCoin >= num7); } case 44: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ADDEDSKILL)); case 45: return(CAddSkillSys.IsSelSkillAvailable()); case 46: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition)); case 47: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition)); case 48: { CRoleInfo masterRoleInfo9 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo9.m_symbolInfo.m_pageCount > 1); } case 49: { LevelRewardData levelRewardData = Singleton <CTaskSys> .instance.model.GetLevelRewardData((int)condition.Param[0]); return(levelRewardData != null && !levelRewardData.m_bHasGetReward); } case 50: { CRoleInfo masterRoleInfo10 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo10.m_freeDrawInfo[4].dwLeftFreeDrawCnt > 0); } case 51: return(Singleton <CFunctionUnlockSys> .instance.FucIsUnlock((RES_SPECIALFUNCUNLOCK_TYPE)condition.Param[0])); case 52: { CRoleInfo masterRoleInfo11 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo11 != null && masterRoleInfo11.IsOldPlayer() && !masterRoleInfo11.IsOldPlayerGuided()); } case 53: { SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); return(curLvelContext != null && curLvelContext.IsMultilModeWithWarmBattle()); } case 54: { bool result2 = false; CRoleInfo masterRoleInfo12 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo12 != null) { result2 = masterRoleInfo12.IsGuidedStateSet(98); } return(result2); } case 55: return(CBattleGuideManager.EnableHeroVictoryTips()); case 56: return(Singleton <GameReplayModule> .GetInstance().HasRecord&& Singleton <WatchController> .GetInstance().FightOverJust); case 57: { SLevelContext curLvelContext2 = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); return(curLvelContext2 != null && (long)curLvelContext2.m_mapID == (long)((ulong)condition.Param[0])); } case 58: { CSkillButtonManager cSkillButtonManager = (Singleton <CBattleSystem> .GetInstance().FightForm == null) ? null : Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager; SkillSlotType skillSlotType; return(cSkillButtonManager != null && cSkillButtonManager.HasMapSlectTargetSkill(out skillSlotType) && skillSlotType == SkillSlotType.SLOT_SKILL_5); } } return(false); }
public static bool CheckTriggerCondition(uint id, NewbieGuideTriggerConditionItem condition) { switch (condition.wType) { case 1: return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNewbieDungeonCondition(condition)); case 2: return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNormalDungeonCondition(condition)); case 3: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewbieGuideCondition(condition)); case 4: return(NewbieGuideCheckTriggerConditionUtil.CheckUnCompleteNewbieGuideCondition(condition)); case 5: return(false); case 6: return(false); case 7: NewbieGuideCheckTriggerConditionUtil.AvailableTask = null; return(Singleton <CTaskSys> .get_instance().model.AnyTaskOfState(1, 0, out NewbieGuideCheckTriggerConditionUtil.AvailableTask)); case 8: return(false); case 9: return(false); case 10: return(false); case 11: { uint num = condition.Param[0]; uint num2 = condition.Param[1]; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo != null) { uint haveHeroCount = (uint)masterRoleInfo.GetHaveHeroCount(false); bool result = false; switch (num2) { case 0u: result = (haveHeroCount == num); break; case 1u: result = (haveHeroCount > num); break; case 2u: result = (haveHeroCount < num); break; default: DebugHelper.Assert(false); break; } return(result); } return(false); } case 12: { bool flag = false; uint num3 = condition.Param[0]; RES_SHOPBUY_COINTYPE coinType = (condition.Param[1] != 0u) ? 4 : 2; CRoleInfo masterRoleInfo2 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo2 != null) { if (num3 > 0u) { flag = masterRoleInfo2.CheckHeroBuyable(num3, coinType); } else { ListView <ResHeroCfgInfo> .Enumerator enumerator = CHeroDataFactory.GetAllHeroList().GetEnumerator(); while (enumerator.MoveNext()) { num3 = enumerator.get_Current().dwCfgID; flag |= masterRoleInfo2.CheckHeroBuyable(num3, coinType); if (flag) { break; } } } } if (flag) { NewbieGuideCheckTriggerConditionUtil.AvailableHeroId = num3; } return(flag); } case 13: return(Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 14: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().GoldCoin >= condition.Param[0] && Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(12) && Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited()); case 15: return(CAdventureSys.IsChapterFullStar(Singleton <CAdventureSys> .GetInstance().currentChapter, Singleton <CAdventureSys> .GetInstance().currentDifficulty)); case 16: { uint num4 = condition.Param[0]; return(num4 > 0u && Singleton <CAdventureSys> .GetInstance().IsLevelFinished((int)num4) && CAdventureSys.IsLevelFullStar((int)num4)); } case 17: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(10)); case 18: { CRoleInfo masterRoleInfo3 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CUseableContainer useableContainer = masterRoleInfo3.GetUseableContainer(enCONTAINER_TYPE.ITEM); int useableStackCount = useableContainer.GetUseableStackCount(2, CAdventureSys.MOPUP_TICKET_ID); return((long)useableStackCount >= (long)((ulong)condition.Param[0])); } case 19: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(3)); case 20: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(5)); case 21: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(4)); case 22: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(6)); case 23: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(13)); case 24: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(8)); case 25: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(11) && Singleton <CShopSystem> .GetInstance().IsMysteryShopAvailable()); case 26: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(15)); case 27: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(16)); case 28: return(false); case 30: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(26)); case 31: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(27)); case 32: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(21)); case 33: { CRoleInfo masterRoleInfo4 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo4 != null && masterRoleInfo4.GoldCoin >= condition.Param[0]); } case 34: return(false); case 36: return(false); case 37: { bool flag2 = false; uint num5 = condition.Param[0]; CRoleInfo masterRoleInfo5 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo5 != null) { CUseableContainer useableContainer2 = masterRoleInfo5.GetUseableContainer(enCONTAINER_TYPE.ITEM); if (useableContainer2 != null) { CUseable useableByBaseID = useableContainer2.GetUseableByBaseID(2, num5); if (useableByBaseID != null) { flag2 = true; } } } NewbieGuideCheckTriggerConditionUtil.AvailableItemId = ((!flag2) ? 0u : num5); return(flag2); } case 38: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(9)); case 39: { uint num6 = condition.Param[0]; CRoleInfo masterRoleInfo6 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo6 != null && (long)masterRoleInfo6.GetHaveHeroCount(false) >= (long)((ulong)num6)); } case 40: { CRoleInfo masterRoleInfo7 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo7 != null) { masterRoleInfo7.m_symbolInfo.CheckAnyWearSymbol(out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos, out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolId, 2); return((long)NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos == (long)((ulong)condition.Param[0])); } return(false); } case 41: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(9)); case 42: return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(44)); case 43: { uint num7 = condition.Param[0]; CRoleInfo masterRoleInfo8 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo8 != null && masterRoleInfo8.SymbolCoin >= num7); } case 44: return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(22)); case 45: return(CAddSkillSys.IsSelSkillAvailable()); case 46: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition)); case 47: return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition)); case 48: { CRoleInfo masterRoleInfo9 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo9.m_symbolInfo.m_pageCount > 1); } case 49: { LevelRewardData levelRewardData = Singleton <CTaskSys> .get_instance().model.GetLevelRewardData((int)condition.Param[0]); return(levelRewardData != null && !levelRewardData.m_bHasGetReward); } case 50: { CRoleInfo masterRoleInfo10 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo10.m_freeDrawInfo[4].dwLeftFreeDrawCnt > 0); } case 51: return(Singleton <CFunctionUnlockSys> .get_instance().FucIsUnlock(condition.Param[0])); case 52: { CRoleInfo masterRoleInfo11 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); return(masterRoleInfo11 != null && masterRoleInfo11.IsOldPlayer() && !masterRoleInfo11.IsOldPlayerGuided()); } case 53: { SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); return(curLvelContext != null && curLvelContext.IsMultilModeWithWarmBattle()); } case 54: { bool result2 = false; CRoleInfo masterRoleInfo12 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo12 != null) { result2 = masterRoleInfo12.IsGuidedStateSet(98); } return(result2); } case 55: return(CBattleGuideManager.EnableHeroVictoryTips()); case 56: return(Singleton <GameReplayModule> .GetInstance().HasRecord); case 57: { SLevelContext curLvelContext2 = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); return(curLvelContext2 != null && (long)curLvelContext2.m_mapID == (long)((ulong)condition.Param[0])); } } return(false); }