镇念塔:派遣奖励不叠在一起
This commit is contained in:
@@ -218,8 +218,9 @@ export async function addItems(roleId: string, roleName: string, sid: string, go
|
|||||||
gold: role.gold, coin: role.coin, ap: addAp
|
gold: role.gold, coin: role.coin, ap: addAp
|
||||||
}), uids);
|
}), uids);
|
||||||
if(gold.length > 0) {
|
if(gold.length > 0) {
|
||||||
let goldCount = gold.reduce((pre, cur) => { return pre + cur.count }, 0)
|
gold.forEach(({ count }) => {
|
||||||
showItems.push(getGoldObject(goldCount));
|
showItems.push(getGoldObject(count));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if(coin > 0) {
|
if(coin > 0) {
|
||||||
showItems.push(getCoinObject(coin));
|
showItems.push(getCoinObject(coin));
|
||||||
|
|||||||
Reference in New Issue
Block a user