From e5cad39a58b8b3ce517c37eb36ffd7a3fc5522f6 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Sep 2017 21:02:44 -0400 Subject: TITANIC: DE: Updates for SuccUBusScript --- engines/titanic/true_talk/succubus_script.cpp | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/engines/titanic/true_talk/succubus_script.cpp b/engines/titanic/true_talk/succubus_script.cpp index 94875840b3..34ae772e1c 100644 --- a/engines/titanic/true_talk/succubus_script.cpp +++ b/engines/titanic/true_talk/succubus_script.cpp @@ -24,6 +24,7 @@ #include "titanic/true_talk/succubus_script.h" #include "titanic/true_talk/true_talk_manager.h" #include "titanic/titanic.h" +#include "titanic/translation.h" namespace Titanic { @@ -171,15 +172,28 @@ int SuccUBusScript::process(const TTroomScript *roomScript, const TTsentence *se } ScriptChangedResult SuccUBusScript::scriptChanged(const TTroomScript *roomScript, uint id) { - if (id == 148) - CTrueTalkManager::setFlags(3, 1); - else if (id == 150) - CTrueTalkManager::setFlags(2, 1); + if (g_language == Common::EN_ANY) { + if (id == 148) + CTrueTalkManager::setFlags(3, 1); + else if (id == 150) + CTrueTalkManager::setFlags(2, 1); + } else { + if (id == 70211 || id == 230013) { + addResponse(getDialogueId(230163)); + applyResponse(); + return SCR_2; + } else if (id < 70211) { + if (id == 148) + CTrueTalkManager::setFlags(3, 1); + else if (id == 150) + CTrueTalkManager::setFlags(2, 1); + } + } if (id >= 230000 && id <= 230245) { addResponse(getDialogueId(id)); applyResponse(); - } else if (id >= 70000 && id <= 70243) { + } else if (id >= 70000 && id <= (uint)TRANSLATE(70243, 70248)) { addResponse(id); applyResponse(); } -- cgit v1.2.3