合成:修复藏宝图合成消耗
This commit is contained in:
@@ -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 }];
|
||||
|
||||
Reference in New Issue
Block a user