扫荡奖励添加哪一次掉落的

This commit is contained in:
luying
2020-10-19 17:52:34 +08:00
parent 0da6b7c169
commit 47a5843bdb
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,7 @@ export class WarReward {
condition: Map<number, boolean>;
warInfo: any;
isSuccess: boolean;
rewards: Array<{type: number, gid: number, count: number}>;
rewards: Array<{type: number, gid: number, count: number, times: number}>;
constructor(roleId: string, roleName: string, battleId: number, isSuccess: boolean) {
this.roleId = roleId;
@@ -97,6 +97,7 @@ export class WarReward {
this.handleConditionReward(num);
await this.handleRandomReward(num);
console.log(this.rewards)
let returnGoods = await handleReward(this.roleId, this.roleName, this.rewards);
return returnGoods;
}