diff options
author | Paul Gilbert | 2017-09-17 20:36:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-17 20:36:07 -0400 |
commit | d48caed20410f2e0abbf6708870388d7b9e9ea56 (patch) | |
tree | 86a182212c237a571d3c56814c6e132a3fbd199c /engines/titanic/true_talk/deskbot_script.cpp | |
parent | b033d1bbd97d43f9ebb4e3c17ca1886b629be6d4 (diff) | |
download | scummvm-rg350-d48caed20410f2e0abbf6708870388d7b9e9ea56.tar.gz scummvm-rg350-d48caed20410f2e0abbf6708870388d7b9e9ea56.tar.bz2 scummvm-rg350-d48caed20410f2e0abbf6708870388d7b9e9ea56.zip |
TITANIC: Add Deskbot German specific logic
Diffstat (limited to 'engines/titanic/true_talk/deskbot_script.cpp')
-rw-r--r-- | engines/titanic/true_talk/deskbot_script.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp index 3f65db9375..06b78c921d 100644 --- a/engines/titanic/true_talk/deskbot_script.cpp +++ b/engines/titanic/true_talk/deskbot_script.cpp @@ -24,6 +24,7 @@ #include "titanic/true_talk/deskbot_script.h" #include "titanic/true_talk/true_talk_manager.h" #include "titanic/titanic.h" +#include "titanic/translation.h" namespace Titanic { @@ -85,7 +86,16 @@ int DeskbotScript::process(const TTroomScript *roomScript, const TTsentence *sen || sentence->localWord("winning") || sentence->contains("winning") || sentence->localWord("winner") || sentence->contains("winner") || sentence->contains("35279") || sentence->contains("3 5 2 7 9") - ) { + || (g_language == Common::DE_DEU && ( + sentence->contains("preisaus") || + sentence->contains("tombola") || + sentence->contains("lotterie") || + sentence->contains("gewonnen") || + sentence->contains("glueck") || + sentence->contains("das goldene los") || + sentence->contains("sechs richtige") + )) + ) { addResponse(getDialogueId(41773)); applyResponse(); return 2; @@ -93,7 +103,8 @@ int DeskbotScript::process(const TTroomScript *roomScript, const TTsentence *sen addResponse(getDialogueId(41771)); applyResponse(); return 2; - } else if (sentence->localWord("upgrade") || sentence->contains("upgrade")) { + } else if (sentence->localWord("upgrade") || sentence->contains("upgrade") + || sentence->localWord("secondclass")) { if (CTrueTalkManager::_currentNPC) { CGameObject *obj; if (CTrueTalkManager::_currentNPC->find("Magazine", &obj, FIND_PET)) { |