diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-04 17:18:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-04 17:18:50 +0000 |
commit | ce0b547ab6cdaf6870b7753efe207511e10b0226 (patch) | |
tree | 775cf9ed862ad4dcc52d0447646dd5572acc0f4a /src | |
parent | 666638571080a4ce076810fbd263db229d69c995 (diff) |
Added 'wingmen combat' toggle.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/base/game.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index da7e6db..201b18c 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -722,8 +722,19 @@ void Game::func_wingmen(core::Player *player, const std::string &args) } } } + } else if (str.compare("combat") == 0) { + if (ship->has_autopilot_flag(Ship::AutoPilotCombat)) { + ship->unset_autopilot_flag(Ship::AutoPilotCombat); + player->send("Wingmen going into formation!"); + } else { + ship->set_autopilot_flag(Ship::AutoPilotCombat); + player->send("Wingmen entering combat!"); + } + + } else { player->send("Usage: wingmen add [faction label] [amount]"); + player->send(" wingmen combat"); } } |