diff options
-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"); } } |