diff options
author | Paul Gilbert | 2017-11-24 14:33:12 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-11-24 14:33:12 -0500 |
commit | 63f1b310bbf63c9e0e0dcc5774206a40bc069d61 (patch) | |
tree | 3218782410dc998d548d4586d6597f8b518a75f3 /engines | |
parent | 8947c45aa7fcb733274fcb329aa6c4da332ab36c (diff) | |
download | scummvm-rg350-63f1b310bbf63c9e0e0dcc5774206a40bc069d61.tar.gz scummvm-rg350-63f1b310bbf63c9e0e0dcc5774206a40bc069d61.tar.bz2 scummvm-rg350-63f1b310bbf63c9e0e0dcc5774206a40bc069d61.zip |
XEEN: Extra comments for trainer level caps
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/scripts.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/town.cpp | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index cb49586d54..2815c617bd 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -370,7 +370,7 @@ bool Scripts::doOpcode(MazeEvent &event) { _event = &event; // Some opcodes use the first parameter as a message - int msgId = event._parameters.empty() ? 0 : event._parameters[0]; + uint msgId = event._parameters.empty() ? 0 : event._parameters[0]; _message = msgId >= map._events._text.size() ? "" : map._events._text[msgId]; // Execute the opcode diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp index ac1fc1edbb..02e0990e96 100644 --- a/engines/xeen/town.cpp +++ b/engines/xeen/town.cpp @@ -432,27 +432,34 @@ Common::String Town::createTownText(Character &ch) { if (_vm->_files->_isDarkCc) { switch (party._mazeId) { case 29: + // Castleview _maxLevel = 30; break; case 31: + // Sandcaster _maxLevel = 50; break; case 37: + // Olympus _maxLevel = 200; break; default: + // Kalindra's Castle _maxLevel = 100; break; } } else { switch (party._mazeId) { case 28: + // Vertigo _maxLevel = 10; break; case 30: + // Rivercity _maxLevel = 15; break; default: + // Newcastle _maxLevel = 20; break; } |