镇念塔:派遣奖励不叠在一起
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
|
||||
}), uids);
|
||||
if(gold.length > 0) {
|
||||
let goldCount = gold.reduce((pre, cur) => { return pre + cur.count }, 0)
|
||||
showItems.push(getGoldObject(goldCount));
|
||||
gold.forEach(({ count }) => {
|
||||
showItems.push(getGoldObject(count));
|
||||
});
|
||||
}
|
||||
if(coin > 0) {
|
||||
showItems.push(getCoinObject(coin));
|
||||
|
||||
Reference in New Issue
Block a user