合成:修复藏宝图合成消耗

This commit is contained in:
luying
2021-07-29 17:12:05 +08:00
parent cac0c2aeae
commit b4dcfbbc21

View File

@@ -974,11 +974,9 @@ export class EquipHandler {
if (!dicTargetInfo) return resResult(STATUS.WRONG_PARMS);
if (dicTargetInfo.quality != dicCompose.targetQuality) return resResult(STATUS.COM_BLUEPRT_QUALITY_ERROR);
// 添加寻宝币
original.concat(dicCompose.coinNum);
// 消耗藏宝图和寻宝币
let costResult = await handleCost(roleId, sid, original);
let costResult = await handleCost(roleId, sid, [...original, ...dicCompose.coinNum]);
if (!costResult) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH);
const reward = [{ id: target, count: 1 }];