pvp初次挑战次数不增加、镇念塔加速
This commit is contained in:
@@ -215,6 +215,7 @@ export class RaceActivityObject {
|
||||
private woodenHorses: Map<string, WoodenHorse> = new Map(); // 每个军团的木牛流马 guildCode => WoodenHorse
|
||||
private events: Map<string, Event[]> = new Map(); // 每个军团遇到的事件
|
||||
private items: Map<string, RewardInter[]> = new Map(); // 每个玩家的道具 roleId => [{id, count}]
|
||||
private hasSentGuild: string[] = [];
|
||||
|
||||
public getItem(roleId: string) {
|
||||
return this.items.get(roleId)||[]
|
||||
@@ -400,7 +401,10 @@ export class RaceActivityObject {
|
||||
}
|
||||
|
||||
public deleteFromList(guildCode: string) {
|
||||
let index = this.guildList.findIndex(cur => cur.guildCode == guildCode);
|
||||
this.guildList.splice(index, 1);
|
||||
this.hasSentGuild.push(guildCode);
|
||||
}
|
||||
|
||||
public hasSend(guildCode: string) {
|
||||
return this.hasSentGuild.indexOf(guildCode) != -1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user