[client] update LevelPopup
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user