diff options
| author | Paul Gilbert | 2017-09-20 20:53:12 -0400 |
|---|---|---|
| committer | Paul Gilbert | 2017-09-20 20:53:12 -0400 |
| commit | 32735d59e82d178088b006ba583000fc37995b37 (patch) | |
| tree | 04efa3f94687e8189ae68480ced7a3addf50e2a0 /engines/titanic/npcs | |
| parent | 7a58db8b92d58d81a3752140c7983de7595db13d (diff) | |
| download | scummvm-rg350-32735d59e82d178088b006ba583000fc37995b37.tar.gz scummvm-rg350-32735d59e82d178088b006ba583000fc37995b37.tar.bz2 scummvm-rg350-32735d59e82d178088b006ba583000fc37995b37.zip | |
TITANIC: DE: Adding sound translations
Diffstat (limited to 'engines/titanic/npcs')
| -rw-r--r-- | engines/titanic/npcs/barbot.cpp | 23 | ||||
| -rw-r--r-- | engines/titanic/npcs/bilge_succubus.cpp | 21 |
2 files changed, 23 insertions, 21 deletions
diff --git a/engines/titanic/npcs/barbot.cpp b/engines/titanic/npcs/barbot.cpp index 2ba150a38c..029861fa49 100644 --- a/engines/titanic/npcs/barbot.cpp +++ b/engines/titanic/npcs/barbot.cpp @@ -23,6 +23,7 @@ #include "titanic/npcs/barbot.h" #include "titanic/support/files_manager.h" #include "titanic/titanic.h" +#include "titanic/translation.h" namespace Titanic { @@ -243,7 +244,7 @@ bool CBarbot::ActMsg(CActMsg *msg) { _field160 = 1; _addedTV = true; - playSound("c#5.wav", _volume); + playSound(TRANSLATE("c#5.wav", "c#65.wav"), _volume); playRange(_frames[35], MOVIE_NOTIFY_OBJECT); movieEvent(); playRange(_frames[34]); @@ -415,12 +416,12 @@ bool CBarbot::MovieEndMsg(CMovieEndMsg *msg) { if (msg->_endFrame == _frames[57]._endFrame) { startTalking(this, 250575); - playSound("c#10.wav", _volume); + playSound(TRANSLATE("c#10.wav", "c#70.wav"), _volume); return true; } if (msg->_endFrame == _frames[55]._endFrame) { - playSound("c#10.wav", _volume); + playSound(TRANSLATE("c#10.wav", "c#70.wav"), _volume); return true; } @@ -476,22 +477,22 @@ bool CBarbot::MovieEndMsg(CMovieEndMsg *msg) { } if (msg->_endFrame == _frames[38]._endFrame || msg->_endFrame == _frames[23]._endFrame) { - playSound("c#3.wav", _volume); + playSound(TRANSLATE("c#3.wav", "c#63.wav"), _volume); } else if (msg->_endFrame == _frames[36]._endFrame) { - playSound("c#6.wav", _volume); + playSound(TRANSLATE("c#6.wav", "c#66.wav"), _volume); } else if (msg->_endFrame == _frames[35]._endFrame) { - playSound("c#8.wav", _volume); + playSound(TRANSLATE("c#8.wav", "c#68.wav"), _volume); } else if (msg->_endFrame == _frames[33]._endFrame) { - playSound("c#4.wav", _volume); + playSound(TRANSLATE("c#4.wav", "c#64.wav"), _volume); } else if (msg->_endFrame == _frames[32]._endFrame) { startTalking(this, 145); - playSound("c#9.wav", _volume); + playSound(TRANSLATE("c#9.wav", "c#69.wav"), _volume); } else if (msg->_endFrame == _frames[47]._endFrame) { - playSound("c#9.wav", _volume); + playSound(TRANSLATE("c#9.wav", "c#69.wav"), _volume); _addedVodka = true; _drunkFlag = true; } else if (msg->_endFrame == _frames[30]._endFrame) { - playSound("c#4.wav", 60); + playSound(TRANSLATE("c#4.wav", "c#64.wav"), 60); } else if (msg->_endFrame == _frames[29]._endFrame) { if (!_fieldC4) { performAction(true, nullptr); @@ -700,7 +701,7 @@ bool CBarbot::LoadSuccessMsg(CLoadSuccessMsg *msg) { bool CBarbot::MovieFrameMsg(CMovieFrameMsg *msg) { if (msg->_frameNumber == _frames[29]._startFrame) { - playSound("c#2.wav", _volume); + playSound(TRANSLATE("c#2.wav", "c#62.wav"), _volume); } else if (msg->_frameNumber == _frames[55]._startFrame || msg->_frameNumber == _frames[32]._startFrame) { diff --git a/engines/titanic/npcs/bilge_succubus.cpp b/engines/titanic/npcs/bilge_succubus.cpp index 312f067bd4..827e39fb4b 100644 --- a/engines/titanic/npcs/bilge_succubus.cpp +++ b/engines/titanic/npcs/bilge_succubus.cpp @@ -24,6 +24,7 @@ #include "titanic/carry/chicken.h" #include "titanic/core/view_item.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/translation.h" namespace Titanic { @@ -80,7 +81,7 @@ bool CBilgeSuccUBus::PETReceiveMsg(CPETReceiveMsg *msg) { if (_afterReceiveStartFrame >= 0) playMovie(_afterReceiveStartFrame, _afterReceiveEndFrame, MOVIE_WAIT_FOR_FINISH); - playSound("z#28.wav", 70); + playSound(TRANSLATE("z#28.wav", "z#559.wav"), 70); } else if (!_isOn) { petDisplayMessage(2, SUCCUBUS_IS_IN_STANDBY); return false; @@ -184,10 +185,10 @@ bool CBilgeSuccUBus::MovieEndMsg(CMovieEndMsg *msg) { if (msg->_endFrame == _trayOutEndFrame) { if (_offStartFrame >= 0) - playSound("z#27.wav"); + playSound(TRANSLATE("z#27.wav", "z#558.wav")); } else if (msg->_endFrame == _offEndFrame) { if (_endingStartFrame >= 0) - playSound("z#30.wav"); + playSound(TRANSLATE("z#30.wav", "z#561.wav")); } else { if (msg->_endFrame == _onEndFrame && pet) { if (_motherBlocked) { @@ -212,11 +213,11 @@ bool CBilgeSuccUBus::MovieEndMsg(CMovieEndMsg *msg) { switch (_sendAction) { case SA_EATEN: stopSound(_soundHandle, 1); - _soundHandle = playSound("z#3.wav", 1); + _soundHandle = playSound(TRANSLATE("z#3.wav", "z#539.wav"), 1); break; case SA_BILGE_FEATHERS: stopSound(_soundHandle); - _soundHandle = playSound("z#12.wav"); + _soundHandle = playSound(TRANSLATE("z#12.wav", "z#532.wav")); break; case SA_BILGE_SENT: if (_isChicken) { @@ -250,8 +251,8 @@ bool CBilgeSuccUBus::MovieEndMsg(CMovieEndMsg *msg) { } } else if (msg->_endFrame == _sneezing1EndFrame) { - playSound("z#25.wav", 70); - playSound("z#24.wav", 70); + playSound(TRANSLATE("z#25.wav", "z#556.wav"), 70); + playSound(TRANSLATE("z#24.wav", "z#555.wav"), 70); } else if (msg->_endFrame == _sneezing2EndFrame) { changeView("BilgeRoomWith.Node 1.N", ""); @@ -337,7 +338,7 @@ bool CBilgeSuccUBus::SubAcceptCCarryMsg(CSubAcceptCCarryMsg *msg) { petContainerRemove(item); pet->phonographAction(""); item->setVisible(false); - playSound("z#23.wav"); + playSound(TRANSLATE("z#23.wav", "z#554.wav")); CChicken *chicken = dynamic_cast<CChicken *>(item); bool chickenFlag = chicken ? chicken->_condiment == "None" : false; @@ -399,7 +400,7 @@ bool CBilgeSuccUBus::LeaveViewMsg(CLeaveViewMsg *msg) { if (_isOn) { _isOn = false; if (_offStartFrame >= 0) - playSound("z#27.wav"); + playSound(TRANSLATE("z#27.wav", "z#558.wav")); } performAction(true); @@ -422,7 +423,7 @@ bool CBilgeSuccUBus::TurnOn(CTurnOn *msg) { if (pet) { if (_onStartFrame >= 0) { playMovie(_onStartFrame, _onEndFrame, MOVIE_NOTIFY_OBJECT); - playSound("z#26.wav"); + playSound(TRANSLATE("z#26.wav", "z#557.wav")); } if (mailExists(pet->getRoomFlags()) && _okStartFrame >= 0) |
