|
|
@@ -25,13 +25,15 @@ SUMMON_SUBTYPE_EQUIP = 2 -- 装备
|
|
|
SUMMON_SUBTYPE_SKIN = 3 -- 皮肤
|
|
|
SUMMON_SUBTYPE_TALISAM = 4 --秘宝
|
|
|
SUMMON_SUBTYPE_RELIC = 5 --遗物
|
|
|
-SUMMON_SUBTYPE_MAX = 5
|
|
|
+SUMMON_SUBTYPE_ELF = 6 -- 精灵
|
|
|
+
|
|
|
+SUMMON_SUBTYPE_MAX = 6
|
|
|
|
|
|
SUMMON_HECHENG_TYPE_GOOD = 11 --可合成物品
|
|
|
|
|
|
function SuipianLogic_CanHeCheng(nID)
|
|
|
if nID == SUMMON_SUBTYPE_HERO or nID == SUMMON_SUBTYPE_SKIN or SUMMON_SUBTYPE_TALISAM == nID
|
|
|
- or SUMMON_SUBTYPE_RELIC == nID then
|
|
|
+ or SUMMON_SUBTYPE_RELIC == nID or SUMMON_SUBTYPE_ELF == nID then
|
|
|
return true
|
|
|
end
|
|
|
|
|
|
@@ -865,13 +867,16 @@ end
|
|
|
|
|
|
|
|
|
function CG_SUIPIAN_SYNTHESIS(human, synthesisType)
|
|
|
- if not synthesisType or synthesisType < SUMMON_SUBTYPE_HERO or synthesisType > SUMMON_SUBTYPE_RELIC then
|
|
|
+ if not synthesisType or synthesisType < SUMMON_SUBTYPE_HERO or synthesisType > SUMMON_SUBTYPE_ELF then
|
|
|
print("[CG_SUIPIAN_SYNTHESIS] 合成类型错误 synthesisType = "..synthesisType)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
--目前只有三种碎片能合成
|
|
|
- if synthesisType ~= SUMMON_SUBTYPE_HERO and synthesisType ~= SUMMON_SUBTYPE_TALISAM and synthesisType ~= SUMMON_SUBTYPE_RELIC then
|
|
|
+ if synthesisType ~= SUMMON_SUBTYPE_HERO and
|
|
|
+ synthesisType ~= SUMMON_SUBTYPE_TALISAM and
|
|
|
+ synthesisType ~= SUMMON_SUBTYPE_RELIC and
|
|
|
+ synthesisType ~= SUMMON_SUBTYPE_ELF then
|
|
|
print("[CG_SUIPIAN_SYNTHESIS] 合成类型错误 synthesisType = "..synthesisType)
|
|
|
return
|
|
|
end
|
|
|
@@ -905,6 +910,8 @@ function CG_SUIPIAN_SYNTHESIS(human, synthesisType)
|
|
|
targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN_TALISMAM
|
|
|
elseif synthesisType == SUMMON_SUBTYPE_RELIC then
|
|
|
targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN_RELIC
|
|
|
+ elseif synthesisType == SUMMON_SUBTYPE_ELF then
|
|
|
+ targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN_ELF
|
|
|
end
|
|
|
|
|
|
for itemID,itemCnt in pairs(human.db.bag) do
|