diff options
author | Paul Gilbert | 2016-05-28 21:42:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:16:43 -0400 |
commit | 421812f27c59e53e68dfbaa777284c74a8fb7938 (patch) | |
tree | 0ca956f0212727260a7edb41272f1bbaa1bcf704 /engines/titanic/npcs | |
parent | a7ecc6d601f1beabd0f5538d5e1cd7d6e983d2b9 (diff) | |
download | scummvm-rg350-421812f27c59e53e68dfbaa777284c74a8fb7938.tar.gz scummvm-rg350-421812f27c59e53e68dfbaa777284c74a8fb7938.tar.bz2 scummvm-rg350-421812f27c59e53e68dfbaa777284c74a8fb7938.zip |
TITANIC: More implementing deskbot message handlers
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r-- | engines/titanic/npcs/deskbot.cpp | 22 | ||||
-rw-r--r-- | engines/titanic/npcs/deskbot.h | 2 |
2 files changed, 21 insertions, 3 deletions
diff --git a/engines/titanic/npcs/deskbot.cpp b/engines/titanic/npcs/deskbot.cpp index dcd27466db..548738d930 100644 --- a/engines/titanic/npcs/deskbot.cpp +++ b/engines/titanic/npcs/deskbot.cpp @@ -110,7 +110,6 @@ bool CDeskbot::MovieEndMsg(CMovieEndMsg *msg) { flag = true; } - bool flag = false; if (_npcFlags & NPCFLAG_40000) { _deskbotActive = false; _npcFlags &= ~(NPCFLAG_40000 | NPCFLAG_20000); @@ -155,7 +154,26 @@ bool CDeskbot::LeaveViewMsg(CLeaveViewMsg *msg) { } bool CDeskbot::TrueTalkTriggerActionMsg(CTrueTalkTriggerActionMsg *msg) { - // TODO + switch (msg->_action) { + case 19: + inc54(); + lockMouse(); + setPetArea(PET_CONVERSATION); + playClip("ReprogramPETInHand", 4); + _npcFlags |= NPCFLAG_10000; + _field10C = msg->_param1; + + switch (_field10C) { + case 1: + petDisplayMsg("You have been upgraded to 1st Class status. Enjoy hugely."); + + break; + case 2: + petDisplayMsg("You have been upgraded to 2nd Class status. Enjoy."); + break; + } + } + return true; } diff --git a/engines/titanic/npcs/deskbot.h b/engines/titanic/npcs/deskbot.h index 607255be57..8425f58f95 100644 --- a/engines/titanic/npcs/deskbot.h +++ b/engines/titanic/npcs/deskbot.h @@ -45,7 +45,7 @@ private: static int _v2; public: bool _deskbotActive; - bool _field10C; + int _field10C; public: CLASSDEF CDeskbot(); |