diff options
author | Bendegúz Nagy | 2016-08-26 22:51:17 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 50f3cfa625e338276e8a4d38836227877ab93e3a (patch) | |
tree | 1b19f1bf9c5ae2fdff42a3e9dca14ce6849241dd /engines/dm/dm.cpp | |
parent | 36395c5b268e80d01ceda2924a69c0e0d293f220 (diff) | |
download | scummvm-rg350-50f3cfa625e338276e8a4d38836227877ab93e3a.tar.gz scummvm-rg350-50f3cfa625e338276e8a4d38836227877ab93e3a.tar.bz2 scummvm-rg350-50f3cfa625e338276e8a4d38836227877ab93e3a.zip |
DM: Add debug command godmode
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r-- | engines/dm/dm.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 2f52b07ff6..8cd5771302 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -367,8 +367,21 @@ void DMEngine::f2_gameloop() { while (true) { if (_engineShouldQuit) return; + + // DEBUG CODE + for (int16 i = 0; i < _championMan->_g305_partyChampionCount; ++i) { + Champion &champ = _championMan->_gK71_champions[i]; + if (_console->_debugGodmodeHP) + champ._currHealth = champ._maxHealth; + if (_console->_debugGodmodeMana) + champ._currMana = champ._maxMana; + if (_console->_debugGodmodeStamina) + champ._currStamina = champ._maxStamina; + } for (;;) { + + if (_g327_newPartyMapIndex != kM1_mapIndexNone) { f3_processNewPartyMap(_g327_newPartyMapIndex); _moveSens->f267_getMoveResult(Thing::_party, kM1_MapXNotOnASquare, 0, _dungeonMan->_g306_partyMapX, _dungeonMan->_g307_partyMapY); |