扫荡奖励添加哪一次掉落的
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user