少年修仙传客户端代码仓库
client_Hale
2018-10-16 6d2eb0fafc15c7defc18ed7d5038dbe3512fc64c
3732 子 【优化】Npc读取待机动作2号 / 【前端】场景Npc读取待机动作2号
2个文件已修改
15 ■■■■■ 已修改文件
Fight/Actor/State/SMB/Idle_0.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/GeneralConfig/GeneralConfig.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/State/SMB/Idle_0.cs
@@ -23,6 +23,19 @@
                m_LastDanceTime = Time.time;
            }
        }
        else
        {
            GA_NpcFunc _funcNpc = owner as GA_NpcFunc;
            if (_funcNpc != null && _funcNpc.NpcConfig.NPCType == 0)
            {
                if (Time.time - m_LastDanceTime > GeneralConfig.Instance.FuncNpcDanceInterval)
                {
                    _funcNpc.Play(GAStaticDefine.State_Dance);
                    m_LastDanceTime = Time.time;
                }
            }
        }
    }
    protected override void OnExit(GActor owner, Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
System/GeneralConfig/GeneralConfig.cs
@@ -38,6 +38,7 @@
    public List<int> SpecialNpcIDs { get; private set; }
    public Dictionary<int, int> wingEquipLimits { get; private set; }
    public float PetDanceInterval { get; private set; }
    public float FuncNpcDanceInterval { get; private set; }
    public float audioScaleWhenFullScreenOn { get; private set; }
    public int ruinsTranscriptMapId { get; private set; }
    public List<int> GuardianPickUpID { get; private set; }
@@ -179,6 +180,7 @@
            FarawayNpcDist = GetFloat("ConversationDistanc");
            SpecialNpcIDs = new List<int>(GetIntArray("SpecialCollectNpcs", 1));
            PetDanceInterval = GetInt("PetDanceInterval") * Constants.F_GAMMA;
            FuncNpcDanceInterval = GetInt("PetDanceInterval",2) * Constants.F_GAMMA;
            ruinsTranscriptMapId = GetInt("SpRewardMapID");
            EarlierGetTreasure = new List<int>(GetIntArray("EarlierGetTreasure"));
            BossSound = GetInt("BossSound");