🧪 test(gvg): 添加gvg激战期debug接口
This commit is contained in:
@@ -2003,6 +2003,9 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case "guild.gvgProduceHandler.debugAdjustHarvest":
|
||||
case "guild.gvgFightHandler.debugSetMyRank":
|
||||
case "guild.gvgFightHandler.debugSetMyOpp":
|
||||
case "guild.gvgBattleHandler.debugAddRobots":
|
||||
case "guild.gvgBattleHandler.debugMoveRobots":
|
||||
case "guild.gvgBattleHandler.debugStopMoveRobot":
|
||||
|
||||
{
|
||||
if (msg.magicWord !== DEBUG_MAGIC_WORD || !isDevelopEnv()) return false;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user