|
|
@@ -547,6 +547,7 @@ function createElfObj(human, elfId, pos)
|
|
|
local itemCfg = ItemConfig[elfId]
|
|
|
local elfObj = {}
|
|
|
elfObj.id = elfId
|
|
|
+ elfObj.type = CombatDefine.COMBAT_OBJ_TYPE99
|
|
|
elfObj.isElf = true
|
|
|
elfObj.head = itemCfg and itemCfg.icon or 0
|
|
|
elfObj.body = itemCfg and itemCfg.icon or 0
|
|
|
@@ -1083,6 +1084,12 @@ function fontFinishResultNet(net, obj)
|
|
|
net.body = heroConfig and heroConfig.body.."" or ""
|
|
|
net.head = heroConfig and heroConfig.head or 0
|
|
|
net.grade = heroConfig and heroConfig.grade or 0
|
|
|
+ elseif obj.type == CombatDefine.COMBAT_OBJ_TYPE99 then
|
|
|
+ local itemCfg = ItemConfig[obj.id]
|
|
|
+ net.name = itemCfg and itemCfg.name or ""
|
|
|
+ net.body = itemCfg and itemCfg.icon.."" or ""
|
|
|
+ net.head = itemCfg and itemCfg.icon or 0
|
|
|
+ net.grade = 0
|
|
|
else
|
|
|
net.name = monsterConfig and monsterConfig.name or ""
|
|
|
net.body = monsterConfig and monsterConfig.body.."" or ""
|
|
|
@@ -1153,6 +1160,17 @@ function fontCombatFinish(dataNet, combatInfo, isQuick)
|
|
|
fontFinishResultNet(net, pet)
|
|
|
end
|
|
|
end
|
|
|
+
|
|
|
+ -- 出战精灵
|
|
|
+ for _,pos in ipairs(CombatDefine.SIDE2ELFPOS[0]) do
|
|
|
+ local elfObj = combatInfo.elfList and combatInfo.elfList[pos]
|
|
|
+ if elfObj then
|
|
|
+ dataNet.result[0] = dataNet.result[0] + 1
|
|
|
+ local net = dataNet.result[dataNet.result[0]]
|
|
|
+ fontFinishResultNet(net, elfObj)
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
-- 奖励
|
|
|
local rewardItem = combatInfo.rewardItem
|
|
|
local len = 0
|