public static void OnChangeLv(CCreature obj, int newV, int oldV) { if (newV == oldV) { return; } // 逻辑层 obj.UpdateProp(); int maxHp = obj.GetPropNum(eCreatureProp.Hp); // 主角升级才回满血 //if (obj.IsMaster()) //{ // obj.SetPropNum(eCreatureProp.CurHp, maxHp); //} // 表现层 obj.UpdateVO_ShowHeadLv(); obj.UpdateVO_ShowHeadHp(); obj.UpdateUI_Lv(); if (oldV != 0 && obj.IsMaster()) { if (obj.m_vCreature != null) { CEffectMgr.Create(21160, obj.m_vCreature.GetEnt(), "origin"); } } }