|
|
@@ -16,6 +16,8 @@ local ItemExcel = require("excel.item").item
|
|
|
local RoleAttr = require("role.RoleAttr")
|
|
|
local CombatDefine = require("combat.CombatDefine")
|
|
|
local CombatImpl = require("combat.CombatImpl")
|
|
|
+local RoleDefine = require("role.RoleDefine")
|
|
|
+local ObjHuman = require("core.ObjHuman")
|
|
|
|
|
|
local function getBag(human)
|
|
|
if not (human.skinBag and human.heroSkin) then
|
|
|
@@ -464,6 +466,11 @@ function skinUnlock(human,id)
|
|
|
msgRet.list[1].op = 1
|
|
|
msgRet.list[0] = 1
|
|
|
Msg.send(msgRet,human.fd)
|
|
|
+
|
|
|
+ --更新数据
|
|
|
+ RoleAttr.cleanHeroAttrCache(human)
|
|
|
+ RoleAttr.doCalc(human)
|
|
|
+ ObjHuman.sendAttr(human, RoleDefine.ZHANDOULI)
|
|
|
end
|
|
|
|
|
|
-- 计算皮肤属性
|