|
|
@@ -235,19 +235,9 @@ function sendHeroBagList(human)
|
|
|
print("[sendHeroBagList] 不存在对应的配置 nHeroID = "..nHeroID)
|
|
|
end
|
|
|
end
|
|
|
- cnt = cnt + 1
|
|
|
- HeroGrid.makeHeroSimple(msgRet.list[cnt], heroGrid, index, human)
|
|
|
- if cnt >= HeroDefine.PAGE_HERO_COUNT then
|
|
|
- msgRet.list[0] = cnt
|
|
|
- Msg.send(msgRet, human.fd)
|
|
|
- cnt = 0
|
|
|
- end
|
|
|
-
|
|
|
- list[#list + 1] = {heroGrid.uuid or "", heroGrid.zhandouli or 0}
|
|
|
- end
|
|
|
|
|
|
--英雄皮肤数据异常的临时处理
|
|
|
- if heroGrid and heroGrid.skinOn then
|
|
|
+ if heroGrid.skinOn then
|
|
|
local skinCfg = SkinExcel.skin[heroGrid.skinOn]
|
|
|
if skinCfg then
|
|
|
if skinCfg.heroId ~= heroGrid.id then
|
|
|
@@ -258,7 +248,28 @@ function sendHeroBagList(human)
|
|
|
heroGrid.body = heroCfg and heroCfg.body or 0
|
|
|
end
|
|
|
end
|
|
|
+ elseif heroGrid.head then
|
|
|
+ local heroCfg = HeroExcel.hero[heroGrid.id]
|
|
|
+ if heroCfg and heroGrid.head ~= heroCfg.head then
|
|
|
+ heroGrid.head = heroCfg.head
|
|
|
+ end
|
|
|
+
|
|
|
+ if heroCfg and heroGrid.body ~= heroCfg.body then
|
|
|
+ heroGrid.body = heroCfg.body
|
|
|
+ end
|
|
|
end
|
|
|
+
|
|
|
+ cnt = cnt + 1
|
|
|
+ HeroGrid.makeHeroSimple(msgRet.list[cnt], heroGrid, index, human)
|
|
|
+
|
|
|
+ if cnt >= HeroDefine.PAGE_HERO_COUNT then
|
|
|
+ msgRet.list[0] = cnt
|
|
|
+ Msg.send(msgRet, human.fd)
|
|
|
+ cnt = 0
|
|
|
+ end
|
|
|
+ list[#list + 1] = {heroGrid.uuid or "", heroGrid.zhandouli or 0}
|
|
|
+ end
|
|
|
+
|
|
|
end
|
|
|
if cnt > 0 then
|
|
|
msgRet.list[0] = cnt
|