From 149ac8e721631e06a1c46bed221711ea38cef78c Mon Sep 17 00:00:00 2001 From: Marek Moeckel Date: Fri, 7 Apr 2006 10:57:10 +0000 Subject: [PATCH] added console commands: "cheats", "cmdlist", "numberofthebeast" SVN-Revision: 3255 --- src/game_session.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/game_session.cpp b/src/game_session.cpp index 7a124f51c..1112cad8b 100644 --- a/src/game_session.cpp +++ b/src/game_session.cpp @@ -342,6 +342,17 @@ GameSession::consoleCommand(std::string command) return true; } + //TODO: Build command list automatically + if (command == "cmdlist") { + msg_info("foo, cmdlist, cheats, whereami, camera"); + return true; + } + //TODO: remove (or at least hide) this before release + if (command == "cheats") { + msg_info("grow, fire, ice, lifeup, numberofthebeast, lifedown, grease,\ninvincible, mortal, shrink, kill, gotoend, flip, finish"); + return true; + } + if (currentsector == 0) return false; Player& tux = *currentsector->player; @@ -363,6 +374,10 @@ GameSession::consoleCommand(std::string command) player_status->lives++; return true; } + if (command == "numberofthebeast") { + player_status->lives = 55; + return true; + } if (command == "lifedown") { player_status->lives--; return true; -- 2.11.0