2017-06-14 07:48:45 +02:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "kingdom/kingdom.h"
|
|
|
|
|
|
|
|
namespace Kingdom {
|
|
|
|
|
|
|
|
void KingdomGame::GPLogic1() {
|
2017-07-05 07:58:18 +02:00
|
|
|
switch(_statPlay) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 10:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 1;
|
2017-06-14 07:48:45 +02:00
|
|
|
InitPlay();
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
GPLogic1_SubSP10();
|
|
|
|
break;
|
|
|
|
case 11:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-20 07:12:54 +02:00
|
|
|
case 0x190:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 20;
|
2017-07-06 07:22:27 +02:00
|
|
|
_wizard = false;
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-20 07:12:54 +02:00
|
|
|
break;
|
|
|
|
case 0x191:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 20;
|
2017-07-06 07:22:27 +02:00
|
|
|
_wizard = true;
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-20 07:12:54 +02:00
|
|
|
break;
|
2017-06-20 23:46:06 +02:00
|
|
|
case 0x192:
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-20 23:46:06 +02:00
|
|
|
FadeToBlack2();
|
|
|
|
PlayMovie(1);
|
2017-07-04 01:18:09 +02:00
|
|
|
GPLogic1_SubSP10();
|
2017-06-20 23:46:06 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x193:
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_keyActive = false;
|
2017-07-05 08:08:04 +02:00
|
|
|
_noIFScreen = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(0);
|
2017-07-06 07:22:27 +02:00
|
|
|
while(!_keyActive) {
|
2017-06-14 07:48:45 +02:00
|
|
|
FadeToBlack2();
|
|
|
|
PlayMovie(54);
|
|
|
|
}
|
|
|
|
GPLogic1_SubSP10();
|
|
|
|
break;
|
|
|
|
case 0x194:
|
2017-06-21 00:46:47 +02:00
|
|
|
// CHECKME _QuitFlag = 2;
|
2017-06-14 07:48:45 +02:00
|
|
|
_quit = true;
|
|
|
|
break;
|
|
|
|
case 0x24A:
|
|
|
|
FadeToBlack2();
|
|
|
|
SetMouse();
|
|
|
|
EraseCursor();
|
2017-06-29 00:38:03 +02:00
|
|
|
restoreGame();
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x2F1:
|
|
|
|
EraseCursorAsm();
|
2017-07-06 07:22:27 +02:00
|
|
|
_cursorDrawn = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
FadeToBlack2();
|
|
|
|
PlaySound(0);
|
|
|
|
PlayMovie(54);
|
|
|
|
GPLogic1_SubSP10();
|
|
|
|
break;
|
2017-06-20 12:53:10 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-20 12:53:10 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 20:
|
|
|
|
InitPlay();
|
2017-07-05 08:08:04 +02:00
|
|
|
_noIFScreen = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
EraseCursorAsm();
|
2017-07-06 07:22:27 +02:00
|
|
|
_cursorDrawn = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
FadeToBlack2();
|
|
|
|
ShowPic(106);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 30;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 30:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 3;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[3] == 0) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(177);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[3] = 9;
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_wizard) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 50;
|
|
|
|
_loopFlag = true;
|
2017-07-04 02:08:21 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[4] != 0 && _nodes[6] != 1)
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
else
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
|
|
|
PlayMovie(7);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 31;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(24);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 31:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 32;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(3, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 32:
|
|
|
|
ProcessMapInput(3);
|
|
|
|
break;
|
|
|
|
case 40:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 4;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[4] == 0)
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(62);
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[4] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(8);
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(14);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 41;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 41:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x429:
|
|
|
|
PlayMovie(178);
|
|
|
|
PlayMovie(63);
|
|
|
|
InventoryDel(1);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[4] = 9;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 41;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 42;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(4, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 42:
|
|
|
|
ProcessMapInput(4);
|
|
|
|
break;
|
|
|
|
case 50:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 5;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[5] != 0 && !_resurrect) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_frameStop = 38;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(5);
|
|
|
|
}
|
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[5] == 0)
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(5);
|
|
|
|
|
2017-07-06 07:22:27 +02:00
|
|
|
_resurrect = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(1);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (_spell1 && _spell2 && _spell3) {
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(2);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
|
|
|
_loopFlag = true;
|
2017-07-05 21:39:05 +02:00
|
|
|
} else if (_daelonCntr) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(2);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_nodes[5]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0:
|
|
|
|
InventoryAdd(1);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
PlayMovie(60);
|
|
|
|
InventoryAdd(0);
|
2017-07-05 21:39:05 +02:00
|
|
|
_spell1 = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
PlayMovie(59);
|
|
|
|
InventoryAdd(2);
|
2017-07-05 21:39:05 +02:00
|
|
|
_spell2 = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 3:
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(59);
|
|
|
|
InventoryAdd(3);
|
2017-07-05 21:39:05 +02:00
|
|
|
_spell3 = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
}
|
2017-07-05 21:39:05 +02:00
|
|
|
if (_spell1 && _spell2 && _spell3) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(6);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 7;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(61);
|
|
|
|
PlaySound(1);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell1)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(116);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell2)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(117);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell3)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(118);
|
|
|
|
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 6;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 53;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 51:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x406:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 70;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x40A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 110;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x417:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 30;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 52;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(5, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 52:
|
|
|
|
ProcessMapInput(5);
|
|
|
|
break;
|
|
|
|
case 53:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x428:
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[5] = 1;
|
2017-07-05 21:39:05 +02:00
|
|
|
_daelonCntr = 5;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(6);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 7;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42A:
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[5] = 2;
|
2017-07-05 21:39:05 +02:00
|
|
|
_daelonCntr = 5;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(6);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 7;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42B:
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[5] = 3;
|
2017-07-05 21:39:05 +02:00
|
|
|
_daelonCntr = 5;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(6);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 7;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 51;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_spell1 && !_spell2 && !_spell3 && !_wizard) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(177);
|
|
|
|
DrawLocation();
|
|
|
|
PlayMovie(5);
|
|
|
|
}
|
|
|
|
|
|
|
|
PlaySound(1);
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(61);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell1)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(116);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell2)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(117);
|
|
|
|
|
2017-07-05 21:39:05 +02:00
|
|
|
if (!_spell3)
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(118);
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 60:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 6;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[4] == 0) {
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(9);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
PlayMovie(64);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 200;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 70:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 7;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[7] == 0) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(11);
|
|
|
|
PlaySound(2);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(13);
|
|
|
|
PlaySound(43);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 71;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 71:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x42F:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[7] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
DisplayIcon(137);
|
|
|
|
} else {
|
|
|
|
PlayMovie(12);
|
|
|
|
PlaySound(30);
|
|
|
|
InventoryAdd(7);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[7] = 9;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 72;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(7, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 72:
|
|
|
|
ProcessMapInput(7);
|
|
|
|
break;
|
|
|
|
case 80:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 8;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[8] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(24);
|
|
|
|
PlaySound(3);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 13;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[8] = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(14);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
SetATimer();
|
|
|
|
}
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 81;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 81:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x2F1:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(15);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x429:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[8]) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(18);
|
|
|
|
PlaySound(3);
|
|
|
|
InventoryDel(1);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 13;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[8] = 1;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42A:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[8]) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(18);
|
|
|
|
PlaySound(3);
|
|
|
|
InventoryDel(2);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 13;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[8] = 1;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42C:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[8]) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(16);
|
|
|
|
PlaySound(3);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[8] = 9;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 13;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42D:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[8]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(17);
|
|
|
|
InventoryDel(5);
|
|
|
|
PlaySound(3);
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 13;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[8] = 1;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 82;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(8, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x453:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[8] == 1) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 80;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 160;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 82:
|
|
|
|
ProcessMapInput(8);
|
|
|
|
break;
|
|
|
|
case 90:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodeNum == 18 && _nodes[17] == 0) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 170;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_nextNode = 90;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[9] == 0) {
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = false;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[9] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_wizard)
|
2017-07-05 21:39:05 +02:00
|
|
|
_frameStop = 90;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
|
|
|
PlayMovie(19);
|
|
|
|
PlaySound(15);
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_wizard)
|
2017-06-14 07:48:45 +02:00
|
|
|
ShowPic(109);
|
|
|
|
else
|
|
|
|
ShowPic(319);
|
|
|
|
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 91;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 91:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 92;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(9, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_wizard)
|
2017-07-05 21:39:05 +02:00
|
|
|
_frameStop = 90;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
|
|
|
if (!_wizard)
|
2017-06-14 07:48:45 +02:00
|
|
|
ShowPic(109);
|
|
|
|
else
|
|
|
|
ShowPic(319);
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 92:
|
|
|
|
ProcessMapInput(9);
|
|
|
|
break;
|
|
|
|
case 100:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodeNum == 18 && _nodes[17] == 0) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 170;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_nextNode = 100;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[10] == 1)
|
|
|
|
_nodes[10] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[10] != 9) {
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = false;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[10] = 1;
|
2017-07-06 07:22:27 +02:00
|
|
|
} else if (_wizard)
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
|
|
|
PlayMovie(20);
|
|
|
|
PlaySound(41);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 101;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 101:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 102;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(10, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 102:
|
|
|
|
ProcessMapInput(10);
|
|
|
|
break;
|
|
|
|
case 110:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 11;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[22] == 0)
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
else
|
2017-07-05 08:08:04 +02:00
|
|
|
_sound = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(21);
|
|
|
|
PlaySound(42);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 111;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 111:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 112;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 1;
|
|
|
|
ProcessMap(11, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
PlayMovie(21);
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 112:
|
|
|
|
ProcessMapInput(11);
|
|
|
|
break;
|
|
|
|
case 120:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 12;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[12] == 0) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(22);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 14;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
PlayMovie(25);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 15;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(3);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 121;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 121:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch (_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x445:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 150;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x446:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 80;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x437:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[12] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
DisplayIcon(145);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else
|
|
|
|
GPLogic1_SubSP121();
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-06 07:22:27 +02:00
|
|
|
if (_pMovie == 023)
|
2017-06-14 07:48:45 +02:00
|
|
|
GPLogic1_SubSP121();
|
|
|
|
else {
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(3);
|
|
|
|
}
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 130:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 13;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(4);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 140:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 14;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
if (Wound()) {
|
|
|
|
PlayMovie(26);
|
|
|
|
PlaySound(35);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 141;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(27);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 141:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 142;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(14, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 142:
|
|
|
|
ProcessMapInput(14);
|
|
|
|
break;
|
|
|
|
case 150:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 15;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
|
|
|
PlayMovie(28);
|
|
|
|
PlaySound(3);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 16;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 151;
|
2017-07-06 07:22:27 +02:00
|
|
|
_eye = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 151:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x445:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 80;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 160:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 16;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(29);
|
|
|
|
PlaySound(3);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 85;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 161;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 161:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x198: {
|
|
|
|
FadeToBlack1();
|
|
|
|
DrawRect(4, 17, 228, 161, 0);
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = true;
|
|
|
|
int oldPMovie = _pMovie;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(208);
|
2017-07-06 07:22:27 +02:00
|
|
|
_pMovie = oldPMovie;
|
2017-07-05 21:39:05 +02:00
|
|
|
_asMode = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
RestoreAS();
|
2017-07-06 07:22:27 +02:00
|
|
|
_help = true;
|
|
|
|
_eye = true;
|
2017-07-04 01:18:09 +02:00
|
|
|
_Pouch = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 85;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x199: {
|
|
|
|
FadeToBlack1();
|
|
|
|
DrawRect(4, 17, 228, 161, 0);
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = true;
|
|
|
|
int oldPMovie = _pMovie;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(207);
|
2017-07-06 07:22:27 +02:00
|
|
|
_pMovie = oldPMovie;
|
2017-07-05 21:39:05 +02:00
|
|
|
_asMode = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
RestoreAS();
|
2017-07-06 07:22:27 +02:00
|
|
|
_help = true;
|
|
|
|
_eye = true;
|
2017-07-04 01:18:09 +02:00
|
|
|
_Pouch = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 85;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x19A:
|
|
|
|
FShowPic(110);
|
2017-07-05 21:39:05 +02:00
|
|
|
_bTimer = 190;
|
2017-06-14 07:48:45 +02:00
|
|
|
ReadMouse();
|
2017-07-06 07:26:47 +02:00
|
|
|
while(_bTimer != 0 && _mouseButton == 0) {
|
2017-07-03 08:13:10 +02:00
|
|
|
checkTimers();
|
2017-06-14 07:48:45 +02:00
|
|
|
RefreshSound();
|
|
|
|
ReadMouse();
|
|
|
|
}
|
|
|
|
FShowPic(105);
|
|
|
|
break;
|
|
|
|
case 0x42E:
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[15] = 1;
|
|
|
|
_nodes[16] = 1;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 120;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 162;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(16, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-06 07:22:27 +02:00
|
|
|
if (_pMovie > 206)
|
2017-06-14 07:48:45 +02:00
|
|
|
SaveAS();
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
|
|
|
if (_pMovie > 206)
|
2017-06-14 07:48:45 +02:00
|
|
|
RestoreAS();
|
|
|
|
break;
|
|
|
|
case 0x444:
|
|
|
|
SaveAS();
|
2017-07-06 07:22:27 +02:00
|
|
|
_help = false;
|
|
|
|
_eye = false;
|
2017-07-04 01:18:09 +02:00
|
|
|
_Pouch = false;
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
FShowPic(105);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 86;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x445:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[16] || !_wizard) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 120;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x446:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 80;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x450:
|
|
|
|
SaveAS();
|
|
|
|
FShowPic(123);
|
2017-07-05 21:39:05 +02:00
|
|
|
_bTimer = 76;
|
2017-06-14 07:48:45 +02:00
|
|
|
ReadMouse();
|
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
while(_bTimer != 0 && _mouseButton == 0) {
|
2017-07-03 08:13:10 +02:00
|
|
|
checkTimers();
|
2017-06-14 07:48:45 +02:00
|
|
|
RefreshSound();
|
|
|
|
ReadMouse();
|
|
|
|
}
|
|
|
|
|
|
|
|
FadeToBlack1();
|
|
|
|
DrawRect(4, 17, 228, 161, 0);
|
|
|
|
RestoreAS();
|
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 162:
|
|
|
|
ProcessMapInput(16);
|
|
|
|
break;
|
|
|
|
case 170:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[17] == 9) {
|
2017-07-06 07:22:27 +02:00
|
|
|
_statPlay = _nextNode;
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 17;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(30);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 171;
|
2017-06-14 07:48:45 +02:00
|
|
|
SetATimer();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 171:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x2F1:
|
|
|
|
EnAll();
|
|
|
|
if (Wound()) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(31);
|
2017-07-06 07:22:27 +02:00
|
|
|
_statPlay = _nextNode;
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(32);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42C:
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_replay = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(34);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
_nodes[17] = 9;
|
2017-07-06 07:22:27 +02:00
|
|
|
_statPlay = _nextNode;
|
2017-07-05 07:58:18 +02:00
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 172:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput == 0x2F1) {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 171;
|
|
|
|
_loopFlag= true;
|
2017-06-14 07:48:45 +02:00
|
|
|
SwitchAS();
|
|
|
|
} else
|
2017-07-06 07:22:27 +02:00
|
|
|
ProcessMapInput(_nodeNum);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 180:
|
2017-07-06 07:26:47 +02:00
|
|
|
if ((_nodeNum != 9 && _nodeNum != 10) || (_nodes[17] != 0)) {
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 18;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (_nodes[18] == 0 || _nodes[18] == 1) {
|
|
|
|
_nodes[18] = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(33);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[18] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(37);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 19;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
PlaySound(16);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 181;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 170;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:22:27 +02:00
|
|
|
_nextNode = 180;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 181:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x407:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 80;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(0);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x429:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[18]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
InventoryDel(1);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[18] = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
PlayMovie(35);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42A:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(2);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42C:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(34);
|
|
|
|
RestoreAS();
|
|
|
|
break;
|
|
|
|
case 0x42F:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[18] == 1) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(36);
|
|
|
|
InventoryDel(7);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[18] = 9;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 19;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 21:39:05 +02:00
|
|
|
_frameStop = 27;
|
2017-07-05 08:08:04 +02:00
|
|
|
_fstFwd = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(36);
|
2017-07-05 08:08:04 +02:00
|
|
|
_fstFwd = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 182;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[18] == 9)
|
2017-07-06 07:22:27 +02:00
|
|
|
ProcessMap(80, _zoom);
|
2017-06-14 07:48:45 +02:00
|
|
|
else
|
2017-07-06 07:22:27 +02:00
|
|
|
ProcessMap(18, _zoom);
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_pMovie == 36 && _nodes[18] != 9) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_frameStop = 27;
|
2017-07-05 08:08:04 +02:00
|
|
|
_fstFwd = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(36);
|
2017-07-05 08:08:04 +02:00
|
|
|
_fstFwd = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 182:
|
|
|
|
ProcessMapInput(18);
|
|
|
|
break;
|
|
|
|
case 190:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 19;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(38);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 200:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 20;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (!_nodes[20]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(39);
|
|
|
|
IncreaseHealth();
|
|
|
|
} else {
|
|
|
|
PlayMovie(40);
|
2017-07-05 21:39:05 +02:00
|
|
|
_tideCntl = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawPic(178);
|
|
|
|
}
|
|
|
|
PlaySound(42);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 201;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 201:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 202;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 0;
|
|
|
|
ProcessMap(20, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 202:
|
|
|
|
ProcessMapInput(20);
|
|
|
|
break;
|
|
|
|
case 210:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 21;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
if (!_wizard)
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[21] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[21] == 9) {
|
|
|
|
_nodes[21] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(209);
|
|
|
|
PlaySound(38);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 81;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(45);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[21] = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
SetATimer();
|
|
|
|
}
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 211;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 211:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x2F1:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(46);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
InventoryDel(0);
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[21] == 9) {
|
2017-06-14 07:48:45 +02:00
|
|
|
SaveAS();
|
|
|
|
PlayMovie(65);
|
|
|
|
RestoreAS();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
PlayMovie(178);
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(46);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42A:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[21]) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(48);
|
|
|
|
InventoryDel(2);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[21] = 1;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(38);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42D:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[21]) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(47);
|
|
|
|
PlaySound(38);
|
|
|
|
InventoryDel(5);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[21] = 9;
|
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 81;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 212;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(21, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-06 07:22:27 +02:00
|
|
|
if (_pMovie == 65) {
|
2017-06-14 07:48:45 +02:00
|
|
|
SaveAS();
|
|
|
|
PlayMovie(65);
|
|
|
|
RestoreAS();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x441:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 220;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x442:
|
2017-07-05 21:39:05 +02:00
|
|
|
if (_tsIconOnly) {
|
|
|
|
_aTimer = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
EnAll();
|
|
|
|
PlayMovie(49);
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = false;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(38);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x448:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 140;
|
|
|
|
_loopFlag = true;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 212:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput == 0x2F1) {
|
|
|
|
_userInput = 0;
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 0;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 211;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
SwitchAS();
|
|
|
|
}
|
|
|
|
ProcessMapInput(21);
|
|
|
|
break;
|
|
|
|
case 220:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 22;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (!_nodes[22]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(41);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 82;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(44);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
PlaySound(38);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 221;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 221:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x428:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(0);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x429:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(1);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42A:
|
|
|
|
PlayMovie(42);
|
|
|
|
PlaySound(30);
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[22]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
InventoryDel(2);
|
|
|
|
InventoryAdd(4);
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x42C:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (!_nodes[22]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(43);
|
|
|
|
PlaySound(34);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
PlayMovie(42);
|
|
|
|
PlaySound(30);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 222;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(22, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 222:
|
|
|
|
ProcessMapInput(22);
|
|
|
|
break;
|
|
|
|
case 230:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 23;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
DsAll();
|
|
|
|
PlayMovie(50);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 991;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 240:
|
2017-07-06 07:22:27 +02:00
|
|
|
_nodeNum = 24;
|
2017-06-14 07:48:45 +02:00
|
|
|
DrawLocation();
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
|
|
|
if (!_nodes[24]) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(51);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 83;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else {
|
|
|
|
PlayMovie(53);
|
|
|
|
ShowPic(119);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 84;
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
PlaySound(4);
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 241;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 241:
|
2017-07-06 07:26:47 +02:00
|
|
|
switch(_userInput) {
|
2017-06-14 07:48:45 +02:00
|
|
|
case 0x428:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(0);
|
|
|
|
break;
|
|
|
|
case 0x429:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_nodes[24] != 9) {
|
2017-07-05 21:39:05 +02:00
|
|
|
_tsIconOnly = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(66);
|
|
|
|
InventoryDel(1);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 84;
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[24] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42A:
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryDel(2);
|
|
|
|
break;
|
|
|
|
case 0x42D:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_inventory[5] >= 1)
|
2017-06-14 07:48:45 +02:00
|
|
|
DisplayIcon(135);
|
|
|
|
else {
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(52);
|
|
|
|
PlaySound(30);
|
|
|
|
RestoreAS();
|
|
|
|
InventoryAdd(5);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 242;
|
2017-07-06 07:22:27 +02:00
|
|
|
_zoom = 2;
|
|
|
|
ProcessMap(24, _zoom);
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x43E:
|
2017-07-05 20:18:17 +02:00
|
|
|
_sound = _lastSound;
|
2017-07-06 07:22:27 +02:00
|
|
|
if (_pMovie == 53) {
|
2017-06-14 07:48:45 +02:00
|
|
|
PlayMovie(53);
|
|
|
|
ShowPic(119);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 84;
|
2017-06-14 07:48:45 +02:00
|
|
|
} else
|
2017-07-06 07:22:27 +02:00
|
|
|
PlayMovie(_pMovie);
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 0x441:
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 300;
|
|
|
|
_loopFlag = true;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
2017-06-21 00:46:47 +02:00
|
|
|
default:
|
2017-07-06 07:26:47 +02:00
|
|
|
if (_userInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _userInput, _userInput, _statPlay);
|
2017-06-21 00:46:47 +02:00
|
|
|
break;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-06-14 07:48:45 +02:00
|
|
|
break;
|
|
|
|
case 242:
|
|
|
|
ProcessMapInput(24);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void KingdomGame::GPLogic1_SubSP10() {
|
|
|
|
PlaySound(0);
|
|
|
|
PlaySound(18);
|
|
|
|
FadeToBlack2();
|
|
|
|
ShowPic(115);
|
2017-06-28 07:18:38 +02:00
|
|
|
ShowPic(114);
|
2017-06-14 07:48:45 +02:00
|
|
|
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 4;
|
2017-07-06 07:26:47 +02:00
|
|
|
_userInput = 0;
|
2017-07-05 21:39:05 +02:00
|
|
|
_aTimer = 595;
|
2017-07-05 07:58:18 +02:00
|
|
|
_statPlay = 11;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void KingdomGame::GPLogic1_SubSP121() {
|
|
|
|
PlayMovie(23);
|
|
|
|
PlaySound(30);
|
2017-07-05 21:39:05 +02:00
|
|
|
_bTimer = 190;
|
2017-06-14 07:48:45 +02:00
|
|
|
ReadMouse();
|
|
|
|
|
2017-07-06 07:26:47 +02:00
|
|
|
while (_bTimer != 0 && _mouseButton == 0) {
|
2017-07-03 08:13:10 +02:00
|
|
|
checkTimers();
|
2017-06-14 07:48:45 +02:00
|
|
|
RefreshSound();
|
|
|
|
CheckMainScreen();
|
|
|
|
ReadMouse();
|
|
|
|
}
|
|
|
|
|
|
|
|
PlaySound(23);
|
|
|
|
InventoryAdd(15);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 10;
|
2017-06-14 07:48:45 +02:00
|
|
|
FShowPic(150);
|
2017-07-06 07:26:47 +02:00
|
|
|
_nodes[12] = 9;
|
2017-06-14 07:48:45 +02:00
|
|
|
PlaySound(3);
|
2017-07-06 07:22:27 +02:00
|
|
|
_currMap = 15;
|
2017-06-14 07:48:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // NameSpace
|