🧪 test(gvg): 添加gvg激战期debug接口

This commit is contained in:
luying
2023-03-06 20:22:06 +08:00
parent 10df130ae5
commit 457baa6d08
4 changed files with 115 additions and 4 deletions

View File

@@ -154,7 +154,11 @@ class GVGBattleData {
// 投石车
public findCatapult() {
let teamCodes = this.roleToTeam.get(GVG_CATAPULT)||[];
return this.findTeamsByRole(GVG_CATAPULT);
}
public findTeamsByRole(roleId: string) {
let teamCodes = this.roleToTeam.get(roleId)||[];
return teamCodes.map(teamCode => this.teams.get(teamCode));
}