diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-18 00:20:08 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-18 00:20:08 +0000 |
commit | 1a73a3c7d6e608754b0d183c97e40613abf2dcfd (patch) | |
tree | e17eac23426a60d37d9db4d51572d7266c136fd0 /src/game/base/game.cc | |
parent | 9f1c9694199969e1cd1fb9bf731d0e8ef2d8c184 (diff) |
Changed game::Ship::mass() default value to radius() * 100, updated the specs game function.
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r-- | src/game/base/game.cc | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 37a6341..6da899c 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -455,14 +455,17 @@ void Game::func_specs(core::Player *player, const std::string &args) // enable rcon buffering sys::ConsoleInterface::instance()->set_rcon(true); - con_print << "Current ship specifications for " + ship->name() << std::endl; - con_print << "cargo = " << ship->inventory()->capacity() << std::endl; - con_print << "mass = " << ship->shipmodel()->mass() << std::endl; - con_print << "thrust = " << ship->thrust_force() << std::endl; - con_print << "impulse = " << ship->impulse_force() << std::endl; - con_print << "strafe = " << ship->strafe_force() << std::endl; - con_print << "turn = " << ship->turn_force() << std::endl; - con_print << "roll = " << ship->roll_force() << std::endl; + con_print << "^B" << ship->name() << std::endl; + con_print << "Specifications:" << std::endl; + con_print << " ^Nmass = ^B" << ship->mass() << std::endl; + con_print << " ^Nradius = ^B" << ship->radius() << std::endl; + con_print << " ^Ncargo = ^B" << ship->inventory()->capacity() << std::endl; + con_print << "Engines:" << std::endl; + con_print << " ^Nthrust = ^B" << ship->thrust_force() << std::endl; + con_print << " ^Nimpulse = ^B" << ship->impulse_force() << std::endl; + con_print << " ^Nstrafe = ^B" << ship->strafe_force() << std::endl; + con_print << " ^Nturn = ^B" << ship->turn_force() << std::endl; + con_print << " ^Nroll = ^B" << ship->roll_force() << std::endl; // disable rcon buffering sys::ConsoleInterface::instance()->set_rcon(false); @@ -501,7 +504,7 @@ void Game::func_specs(core::Player *player, const std::string &args) msgstr << "Ship roll force set to " << value; } else { - msgstr << "^WUnknown ship specification '" << str << "'"; + msgstr << "^WUnknown ship engine specification '" << str << "'"; } player->send(msgstr.str()); @@ -914,7 +917,7 @@ Game::Game() : core::Module("Project::OSiRiON", true) func->set_info("cheat functions"); func = core::Func::add("specs", Game::func_specs); - func->set_info("change ship specifications"); + func->set_info("change your current ship's engine specifications"); func = core::Func::add("jump", Game::func_jump); func->set_info("[string] activate or deactivate hyperspace jump drive"); |