aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/cheat.cpp
blob: 8c0af8d303959356a1e7dd713908ef4b507757ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "backend/print.h"
#include "backend/Dungeon.h"

#include "../GameController.h"

using namespace std;

void GameController::cmd_cheat(string &) {
	Player & player = this->dungeon->get_player();
	player.cheating = !player.cheating;
	lprtf("Cheats staan nu %s.\n", player.cheating ? "aan" : "uit");
}