装备:修复替换装备bug

This commit is contained in:
luying
2021-04-26 17:01:11 +08:00
parent 14efd9aed2
commit 4d5db3b851
2 changed files with 1 additions and 5 deletions
@@ -74,6 +74,7 @@ export async function handleCost(roleId: string, sid: string, goods: Array<ItemI
function sortConsumes(goods: Array<ItemInter>, bags: Array<ItemInter>, currencysMap: any, equips: Array<number>) {
for (let good of goods) {
if(good.count == 0) continue;
let goodInfo = getGoodById(good.id);
let { type, table } = ITID.get(goodInfo.itid);