[client] update LevelPopup

This commit is contained in:
2019-04-08 21:45:52 +03:00
parent 13d01293f6
commit 4a4ca463c3
12 changed files with 37 additions and 49 deletions

View File

@@ -27,6 +27,7 @@ class StupidBotControl extends BotControl {
turnRandomTimer = new Timer(2000);
turnRandomTimer.run = calcTurn;
}
shot(1000 + Math.round(Math.random() * 4000));
}
override public function stop():Void {
@@ -37,12 +38,12 @@ class StupidBotControl extends BotControl {
}
}
override private function _shot():Void {
super._shot();
shot(1000 + Math.round(Math.random() * 4000));
}
private function calcTurn():Void {
if (turnTimer != null) {
turnTimer.stop();
turnTimer = null;
}
// ToDo:
if (handler == null || tank == null) return;
var eagle:Eagle = BotHelper.findEagle(playerId.team, handler);
if (eagle != null && Math.random() > 0.5) {