少年修仙传客户端代码仓库
client_Hale
2019-07-08 affa5ee9c8ee0b6a5560e3f2081215133289a131
382 战斗逻辑修正
5个文件已修改
44 ■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0407_tagNPCDisappear.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GAMgr.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_Hero.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/StageLoad.cs 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Guard/GuardModel.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0407_tagNPCDisappear.cs
@@ -37,7 +37,7 @@
            if (_actor == null)
            {
                DebugEx.LogWarningFormat("H0407_tagNPCDisappear => Npc找不到: {0}", vNetData.NPCID[i]);
                Debug.LogWarningFormat("H0407_tagNPCDisappear => Npc找不到: {0}", vNetData.NPCID[i]);
                continue;
            }
Fight/GameActor/GAMgr.cs
@@ -505,8 +505,7 @@
            for (int i = m_AllList.Count - 1; i >= 0; --i)
            {
                // 玩家控制英雄不清理
                if (m_AllList[i].ServerInstID == PlayerDatas.Instance.PlayerId
                 || m_AllList[i].ServerInstID == PlayerDatas.Instance.PlayerId * 100 + 1)
                if (m_AllList[i].ServerInstID == PlayerDatas.Instance.PlayerId)
                {
                    continue;
                }
@@ -859,12 +858,9 @@
    {
#if UNITY_EDITOR
        string _content = string.Format("GAMgr => 对角色 SID: {0}, CID: {1} 进行了回收", actor.ServerInstID, actor.ClientInstID);
        if (ClientDungeonStageUtility.isClientDungeon)
        if (actor is GActorNpcFight)
        {
            if (actor is GA_NpcClientFightBoss)
            {
                Debug.Log(_content);
            }
            Debug.Log(_content);
        }
        RuntimeLogUtility.AddLog_Green(_content, actor.ServerInstID);
#endif
Fight/GameActor/GA_Hero.cs
@@ -434,12 +434,6 @@
        if (CrossServerUtility.IsCrossServerOneVsOne())
        {
            if (SelectTarget is GActorNpcFight)
            {
                GAMgr.Instance.Release(SelectTarget);
                SelectTarget = null;
            }
            if (LockTarget is GActorNpcFight || LockTarget == null)
            {
                var _list = GAMgr.Instance.GetTypeList(E_ActorClassType.Player);
Fight/Stage/StageLoad.cs
@@ -8,8 +8,10 @@
public class StageLoad : SingletonMonobehaviour<StageLoad>
{
    StageLoadProcessor stageLoadProcessor;
    public float progress {
        get {
    public float progress
    {
        get
        {
            if (stageLoadProcessor != null)
            {
                return stageLoadProcessor.progress;
@@ -22,13 +24,16 @@
    }
    Stage m_CurrentStage;
    public Stage currentStage {
    public Stage currentStage
    {
        get { return m_CurrentStage; }
        set { m_CurrentStage = value; }
    }
    public Stage.E_StageType stageType {
        get {
    public Stage.E_StageType stageType
    {
        get
        {
            return (currentStage != null && currentStage is DungeonStage) ? Stage.E_StageType.Dungeon : Stage.E_StageType.MainCity;
        }
    }
@@ -385,9 +390,12 @@
        m_InitHeroStep = 9;
        if (apperance.guard1 != 0)
        var pack = ModelCenter.Instance.GetModel<PackModel>();
        var equipIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)RoleEquipType.Guard));
        var _itemModel = pack.GetItemByIndex(PackType.Equip, equipIndex);
        if (_itemModel != null && _itemModel.itemInfo != null)
        {
            hero.SwitchGuard((uint)apperance.guard1);
            hero.SwitchGuard((uint)_itemModel.itemId);
        }
        m_InitHeroStep = 10;
System/Guard/GuardModel.cs
@@ -32,7 +32,7 @@
        public void OnPlayerLoginOk()
        {
            SnxxzGame.Instance.StartCoroutine(Co_LoadGuard());
            // SnxxzGame.Instance.StartCoroutine(Co_LoadGuard());
        }
        public override void UnInit()
@@ -48,7 +48,7 @@
            {
                yield break;
            }
            var equipIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)RoleEquipType.Guard));
            var equipIndex = EquipSet.ClientPlaceToServerPlace(new Int2(0, (int)RoleEquipType.Guard));
            var _itemModel = pack.GetItemByIndex(PackType.Equip, equipIndex);
            if (_itemModel != null && _itemModel.itemInfo != null)
            {