|
|
@@ -23,6 +23,7 @@ SUMMON_SUBTYPE_HERO = 1 -- 英雄
|
|
|
SUMMON_SUBTYPE_EQUIP = 2 -- 装备
|
|
|
SUMMON_SUBTYPE_SKIN = 3 -- 皮肤
|
|
|
SUMMON_SUBTYPE_TALISAM = 4 --秘宝
|
|
|
+SUMMON_SUBTYPE_RELIC = 5 --遗物
|
|
|
|
|
|
-- 查询
|
|
|
function query(human, itemID)
|
|
|
@@ -67,7 +68,8 @@ function summon(human, itemID, itemUseCnt)
|
|
|
if itemConfig.get[2] ~= SUMMON_SUBTYPE_HERO
|
|
|
and itemConfig.get[2] ~= SUMMON_SUBTYPE_EQUIP
|
|
|
and itemConfig.get[2] ~= SUMMON_SUBTYPE_SKIN
|
|
|
- and itemConfig.get[2] ~= SUMMON_SUBTYPE_TALISAM then
|
|
|
+ and itemConfig.get[2] ~= SUMMON_SUBTYPE_TALISAM
|
|
|
+ and itemConfig.get[2] ~= SUMMON_SUBTYPE_RELIC then
|
|
|
return
|
|
|
end
|
|
|
|
|
|
@@ -850,13 +852,13 @@ end
|
|
|
|
|
|
|
|
|
function CG_SUIPIAN_SYNTHESIS(human, synthesisType)
|
|
|
- if not synthesisType or synthesisType < SUMMON_SUBTYPE_HERO or synthesisType > SUMMON_SUBTYPE_TALISAM then
|
|
|
+ if not synthesisType or synthesisType < SUMMON_SUBTYPE_HERO or synthesisType > SUMMON_SUBTYPE_RELIC then
|
|
|
print("[CG_SUIPIAN_SYNTHESIS] 合成类型错误 synthesisType = "..synthesisType)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- --目前只有两种碎片能合成
|
|
|
- if synthesisType ~= SUMMON_SUBTYPE_HERO and synthesisType ~= SUMMON_SUBTYPE_TALISAM then
|
|
|
+ --目前只有三种碎片能合成
|
|
|
+ if synthesisType ~= SUMMON_SUBTYPE_HERO and synthesisType ~= SUMMON_SUBTYPE_TALISAM and synthesisType ~= SUMMON_SUBTYPE_RELIC then
|
|
|
print("[CG_SUIPIAN_SYNTHESIS] 合成类型错误 synthesisType = "..synthesisType)
|
|
|
return
|
|
|
end
|
|
|
@@ -888,6 +890,8 @@ function CG_SUIPIAN_SYNTHESIS(human, synthesisType)
|
|
|
targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN
|
|
|
elseif synthesisType == SUMMON_SUBTYPE_TALISAM then
|
|
|
targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN_TALISMAM
|
|
|
+ elseif synthesisType == SUMMON_SUBTYPE_RELIC then
|
|
|
+ targetSubType = ItemDefine.ITEM_SUBTYPE_SUIPIAN_RELIC
|
|
|
end
|
|
|
|
|
|
for itemID,itemCnt in pairs(human.db.bag) do
|