少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-23 2986ac4bf5512c6da4beeec2fedc4e3d96817582
System/MainInterfacePanel/PlayerBuffDatas.cs
@@ -182,7 +182,6 @@
                break;
            case PlayerDataRefresh.LV:
                AddoperationStartEvent();
                WorldLVBuff();
                break;
        }
@@ -367,20 +366,8 @@
        {
            return;
        }
        if (getWorldLV != 0 && worldExpRate>0)//删除世界等级
        {
            if (PlayerDatas.Instance.baseData.LV >= getWorldLV)
            {
                if (_BuffDic.ContainsKey(20047))
                {
                    _BuffDic.Remove(20047);
                    if (Even_ObjDelBuff != null)
                    {
                        Even_ObjDelBuff();
                    }
                }
                return;
            }
        if (getWorldLV != 0 && worldExpRate>0)//添加世界等级buff
        {
            var skillconfig = Config.Instance.Get<SkillConfig>(20047);
            if (_BuffDic.ContainsKey(20047))
            {
@@ -405,8 +392,19 @@
            if (Even_ObjAddBuf != null)
            {
                Even_ObjAddBuf();
            }
        }
        if (worldExpRate<=0)//删除世界等级Buff
        {
            if (_BuffDic.ContainsKey(20047))
            {
                _BuffDic.Remove(20047);
                if (Even_ObjDelBuff != null)
                {
                    Even_ObjDelBuff();
                }
            }
            return;
        }
    }