diff options
author | Filippos Karapetis | 2019-06-11 00:47:42 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-06-11 00:48:16 +0300 |
commit | 05301c240b3ccc195c533cf7a2eddde683ee7d06 (patch) | |
tree | 65bab6bed51b68fe67abb47fc3aaf2f0017e2bfc /engines/startrek/rooms/demon2.cpp | |
parent | 709d606e016235b663e04b9abfa9d537bdc753f0 (diff) | |
download | scummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.tar.gz scummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.tar.bz2 scummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.zip |
STARTREK: Load more messages from RDF files
The whole Demon chapter has been converted to the new logic.
The offsets for the extra room messages have been hardcoded, for now,
inside loadOtherRoomMessages(), until we figure out how they are
referenced.
Diffstat (limited to 'engines/startrek/rooms/demon2.cpp')
-rw-r--r-- | engines/startrek/rooms/demon2.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/engines/startrek/rooms/demon2.cpp b/engines/startrek/rooms/demon2.cpp index d31f417a44..a0b7f88ae7 100644 --- a/engines/startrek/rooms/demon2.cpp +++ b/engines/startrek/rooms/demon2.cpp @@ -42,91 +42,91 @@ void Room::demon2TouchedWarp1() { } void Room::demon2LookAtCave() { - showText(TX_DEM2N009); + showText(9, true); } void Room::demon2LookAtMountain() { - showText(TX_DEM2N007); + showText(7, true); } void Room::demon2LookAtBerries() { - showText(TX_DEM2N012); + showText(12, true); } void Room::demon2LookAtFern() { - showText(TX_DEM2N005); + showText(5, true); } void Room::demon2LookAtMoss() { - showText(TX_DEM2N010); + showText(10, true); } void Room::demon2LookAtLights() { - showText(TX_DEM2N006); + showText(6, true); } void Room::demon2LookAtAnything() { - showText(TX_DEM2N011); + showText(11, true); } void Room::demon2LookAtKirk() { - showText(TX_DEM2N002); + showText(2, true); } void Room::demon2LookAtSpock() { - showText(TX_DEM2N004); + showText(4, true); } void Room::demon2LookAtMcCoy() { - showText(TX_DEM2N003); + showText(3, true); } void Room::demon2LookAtRedshirt() { - showText(TX_DEM2N000); + showText(0, true); } void Room::demon2TalkToKirk() { - showText(TX_SPEAKER_KIRK, TX_DEM2_001); + showText(TX_SPEAKER_KIRK, 1, true); } void Room::demon2TalkToSpock() { - showText(TX_SPEAKER_SPOCK, TX_DEM2_018); - showText(TX_SPEAKER_KIRK, TX_DEM2_003); + showText(TX_SPEAKER_SPOCK, 18, true); + showText(TX_SPEAKER_KIRK, 3, true); } void Room::demon2TalkToMcCoy() { - showText(TX_SPEAKER_MCCOY, TX_DEM2_015); - showText(TX_SPEAKER_SPOCK, TX_DEM2_017); - showText(TX_SPEAKER_MCCOY, TX_DEM2_016); + showText(TX_SPEAKER_MCCOY, 15, true); + showText(TX_SPEAKER_SPOCK, 17, true); + showText(TX_SPEAKER_MCCOY, 16, true); } void Room::demon2TalkToRedshirt() { - showText(TX_SPEAKER_EVERTS, TX_DEM2_019); - showText(TX_SPEAKER_KIRK, TX_DEM2_002); - showText(TX_SPEAKER_EVERTS, TX_DEM2_020); - showText(TX_SPEAKER_KIRK, TX_DEM2_004); + showText(TX_SPEAKER_EVERTS, 19, true); + showText(TX_SPEAKER_KIRK, 2, true); + showText(TX_SPEAKER_EVERTS, 20, true); + showText(TX_SPEAKER_KIRK, 4, true); } void Room::demon2UsePhaserOnBerries() { - showText(TX_SPEAKER_MCCOY, TX_DEM2_011); + showText(TX_SPEAKER_MCCOY, 11, true); } void Room::demon2UseSTricorderOnBerries() { loadActorAnim2(OBJECT_SPOCK, "sscane", -1, -1, 0); playSoundEffectIndex(0x04); - showText(TX_SPEAKER_SPOCK, TX_DEM2_008); + showText(TX_SPEAKER_SPOCK, 8, true); } void Room::demon2UseSTricorderOnMoss() { loadActorAnim2(OBJECT_SPOCK, "sscann", -1, -1, 0); playSoundEffectIndex(0x04); - showText(TX_SPEAKER_SPOCK, TX_DEM2_007); + showText(TX_SPEAKER_SPOCK, 7, true); } void Room::demon2UseSTricorderOnFern() { loadActorAnim2(OBJECT_SPOCK, "sscann", -1, -1, 0); playSoundEffectIndex(0x04); - showText(TX_SPEAKER_SPOCK, TX_DEM2_006); + showText(TX_SPEAKER_SPOCK, 6, true); } void Room::demon2UseSTricorderOnCave() { @@ -134,7 +134,7 @@ void Room::demon2UseSTricorderOnCave() { playSoundEffectIndex(0x04); // NOTE: audio file for this is empty. - showText(TX_SPEAKER_SPOCK, TX_DEM2_005); + showText(TX_SPEAKER_SPOCK, 5, true); } void Room::demon2UseMTricorderOnBerries() { @@ -142,18 +142,18 @@ void Room::demon2UseMTricorderOnBerries() { playSoundEffectIndex(0x04); if (_awayMission->demon.curedChub) - showText(TX_SPEAKER_MCCOY, TX_DEM2_013); + showText(TX_SPEAKER_MCCOY, 13, true); else if (_awayMission->demon.madeHypoDytoxin) - showText(TX_SPEAKER_MCCOY, TX_DEM2_009); + showText(TX_SPEAKER_MCCOY, 9, true); else if (_awayMission->demon.knowAboutHypoDytoxin) - showText(TX_SPEAKER_MCCOY, TX_DEM2_010); + showText(TX_SPEAKER_MCCOY, 10, true); else - showText(TX_SPEAKER_MCCOY, TX_DEM2_012); + showText(TX_SPEAKER_MCCOY, 12, true); } void Room::demon2GetBerries() { if (_awayMission->demon.gotBerries) - showText(TX_SPEAKER_MCCOY, TX_DEM2_014); + showText(TX_SPEAKER_MCCOY, 14, true); else walkCrewman(OBJECT_KIRK, 0xe8, 0x97, 1); } @@ -164,7 +164,7 @@ void Room::demon2ReachedBerries() { } void Room::demon2PickedUpBerries() { - showText(TX_DEM2N013); + showText(13, true); giveItem(OBJECT_IBERRY); _awayMission->demon.gotBerries = true; _awayMission->demon.missionScore += 1; |