| | |
| | | #endif
|
| | |
|
| | | // 跨服竞技场不检测反击逻辑
|
| | | if(CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | if(CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | |
|
| | | string _chkKey = (PlayerDatas.Instance.baseData.MapID * 100 + PlayerDatas.Instance.baseData.dungeonLineId).ToString();
|
| | |
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | if (Snxxz.UI.CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | _chkKey = (PlayerDatas.Instance.baseData.MapID * 100).ToString();
|
| | | }
|
| | |
| | | // 未到达路点则寻路至路点
|
| | | if (_chkDistSqrt > .25f)
|
| | | {
|
| | | _hero.MoveToPosition(m_PointList[m_Index], 0, CrossServerRewardModel.IsCrossServerOneVsOne());
|
| | | _hero.MoveToPosition(m_PointList[m_Index], 0, Snxxz.UI.CrossServerOneVsOneModel.IsCrossServerOneVsOne());
|
| | | }
|
| | | // 到达路点就去往下一个路点
|
| | | else
|
| | |
| | | #if UNITY_EDITOR
|
| | | && RuntimeLogUtility.s_forceAutoFight
|
| | | #endif
|
| | | && !CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | && !CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | if (!aiHandler.IsAuto() && !BossShowModel.Instance.BossShowing)
|
| | | {
|
| | |
| | | WindowCenter.Instance.Open<AntiAddictionWin>();
|
| | | }
|
| | |
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | if (CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | _hero.SkillMgr.ResetAllCD();
|
| | | }
|
| | |
| | | [XLua.LuaCallCSharp] |
| | | public class CrossServerBossModel : Model |
| | | { |
| | | public const int DATA_MAPID = 0; |
| | | public const int DATA_MAPID =32020; |
| | | public const int REDPOINT = 77002; |
| | | |
| | | List<int> sortedBossIds = new List<int>(); |
| | |
| | |
|
| | | }
|
| | |
|
| | | public static bool IsCrossServerOneVsOne()//是否再跨服副本中
|
| | | {
|
| | | var dungeonModel = ModelCenter.Instance.GetModel<DungeonModel>();
|
| | | var dataMapId = dungeonModel.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
|
| | | return PlayerDatas.Instance.baseData.ExAttr5 == 1 && dataMapId== CrossServerDataMapId;
|
| | | }
|
| | |
|
| | | private void InitData()
|
| | | {
|
| | | CrossServerOneVsOnePKSeason.Instance.InitData();
|
| | |
| | | GameNetSystem.Instance.SendInfo(c103);
|
| | | }
|
| | |
|
| | | public static bool IsCrossServerOneVsOne()//是否再跨服副本中
|
| | | {
|
| | | return PlayerDatas.Instance.baseData.ExAttr5 == 1;
|
| | | }
|
| | |
|
| | | public void ViewCrossPKBillboard(int ZoneID, int SeasonID)//(赛区,赛季) 查看跨服竞技场赛季排行榜
|
| | | {
|
| | | ZoneRankingStruct zoneRanking = new ZoneRankingStruct();
|
| | |
| | | m_Liquid.gameObject.SetActive(false);
|
| | | var dataMapId = model.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
|
| | | m_ExitDungeon.gameObject.SetActive(dataMapId != DemonJarModel.DEMONJAR_MAPID
|
| | | && !CrossServerRewardModel.IsCrossServerOneVsOne());
|
| | | && !CrossServerOneVsOneModel.IsCrossServerOneVsOne());
|
| | | m_ContainerAncient.gameObject.SetActive(dataMapId == 31160);
|
| | | m_BossInfosContainer.gameObject.SetActive(dataMapId == ElderGodAreaModel.ELDERGODAREA_MAPID || dataMapId == BossHomeModel.BOSSHOME_MAPID);
|
| | | m_GatherSoulDungeonBehaviour.gameObject.SetActive(dataMapId == GatherSoulDungeonModel.DUNGEON_MAPID);
|
| | |
| | |
|
| | | static void OnShowBossLifeBar(uint _instanceId, int _npcId, bool _show)
|
| | | {
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne() && _show)
|
| | | if (CrossServerOneVsOneModel.IsCrossServerOneVsOne() && _show)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | |
|
| | | static void OnRefreshBossLifeBar(uint _instanceId, int _npcId, ulong _hp, ulong _maxHp)
|
| | | {
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | if (CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | |
|
| | | static void OnShowPlayerLifeBar(uint _instanceId, bool _show)
|
| | | {
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne() && _show)
|
| | | if (CrossServerOneVsOneModel.IsCrossServerOneVsOne() && _show)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | |
|
| | | static void OnRefreshPlayerLifeBar(uint _instanceId, ulong _hp, ulong _maxHp)
|
| | | {
|
| | | if (CrossServerRewardModel.IsCrossServerOneVsOne())
|
| | | if (CrossServerOneVsOneModel.IsCrossServerOneVsOne())
|
| | | {
|
| | | return;
|
| | | }
|