| | |
| | | foreach (var key in BackpackDic.Keys)
|
| | | {
|
| | | ItemModel ItemM = BackpackDic[key];
|
| | | if (ItemM.chinItemModel.Type == 111 && ItemM.chinItemModel.ExpireTime == 0 && ItemM.chinItemModel.JobLimit/100 == job)
|
| | | if (ItemM.chinItemModel.Type == 111 && ItemM.chinItemModel.ExpireTime == 0 && ItemM.chinItemModel.JobLimit / 100 == job)
|
| | | {
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.KnapSackFunc1Type2);//跳到背包
|
| | | return;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | private void StateDetermination()//状态判定
|
| | | {
|
| | |
| | |
|
| | | private void OnClickDeliveryButton()//传送符
|
| | | {
|
| | | //--------------特殊任务的传送逻辑
|
| | | if (mainModel.TaskId_Skill1.Contains(Task_ID))
|
| | | {
|
| | | var mapModel = ModelCenter.Instance.GetModel<MapModel>();
|
| | | var point = mapModel.GetRecommendHangPoint();
|
| | | var config = Config.Instance.Get<MapEventPointConfig>(point);
|
| | |
|
| | | var flyBootOwn = ModelCenter.Instance.GetModel<PlayerPackModel>().GetItemCountByID(PackType.rptItem, GeneralConfig.Instance.flyBootItemId);
|
| | | var isVipFreeTransfer = ModelCenter.Instance.GetModel<VipModel>().GetVipPrivilegeCnt(VipPrivilegeType.FreeTransfer) > 0;
|
| | | if (isVipFreeTransfer || flyBootOwn > 0)
|
| | | {
|
| | | MapTransferUtility.Instance.MissionFlyTo(config.MapID, config.NPCID);
|
| | | }
|
| | | else
|
| | | {
|
| | | MapTransferUtility.Instance.MoveToNPC(config.NPCID);
|
| | | }
|
| | | return;
|
| | | }
|
| | | mainModel.FlyShoseTaskID = Task_ID;
|
| | | string _FlyID = Config.Instance.Get<FuncConfigConfig>("TransportPay").Numerical1;
|
| | | int itemNumber = playerPack.GetItemCountByID(PackType.rptItem, int.Parse(_FlyID));//获取飞鞋的数量
|
| | |
| | | int NeedMoney = (int)UIHelper.GetMoneyCnt(1) + (int)UIHelper.GetMoneyCnt(2);
|
| | | if (NeedMoney >= 1)
|
| | | {
|
| | |
|
| | |
|
| | | m_ContentText.ExcuteHref(1);
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | public void FlyingShoes_Task(int TaskID)
|
| | | {
|
| | | Task_ID = TaskID;
|
| | |
| | | {
|
| | | string Str_C = string.Format(Language.Get("PassiveSkillTask5"), mainModel.TaskLv);
|
| | | m_ContentText.text = Str_C;
|
| | | } |
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | DebugEx.LogError("任务表格PyTaskInfo配置缺失");
|
| | | return;
|
| | | }
|
| | | } |
| | | }
|
| | | bool isOPenTransferButton = HrefAnalysis.Inst.ContainsKey(taskinfo.show_writing, "flynpc");
|
| | | if (isOPenTransferButton && !IsKaJiBool)
|
| | | {
|