Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | {
|
| | | _attacker.SelectTarget = _mainTarget;
|
| | | }
|
| | | //if (_attacker is GA_NpcSummonFight)
|
| | | // Debug.LogFormat("<color=blue>{0} 攻击 {1}, 伤害: {2}, 血量: {3}, 血量Ex: {4}</color>",
|
| | | // vNetData.ObjID,
|
| | | // vNetData.HurtList[0].ObjID,
|
| | | // vNetData.HurtList[0].HurtHP,
|
| | | // vNetData.HurtList[0].CurHP,
|
| | | // vNetData.HurtList[0].CurHPEx);
|
| | | if (RuntimeLogUtility.s_ShowZZAtkValue && _attacker is GA_NpcFightZZPlayer)
|
| | | {
|
| | | Debug.LogFormat("<color=yellow> 助战:{0} 攻击 NPC:{1}, 伤害: {2}, 剩余血量: {3}, 剩余血量Ex: {4}</color>",
|
| | | vNetData.ObjID,
|
| | | vNetData.HurtList[0].ObjID,
|
| | | vNetData.HurtList[0].HurtHP,
|
| | | vNetData.HurtList[0].CurHP,
|
| | | vNetData.HurtList[0].CurHPEx);
|
| | | }
|
| | | }
|
| | |
|
| | | //if (_attacker is GA_NpcSummonFight)
|
| | |
| | | || target.ServerInstID == PlayerDatas.Instance.PlayerId// 或者受伤的人是自己
|
| | | || (attackType == (int)HurtAttackType.Recovery
|
| | | && (target.ActorType == GameObjType.gotNPC
|
| | | || (PlayerDatas.Instance.hero != null && target == PlayerDatas.Instance.hero.SelectTarget))))// npc和当前选中目标的回血显示
|
| | | || (PlayerDatas.Instance.hero != null && target == PlayerDatas.Instance.hero.SelectTarget)))// npc和当前选中目标的回血显示
|
| | | ||(caster == null && target.ActorInfo.ownerSID == 0))
|
| | | {
|
| | | // 决定显示的类型
|
| | | int _base = (int)PopUpNum.Pattern.PlayerAttack;
|
| | |
| | | WindowCenter.Instance.windowAfterOpenEvent += WindowAfterOpenEvent;
|
| | | StageManager.Instance.onStageLoadFinish += OnStageLoadFinish;
|
| | | PlayerRealmData.OnPlayerCollectEnd += OnPlayerCollectEnd;
|
| | | SnxxzGame.Instance.AddApplicationOutAction(OnApplicationQuit);
|
| | | //SnxxzGame.Instance.AddApplicationOutAction(OnApplicationQuit);
|
| | |
|
| | | var time = bandTime;
|
| | | banTimeArray[0] = time.Year;
|
| | |
| | | {
|
| | | LocalChatHistory.Read();
|
| | | }
|
| | | if (beforeDungeon && !isDungeon)
|
| | | {
|
| | | LocalChatHistory.Save();
|
| | | }
|
| | | //if (beforeDungeon && !isDungeon)
|
| | | //{
|
| | | // LocalChatHistory.Save();
|
| | | //}
|
| | | beforeDungeon = isDungeon;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | private void OnApplicationQuit()
|
| | | {
|
| | | LocalChatHistory.Save();
|
| | | }
|
| | | //private void OnApplicationQuit()
|
| | | //{
|
| | | // LocalChatHistory.Save();
|
| | | //}
|
| | |
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | Clear();
|
| | | }
|
| | |
|
| | | static bool ExistAnyLocalChatHistory()
|
| | |
| | | }
|
| | | break;
|
| | | }
|
| | | Save();
|
| | | }
|
| | |
|
| | | static void Save(ChatInfoType type, string line)
|
| | |
| | | {
|
| | | chatHistory.Remove(type);
|
| | | }
|
| | | Save();
|
| | | }
|
| | |
|
| | | public static void Clear()
|
| | |
| | | {
|
| | | if (config != null)
|
| | | {
|
| | | string extra = string.Empty;
|
| | | if (PlayerDatas.Instance.skill.GetSKillById(config.SkillID) == null)
|
| | | {
|
| | | extra = StringUtility.Contact("<color=#fa0101>", Language.Get("L1113", config.Name, config.Lv), "</color>");
|
| | | }
|
| | | string extra = StringUtility.Contact("<color=#fa0101>", Language.Get("L1113", config.Name, config.Lv), "</color>");
|
| | | var skillConfig = Config.Instance.Get<SkillConfig>(config.SkillID);
|
| | | SkillDetails.ShowSkillDetails(config.SkillID, SkillDetails.SkillSourceType.MagicianSkill,
|
| | | skillConfig != null ? skillConfig.FightPower : 0, config.Name, extra);
|
| | |
| | | public static bool s_LogMoveDistance = false;
|
| | | public static bool s_SkillEffectLog = false;
|
| | | public static bool s_ShowMapLine = false;
|
| | | public static bool s_ShowZZAtkValue = false;
|
| | | public static bool s_forceAutoFight
|
| | | {
|
| | | get
|
| | |
| | | RuntimeLogUtility.s_SkillEffectLog = EditorGUILayout.Toggle("技能效果log输出", RuntimeLogUtility.s_SkillEffectLog);
|
| | | RuntimeLogUtility.s_LogMoveDistance = EditorGUILayout.Toggle("位移距离Log输出", RuntimeLogUtility.s_LogMoveDistance);
|
| | | RuntimeLogUtility.s_ShowMapLine = EditorGUILayout.Toggle("显示地图网格", RuntimeLogUtility.s_ShowMapLine);
|
| | | RuntimeLogUtility.s_ShowZZAtkValue = EditorGUILayout.Toggle("显示助战伤害", RuntimeLogUtility.s_ShowZZAtkValue);
|
| | |
|
| | | _navChkPos = EditorGUILayout.Vector3Field("检测点", _navChkPos);
|
| | |
|