宝石bug修复
This commit is contained in:
@@ -528,6 +528,8 @@ export class EquipHandler {
|
|||||||
//检查宝石消耗是否合法TODO
|
//检查宝石消耗是否合法TODO
|
||||||
if (!purchaseGoods)
|
if (!purchaseGoods)
|
||||||
purchaseGoods = [];
|
purchaseGoods = [];
|
||||||
|
if (!consumes)
|
||||||
|
consumes = [];
|
||||||
let needConsumes = checkMaterialEnough(consumes.concat(purchaseGoods), jewel, count);
|
let needConsumes = checkMaterialEnough(consumes.concat(purchaseGoods), jewel, count);
|
||||||
if (!needConsumes)
|
if (!needConsumes)
|
||||||
return resResult(STATUS.WRONG_PARMS);
|
return resResult(STATUS.WRONG_PARMS);
|
||||||
|
|||||||
Reference in New Issue
Block a user