道具使用:添加返回

This commit is contained in:
luying
2022-08-09 16:41:13 +08:00
parent ff5b28af7a
commit 5d9f59f4b3
3 changed files with 10 additions and 32 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import { gameData } from '../pubUtils/data';
import { DicWar } from '../pubUtils/dictionary/DicWar';
import { RewardInter } from '../pubUtils/interface';
import { getZeroPointD } from '../pubUtils/timeUtil';
import { combineItemAndJewels } from './role/util';
import { combineItems } from './role/util';
export class WarReward {
private roleId: string;
@@ -154,7 +154,7 @@ export class WarReward {
let rewards = this.rewards;
if(combine) {
rewards = combineItemAndJewels(rewards);
rewards = combineItems(rewards);
}
await addItems(this.roleId, this.roleName, this.sid, rewards, getReasonByWarType(this.warInfo.warType));
return rewards;