STARTREK: Rename the different showText() functions for disambiguation

Hopefully, this will fix the AmigaOS and DS builds
This commit is contained in:
Filippos Karapetis 2019-06-11 01:28:12 +03:00
parent 05301c240b
commit e8f0e9e998
57 changed files with 920 additions and 920 deletions

View file

@ -409,7 +409,7 @@ int Room::showRoomSpecificText(const char **array) {
return _vm->showText(&StarTrekEngine::readTextFromArrayWithChoices, (uintptr)array, 20, 20, textColor, true, false, false); return _vm->showText(&StarTrekEngine::readTextFromArrayWithChoices, (uintptr)array, 20, 20, textColor, true, false, false);
} }
int Room::showText(const TextRef *textIDs, bool fromRDF, bool lookWithTalker) { int Room::showMultipleTexts(const TextRef *textIDs, bool fromRDF, bool lookWithTalker) {
int numIDs = 0; int numIDs = 0;
int retval; int retval;
while (textIDs[numIDs] != TX_BLANK) while (textIDs[numIDs] != TX_BLANK)
@ -441,10 +441,10 @@ int Room::showText(TextRef speaker, TextRef text, bool fromRDF, bool lookWithTal
textIDs[0] = speaker; textIDs[0] = speaker;
textIDs[1] = text; textIDs[1] = text;
textIDs[2] = TX_BLANK; textIDs[2] = TX_BLANK;
return showText(textIDs, fromRDF, lookWithTalker); return showMultipleTexts(textIDs, fromRDF, lookWithTalker);
} }
int Room::showText(TextRef text, bool fromRDF, bool lookWithTalker) { int Room::showDescription(TextRef text, bool fromRDF, bool lookWithTalker) {
return showText(TX_NULL, text, fromRDF, lookWithTalker); return showText(TX_NULL, text, fromRDF, lookWithTalker);
} }

View file

@ -188,8 +188,8 @@ private:
* Cmd 0x03 * Cmd 0x03
*/ */
int showRoomSpecificText(const char **textAddr); int showRoomSpecificText(const char **textAddr);
int showText(const TextRef *text, bool fromRDF = false, bool lookWithTalker = false); int showMultipleTexts(const TextRef *text, bool fromRDF = false, bool lookWithTalker = false);
int showText(TextRef text, bool fromRDF = false, bool lookWithTalker = false); int showDescription(TextRef text, bool fromRDF = false, bool lookWithTalker = false);
int showText(TextRef speaker, TextRef text, bool fromRDF = false, bool lookWithTalker = false); int showText(TextRef speaker, TextRef text, bool fromRDF = false, bool lookWithTalker = false);
/** /**

View file

@ -162,7 +162,7 @@ void Room::demon0TalkToPrelate() {
const TextRef *response = nullptr; const TextRef *response = nullptr;
switch (showText(options1, true)) { switch (showMultipleTexts(options1, true)) {
case 0: case 0:
response = firstResponse0; response = firstResponse0;
break; break;
@ -175,26 +175,26 @@ void Room::demon0TalkToPrelate() {
} }
if (response != nullptr) if (response != nullptr)
showText(response, true); showMultipleTexts(response, true);
if (showText(options2, true) == 1) if (showMultipleTexts(options2, true) == 1)
demon0BadResponse(); demon0BadResponse();
showText(secondResponse, true); showMultipleTexts(secondResponse, true);
if (showText(options3, true) == 1) if (showMultipleTexts(options3, true) == 1)
demon0BadResponse(); demon0BadResponse();
showText(thirdResponse, true); showMultipleTexts(thirdResponse, true);
if (_awayMission->demon.wasRudeToPrelate) if (_awayMission->demon.wasRudeToPrelate)
showText(badConclusion, true); showMultipleTexts(badConclusion, true);
else else
showText(goodConclusion, true); showMultipleTexts(goodConclusion, true);
} }
void Room::demon0LookAtPrelate() { void Room::demon0LookAtPrelate() {
showText(4, true); showDescription(4, true);
} }
void Room::demon0UsePhaserOnSnow() { void Room::demon0UsePhaserOnSnow() {
@ -222,39 +222,39 @@ void Room::demon0LookAtSign() {
} }
void Room::demon0LookAtTrees() { void Room::demon0LookAtTrees() {
showText(6, true); showDescription(6, true);
} }
void Room::demon0LookAtSnow() { void Room::demon0LookAtSnow() {
showText(7, true); showDescription(7, true);
} }
void Room::demon0LookAnywhere() { void Room::demon0LookAnywhere() {
showText(0, true); showDescription(0, true);
} }
void Room::demon0LookAtBushes() { void Room::demon0LookAtBushes() {
showText(10, true); showDescription(10, true);
} }
void Room::demon0LookAtKirk() { void Room::demon0LookAtKirk() {
showText(5, true); showDescription(5, true);
} }
void Room::demon0LookAtMcCoy() { void Room::demon0LookAtMcCoy() {
showText(2, true); showDescription(2, true);
} }
void Room::demon0LookAtRedShirt() { void Room::demon0LookAtRedShirt() {
showText(3, true); showDescription(3, true);
} }
void Room::demon0LookAtSpock() { void Room::demon0LookAtSpock() {
showText(9, true); showDescription(9, true);
} }
void Room::demon0LookAtShelter() { void Room::demon0LookAtShelter() {
showText(1, true); showDescription(1, true);
} }
void Room::demon0TalkToKirk() { void Room::demon0TalkToKirk() {

View file

@ -197,7 +197,7 @@ void Room::demon1KlingonFinishedAimingWeapon() {
} }
void Room::demon1KirkShot() { void Room::demon1KirkShot() {
showText(0, true); showDescription(0, true);
showGameOverMenu(); showGameOverMenu();
} }
@ -239,7 +239,7 @@ void Room::demon1KlingonDropsHand() {
loadActorAnim(13, "klghnd", 0x10b, 0x8e, 0); loadActorAnim(13, "klghnd", 0x10b, 0x8e, 0);
_awayMission->disableInput = 0; _awayMission->disableInput = 0;
_awayMission->timers[1] = 0; _awayMission->timers[1] = 0;
showText(20, true); showDescription(20, true);
if (_awayMission->crewDownBitset & (1 << OBJECT_REDSHIRT)) if (_awayMission->crewDownBitset & (1 << OBJECT_REDSHIRT))
return; return;
@ -433,79 +433,79 @@ void Room::demon1PickedUpHand() {
void Room::demon1FinishedGettingHand() { void Room::demon1FinishedGettingHand() {
if (_awayMission->demon.tookKlingonHand) if (_awayMission->demon.tookKlingonHand)
showText(5, true); showDescription(5, true);
else { else {
_awayMission->demon.tookKlingonHand = true; _awayMission->demon.tookKlingonHand = true;
giveItem(OBJECT_IHAND); giveItem(OBJECT_IHAND);
showText(7, true); showDescription(7, true);
} }
} }
void Room::demon1LookAtKlingon() { void Room::demon1LookAtKlingon() {
showText(4, true); showDescription(4, true);
} }
void Room::demon1LookAtCattails() { void Room::demon1LookAtCattails() {
showText(18, true); showDescription(18, true);
} }
void Room::demon1LookAtTulips() { void Room::demon1LookAtTulips() {
showText(10, true); showDescription(10, true);
} }
void Room::demon1LookAtPods() { void Room::demon1LookAtPods() {
showText(19, true); showDescription(19, true);
} }
void Room::demon1LookAtFerns() { void Room::demon1LookAtFerns() {
showText(9, true); showDescription(9, true);
} }
void Room::demon1LookAtStream() { void Room::demon1LookAtStream() {
showText(11, true); showDescription(11, true);
} }
void Room::demon1LookAtMine() { void Room::demon1LookAtMine() {
showText(21, true); showDescription(21, true);
} }
void Room::demon1LookAtMountain() { void Room::demon1LookAtMountain() {
showText(16, true); showDescription(16, true);
} }
void Room::demon1LookAtHand() { void Room::demon1LookAtHand() {
showText(23, true); showDescription(23, true);
} }
void Room::demon1LookAnywhere() { void Room::demon1LookAnywhere() {
showText(17, true); showDescription(17, true);
} }
void Room::demon1LookAtKirk() { void Room::demon1LookAtKirk() {
if (_awayMission->crewDownBitset & (1 << OBJECT_KIRK)) if (_awayMission->crewDownBitset & (1 << OBJECT_KIRK))
showText(12, true); showDescription(12, true);
else else
showText(3, true); showDescription(3, true);
} }
void Room::demon1LookAtSpock() { void Room::demon1LookAtSpock() {
if (_awayMission->crewDownBitset & (1 << OBJECT_SPOCK)) if (_awayMission->crewDownBitset & (1 << OBJECT_SPOCK))
showText(15, true); showDescription(15, true);
else else
showText(8, true); showDescription(8, true);
} }
void Room::demon1LookAtMcCoy() { void Room::demon1LookAtMcCoy() {
if (_awayMission->crewDownBitset & (1 << OBJECT_MCCOY)) if (_awayMission->crewDownBitset & (1 << OBJECT_MCCOY))
showText(13, true); showDescription(13, true);
else else
showText(1, true); showDescription(1, true);
} }
void Room::demon1LookAtRedshirt() { void Room::demon1LookAtRedshirt() {
if (_awayMission->crewDownBitset & (1 << OBJECT_REDSHIRT)) if (_awayMission->crewDownBitset & (1 << OBJECT_REDSHIRT))
showText(14, true); showDescription(14, true);
else else
showText(2, true); showDescription(2, true);
} }
void Room::demon1TalkToKirk() { void Room::demon1TalkToKirk() {

View file

@ -42,47 +42,47 @@ void Room::demon2TouchedWarp1() {
} }
void Room::demon2LookAtCave() { void Room::demon2LookAtCave() {
showText(9, true); showDescription(9, true);
} }
void Room::demon2LookAtMountain() { void Room::demon2LookAtMountain() {
showText(7, true); showDescription(7, true);
} }
void Room::demon2LookAtBerries() { void Room::demon2LookAtBerries() {
showText(12, true); showDescription(12, true);
} }
void Room::demon2LookAtFern() { void Room::demon2LookAtFern() {
showText(5, true); showDescription(5, true);
} }
void Room::demon2LookAtMoss() { void Room::demon2LookAtMoss() {
showText(10, true); showDescription(10, true);
} }
void Room::demon2LookAtLights() { void Room::demon2LookAtLights() {
showText(6, true); showDescription(6, true);
} }
void Room::demon2LookAtAnything() { void Room::demon2LookAtAnything() {
showText(11, true); showDescription(11, true);
} }
void Room::demon2LookAtKirk() { void Room::demon2LookAtKirk() {
showText(2, true); showDescription(2, true);
} }
void Room::demon2LookAtSpock() { void Room::demon2LookAtSpock() {
showText(4, true); showDescription(4, true);
} }
void Room::demon2LookAtMcCoy() { void Room::demon2LookAtMcCoy() {
showText(3, true); showDescription(3, true);
} }
void Room::demon2LookAtRedshirt() { void Room::demon2LookAtRedshirt() {
showText(0, true); showDescription(0, true);
} }
void Room::demon2TalkToKirk() { void Room::demon2TalkToKirk() {
@ -164,7 +164,7 @@ void Room::demon2ReachedBerries() {
} }
void Room::demon2PickedUpBerries() { void Room::demon2PickedUpBerries() {
showText(13, true); showDescription(13, true);
giveItem(OBJECT_IBERRY); giveItem(OBJECT_IBERRY);
_awayMission->demon.gotBerries = true; _awayMission->demon.gotBerries = true;
_awayMission->demon.missionScore += 1; _awayMission->demon.missionScore += 1;

View file

@ -85,13 +85,13 @@ void Room::demon3Timer1Expired() {
// Door just opened // Door just opened
void Room::demon3Timer3Expired() { void Room::demon3Timer3Expired() {
if (_awayMission->demon.repairedHand) { if (_awayMission->demon.repairedHand) {
showText(8, true); showDescription(8, true);
loadActorAnim(14, "door", 0x82, 0xc, 0); loadActorAnim(14, "door", 0x82, 0xc, 0);
loadMapFile("demon3"); loadMapFile("demon3");
_awayMission->demon.doorOpened = true; _awayMission->demon.doorOpened = true;
_awayMission->demon.missionScore += 2; _awayMission->demon.missionScore += 2;
} else { } else {
showText(7, true); showDescription(7, true);
} }
} }
@ -357,7 +357,7 @@ void Room::demon3RedshirtUsedPanel() {
TX_BLANK TX_BLANK
}; };
text[1] = textTable[_awayMission->demon.field41 - 1]; text[1] = textTable[_awayMission->demon.field41 - 1];
showText(text, true); showMultipleTexts(text, true);
walkCrewman(OBJECT_REDSHIRT, 0xbe, 0x9b, 0); walkCrewman(OBJECT_REDSHIRT, 0xbe, 0x9b, 0);
} }
} }
@ -388,7 +388,7 @@ void Room::demon3UsePhaserOnDoor() {
_roomVar.demon.usedPhaserOnDoor++; _roomVar.demon.usedPhaserOnDoor++;
if (_roomVar.demon.usedPhaserOnDoor == 1) if (_roomVar.demon.usedPhaserOnDoor == 1)
showText(9, true); showDescription(9, true);
else if (_roomVar.demon.usedPhaserOnDoor == 2) else if (_roomVar.demon.usedPhaserOnDoor == 2)
showText(TX_SPEAKER_SPOCK, 11, true); showText(TX_SPEAKER_SPOCK, 11, true);
} }
@ -491,72 +491,72 @@ void Room::demon3TalkToRedshirt() {
} }
void Room::demon3LookAtKirk() { void Room::demon3LookAtKirk() {
showText(4, true); showDescription(4, true);
} }
void Room::demon3LookAtSpock() { void Room::demon3LookAtSpock() {
showText(1, true); showDescription(1, true);
} }
void Room::demon3LookAtMccoy() { void Room::demon3LookAtMccoy() {
showText(2, true); showDescription(2, true);
} }
void Room::demon3LookAtRedshirt() { void Room::demon3LookAtRedshirt() {
if (_awayMission->redshirtDead) { if (_awayMission->redshirtDead) {
showText(17, true); showDescription(17, true);
// NOTE: there's an alternate string that isn't used? (TX_DEM3N018) // NOTE: there's an alternate string that isn't used? (TX_DEM3N018)
} else { } else {
showText(3, true); showDescription(3, true);
} }
} }
void Room::demon3LookAnywhere() { void Room::demon3LookAnywhere() {
showText(10, true); showDescription(10, true);
} }
void Room::demon3LookAtMiner() { void Room::demon3LookAtMiner() {
if (_awayMission->demon.healedMiner) { if (_awayMission->demon.healedMiner) {
showText(0, true); showDescription(0, true);
} else { } else {
showText(6, true); showDescription(6, true);
} }
} }
void Room::demon3LookAtBoulder1() { void Room::demon3LookAtBoulder1() {
showText(11, true); showDescription(11, true);
} }
void Room::demon3LookAtBoulder2() { void Room::demon3LookAtBoulder2() {
showText(13, true); showDescription(13, true);
} }
void Room::demon3LookAtBoulder3() { void Room::demon3LookAtBoulder3() {
showText(13, true); showDescription(13, true);
} }
void Room::demon3LookAtBoulder4() { void Room::demon3LookAtBoulder4() {
showText(20, true); showDescription(20, true);
} }
void Room::demon3LookAtStructure() { void Room::demon3LookAtStructure() {
showText(16, true); showDescription(16, true);
} }
void Room::demon3LookAtDoor() { void Room::demon3LookAtDoor() {
if (_awayMission->demon.doorOpened) { if (_awayMission->demon.doorOpened) {
showText(14, true); showDescription(14, true);
} else { } else {
showText(12, true); showDescription(12, true);
} }
} }
void Room::demon3LookAtPanel() { void Room::demon3LookAtPanel() {
showText(19, true); showDescription(19, true);
} }
void Room::demon3LookAtLight() { void Room::demon3LookAtLight() {
showText(15, true); showDescription(15, true);
} }
} }

View file

@ -60,7 +60,7 @@ void Room::demon4FinishedAnimation1() {
void Room::demon4FinishedAnimation2() { void Room::demon4FinishedAnimation2() {
if (!_roomVar.demon.cd) { if (!_roomVar.demon.cd) {
_roomVar.demon.cd = true; _roomVar.demon.cd = true;
showText(11, true); showDescription(11, true);
} }
showGameOverMenu(); showGameOverMenu();
@ -164,7 +164,7 @@ void Room::demon4KirkReachedSecurityEquipment() {
void Room::demon4KirkFinishedUsingSecurityEquipment() { void Room::demon4KirkFinishedUsingSecurityEquipment() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
showText(14, true); showDescription(14, true);
} }
void Room::demon4UseMetalOnNauian() { void Room::demon4UseMetalOnNauian() {
@ -187,7 +187,7 @@ void Room::demon4KirkReachedNauianWithSkull() {
showText(TX_SPEAKER_NAUIAN, 36, true); showText(TX_SPEAKER_NAUIAN, 36, true);
const TextRef choices[] = { TX_SPEAKER_KIRK, 6, 3, 5, TX_BLANK }; const TextRef choices[] = { TX_SPEAKER_KIRK, 6, 3, 5, TX_BLANK };
int choice = showText(choices, true); int choice = showMultipleTexts(choices, true);
switch (choice) { switch (choice) {
case 0: case 0:
@ -203,7 +203,7 @@ void Room::demon4KirkReachedNauianWithSkull() {
break; break;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
} }
@ -228,7 +228,7 @@ void Room::demon4TalkToNauian() {
showText(TX_SPEAKER_NAUIAN, 44, true); showText(TX_SPEAKER_NAUIAN, 44, true);
const TextRef choices[] = { TX_SPEAKER_KIRK, 2, 4, 9, TX_BLANK }; const TextRef choices[] = { TX_SPEAKER_KIRK, 2, 4, 9, TX_BLANK };
int choice = showText(choices, true); int choice = showMultipleTexts(choices, true);
switch (choice) { switch (choice) {
case 0: case 0:
@ -244,14 +244,14 @@ void Room::demon4TalkToNauian() {
break; break;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
showText(TX_SPEAKER_NAUIAN, 43, true); showText(TX_SPEAKER_NAUIAN, 43, true);
const TextRef choices2[] = { TX_SPEAKER_KIRK, 8, 7, TX_BLANK }; const TextRef choices2[] = { TX_SPEAKER_KIRK, 8, 7, TX_BLANK };
choice = showText(choices2, true); choice = showMultipleTexts(choices2, true);
switch (choice) { switch (choice) {
case 0: case 0:
@ -261,7 +261,7 @@ void Room::demon4TalkToNauian() {
case 1: case 1:
break; break;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
@ -288,47 +288,47 @@ void Room::demon4TalkToNauian() {
} }
void Room::demon4LookAtPattern() { void Room::demon4LookAtPattern() {
showText(2, true); showDescription(2, true);
} }
void Room::demon4LookAtAlien() { void Room::demon4LookAtAlien() {
showText(7, true); showDescription(7, true);
} }
void Room::demon4LookAnywhere() { void Room::demon4LookAnywhere() {
showText(4, true); showDescription(4, true);
} }
void Room::demon4LookAtSecurityEquipment() { void Room::demon4LookAtSecurityEquipment() {
showText(8, true); showDescription(8, true);
} }
void Room::demon4LookAtFloor() { void Room::demon4LookAtFloor() {
showText(9, true); showDescription(9, true);
} }
void Room::demon4LookAtKirk() { void Room::demon4LookAtKirk() {
showText(3, true); showDescription(3, true);
} }
void Room::demon4LookAtMccoy() { void Room::demon4LookAtMccoy() {
showText(0, true); showDescription(0, true);
} }
void Room::demon4LookAtSpock() { void Room::demon4LookAtSpock() {
showText(5, true); showDescription(5, true);
} }
void Room::demon4LookAtRedshirt() { void Room::demon4LookAtRedshirt() {
showText(1, true); showDescription(1, true);
} }
void Room::demon4LookAtChamber() { void Room::demon4LookAtChamber() {
showText(6, true); showDescription(6, true);
} }
void Room::demon4LookAtPanel() { void Room::demon4LookAtPanel() {
showText(12, true); showDescription(12, true);
} }
void Room::demon4UseKirkOnPanel() { void Room::demon4UseKirkOnPanel() {
@ -366,7 +366,7 @@ void Room::demon4CrewmanReachedPanel() {
_awayMission->demon.missionScore += 3; _awayMission->demon.missionScore += 3;
_awayMission->timers[0] = 10; _awayMission->timers[0] = 10;
} else } else
showText(13, true); showDescription(13, true);
walkCrewman(_roomVar.demon.crewmanUsingPanel, 0xae, 0x93, 0); walkCrewman(_roomVar.demon.crewmanUsingPanel, 0xae, 0x93, 0);
_awayMission->disableInput = false; _awayMission->disableInput = false;

View file

@ -107,43 +107,43 @@ void Room::demon5UseBerryOnChub() {
} }
void Room::demon5LookAtRoberts() { void Room::demon5LookAtRoberts() {
showText(1, true); showDescription(1, true);
} }
void Room::demon5LookAtGrisnash() { void Room::demon5LookAtGrisnash() {
showText(9, true); showDescription(9, true);
} }
void Room::demon5LookAtStephen() { void Room::demon5LookAtStephen() {
showText(3, true); showDescription(3, true);
} }
void Room::demon5LookAtKirk() { void Room::demon5LookAtKirk() {
showText(6, true); showDescription(6, true);
} }
void Room::demon5LookAtSpock() { void Room::demon5LookAtSpock() {
showText(8, true); showDescription(8, true);
} }
void Room::demon5LookAtMccoy() { void Room::demon5LookAtMccoy() {
showText(7, true); showDescription(7, true);
} }
void Room::demon5LookAtRedshirt() { void Room::demon5LookAtRedshirt() {
showText(5, true); showDescription(5, true);
} }
void Room::demon5LookAtMountain() { void Room::demon5LookAtMountain() {
showText(2, true); showDescription(2, true);
} }
void Room::demon5LookAtCrate() { void Room::demon5LookAtCrate() {
showText(4, true); showDescription(4, true);
} }
void Room::demon5LookAnywhere() { void Room::demon5LookAnywhere() {
showText(0, true); showDescription(0, true);
} }
void Room::demon5LookAtChub() { void Room::demon5LookAtChub() {
@ -159,7 +159,7 @@ void Room::demon5TalkToRoberts() {
demon5CheckCompletedStudy(); demon5CheckCompletedStudy();
} }
} else { } else {
showText(10, true); showDescription(10, true);
} }
} }
@ -177,7 +177,7 @@ void Room::demon5TalkToChub() {
demon5CheckCompletedStudy(); demon5CheckCompletedStudy();
} }
} else { } else {
showText(13, true); showDescription(13, true);
} }
} }
@ -194,7 +194,7 @@ void Room::demon5TalkToGrisnash() {
demon5CheckCompletedStudy(); demon5CheckCompletedStudy();
} }
} else { } else {
showText(11, true); showDescription(11, true);
} }
} }
@ -323,7 +323,7 @@ void Room::demon5CheckCompletedStudy() {
} }
void Room::demon5GetCrate() { void Room::demon5GetCrate() {
showText(12, true); showDescription(12, true);
} }
} }

View file

@ -81,63 +81,63 @@ void Room::demon6UsePhaserOnCase() {
} }
void Room::demon6LookAtWorkspace() { void Room::demon6LookAtWorkspace() {
showText(3, true); showDescription(3, true);
} }
void Room::demon6LookAtCase() { void Room::demon6LookAtCase() {
showText(1, true); showDescription(1, true);
} }
void Room::demon6LookAtTable() { void Room::demon6LookAtTable() {
showText(7, true); showDescription(7, true);
} }
void Room::demon6LookAtMineral() { void Room::demon6LookAtMineral() {
showText(16, true); showDescription(16, true);
} }
void Room::demon6LookAtShells() { void Room::demon6LookAtShells() {
showText(11, true); showDescription(11, true);
} }
void Room::demon6LookAtSkull() { void Room::demon6LookAtSkull() {
showText(17, true); showDescription(17, true);
} }
void Room::demon6LookAtMetal() { void Room::demon6LookAtMetal() {
showText(5, true); showDescription(5, true);
} }
void Room::demon6LookAtMeteor() { void Room::demon6LookAtMeteor() {
showText(0, true); showDescription(0, true);
} }
void Room::demon6LookAtMountain() { void Room::demon6LookAtMountain() {
showText(2, true); showDescription(2, true);
} }
void Room::demon6LookAtSynthesizer() { void Room::demon6LookAtSynthesizer() {
showText(4, true); showDescription(4, true);
} }
void Room::demon6LookAtKirk() { void Room::demon6LookAtKirk() {
showText(8, true); showDescription(8, true);
} }
void Room::demon6LookAtSpock() { void Room::demon6LookAtSpock() {
showText(15, true); showDescription(15, true);
} }
void Room::demon6LookAtMccoy() { void Room::demon6LookAtMccoy() {
showText(9, true); showDescription(9, true);
} }
void Room::demon6LookAtRedshirt() { void Room::demon6LookAtRedshirt() {
showText(10, true); showDescription(10, true);
} }
void Room::demon6LookAtComputer() { void Room::demon6LookAtComputer() {
showText(6, true); showDescription(6, true);
if (!_awayMission->demon.lookedAtComputer) { if (!_awayMission->demon.lookedAtComputer) {
_awayMission->demon.lookedAtComputer = true; _awayMission->demon.lookedAtComputer = true;
_awayMission->demon.missionScore++; _awayMission->demon.missionScore++;
@ -145,11 +145,11 @@ void Room::demon6LookAtComputer() {
} }
void Room::demon6LookAnywhere() { void Room::demon6LookAnywhere() {
showText(24, true); showDescription(24, true);
} }
void Room::demon6LookAtStephen() { void Room::demon6LookAtStephen() {
showText(21, true); showDescription(21, true);
} }
void Room::demon6TalkToMccoy() { void Room::demon6TalkToMccoy() {
@ -193,7 +193,7 @@ void Room::demon6MccoyReachedSynthesizer() {
void Room::demon6FinishedMakingHypoDytoxin() { void Room::demon6FinishedMakingHypoDytoxin() {
playMidiMusicTracks(-1, -1); playMidiMusicTracks(-1, -1);
showText(23, true); showDescription(23, true);
showText(TX_SPEAKER_MCCOY, 18, true); showText(TX_SPEAKER_MCCOY, 18, true);
giveItem(OBJECT_IDETOXIN); giveItem(OBJECT_IDETOXIN);
@ -230,7 +230,7 @@ void Room::demon6SpockFinishedRepairingHand() {
// FIXME: doesn't work // FIXME: doesn't work
void Room::demon6UseAnythingOnWorkspace() { void Room::demon6UseAnythingOnWorkspace() {
showText(20, true); showDescription(20, true);
} }
void Room::demon6StephenIsInsulted() { void Room::demon6StephenIsInsulted() {
@ -243,7 +243,7 @@ void Room::demon6StephenDescribesItemsInCase() {
while (true) { while (true) {
showText(TX_SPEAKER_STEPHEN, 51, true); showText(TX_SPEAKER_STEPHEN, 51, true);
TextRef choices2[] = { TX_SPEAKER_STEPHEN, 45, 46, 47, 48, 49, 50, TX_BLANK }; TextRef choices2[] = { TX_SPEAKER_STEPHEN, 45, 46, 47, 48, 49, 50, TX_BLANK };
TextRef choice = showText(choices2, true); TextRef choice = showMultipleTexts(choices2, true);
switch (choice) { switch (choice) {
case 0: case 0:
@ -266,7 +266,7 @@ void Room::demon6StephenDescribesItemsInCase() {
_roomVar.demon.caseOpened = true; _roomVar.demon.caseOpened = true;
return; return;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
} }
} }
} }
@ -277,7 +277,7 @@ void Room::demon6UseCrewmanOnCase() {
return; return;
showText(TX_SPEAKER_STEPHEN, 44, true); showText(TX_SPEAKER_STEPHEN, 44, true);
TextRef choices1[] = {TX_SPEAKER_KIRK, 1, 6, 3, TX_BLANK}; TextRef choices1[] = {TX_SPEAKER_KIRK, 1, 6, 3, TX_BLANK};
TextRef choice = showText(choices1, true); TextRef choice = showMultipleTexts(choices1, true);
if (choice == 0) { if (choice == 0) {
demon6StephenIsInsulted(); demon6StephenIsInsulted();
@ -287,19 +287,19 @@ void Room::demon6UseCrewmanOnCase() {
} else if (choice == 2) { } else if (choice == 2) {
showText(TX_SPEAKER_STEPHEN, 31, true); showText(TX_SPEAKER_STEPHEN, 31, true);
TextRef choices3[] = {TX_SPEAKER_KIRK, 1, 6, TX_BLANK}; TextRef choices3[] = {TX_SPEAKER_KIRK, 1, 6, TX_BLANK};
choice = showText(choices3, true); choice = showMultipleTexts(choices3, true);
if (choice == 0) if (choice == 0)
demon6StephenIsInsulted(); demon6StephenIsInsulted();
else if (choice == 1) else if (choice == 1)
demon6StephenDescribesItemsInCase(); demon6StephenDescribesItemsInCase();
else else
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
} else { } else {
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
} }
} else { } else {
showText(12, true); showDescription(12, true);
showText(TX_SPEAKER_MCCOY, 19, true); showText(TX_SPEAKER_MCCOY, 19, true);
} }
} }
@ -348,7 +348,7 @@ void Room::demon6UseMetalOnStephen() {
void Room::demon6ReturnItemToStephen(int item) { void Room::demon6ReturnItemToStephen(int item) {
loseItem(item); loseItem(item);
showText(19, true); showDescription(19, true);
showText(TX_SPEAKER_STEPHEN, 29, true); showText(TX_SPEAKER_STEPHEN, 29, true);
} }
@ -421,7 +421,7 @@ void Room::demon6UseSTricoderOnSynthesizer() {
void Room::demon6GetCase() { void Room::demon6GetCase() {
if (!_roomVar.demon.caseOpened) if (!_roomVar.demon.caseOpened)
showText(22, true); showDescription(22, true);
else else
walkCrewman(OBJECT_KIRK, 0xff, 0xba, 5); walkCrewman(OBJECT_KIRK, 0xff, 0xba, 5);
} }

View file

@ -59,7 +59,7 @@ void Room::feather0TalkToQuetzecoatl() {
}; };
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_028); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_028);
int choice = showText(choices); int choice = showMultipleTexts(choices);
bool alreadyAngered = false; bool alreadyAngered = false;
if (choice == 0) { if (choice == 0) {
@ -70,7 +70,7 @@ void Room::feather0TalkToQuetzecoatl() {
TX_BLANK TX_BLANK
}; };
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_032); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_032);
choice = showText(choices0); choice = showMultipleTexts(choices0);
} else if (choice == 1) { } else if (choice == 1) {
const TextRef choices0[] = { const TextRef choices0[] = {
TX_SPEAKER_KIRK, TX_SPEAKER_KIRK,
@ -79,7 +79,7 @@ void Room::feather0TalkToQuetzecoatl() {
TX_BLANK TX_BLANK
}; };
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_031); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_031);
choice = showText(choices0); choice = showMultipleTexts(choices0);
} else if (choice == 2) { } else if (choice == 2) {
const TextRef choices0[] = { const TextRef choices0[] = {
TX_SPEAKER_KIRK, TX_SPEAKER_KIRK,
@ -88,14 +88,14 @@ void Room::feather0TalkToQuetzecoatl() {
TX_BLANK TX_BLANK
}; };
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_033); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_033);
choice = showText(choices0); choice = showMultipleTexts(choices0);
if (choice == 0) { if (choice == 0) {
alreadyAngered = true; alreadyAngered = true;
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_024); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_024);
} }
} else } else
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
if (!alreadyAngered) { if (!alreadyAngered) {
if (choice == 0) if (choice == 0)
@ -111,7 +111,7 @@ void Room::feather0TalkToQuetzecoatl() {
TX_FEA0_005, TX_FEA0_005,
TX_BLANK TX_BLANK
}; };
choice = showText(choices1); choice = showMultipleTexts(choices1);
if (choice == 0) { if (choice == 0) {
showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_029); showText(TX_SPEAKER_QUETZECOATL, TX_FEA0_029);
@ -156,43 +156,43 @@ void Room::feather0UseMedkit() {
} }
void Room::feather0LookAtQuetzecoatl() { void Room::feather0LookAtQuetzecoatl() {
showText(TX_FEA0N008); showDescription(TX_FEA0N008);
} }
void Room::feather0LookAtMoon() { void Room::feather0LookAtMoon() {
showText(TX_FEA0N007); showDescription(TX_FEA0N007);
} }
void Room::feather0LookAtLog() { void Room::feather0LookAtLog() {
showText(TX_FEA0N006); showDescription(TX_FEA0N006);
} }
void Room::feather0LookAtHut() { void Room::feather0LookAtHut() {
showText(TX_FEA0N001); showDescription(TX_FEA0N001);
} }
void Room::feather0LookAnywhere() { void Room::feather0LookAnywhere() {
showText(TX_FEA0N009); showDescription(TX_FEA0N009);
} }
void Room::feather0LookAtEyes() { void Room::feather0LookAtEyes() {
showText(TX_FEA0N000); showDescription(TX_FEA0N000);
} }
void Room::feather0LookAtTree() { void Room::feather0LookAtTree() {
showText(TX_FEA0N003); showDescription(TX_FEA0N003);
} }
void Room::feather0LookAtMccoy() { void Room::feather0LookAtMccoy() {
showText(TX_FEA0N004); showDescription(TX_FEA0N004);
} }
void Room::feather0LookAtSpock() { void Room::feather0LookAtSpock() {
showText(TX_FEA0N005); showDescription(TX_FEA0N005);
} }
void Room::feather0LookAtRedshirt() { void Room::feather0LookAtRedshirt() {
showText(TX_FEA0N002); showDescription(TX_FEA0N002);
} }
void Room::feather0TalkToMccoy() { void Room::feather0TalkToMccoy() {

View file

@ -188,21 +188,21 @@ void Room::feather1QuetzecoatlDisappeared() {
} }
void Room::feather1GetRightVine() { void Room::feather1GetRightVine() {
showText(TX_FEA1N008); showDescription(TX_FEA1N008);
} }
void Room::feather1GetLeftVine() { void Room::feather1GetLeftVine() {
if (_awayMission->feather.vineState == 0) if (_awayMission->feather.vineState == 0)
showText(TX_FEA1N009); showDescription(TX_FEA1N009);
else else
showText(TX_FEA1N008); showDescription(TX_FEA1N008);
} }
void Room::feather1GetRocks() { void Room::feather1GetRocks() {
if (_roomVar.feather.crewEscaped[OBJECT_KIRK]) if (_roomVar.feather.crewEscaped[OBJECT_KIRK])
showText(TX_FEA1N021); showDescription(TX_FEA1N021);
else if (_awayMission->feather.gotRock) else if (_awayMission->feather.gotRock)
showText(TX_FEA1N019); showDescription(TX_FEA1N019);
else { else {
walkCrewmanC(OBJECT_KIRK, 0x90, 0xb6, &Room::feather1ReachedRocks); walkCrewmanC(OBJECT_KIRK, 0x90, 0xb6, &Room::feather1ReachedRocks);
_awayMission->disableInput = true; _awayMission->disableInput = true;
@ -217,7 +217,7 @@ void Room::feather1PickedUpRocks() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
giveItem(OBJECT_IROCK); giveItem(OBJECT_IROCK);
showText(TX_FEA1N022); showDescription(TX_FEA1N022);
_awayMission->feather.gotRock = true; _awayMission->feather.gotRock = true;
} }
@ -229,7 +229,7 @@ void Room::feather1GetSnake() {
walkCrewmanC(OBJECT_KIRK, 0x90, 0xbe, &Room::feather1ReachedSnake); walkCrewmanC(OBJECT_KIRK, 0x90, 0xbe, &Room::feather1ReachedSnake);
_awayMission->disableInput = true; _awayMission->disableInput = true;
} else } else
showText(TX_FEA1N021); showDescription(TX_FEA1N021);
} }
void Room::feather1ReachedSnake() { void Room::feather1ReachedSnake() {
@ -272,9 +272,9 @@ void Room::feather1UseCommunicator() {
void Room::feather1UseRockOnHole() { void Room::feather1UseRockOnHole() {
if (_roomVar.feather.crewEscaped[OBJECT_KIRK]) if (_roomVar.feather.crewEscaped[OBJECT_KIRK])
showText(TX_FEA1N021); showDescription(TX_FEA1N021);
else if (_awayMission->feather.holeBlocked) else if (_awayMission->feather.holeBlocked)
showText(TX_FEA1N005); showDescription(TX_FEA1N005);
else { else {
_awayMission->feather.missionScore++; _awayMission->feather.missionScore++;
walkCrewmanC(OBJECT_KIRK, 0xa3, 0xb6, &Room::feather1ReachedHole); walkCrewmanC(OBJECT_KIRK, 0xa3, 0xb6, &Room::feather1ReachedHole);
@ -364,7 +364,7 @@ void Room::feather1UseRedshirtOnHole() {
} }
void Room::feather1UseRockOnMoss() { void Room::feather1UseRockOnMoss() {
showText(TX_FEA1N006); showDescription(TX_FEA1N006);
} }
void Room::feather1UseRockOnSpock() { void Room::feather1UseRockOnSpock() {
@ -466,7 +466,7 @@ void Room::feather1UseKirkOnVine() {
_roomVar.feather.crewmanClimbingVine = OBJECT_KIRK; _roomVar.feather.crewmanClimbingVine = OBJECT_KIRK;
feather1CrewmanClimbVine(); feather1CrewmanClimbVine();
} else } else
showText(TX_FEA1N010); showDescription(TX_FEA1N010);
} }
// This was refactored, due to the similarity of the code for each crewman. Originally, the // This was refactored, due to the similarity of the code for each crewman. Originally, the
@ -619,58 +619,58 @@ void Room::feather1WalkToExit() {
} }
void Room::feather1LookAnywhere() { void Room::feather1LookAnywhere() {
showText(TX_FEA1N020); showDescription(TX_FEA1N020);
} }
void Room::feather1LookAtSnake() { void Room::feather1LookAtSnake() {
showText(TX_FEA1N017); showDescription(TX_FEA1N017);
} }
void Room::feather1LookAtRightVine() { void Room::feather1LookAtRightVine() {
showText(TX_FEA1N015); showDescription(TX_FEA1N015);
} }
void Room::feather1LookAtHole() { void Room::feather1LookAtHole() {
showText(TX_FEA1N014); showDescription(TX_FEA1N014);
} }
void Room::feather1LookAtMoss() { void Room::feather1LookAtMoss() {
showText(TX_FEA1N016); showDescription(TX_FEA1N016);
} }
void Room::feather1LookAtRocks() { void Room::feather1LookAtRocks() {
showText(TX_FEA1N011); showDescription(TX_FEA1N011);
} }
void Room::feather1LookAtLight() { void Room::feather1LookAtLight() {
showText(TX_FEA1N013); showDescription(TX_FEA1N013);
} }
void Room::feather1LookAtEyes() { void Room::feather1LookAtEyes() {
showText(TX_FEA1N000); showDescription(TX_FEA1N000);
} }
void Room::feather1LookAtKirk() { void Room::feather1LookAtKirk() {
showText(TX_FEA1N001); showDescription(TX_FEA1N001);
} }
void Room::feather1LookAtSpock() { void Room::feather1LookAtSpock() {
showText(TX_FEA1N004); showDescription(TX_FEA1N004);
} }
void Room::feather1LookAtMccoy() { void Room::feather1LookAtMccoy() {
showText(TX_FEA1N003); showDescription(TX_FEA1N003);
} }
void Room::feather1LookAtRedshirt() { void Room::feather1LookAtRedshirt() {
showText(TX_FEA1N002); showDescription(TX_FEA1N002);
} }
void Room::feather1LookAtLeftVine() { void Room::feather1LookAtLeftVine() {
if (_awayMission->feather.vineState == 0) if (_awayMission->feather.vineState == 0)
showText(TX_FEA1N012); showDescription(TX_FEA1N012);
else else
showText(TX_FEA1N015); showDescription(TX_FEA1N015);
} }
} }

View file

@ -97,7 +97,7 @@ void Room::feather2TalkToRedshirt() {
void Room::feather2LookAtVines() { void Room::feather2LookAtVines() {
// NOTE: This might be unused? I can't find where HOTSPOT_VINES is supposed to be. // NOTE: This might be unused? I can't find where HOTSPOT_VINES is supposed to be.
showText(TX_FEA2N000); showDescription(TX_FEA2N000);
showText(TX_SPEAKER_STRAGEY, TX_FEA2_010); showText(TX_SPEAKER_STRAGEY, TX_FEA2_010);
showText(TX_SPEAKER_MCCOY, TX_FEA2_005); showText(TX_SPEAKER_MCCOY, TX_FEA2_005);
} }
@ -111,35 +111,35 @@ void Room::feather2WalkToLeftExit() {
} }
void Room::feather2LookAtEyes() { void Room::feather2LookAtEyes() {
showText(TX_FEA2N001); showDescription(TX_FEA2N001);
} }
void Room::feather2LookAtBigTree() { void Room::feather2LookAtBigTree() {
showText(TX_FEA2N006); showDescription(TX_FEA2N006);
} }
void Room::feather2LookAtTrees() { void Room::feather2LookAtTrees() {
showText(TX_FEA2N007); showDescription(TX_FEA2N007);
} }
void Room::feather2LookAnywhere() { void Room::feather2LookAnywhere() {
showText(TX_FEA2N008); showDescription(TX_FEA2N008);
} }
void Room::feather2LookAtKirk() { void Room::feather2LookAtKirk() {
showText(TX_FEA2N002); showDescription(TX_FEA2N002);
} }
void Room::feather2LookAtSpock() { void Room::feather2LookAtSpock() {
showText(TX_FEA2N005); showDescription(TX_FEA2N005);
} }
void Room::feather2LookAtMccoy() { void Room::feather2LookAtMccoy() {
showText(TX_FEA2N004); showDescription(TX_FEA2N004);
} }
void Room::feather2LookAtRedshirt() { void Room::feather2LookAtRedshirt() {
showText(TX_FEA2N003); showDescription(TX_FEA2N003);
} }
} }

View file

@ -151,7 +151,7 @@ void Room::feather3UseSnakeOnKirk() {
loadActorAnim(OBJECT_KNIFE, "s5r3nf", KNIFE_X, KNIFE_Y); loadActorAnim(OBJECT_KNIFE, "s5r3nf", KNIFE_X, KNIFE_Y);
_awayMission->feather.field2e = true; _awayMission->feather.field2e = true;
} else } else
showText(TX_FEA3N004); showDescription(TX_FEA3N004);
} }
} }
@ -259,7 +259,7 @@ void Room::feather3Timer3Expired() {
void Room::feather3TlaoxacKnockedOutFromRockThrow() { void Room::feather3TlaoxacKnockedOutFromRockThrow() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_FEA3N006); showDescription(TX_FEA3N006);
if (!_awayMission->feather.tookKnife && !_awayMission->feather.field2e) if (!_awayMission->feather.tookKnife && !_awayMission->feather.field2e)
showText(TX_SPEAKER_MCCOY, TX_FEA3_008); showText(TX_SPEAKER_MCCOY, TX_FEA3_008);
@ -298,7 +298,7 @@ void Room::feather3TalkToTlaoxac() {
TX_FEA3_001, TX_FEA3_002, TX_FEA3_003, TX_FEA3_001, TX_FEA3_002, TX_FEA3_003,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) if (choice == 0)
showText(TX_SPEAKER_TLAOXAC, TX_FEA3_037); showText(TX_SPEAKER_TLAOXAC, TX_FEA3_037);
@ -312,7 +312,7 @@ void Room::feather3TalkToTlaoxac() {
loadActorAnim(OBJECT_REDSHIRT, "s5r3rd"); loadActorAnim(OBJECT_REDSHIRT, "s5r3rd");
_awayMission->redshirtDead = true; _awayMission->redshirtDead = true;
} else } else
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
} }
} }
} }
@ -377,40 +377,40 @@ void Room::feather3Timer1Expired() {
void Room::feather3PickedUpKnife() { void Room::feather3PickedUpKnife() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_FEA3N010); showDescription(TX_FEA3N010);
} }
void Room::feather3LookAtSpock() { void Room::feather3LookAtSpock() {
if (!_awayMission->feather.knockedOutTlaoxac && !_awayMission->feather.tlaoxacTestPassed) if (!_awayMission->feather.knockedOutTlaoxac && !_awayMission->feather.tlaoxacTestPassed)
showText(TX_FEA3N002); showDescription(TX_FEA3N002);
else // ENHANCEMENT: Originally did nothing here. Fall back to default behaviour in the engine. else // ENHANCEMENT: Originally did nothing here. Fall back to default behaviour in the engine.
_awayMission->rdfStillDoDefaultAction = true; _awayMission->rdfStillDoDefaultAction = true;
} }
void Room::feather3LookAtRedshirt() { void Room::feather3LookAtRedshirt() {
if (_awayMission->redshirtDead) if (_awayMission->redshirtDead)
showText(TX_FEA3N005); showDescription(TX_FEA3N005);
else else
showText(TX_FEA3N012); showDescription(TX_FEA3N012);
} }
void Room::feather3LookAtTlaoxac() { void Room::feather3LookAtTlaoxac() {
if (_awayMission->feather.knockedOutTlaoxac) if (_awayMission->feather.knockedOutTlaoxac)
showText(TX_FEA3N003); showDescription(TX_FEA3N003);
else else
showText(TX_FEA3N007); showDescription(TX_FEA3N007);
} }
void Room::feather3LookAtLight() { void Room::feather3LookAtLight() {
showText(TX_FEA3N001); showDescription(TX_FEA3N001);
} }
void Room::feather3LookAtMccoy() { void Room::feather3LookAtMccoy() {
showText(TX_FEA3N000); showDescription(TX_FEA3N000);
} }
void Room::feather3LookAtKnife() { void Room::feather3LookAtKnife() {
showText(TX_FEA3N011); showDescription(TX_FEA3N011);
} }
} }

View file

@ -125,39 +125,39 @@ void Room::feather4TalkToRedshirt() {
} }
void Room::feather4LookAtEyes() { void Room::feather4LookAtEyes() {
showText(TX_FEA4N003); showDescription(TX_FEA4N003);
} }
void Room::feather4LookAnywhere() { void Room::feather4LookAnywhere() {
showText(TX_FEA4N008); showDescription(TX_FEA4N008);
} }
void Room::feather4LookAtMushroom() { void Room::feather4LookAtMushroom() {
showText(TX_FEA4N001); showDescription(TX_FEA4N001);
} }
void Room::feather4LookAtFern() { void Room::feather4LookAtFern() {
showText(TX_FEA4N000); showDescription(TX_FEA4N000);
} }
void Room::feather4LookAtLight() { void Room::feather4LookAtLight() {
showText(TX_FEA4N002); showDescription(TX_FEA4N002);
} }
void Room::feather4LookAtKirk() { void Room::feather4LookAtKirk() {
showText(TX_FEA4N004); showDescription(TX_FEA4N004);
} }
void Room::feather4LookAtSpock() { void Room::feather4LookAtSpock() {
showText(TX_FEA4N007); showDescription(TX_FEA4N007);
} }
void Room::feather4LookAtMccoy() { void Room::feather4LookAtMccoy() {
showText(TX_FEA4N006); showDescription(TX_FEA4N006);
} }
void Room::feather4LookAtRedshirt() { void Room::feather4LookAtRedshirt() {
showText(TX_FEA4N005); showDescription(TX_FEA4N005);
} }
} }

View file

@ -194,7 +194,7 @@ void Room::feather5UseSnakeOnRedshirt() {
} }
void Room::feather5UseSnakeOnWater() { void Room::feather5UseSnakeOnWater() {
showText(TX_FEA5N011); showDescription(TX_FEA5N011);
loseItem(OBJECT_ISNAKE); loseItem(OBJECT_ISNAKE);
} }
@ -227,12 +227,12 @@ void Room::feather5UseKnifeOnMonster() {
} }
void Room::feather5GetFern() { void Room::feather5GetFern() {
showText(TX_FEA5N008); showDescription(TX_FEA5N008);
} }
void Room::feather5UseKnifeOnFern() { void Room::feather5UseKnifeOnFern() {
if (_awayMission->feather.gotFern) if (_awayMission->feather.gotFern)
showText(TX_FEA5N015); showDescription(TX_FEA5N015);
else { else {
walkCrewmanC(OBJECT_KIRK, 0x106, 0x8a, &Room::feather5ReachedFern); walkCrewmanC(OBJECT_KIRK, 0x106, 0x8a, &Room::feather5ReachedFern);
_awayMission->disableInput = true; _awayMission->disableInput = true;
@ -299,7 +299,7 @@ void Room::feather5UseRockOnRedshirt() {
void Room::feather5UseCrewmanOnThrownFern() { void Room::feather5UseCrewmanOnThrownFern() {
// This might be unused? The object in question (OBJECT_THROWN_FERN) shouldn't be // This might be unused? The object in question (OBJECT_THROWN_FERN) shouldn't be
// visible while player control is active. // visible while player control is active.
showText(TX_FEA5N003); showDescription(TX_FEA5N003);
} }
void Room::feather5UseSpockOnMonster() { void Room::feather5UseSpockOnMonster() {
@ -319,54 +319,54 @@ void Room::feather5UsePhaser() {
} }
void Room::feather5LookAnywhere() { void Room::feather5LookAnywhere() {
showText(TX_FEA5N012); showDescription(TX_FEA5N012);
} }
void Room::feather5LookAtLog() { void Room::feather5LookAtLog() {
showText(TX_FEA5N007); showDescription(TX_FEA5N007);
} }
void Room::feather5LookAtWater() { void Room::feather5LookAtWater() {
showText(TX_FEA5N009); showDescription(TX_FEA5N009);
} }
void Room::feather5LookAtFern() { void Room::feather5LookAtFern() {
showText(TX_FEA5N014); showDescription(TX_FEA5N014);
} }
void Room::feather5LookAtInsects() { void Room::feather5LookAtInsects() {
showText(TX_FEA5N005); showDescription(TX_FEA5N005);
} }
void Room::feather5LookAtCave() { void Room::feather5LookAtCave() {
showText(TX_FEA5N013); showDescription(TX_FEA5N013);
} }
void Room::feather5LookAtMonster() { void Room::feather5LookAtMonster() {
showText(TX_FEA5N000); showDescription(TX_FEA5N000);
} }
void Room::feather5LookAtSpock() { void Room::feather5LookAtSpock() {
showText(TX_FEA5N006); showDescription(TX_FEA5N006);
} }
void Room::feather5LookAtKirk() { void Room::feather5LookAtKirk() {
if (!_awayMission->feather.waterMonsterRetreated) if (!_awayMission->feather.waterMonsterRetreated)
showText(TX_FEA5N001); showDescription(TX_FEA5N001);
else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing
_awayMission->rdfStillDoDefaultAction = true; _awayMission->rdfStillDoDefaultAction = true;
} }
void Room::feather5LookAtMccoy() { void Room::feather5LookAtMccoy() {
if (!_awayMission->feather.waterMonsterRetreated) if (!_awayMission->feather.waterMonsterRetreated)
showText(TX_FEA5N002); showDescription(TX_FEA5N002);
else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing
_awayMission->rdfStillDoDefaultAction = true; _awayMission->rdfStillDoDefaultAction = true;
} }
void Room::feather5LookAtRedshirt() { void Room::feather5LookAtRedshirt() {
if (!_awayMission->feather.waterMonsterRetreated) if (!_awayMission->feather.waterMonsterRetreated)
showText(TX_FEA5N004); showDescription(TX_FEA5N004);
else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing else // ENHANCEMENT: Fall back to default behaviour instead of doing nothing
_awayMission->rdfStillDoDefaultAction = true; _awayMission->rdfStillDoDefaultAction = true;
} }

View file

@ -146,8 +146,8 @@ void Room::feather6KirkDiedFromStalactites() {
_awayMission->feather.missionScore -= 3; _awayMission->feather.missionScore -= 3;
_awayMission->feather.diedFromStalactites = true; _awayMission->feather.diedFromStalactites = true;
_awayMission->disableInput = false; _awayMission->disableInput = false;
showText(TX_FEA6N000); showDescription(TX_FEA6N000);
showText(TX_FEA6N004); showDescription(TX_FEA6N004);
loadRoomIndex(7, 5); loadRoomIndex(7, 5);
} }
@ -199,7 +199,7 @@ void Room::feather6UseKnifeOnStalagmites() {
} }
void Room::feather6UseKnifeAnywhere() { void Room::feather6UseKnifeAnywhere() {
showText(TX_FEA6N010); showDescription(TX_FEA6N010);
} }
void Room::feather6UseKnifeOnMccoy() { void Room::feather6UseKnifeOnMccoy() {
@ -216,11 +216,11 @@ void Room::feather6UseKnifeOnRedshirt() {
} }
void Room::feather6UseCrystalAnywhere() { void Room::feather6UseCrystalAnywhere() {
showText(TX_FEA6N015); showDescription(TX_FEA6N015);
} }
void Room::feather6UseSnakeAnywhere() { void Room::feather6UseSnakeAnywhere() {
showText(TX_FEA6N001); showDescription(TX_FEA6N001);
} }
void Room::feather6UseMedkitAnywhere() { void Room::feather6UseMedkitAnywhere() {
@ -232,43 +232,43 @@ void Room::feather6UsePhaser() {
} }
void Room::feather6LookAtEastExit() { void Room::feather6LookAtEastExit() {
showText(TX_FEA6N016); showDescription(TX_FEA6N016);
} }
void Room::feather6LookAnywhere() { void Room::feather6LookAnywhere() {
showText(TX_FEA6N003); showDescription(TX_FEA6N003);
} }
void Room::feather6LookAtRocks() { void Room::feather6LookAtRocks() {
showText(TX_FEA6N014); showDescription(TX_FEA6N014);
} }
void Room::feather6LookAtStalagmites() { void Room::feather6LookAtStalagmites() {
showText(TX_FEA6N013); showDescription(TX_FEA6N013);
} }
void Room::feather6LookAtCrystals() { void Room::feather6LookAtCrystals() {
showText(TX_FEA6N005); showDescription(TX_FEA6N005);
} }
void Room::feather6LookAtKirk() { void Room::feather6LookAtKirk() {
showText(TX_FEA6N007); showDescription(TX_FEA6N007);
} }
void Room::feather6LookAtSpock() { void Room::feather6LookAtSpock() {
showText(TX_FEA6N011); showDescription(TX_FEA6N011);
} }
void Room::feather6LookAtMccoy() { void Room::feather6LookAtMccoy() {
showText(TX_FEA6N002); showDescription(TX_FEA6N002);
} }
void Room::feather6LookAtRedshirt() { void Room::feather6LookAtRedshirt() {
showText(TX_FEA6N008); showDescription(TX_FEA6N008);
} }
void Room::feather6LookAtStalactites() { void Room::feather6LookAtStalactites() {
showText(TX_FEA6N012); showDescription(TX_FEA6N012);
showText(TX_SPEAKER_SPOCK, TX_FEA6_034); showText(TX_SPEAKER_SPOCK, TX_FEA6_034);
showText(TX_SPEAKER_MCCOY, TX_FEA6_017); showText(TX_SPEAKER_MCCOY, TX_FEA6_017);
showText(TX_SPEAKER_SPOCK, TX_FEA6_033); showText(TX_SPEAKER_SPOCK, TX_FEA6_033);
@ -279,7 +279,7 @@ void Room::feather6LookAtStalactites() {
TX_FEA6_008, TX_FEA6_006, TX_FEA6_004, TX_FEA6_008, TX_FEA6_006, TX_FEA6_004,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) if (choice == 0)
showText(TX_SPEAKER_SPOCK, TX_FEA6_032); showText(TX_SPEAKER_SPOCK, TX_FEA6_032);
@ -312,7 +312,7 @@ void Room::feather6TalkToSpock() {
TX_FEA6_003, TX_FEA6_005, TX_FEA6_007, TX_FEA6_003, TX_FEA6_005, TX_FEA6_007,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) if (choice == 0)
showText(TX_SPEAKER_SPOCK, TX_FEA6_029); showText(TX_SPEAKER_SPOCK, TX_FEA6_029);
@ -357,7 +357,7 @@ void Room::feather6UseSTricorderOnStalagmites() {
} }
void Room::feather6GetCrystals() { void Room::feather6GetCrystals() {
showText(TX_FEA6N020); showDescription(TX_FEA6N020);
} }
void Room::feather6UseKnifeOnCrystals() { void Room::feather6UseKnifeOnCrystals() {
@ -375,7 +375,7 @@ void Room::feather6DoneCuttingCrystals() {
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
_awayMission->feather.missionScore += 1; _awayMission->feather.missionScore += 1;
giveItem(OBJECT_ICRYSTAL); giveItem(OBJECT_ICRYSTAL);
showText(TX_FEA6N017); showDescription(TX_FEA6N017);
} }
void Room::feather6Timer4Expired() { // Crystal disappears when timer 4 expires void Room::feather6Timer4Expired() { // Crystal disappears when timer 4 expires

View file

@ -91,7 +91,7 @@ void Room::feather7KirkSatDown() {
TX_FEA7_005, TX_FEA7_006, TX_FEA7_010, TX_FEA7_005, TX_FEA7_006, TX_FEA7_010,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices1); int choice = showMultipleTexts(choices1);
if (choice == 0) { if (choice == 0) {
_roomVar.feather.insultedQuetzecoatl = true; _roomVar.feather.insultedQuetzecoatl = true;
@ -108,7 +108,7 @@ void Room::feather7KirkSatDown() {
TX_FEA7_007, TX_FEA7_004, TX_FEA7_012, TX_FEA7_007, TX_FEA7_004, TX_FEA7_012,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 0) { if (choice == 0) {
_roomVar.feather.insultedQuetzecoatl = true; _roomVar.feather.insultedQuetzecoatl = true;
@ -128,7 +128,7 @@ void Room::feather7KirkSatDown() {
TX_FEA7_008, TX_FEA7_009, TX_FEA7_011, TX_FEA7_008, TX_FEA7_009, TX_FEA7_011,
TX_BLANK TX_BLANK
}; };
choice = showText(choices3); choice = showMultipleTexts(choices3);
if (choice == 0) { if (choice == 0) {
_roomVar.feather.insultedQuetzecoatl = true; _roomVar.feather.insultedQuetzecoatl = true;

View file

@ -98,39 +98,39 @@ void Room::love0ReachedDoor1() {
} }
void Room::love0LookAtConsole() { void Room::love0LookAtConsole() {
showText(TX_LOV0N006); showDescription(TX_LOV0N006);
} }
void Room::love0LookAtViewscreen() { void Room::love0LookAtViewscreen() {
showText(TX_LOV0N000); showDescription(TX_LOV0N000);
} }
void Room::love0LookAnywhere() { void Room::love0LookAnywhere() {
showText(TX_LOV0N009); showDescription(TX_LOV0N009);
} }
void Room::love0LookAtDoor1() { void Room::love0LookAtDoor1() {
showText(TX_LOV0N008); showDescription(TX_LOV0N008);
} }
void Room::love0LookAtDoor2() { void Room::love0LookAtDoor2() {
showText(TX_LOV0N007); showDescription(TX_LOV0N007);
} }
void Room::love0LookAtKirk() { void Room::love0LookAtKirk() {
showText(TX_LOV0N002); showDescription(TX_LOV0N002);
} }
void Room::love0LookAtMccoy() { void Room::love0LookAtMccoy() {
showText(TX_LOV0N004); showDescription(TX_LOV0N004);
} }
void Room::love0LookAtSpock() { void Room::love0LookAtSpock() {
showText(TX_LOV0N005); showDescription(TX_LOV0N005);
} }
void Room::love0LookAtRedshirt() { void Room::love0LookAtRedshirt() {
showText(TX_LOV0N003); showDescription(TX_LOV0N003);
} }
void Room::love0TalkToKirk() { void Room::love0TalkToKirk() {
@ -247,7 +247,7 @@ void Room::love0InteractWithConsole() {
while (true) { while (true) {
showText(TX_SPEAKER_COMPUTER, TX_COMPU192); showText(TX_SPEAKER_COMPUTER, TX_COMPU192);
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 0: case 0:
@ -268,7 +268,7 @@ void Room::love0InteractWithConsole() {
case 5: case 5:
return; return;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
} }
@ -278,7 +278,7 @@ void Room::love0GetDoorOrConsole() {
// BUGFIX: There was a problem with "get door 1" where it would execute a bit of // BUGFIX: There was a problem with "get door 1" where it would execute a bit of
// non-code before reaching where it was supposed to be. Not sure if it had any actual // non-code before reaching where it was supposed to be. Not sure if it had any actual
// effect. // effect.
showText(TX_LOV0N001); showDescription(TX_LOV0N001);
// NOTE: There is an unused block of code that's jumped over in the "get door 2" // NOTE: There is an unused block of code that's jumped over in the "get door 2"
// function. (Spock says "that's not logical".) // function. (Spock says "that's not logical".)

View file

@ -158,69 +158,69 @@ void Room::love1ReachedDoor2() {
} }
void Room::love1LookAtLaser() { void Room::love1LookAtLaser() {
showText(TX_LOV1N000); showDescription(TX_LOV1N000);
} }
void Room::love1LookAtKirk() { void Room::love1LookAtKirk() {
showText(TX_LOV1N003); showDescription(TX_LOV1N003);
} }
void Room::love1LookAtSpock() { void Room::love1LookAtSpock() {
showText(TX_LOV1N004); showDescription(TX_LOV1N004);
} }
void Room::love1LookAtMccoy() { void Room::love1LookAtMccoy() {
showText(TX_LOV1N001); showDescription(TX_LOV1N001);
} }
void Room::love1LookAtRedshirt() { void Room::love1LookAtRedshirt() {
showText(TX_LOV1N002); showDescription(TX_LOV1N002);
} }
void Room::love1LookAnywhere() { void Room::love1LookAnywhere() {
showText(TX_LOV1N019); showDescription(TX_LOV1N019);
} }
void Room::love1LookAtNozzle() { void Room::love1LookAtNozzle() {
showText(TX_LOV1N022); showDescription(TX_LOV1N022);
} }
void Room::love1LookAtLadder() { void Room::love1LookAtLadder() {
showText(TX_LOV1N021); showDescription(TX_LOV1N021);
} }
void Room::love1LookAtDoor1Or2() { void Room::love1LookAtDoor1Or2() {
showText(TX_LOV1N020); showDescription(TX_LOV1N020);
} }
void Room::love1LookAtDoor3() { void Room::love1LookAtDoor3() {
showText(TX_LOV1N017); showDescription(TX_LOV1N017);
} }
void Room::love1LookAtDistillator() { void Room::love1LookAtDistillator() {
showText(TX_LOV1N016); showDescription(TX_LOV1N016);
} }
void Room::love1LookAtChamber() { void Room::love1LookAtChamber() {
if (_awayMission->love.chamberHasCure) if (_awayMission->love.chamberHasCure)
showText(TX_LOV1N013); showDescription(TX_LOV1N013);
else else
showText(TX_LOV1N014); showDescription(TX_LOV1N014);
} }
void Room::love1LookAtReplicator() { void Room::love1LookAtReplicator() {
showText(TX_LOV1N015); showDescription(TX_LOV1N015);
} }
void Room::love1LookAtFreezer() { void Room::love1LookAtFreezer() {
if (_awayMission->love.freezerOpen) if (_awayMission->love.freezerOpen)
showText(TX_LOV1N023); showDescription(TX_LOV1N023);
else else
showText(TX_LOV1N018); showDescription(TX_LOV1N018);
} }
void Room::love1LookAtDishes() { void Room::love1LookAtDishes() {
showText(TX_LOV1N012); showDescription(TX_LOV1N012);
} }
void Room::love1TalkToKirk() { void Room::love1TalkToKirk() {
@ -284,17 +284,17 @@ void Room::love1KirkReachedFreezer() {
if (_awayMission->love.freezerOpen) if (_awayMission->love.freezerOpen)
loadActorAnim2(OBJECT_KIRK, "kusehw", -1, -1, 9); loadActorAnim2(OBJECT_KIRK, "kusehw", -1, -1, 9);
else else
showText(TX_LOV1N010); showDescription(TX_LOV1N010);
} }
void Room::love1KirkGotVirusCulture() { void Room::love1KirkGotVirusCulture() {
giveItem(OBJECT_IDISHES); giveItem(OBJECT_IDISHES);
showText(TX_LOV1N006); showDescription(TX_LOV1N006);
} }
void Room::love1GetFromChamber() { void Room::love1GetFromChamber() {
if (!_awayMission->love.chamberHasDish) if (!_awayMission->love.chamberHasDish)
showText(TX_LOV1N009); showDescription(TX_LOV1N009);
else else
walkCrewman(OBJECT_KIRK, 0xb5, 0x8c, 8); walkCrewman(OBJECT_KIRK, 0xb5, 0x8c, 8);
} }
@ -306,14 +306,14 @@ void Room::love1KirkReachedChamber() {
void Room::love1KirkGotCureSample() { void Room::love1KirkGotCureSample() {
if (_awayMission->love.chamberHasCure) { if (_awayMission->love.chamberHasCure) {
giveItem(OBJECT_ISAMPLE); giveItem(OBJECT_ISAMPLE);
showText(TX_LOV1N035); showDescription(TX_LOV1N035);
// BUGFIX: after removing the cure, unset this variable. // BUGFIX: after removing the cure, unset this variable.
// Otherwise, any normal dish inserted afterward automagically becomes a cure. // Otherwise, any normal dish inserted afterward automagically becomes a cure.
_awayMission->love.chamberHasCure = false; _awayMission->love.chamberHasCure = false;
} else { } else {
giveItem(OBJECT_IDISHES); giveItem(OBJECT_IDISHES);
showText(TX_LOV1N006); showDescription(TX_LOV1N006);
} }
loadActorStandAnim(OBJECT_DISH_IN_CHAMBER); loadActorStandAnim(OBJECT_DISH_IN_CHAMBER);
@ -328,7 +328,7 @@ void Room::love1GetFromNozzle() {
void Room::love1KirkReachedNozzleToGet() { void Room::love1KirkReachedNozzleToGet() {
if (_awayMission->love.bottleInNozzle == 0) if (_awayMission->love.bottleInNozzle == 0)
showText(TX_LOV1N011); showDescription(TX_LOV1N011);
else else
loadActorAnim2(OBJECT_KIRK, "kusemn", -1, -1, 11); loadActorAnim2(OBJECT_KIRK, "kusemn", -1, -1, 11);
} }
@ -348,13 +348,13 @@ void Room::love1KirkGotBottleFromNozzle() {
giveItem(OBJECT_IRLG); giveItem(OBJECT_IRLG);
break; break;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
_awayMission->love.bottleInNozzle = BOTTLETYPE_NONE; _awayMission->love.bottleInNozzle = BOTTLETYPE_NONE;
loadActorStandAnim(OBJECT_BOTTLE); loadActorStandAnim(OBJECT_BOTTLE);
showText(TX_LOV1N007); showDescription(TX_LOV1N007);
_roomVar.love.itemInNozzle = 0; _roomVar.love.itemInNozzle = 0;
} }
@ -491,7 +491,7 @@ void Room::love1KirkReachedDistillator() {
void Room::love1KirkGotPolyberylcarbonate() { void Room::love1KirkGotPolyberylcarbonate() {
// Result of using insulation on distillator // Result of using insulation on distillator
showText(TX_LOV1N034); showDescription(TX_LOV1N034);
if (!_awayMission->love.gotPolyberylcarbonate) { if (!_awayMission->love.gotPolyberylcarbonate) {
_awayMission->love.gotPolyberylcarbonate = true; _awayMission->love.gotPolyberylcarbonate = true;
_awayMission->love.missionScore++; _awayMission->love.missionScore++;
@ -561,7 +561,7 @@ void Room::love1ReachedFreezerWithArbitraryItem() {
} }
void Room::love1FinishedUsingArbitraryItemOnFreezer() { void Room::love1FinishedUsingArbitraryItemOnFreezer() {
showText(TX_LOV1N008); showDescription(TX_LOV1N008);
} }
void Room::love1UseAnythingOnReplicator() { void Room::love1UseAnythingOnReplicator() {

View file

@ -195,48 +195,48 @@ void Room::love2DoorReachedOrOpened() {
} }
void Room::love2LookAtCabinet() { void Room::love2LookAtCabinet() {
showText(TX_LOV2N027); showDescription(TX_LOV2N027);
} }
void Room::love2LookAtDoor() { void Room::love2LookAtDoor() {
showText(TX_LOV2N001); showDescription(TX_LOV2N001);
} }
void Room::love2LookAtSynthesizer() { void Room::love2LookAtSynthesizer() {
showText(TX_LOV2N028); showDescription(TX_LOV2N028);
} }
void Room::love2LookAtAnywhere() { void Room::love2LookAtAnywhere() {
showText(TX_LOV2N026); showDescription(TX_LOV2N026);
} }
void Room::love2LookAtAntigrav() { void Room::love2LookAtAntigrav() {
showText(TX_LOV2N006); showDescription(TX_LOV2N006);
} }
void Room::love2LookAtMccoy() { void Room::love2LookAtMccoy() {
showText(TX_LOV2N011); showDescription(TX_LOV2N011);
} }
void Room::love2LookAtSpock() { void Room::love2LookAtSpock() {
showText(TX_LOV2N014); showDescription(TX_LOV2N014);
} }
void Room::love2LookAtRedshirt() { void Room::love2LookAtRedshirt() {
showText(TX_LOV2N010); showDescription(TX_LOV2N010);
} }
void Room::love2LookAtKirk() { void Room::love2LookAtKirk() {
showText(TX_LOV2N009); showDescription(TX_LOV2N009);
} }
void Room::love2LookAtArdak() { void Room::love2LookAtArdak() {
showText(TX_LOV2N045); showDescription(TX_LOV2N045);
showText(TX_SPEAKER_SPOCK, TX_LOV2_037); showText(TX_SPEAKER_SPOCK, TX_LOV2_037);
} }
void Room::love2LookAtChamber() { void Room::love2LookAtChamber() {
showText(TX_LOV2N029); showDescription(TX_LOV2N029);
showText(TX_SPEAKER_SPOCK, TX_LOV2_035); showText(TX_SPEAKER_SPOCK, TX_LOV2_035);
showText(TX_SPEAKER_MCCOY, TX_LOV2_019); showText(TX_SPEAKER_MCCOY, TX_LOV2_019);
showText(TX_SPEAKER_SPOCK, TX_LOV2_033); showText(TX_SPEAKER_SPOCK, TX_LOV2_033);
@ -246,14 +246,14 @@ void Room::love2LookAtChamber() {
void Room::love2LookAtCan1() { void Room::love2LookAtCan1() {
switch (_awayMission->love.canister1) { switch (_awayMission->love.canister1) {
case CANTYPE_O2: case CANTYPE_O2:
showText(TX_LOV2N004); showDescription(TX_LOV2N004);
break; break;
case CANTYPE_H2: case CANTYPE_H2:
showText(TX_LOV2N002); showDescription(TX_LOV2N002);
break; break;
case CANTYPE_N2: case CANTYPE_N2:
default: default:
showText(TX_LOV2N003); showDescription(TX_LOV2N003);
break; break;
} }
} }
@ -261,14 +261,14 @@ void Room::love2LookAtCan1() {
void Room::love2LookAtCan2() { void Room::love2LookAtCan2() {
switch (_awayMission->love.canister2) { switch (_awayMission->love.canister2) {
case CANTYPE_O2: case CANTYPE_O2:
showText(TX_LOV2N004); showDescription(TX_LOV2N004);
break; break;
case CANTYPE_H2: case CANTYPE_H2:
showText(TX_LOV2N002); showDescription(TX_LOV2N002);
break; break;
case CANTYPE_N2: case CANTYPE_N2:
default: default:
showText(TX_LOV2N003); showDescription(TX_LOV2N003);
break; break;
} }
} }
@ -359,11 +359,11 @@ void Room::love2ChangedGasFeed() {
if (_awayMission->love.gasFeedOn) { if (_awayMission->love.gasFeedOn) {
_awayMission->love.gasFeedOn = false; _awayMission->love.gasFeedOn = false;
loadActorAnim2(OBJECT_GAS_FEED, "s3r3v2", 0xac, 0x75, 0); loadActorAnim2(OBJECT_GAS_FEED, "s3r3v2", 0xac, 0x75, 0);
showText(TX_LOV2N007); showDescription(TX_LOV2N007);
} else { } else {
_awayMission->love.gasFeedOn = true; _awayMission->love.gasFeedOn = true;
loadActorAnim2(OBJECT_GAS_FEED, "s3r3v1", 0xac, 0x75, 0); loadActorAnim2(OBJECT_GAS_FEED, "s3r3v1", 0xac, 0x75, 0);
showText(TX_LOV2N008); showDescription(TX_LOV2N008);
} }
} }
@ -397,7 +397,7 @@ void Room::love2ReachedCanisterSlot() {
else if (_awayMission->love.canister2 == CANTYPE_NONE) else if (_awayMission->love.canister2 == CANTYPE_NONE)
loadActorAnim2(OBJECT_KIRK, "kusehn", -1, -1, 14); loadActorAnim2(OBJECT_KIRK, "kusehn", -1, -1, 14);
else else
showText(TX_LOV2N024); showDescription(TX_LOV2N024);
} }
} }
@ -405,7 +405,7 @@ void Room::love2PutCanisterInSlot1() {
playVoc("SE6FOOD"); playVoc("SE6FOOD");
loadActorAnim(OBJECT_CAN1, _roomVar.love.canisterAnim, 0xa7, 0xae, 0); loadActorAnim(OBJECT_CAN1, _roomVar.love.canisterAnim, 0xa7, 0xae, 0);
_awayMission->love.canister1 = _roomVar.love.canisterType; _awayMission->love.canister1 = _roomVar.love.canisterType;
showText(TX_LOV2N034); showDescription(TX_LOV2N034);
loseItem(_roomVar.love.canisterItem); loseItem(_roomVar.love.canisterItem);
} }
@ -413,7 +413,7 @@ void Room::love2PutCanisterInSlot2() {
playVoc("SE6FOOD"); playVoc("SE6FOOD");
loadActorAnim(OBJECT_CAN2, _roomVar.love.canisterAnim, 0xb1, 0xaf, 0); loadActorAnim(OBJECT_CAN2, _roomVar.love.canisterAnim, 0xb1, 0xaf, 0);
_awayMission->love.canister2 = _roomVar.love.canisterType; _awayMission->love.canister2 = _roomVar.love.canisterType;
showText(TX_LOV2N035); showDescription(TX_LOV2N035);
loseItem(_roomVar.love.canisterItem); loseItem(_roomVar.love.canisterItem);
} }
@ -432,7 +432,7 @@ void Room::love2ReachedCanisterSlot1ToGet() {
} }
void Room::love2TookCanister1() { void Room::love2TookCanister1() {
showText(TX_LOV2N030); showDescription(TX_LOV2N030);
loadActorStandAnim(OBJECT_CAN1); loadActorStandAnim(OBJECT_CAN1);
switch (_awayMission->love.canister1) { switch (_awayMission->love.canister1) {
@ -465,7 +465,7 @@ void Room::love2ReachedCanisterSlot2ToGet() {
} }
void Room::love2TookCanister2() { void Room::love2TookCanister2() {
showText(TX_LOV2N031); showDescription(TX_LOV2N031);
loadActorStandAnim(OBJECT_CAN2); loadActorStandAnim(OBJECT_CAN2);
switch (_awayMission->love.canister2) { switch (_awayMission->love.canister2) {
@ -521,7 +521,7 @@ void Room::love2CrewmanUsedSynthesizer() {
showText(TX_SPEAKER_SPOCK, TX_LOV2_006); showText(TX_SPEAKER_SPOCK, TX_LOV2_006);
} else { } else {
_roomVar.love.cb++; _roomVar.love.cb++;
showText(TX_LOV2N012); showDescription(TX_LOV2N012);
} }
} }
} }
@ -535,7 +535,7 @@ void Room::love2SpockEnabledGasFeeds() {
_awayMission->love.gasFeedOn = true; _awayMission->love.gasFeedOn = true;
loadActorAnim2(OBJECT_GAS_FEED, "s3r3v1", 0xac, 0x75, 0); loadActorAnim2(OBJECT_GAS_FEED, "s3r3v1", 0xac, 0x75, 0);
showText(TX_LOV2N008); showDescription(TX_LOV2N008);
walkCrewman(OBJECT_SPOCK, 0xc6, 0xbb, 0); walkCrewman(OBJECT_SPOCK, 0xc6, 0xbb, 0);
love2UseSynthesizer(); love2UseSynthesizer();
@ -562,14 +562,14 @@ void Room::love2UseSynthesizer() {
break; break;
case SYNTHITEM_VIRUS_SAMPLE: // Wet goo case SYNTHITEM_VIRUS_SAMPLE: // Wet goo
showText(TX_LOV2N051); showDescription(TX_LOV2N051);
showText(TX_SPEAKER_KIRK, TX_LOV2_002); showText(TX_SPEAKER_KIRK, TX_LOV2_002);
loadActorStandAnim(OBJECT_VIRUSSAMPLE); loadActorStandAnim(OBJECT_VIRUSSAMPLE);
goto closeSynthesizerDoor; goto closeSynthesizerDoor;
case SYNTHITEM_CURE_SAMPLE: // Wet goo case SYNTHITEM_CURE_SAMPLE: // Wet goo
wetGooFailure: wetGooFailure:
showText(TX_LOV2N050); showDescription(TX_LOV2N050);
showText(TX_SPEAKER_MCCOY, TX_LOV2_021); showText(TX_SPEAKER_MCCOY, TX_LOV2_021);
loadActorStandAnim(OBJECT_CURESAMPLE); loadActorStandAnim(OBJECT_CURESAMPLE);
goto closeSynthesizerDoor; goto closeSynthesizerDoor;
@ -598,13 +598,13 @@ closeSynthesizerDoor:
switch (_awayMission->love.synthesizerContents) { switch (_awayMission->love.synthesizerContents) {
case SYNTHITEM_PBC: // Inert matter case SYNTHITEM_PBC: // Inert matter
inertMatterFailure: inertMatterFailure:
showText(TX_LOV2N049); showDescription(TX_LOV2N049);
showText(TX_SPEAKER_SPOCK, TX_LOV2_039); // BUGFIX: original didn't play audio showText(TX_SPEAKER_SPOCK, TX_LOV2_039); // BUGFIX: original didn't play audio
loadActorStandAnim(OBJECT_POLYBERYLCARBONATE); loadActorStandAnim(OBJECT_POLYBERYLCARBONATE);
goto closeSynthesizerDoor; goto closeSynthesizerDoor;
case SYNTHITEM_VIRUS_SAMPLE: // Colorless goo (with useful information about virus in ammonia) case SYNTHITEM_VIRUS_SAMPLE: // Colorless goo (with useful information about virus in ammonia)
showText(TX_LOV2N048); showDescription(TX_LOV2N048);
showText(TX_SPEAKER_SPOCK, TX_LOV2_034); // BUGFIX: original didn't play audio showText(TX_SPEAKER_SPOCK, TX_LOV2_034); // BUGFIX: original didn't play audio
showText(TX_SPEAKER_MCCOY, TX_LOV2_023); showText(TX_SPEAKER_MCCOY, TX_LOV2_023);
loadActorStandAnim(OBJECT_VIRUSSAMPLE); loadActorStandAnim(OBJECT_VIRUSSAMPLE);
@ -631,7 +631,7 @@ inertMatterFailure:
goto inertMatterFailure; goto inertMatterFailure;
case SYNTHITEM_VIRUS_SAMPLE: // Wet goo case SYNTHITEM_VIRUS_SAMPLE: // Wet goo
showText(TX_LOV2N047); showDescription(TX_LOV2N047);
showText(TX_SPEAKER_MCCOY, TX_LOV2_017); showText(TX_SPEAKER_MCCOY, TX_LOV2_017);
loadActorStandAnim(OBJECT_VIRUSSAMPLE); loadActorStandAnim(OBJECT_VIRUSSAMPLE);
goto closeSynthesizerDoor; goto closeSynthesizerDoor;
@ -651,12 +651,12 @@ inertMatterFailure:
} }
} else { } else {
playVoc("EFX24"); playVoc("EFX24");
showText(TX_LOV2N005); showDescription(TX_LOV2N005);
showText(TX_SPEAKER_MCCOY, TX_LOV2_010); showText(TX_SPEAKER_MCCOY, TX_LOV2_010);
} }
} else { } else {
playVoc("EFX24"); playVoc("EFX24");
showText(TX_LOV2N005); showDescription(TX_LOV2N005);
showText(TX_SPEAKER_SPOCK, TX_LOV2_024); showText(TX_SPEAKER_SPOCK, TX_LOV2_024);
} }
} }
@ -671,14 +671,14 @@ void Room::love2SynthesizerDoorClosed() {
void Room::love2SynthesizerFinished() { void Room::love2SynthesizerFinished() {
switch (_awayMission->love.synthesizerBottleIndex) { switch (_awayMission->love.synthesizerBottleIndex) {
case BOTTLETYPE_N2O: case BOTTLETYPE_N2O:
showText(TX_LOV2N017); showDescription(TX_LOV2N017);
showText(TX_SPEAKER_SPOCK, TX_LOV2_032); showText(TX_SPEAKER_SPOCK, TX_LOV2_032);
showText(TX_SPEAKER_MCCOY, TX_LOV2_015); showText(TX_SPEAKER_MCCOY, TX_LOV2_015);
showText(TX_SPEAKER_SPOCK, TX_LOV2_036); showText(TX_SPEAKER_SPOCK, TX_LOV2_036);
break; break;
case BOTTLETYPE_NH3: case BOTTLETYPE_NH3:
showText(TX_LOV2N016); showDescription(TX_LOV2N016);
if (!_awayMission->redshirtDead) { if (!_awayMission->redshirtDead) {
showText(TX_SPEAKER_FERRIS, TX_LOV2_043); showText(TX_SPEAKER_FERRIS, TX_LOV2_043);
showText(TX_SPEAKER_KIRK, TX_LOV2_003); showText(TX_SPEAKER_KIRK, TX_LOV2_003);
@ -686,13 +686,13 @@ void Room::love2SynthesizerFinished() {
break; break;
case BOTTLETYPE_H2O: case BOTTLETYPE_H2O:
showText(TX_LOV2N018); showDescription(TX_LOV2N018);
showText(TX_SPEAKER_SPOCK, TX_LOV2_004); showText(TX_SPEAKER_SPOCK, TX_LOV2_004);
break; break;
case BOTTLETYPE_RLG: case BOTTLETYPE_RLG:
default: default:
showText(TX_LOV2N019); showDescription(TX_LOV2N019);
showText(TX_SPEAKER_SPOCK, TX_LOV2_031); showText(TX_SPEAKER_SPOCK, TX_LOV2_031);
showText(TX_SPEAKER_MCCOY, TX_LOV2_018); showText(TX_SPEAKER_MCCOY, TX_LOV2_018);
showText(TX_SPEAKER_SPOCK, TX_LOV2_030); showText(TX_SPEAKER_SPOCK, TX_LOV2_030);
@ -719,7 +719,7 @@ void Room::love2CureStartedSynthesizing() {
} }
void Room::love2CureSynthesized() { void Room::love2CureSynthesized() {
showText(TX_LOV2N046); showDescription(TX_LOV2N046);
showText(TX_SPEAKER_MCCOY, TX_LOV2_020); showText(TX_SPEAKER_MCCOY, TX_LOV2_020);
} }
@ -732,7 +732,7 @@ void Room::love2UsePolyberylcarbonateOnSynthesizerDoor() {
void Room::love2KirkReachedSynthesizerWithPolyberylcarbonate() { void Room::love2KirkReachedSynthesizerWithPolyberylcarbonate() {
if (_awayMission->love.synthesizerContents != 0) if (_awayMission->love.synthesizerContents != 0)
showText(TX_LOV2N025); showDescription(TX_LOV2N025);
else { else {
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 5); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 5);
playSoundEffectIndex(SND_DOOR1); playSoundEffectIndex(SND_DOOR1);
@ -758,7 +758,7 @@ void Room::love2UseVirusSampleOnSynthesizerDoor() {
void Room::love2KirkReachedSynthesizerWithVirusSample() { void Room::love2KirkReachedSynthesizerWithVirusSample() {
if (_awayMission->love.synthesizerContents != 0) if (_awayMission->love.synthesizerContents != 0)
showText(TX_LOV2N025); showDescription(TX_LOV2N025);
else { else {
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 6); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 6);
playSoundEffectIndex(SND_DOOR1); playSoundEffectIndex(SND_DOOR1);
@ -784,7 +784,7 @@ void Room::love2UseCureSampleOnSynthesizerDoor() {
void Room::love2KirkReachedSynthesizerWithCureSample() { void Room::love2KirkReachedSynthesizerWithCureSample() {
if (_awayMission->love.synthesizerContents != 0) if (_awayMission->love.synthesizerContents != 0)
showText(TX_LOV2N025); // BUGFIX: original didn't play audio showDescription(TX_LOV2N025); // BUGFIX: original didn't play audio
else { else {
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 7); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d2", 0x8a, 0x8d, 7);
playSoundEffectIndex(SND_DOOR1); playSoundEffectIndex(SND_DOOR1);
@ -831,7 +831,7 @@ void Room::love2ReachedAntigrav() {
void Room::love2GotAntigrav() { void Room::love2GotAntigrav() {
loadActorStandAnim(OBJECT_ANTIGRAV); loadActorStandAnim(OBJECT_ANTIGRAV);
giveItem(OBJECT_IANTIGRA); giveItem(OBJECT_IANTIGRA);
showText(TX_LOV2N042); showDescription(TX_LOV2N042);
} }
@ -847,7 +847,7 @@ void Room::love2ReachedPolyberylcarbonate() {
void Room::love2GotPolyberylcarbonate() { void Room::love2GotPolyberylcarbonate() {
loadActorStandAnim(OBJECT_POLYBERYLCARBONATE); loadActorStandAnim(OBJECT_POLYBERYLCARBONATE);
showText(TX_LOV2N044); showDescription(TX_LOV2N044);
giveItem(OBJECT_IPBC); giveItem(OBJECT_IPBC);
_awayMission->love.synthesizerContents = 0; _awayMission->love.synthesizerContents = 0;
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0);
@ -867,7 +867,7 @@ void Room::love2ReachedDishes() {
void Room::love2GotDishes() { void Room::love2GotDishes() {
loadActorStandAnim(OBJECT_VIRUSSAMPLE); loadActorStandAnim(OBJECT_VIRUSSAMPLE);
showText(TX_LOV2N036); // FIXME: text doesn't match audio showDescription(TX_LOV2N036); // FIXME: text doesn't match audio
giveItem(OBJECT_IDISHES); giveItem(OBJECT_IDISHES);
_awayMission->love.synthesizerContents = 0; _awayMission->love.synthesizerContents = 0;
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0);
@ -887,7 +887,7 @@ void Room::love2ReachedSample() {
void Room::love2GotSample() { void Room::love2GotSample() {
loadActorStandAnim(OBJECT_CURESAMPLE); loadActorStandAnim(OBJECT_CURESAMPLE);
showText(TX_LOV2N037); showDescription(TX_LOV2N037);
giveItem(OBJECT_ISAMPLE); giveItem(OBJECT_ISAMPLE);
_awayMission->love.synthesizerContents = 0; _awayMission->love.synthesizerContents = 0;
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0);
@ -908,23 +908,23 @@ void Room::love2ReachedSynthesizerOutput() {
void Room::love2GotSynthesizerOutput() { void Room::love2GotSynthesizerOutput() {
switch (_awayMission->love.synthesizerBottleIndex) { switch (_awayMission->love.synthesizerBottleIndex) {
case BOTTLETYPE_N2O: case BOTTLETYPE_N2O:
showText(TX_LOV2N040); showDescription(TX_LOV2N040);
giveItem(OBJECT_IN2O); giveItem(OBJECT_IN2O);
break; break;
case BOTTLETYPE_NH3: case BOTTLETYPE_NH3:
showText(TX_LOV2N039); showDescription(TX_LOV2N039);
giveItem(OBJECT_INH3); giveItem(OBJECT_INH3);
break; break;
case BOTTLETYPE_H2O: case BOTTLETYPE_H2O:
showText(TX_LOV2N041); showDescription(TX_LOV2N041);
giveItem(OBJECT_IH2O); giveItem(OBJECT_IH2O);
break; break;
case BOTTLETYPE_RLG: case BOTTLETYPE_RLG:
default: default:
showText(TX_LOV2N038); showDescription(TX_LOV2N038);
if (!_awayMission->love.gotTLDH) { if (!_awayMission->love.gotTLDH) {
_awayMission->love.gotTLDH = true; _awayMission->love.gotTLDH = true;
_awayMission->love.missionScore += 4; _awayMission->love.missionScore += 4;
@ -959,7 +959,7 @@ void Room::love2GotCure() {
giveItem(OBJECT_ICURE); giveItem(OBJECT_ICURE);
loadActorStandAnim(OBJECT_CURE); loadActorStandAnim(OBJECT_CURE);
showText(TX_LOV2N043); showDescription(TX_LOV2N043);
loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0); loadActorAnim(OBJECT_SYNTHESIZER_DOOR, "s3r3d5", 0x8a, 0x8d, 0);
playSoundEffectIndex(SND_DOOR1); playSoundEffectIndex(SND_DOOR1);

View file

@ -85,58 +85,58 @@ void Room::love3Timer3Expired() {
} }
void Room::love3LookAtServicePanel() { void Room::love3LookAtServicePanel() {
showText(TX_LOV3NA20); showDescription(TX_LOV3NA20);
} }
void Room::love3LookAtMonitor() { void Room::love3LookAtMonitor() {
showText(TX_LOV3N000); // BUGFIX: original didn't play the audio showDescription(TX_LOV3N000); // BUGFIX: original didn't play the audio
} }
void Room::love3LookAtWrench() { void Room::love3LookAtWrench() {
showText(TX_LOV3N002); showDescription(TX_LOV3N002);
} }
void Room::love3LookAtKirk() { void Room::love3LookAtKirk() {
showText(TX_LOV3N003); showDescription(TX_LOV3N003);
} }
void Room::love3LookAtMccoy() { void Room::love3LookAtMccoy() {
showText(TX_LOV3N005); showDescription(TX_LOV3N005);
} }
void Room::love3LookAtSpock() { void Room::love3LookAtSpock() {
showText(TX_LOV3N008); showDescription(TX_LOV3N008);
} }
void Room::love3LookAtRedshirt() { void Room::love3LookAtRedshirt() {
showText(TX_LOV3N004); showDescription(TX_LOV3N004);
} }
void Room::love3LookAnywhere() { void Room::love3LookAnywhere() {
showText(TX_LOV3NA23); showDescription(TX_LOV3NA23);
} }
void Room::love3LookAtShaft() { void Room::love3LookAtShaft() {
showText(TX_LOV3NA21); showDescription(TX_LOV3NA21);
} }
void Room::love3LookAtGrate() { void Room::love3LookAtGrate() {
showText(TX_LOV3N019); showDescription(TX_LOV3N019);
} }
void Room::love3LookAtPanel() { void Room::love3LookAtPanel() {
if (_awayMission->love.insulationOnGround) if (_awayMission->love.insulationOnGround)
showText(TX_LOV3N017); showDescription(TX_LOV3N017);
else else
showText(TX_LOV3NA22); showDescription(TX_LOV3NA22);
} }
void Room::love3LookAtGasTank() { void Room::love3LookAtGasTank() {
showText(TX_LOV3N006); showDescription(TX_LOV3N006);
} }
void Room::love3LookAtTurbines() { void Room::love3LookAtTurbines() {
showText(TX_LOV3N026); showDescription(TX_LOV3N026);
showText(TX_SPEAKER_MCCOY, TX_LOV3_009); showText(TX_SPEAKER_MCCOY, TX_LOV3_009);
showText(TX_SPEAKER_SPOCK, TX_LOV3_019); showText(TX_SPEAKER_SPOCK, TX_LOV3_019);
if (!_awayMission->redshirtDead) if (!_awayMission->redshirtDead)
@ -222,11 +222,11 @@ void Room::love3OpenedOrClosedServicePanel() {
if (_awayMission->love.servicePanelOpen) { if (_awayMission->love.servicePanelOpen) {
if (_awayMission->love.tookN2TankFromServicePanel) if (_awayMission->love.tookN2TankFromServicePanel)
showText(TX_LOV3N023); showDescription(TX_LOV3N023);
else else
showText(TX_LOV3N022); showDescription(TX_LOV3N022);
} else } else
showText(TX_LOV3N020); showDescription(TX_LOV3N020);
} }
// Use wrench on gas tank, to screw or unscrew it in position // Use wrench on gas tank, to screw or unscrew it in position
@ -241,12 +241,12 @@ void Room::love3ReachedGasTankToUnscrew() {
void Room::love3ScrewedOrUnscrewedGasTank() { void Room::love3ScrewedOrUnscrewedGasTank() {
if (!_awayMission->love.gasTankUnscrewed) { if (!_awayMission->love.gasTankUnscrewed) {
showText(TX_LOV3N012); showDescription(TX_LOV3N012);
if (!_awayMission->redshirtDead) if (!_awayMission->redshirtDead)
showText(TX_SPEAKER_FERRIS, TX_LOV3_022); showText(TX_SPEAKER_FERRIS, TX_LOV3_022);
_awayMission->love.gasTankUnscrewed = true; _awayMission->love.gasTankUnscrewed = true;
} else { } else {
showText(TX_LOV3N015); showDescription(TX_LOV3N015);
_awayMission->love.gasTankUnscrewed = false; _awayMission->love.gasTankUnscrewed = false;
} }
} }
@ -268,7 +268,7 @@ void Room::love3ReachedGasTankToPutDown() {
} }
void Room::love3PutN2TankBack() { void Room::love3PutN2TankBack() {
showText(TX_LOV3N013); showDescription(TX_LOV3N013);
_awayMission->love.tookN2TankFromServicePanel = false; _awayMission->love.tookN2TankFromServicePanel = false;
loseItem(OBJECT_IN2GAS); loseItem(OBJECT_IN2GAS);
loadActorAnim(OBJECT_GAS_TANK, "r4n2", 0, 0, 0); loadActorAnim(OBJECT_GAS_TANK, "r4n2", 0, 0, 0);
@ -291,7 +291,7 @@ void Room::love3OpenedEngineeringPanel() {
loadActorAnim(OBJECT_INSULATION, "s3r4p1", 0, 0, 0); loadActorAnim(OBJECT_INSULATION, "s3r4p1", 0, 0, 0);
_awayMission->love.insulationOnGround = true; _awayMission->love.insulationOnGround = true;
} }
showText(TX_LOV3N021); showDescription(TX_LOV3N021);
} }
@ -319,7 +319,7 @@ void Room::love3PouredWaterOnMonitor() {
void Room::love3UseCrewmanOnEngineeringPanelOrGrate() { void Room::love3UseCrewmanOnEngineeringPanelOrGrate() {
showText(TX_LOV3N030); showDescription(TX_LOV3N030);
} }
@ -344,7 +344,7 @@ void Room::love3OpenedOrClosedGrate() {
if (!_awayMission->love.grateRemoved) { if (!_awayMission->love.grateRemoved) {
_awayMission->love.grateRemoved = true; _awayMission->love.grateRemoved = true;
loadActorAnim(OBJECT_GRATE, "s3r4g3", 0, 0, 0); loadActorAnim(OBJECT_GRATE, "s3r4g3", 0, 0, 0);
showText(TX_LOV3N016); showDescription(TX_LOV3N016);
if (!_awayMission->love.gotPointsForOpeningGrate) { if (!_awayMission->love.gotPointsForOpeningGrate) {
_awayMission->love.gotPointsForOpeningGrate = true; _awayMission->love.gotPointsForOpeningGrate = true;
_awayMission->love.missionScore++; _awayMission->love.missionScore++;
@ -352,13 +352,13 @@ void Room::love3OpenedOrClosedGrate() {
} else { } else {
loadActorAnim(OBJECT_GRATE, "s3r4g1", 0x116, 0x8f, 0); loadActorAnim(OBJECT_GRATE, "s3r4g1", 0x116, 0x8f, 0);
_awayMission->love.grateRemoved = false; _awayMission->love.grateRemoved = false;
showText(TX_LOV3N032); showDescription(TX_LOV3N032);
} }
} }
void Room::love3UseCrewmanOnShaft() { void Room::love3UseCrewmanOnShaft() {
showText(TX_LOV3N011); showDescription(TX_LOV3N011);
} }
@ -368,13 +368,13 @@ void Room::love3UseWaterOnShaft() {
void Room::love3ReachedShaftUsingWater() { void Room::love3ReachedShaftUsingWater() {
if (!_awayMission->love.grateRemoved) if (!_awayMission->love.grateRemoved)
showText(TX_LOV3N025); showDescription(TX_LOV3N025);
else else
loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredWaterDownShaft); loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredWaterDownShaft);
} }
void Room::love3PouredWaterDownShaft() { void Room::love3PouredWaterDownShaft() {
showText(TX_LOV3N009); showDescription(TX_LOV3N009);
loseItem(OBJECT_IH2O); loseItem(OBJECT_IH2O);
} }
@ -385,13 +385,13 @@ void Room::love3UseNitrousOxideOnShaft() {
void Room::love3ReachedShaftUsingNitrousOxide() { void Room::love3ReachedShaftUsingNitrousOxide() {
if (!_awayMission->love.grateRemoved) if (!_awayMission->love.grateRemoved)
showText(TX_LOV3N025); showDescription(TX_LOV3N025);
else else
loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredNitrousOxideDownShaft); loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredNitrousOxideDownShaft);
} }
void Room::love3PouredNitrousOxideDownShaft() { void Room::love3PouredNitrousOxideDownShaft() {
showText(TX_LOV3N018); showDescription(TX_LOV3N018);
showText(TX_SPEAKER_SPOCK, TX_LOV3_012); showText(TX_SPEAKER_SPOCK, TX_LOV3_012);
loseItem(OBJECT_IN2O); loseItem(OBJECT_IN2O);
} }
@ -403,14 +403,14 @@ void Room::love3UseAmmoniaOnShaft() {
void Room::love3ReachedShaftUsingAmmonia() { void Room::love3ReachedShaftUsingAmmonia() {
if (!_awayMission->love.grateRemoved) if (!_awayMission->love.grateRemoved)
showText(TX_LOV3N025); showDescription(TX_LOV3N025);
else else
loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredAmmoniaDownShaft); loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredAmmoniaDownShaft);
} }
void Room::love3PouredAmmoniaDownShaft() { void Room::love3PouredAmmoniaDownShaft() {
if (!_awayMission->love.romulansUnconsciousFromVirus) { if (!_awayMission->love.romulansUnconsciousFromVirus) {
showText(TX_LOV3N001); showDescription(TX_LOV3N001);
if (!_awayMission->redshirtDead) if (!_awayMission->redshirtDead)
showText(TX_SPEAKER_FERRIS, TX_LOV3_023); showText(TX_SPEAKER_FERRIS, TX_LOV3_023);
} }
@ -435,7 +435,7 @@ void Room::love3UseRomulanLaughingGasOnShaft() {
void Room::love3ReachedShaftUsingRomulanLaughingGas() { void Room::love3ReachedShaftUsingRomulanLaughingGas() {
if (!_awayMission->love.grateRemoved) if (!_awayMission->love.grateRemoved)
showText(TX_LOV3N025); showDescription(TX_LOV3N025);
else { else {
loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredRomulanLaughingGasDownShaft); loadActorAnimC(OBJECT_KIRK, "kuseme", -1, -1, &Room::love3PouredRomulanLaughingGasDownShaft);
playVoc("EFX24"); playVoc("EFX24");
@ -447,10 +447,10 @@ void Room::love3PouredRomulanLaughingGasDownShaft() {
_awayMission->love.romulansUnconsciousFromLaughingGas = true; _awayMission->love.romulansUnconsciousFromLaughingGas = true;
if (_awayMission->love.romulansUnconsciousFromVirus) { if (_awayMission->love.romulansUnconsciousFromVirus) {
showText(TX_LOV3NA08); showDescription(TX_LOV3NA08);
_awayMission->love.romulansUnconsciousFromLaughingGas = false; _awayMission->love.romulansUnconsciousFromLaughingGas = false;
} else { } else {
showText(TX_LOV3NA09); showDescription(TX_LOV3NA09);
playVoc("ROMULANL"); playVoc("ROMULANL");
} }
} }
@ -470,7 +470,7 @@ void Room::love3PickedUpWrench() {
giveItem(OBJECT_IWRENCH); giveItem(OBJECT_IWRENCH);
loadActorStandAnim(OBJECT_WRENCH); loadActorStandAnim(OBJECT_WRENCH);
_awayMission->love.wrenchTaken = true; _awayMission->love.wrenchTaken = true;
showText(TX_LOV3N031); showDescription(TX_LOV3N031);
} }
@ -481,9 +481,9 @@ void Room::love3GetGasTank() {
void Room::love3ReachedGasTankToGet() { void Room::love3ReachedGasTankToGet() {
if (_awayMission->love.gasTankUnscrewed) if (_awayMission->love.gasTankUnscrewed)
showText(TX_LOV3N007); showDescription(TX_LOV3N007);
else else
showText(TX_LOV3N014); showDescription(TX_LOV3N014);
} }
@ -497,7 +497,7 @@ void Room::love3ReachedGasTankUsingAntigrav() {
loadActorAnimC(OBJECT_KIRK, "kusehe", -1, -1, &Room::love3PickedUpGasTank); loadActorAnimC(OBJECT_KIRK, "kusehe", -1, -1, &Room::love3PickedUpGasTank);
playVoc("SE3PLBAT"); playVoc("SE3PLBAT");
} else { } else {
showText(TX_LOV3N010); showDescription(TX_LOV3N010);
showText(TX_SPEAKER_SPOCK, TX_LOV3_015); showText(TX_SPEAKER_SPOCK, TX_LOV3_015);
} }
} }
@ -507,7 +507,7 @@ void Room::love3PickedUpGasTank() {
loadActorStandAnim(OBJECT_GAS_TANK); loadActorStandAnim(OBJECT_GAS_TANK);
_awayMission->love.tookN2TankFromServicePanel = true; _awayMission->love.tookN2TankFromServicePanel = true;
showText(TX_LOV3NJ32); showDescription(TX_LOV3NJ32);
if (!_awayMission->redshirtDead) if (!_awayMission->redshirtDead)
showText(TX_SPEAKER_FERRIS, TX_LOV3_025); showText(TX_SPEAKER_FERRIS, TX_LOV3_025);
} }
@ -524,7 +524,7 @@ void Room::love3ReachedInsulationToGet() {
void Room::love3PickedUpInsulation() { void Room::love3PickedUpInsulation() {
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
giveItem(OBJECT_IINSULAT); giveItem(OBJECT_IINSULAT);
showText(TX_LOV3N029); showDescription(TX_LOV3N029);
} }
} }

View file

@ -100,19 +100,19 @@ void Room::love4UseStunPhaserOnRomulan() {
} }
void Room::love4LookAnywhere() { void Room::love4LookAnywhere() {
showText(TX_LOV4N009); showDescription(TX_LOV4N009);
} }
void Room::love4LookAtLadder() { void Room::love4LookAtLadder() {
showText(TX_LOV4N010); showDescription(TX_LOV4N010);
} }
void Room::love4LookAtDoor() { void Room::love4LookAtDoor() {
showText(TX_LOV4N008); showDescription(TX_LOV4N008);
} }
void Room::love4LookAtKirk() { void Room::love4LookAtKirk() {
showText(TX_LOV4N002); showDescription(TX_LOV4N002);
} }
void Room::love4LookAtMccoy() { void Room::love4LookAtMccoy() {
@ -121,22 +121,22 @@ void Room::love4LookAtMccoy() {
// is thinking it. // is thinking it.
// Not sure if this was an intentional decision, but there is another unused audio // Not sure if this was an intentional decision, but there is another unused audio
// file which matches with the text more accurately, so I'm using that instead. // file which matches with the text more accurately, so I'm using that instead.
showText(TX_LOV4N012); showDescription(TX_LOV4N012);
} }
void Room::love4LookAtSpock() { void Room::love4LookAtSpock() {
showText(TX_LOV4N003); showDescription(TX_LOV4N003);
} }
void Room::love4LookAtRedshirt() { void Room::love4LookAtRedshirt() {
showText(TX_LOV4N001); showDescription(TX_LOV4N001);
} }
void Room::love4LookAtRomulan() { void Room::love4LookAtRomulan() {
if (!_awayMission->love.romulansCured) if (!_awayMission->love.romulansCured)
showText(TX_LOV4N006); showDescription(TX_LOV4N006);
else else
showText(TX_LOV4N011); showDescription(TX_LOV4N011);
} }
void Room::love4TalkToKirk() { void Room::love4TalkToKirk() {
@ -163,7 +163,7 @@ void Room::love4TalkToSpock() {
void Room::love4TalkToRomulan() { void Room::love4TalkToRomulan() {
if (_awayMission->love.romulansCured) if (_awayMission->love.romulansCured)
showText(TX_LOV4N007); // BUGFIX: original didn't play audio showDescription(TX_LOV4N007); // BUGFIX: original didn't play audio
} }
void Room::love4UseMTricorderOnRomulan() { void Room::love4UseMTricorderOnRomulan() {
@ -233,7 +233,7 @@ void Room::love4MccoyReachedRomulan1() {
void Room::love4MccoyCuredRomulan1() { void Room::love4MccoyCuredRomulan1() {
loadActorAnim2(OBJECT_ROMULAN_1, "s3r5r1", 0x36, 0xb3, 0); loadActorAnim2(OBJECT_ROMULAN_1, "s3r5r1", 0x36, 0xb3, 0);
showText(TX_LOV4N005); showDescription(TX_LOV4N005);
if (!_roomVar.love.gaveWaterToRomulans) if (!_roomVar.love.gaveWaterToRomulans)
showText(TX_SPEAKER_MCCOY, TX_LOV4_023); showText(TX_SPEAKER_MCCOY, TX_LOV4_023);
@ -250,7 +250,7 @@ void Room::love4UseWaterOnRomulan() {
else { else {
_roomVar.love.gaveWaterToRomulans = true; _roomVar.love.gaveWaterToRomulans = true;
if (_awayMission->love.romulansCured) { if (_awayMission->love.romulansCured) {
showText(TX_LOV4N013); showDescription(TX_LOV4N013);
showText(TX_SPEAKER_MCCOY, TX_LOV4_026); showText(TX_SPEAKER_MCCOY, TX_LOV4_026);
showText(TX_SPEAKER_KIRK, TX_LOV4_001); showText(TX_SPEAKER_KIRK, TX_LOV4_001);
if (!_awayMission->love.gotPointsForHydratingRomulans) { if (!_awayMission->love.gotPointsForHydratingRomulans) {
@ -273,7 +273,7 @@ void Room::love4UseWaterOnRomulan() {
if (_awayMission->love.romulansUnconsciousFromVirus) if (_awayMission->love.romulansUnconsciousFromVirus)
showText(TX_SPEAKER_MCCOY, TX_LOV4_009); showText(TX_SPEAKER_MCCOY, TX_LOV4_009);
else { else {
showText(TX_LOV4N004); showDescription(TX_LOV4N004);
if (!_awayMission->redshirtDead) { if (!_awayMission->redshirtDead) {
showText(TX_SPEAKER_FERRIS, TX_LOV4_029); showText(TX_SPEAKER_FERRIS, TX_LOV4_029);
showText(TX_SPEAKER_KIRK, TX_LOV4_004); showText(TX_SPEAKER_KIRK, TX_LOV4_004);

View file

@ -80,23 +80,23 @@ void Room::love5UseStunPhaserOnPreax() {
} }
void Room::love5LookAtKirk() { void Room::love5LookAtKirk() {
showText(TX_LOV5N004); showDescription(TX_LOV5N004);
} }
void Room::love5LookAtSpock() { void Room::love5LookAtSpock() {
showText(TX_LOV5N005); showDescription(TX_LOV5N005);
} }
void Room::love5LookAtMccoy() { void Room::love5LookAtMccoy() {
showText(TX_LOV5N002); showDescription(TX_LOV5N002);
} }
void Room::love5LookAtRedshirt() { void Room::love5LookAtRedshirt() {
showText(TX_LOV5N003); showDescription(TX_LOV5N003);
} }
void Room::love5LookAnywhere() { void Room::love5LookAnywhere() {
showText(TX_LOV5N008); showDescription(TX_LOV5N008);
// There is an unused version of this function, which states "This is Dr. Marcus's // There is an unused version of this function, which states "This is Dr. Marcus's
// quarters, and there are hostages and 4 romulans here". That description doesn't // quarters, and there are hostages and 4 romulans here". That description doesn't
@ -109,24 +109,24 @@ void Room::love5LookAnywhere() {
} }
void Room::love5LookAtDevice() { void Room::love5LookAtDevice() {
showText(TX_LOV5N013); showDescription(TX_LOV5N013);
showText(TX_SPEAKER_MCCOY, TX_LOV5_028); showText(TX_SPEAKER_MCCOY, TX_LOV5_028);
showText(TX_SPEAKER_MARCUS, TX_LOV5_044); showText(TX_SPEAKER_MARCUS, TX_LOV5_044);
} }
void Room::love5LookAtConsole() { void Room::love5LookAtConsole() {
showText(TX_LOV5N016); showDescription(TX_LOV5N016);
showText(TX_SPEAKER_MCCOY, TX_LOV5_031); showText(TX_SPEAKER_MCCOY, TX_LOV5_031);
showText(TX_SPEAKER_MARCUS, TX_LOV5_050); showText(TX_SPEAKER_MARCUS, TX_LOV5_050);
} }
void Room::love5LookAtDrMarcus() { void Room::love5LookAtDrMarcus() {
if (_awayMission->love.freedMarcusAndCheever) if (_awayMission->love.freedMarcusAndCheever)
showText(TX_LOV5N001); showDescription(TX_LOV5N001);
else { else {
// BUGFIX: originally played audio "LOV5N001", which is only the first sentence of // BUGFIX: originally played audio "LOV5N001", which is only the first sentence of
// what should be spoken. // what should be spoken.
showText(TX_LOV5N015); showDescription(TX_LOV5N015);
showText(TX_SPEAKER_MARCUS, TX_LOV5_046); showText(TX_SPEAKER_MARCUS, TX_LOV5_046);
} }
@ -134,9 +134,9 @@ void Room::love5LookAtDrMarcus() {
void Room::love5LookAtDrCheever() { void Room::love5LookAtDrCheever() {
if (_awayMission->love.freedMarcusAndCheever) if (_awayMission->love.freedMarcusAndCheever)
showText(TX_LOV5N000); showDescription(TX_LOV5N000);
else { else {
showText(TX_LOV5N014); showDescription(TX_LOV5N014);
showText(TX_SPEAKER_CHEEVER, TX_LOV5_057); showText(TX_SPEAKER_CHEEVER, TX_LOV5_057);
if (!_awayMission->redshirtDead) { if (!_awayMission->redshirtDead) {
showText(TX_SPEAKER_FERRIS, TX_LOV5_054); showText(TX_SPEAKER_FERRIS, TX_LOV5_054);
@ -147,15 +147,15 @@ void Room::love5LookAtDrCheever() {
void Room::love5LookAtPreax() { void Room::love5LookAtPreax() {
if (_awayMission->love.preaxCured) if (_awayMission->love.preaxCured)
showText(TX_LOV5N011); showDescription(TX_LOV5N011);
else else
showText(TX_LOV5N012); showDescription(TX_LOV5N012);
} }
void Room::love5TalkToPreax() { void Room::love5TalkToPreax() {
if (_awayMission->love.preaxCured) { if (_awayMission->love.preaxCured) {
if (!_awayMission->love.freedMarcusAndCheever) if (!_awayMission->love.freedMarcusAndCheever)
showText(TX_LOV5N006); showDescription(TX_LOV5N006);
else { else {
const TextRef choices[] = { const TextRef choices[] = {
TX_SPEAKER_KIRK, TX_SPEAKER_KIRK,
@ -166,7 +166,7 @@ void Room::love5TalkToPreax() {
}; };
showText(TX_SPEAKER_PREAX, TX_LOV5_059); showText(TX_SPEAKER_PREAX, TX_LOV5_059);
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 1: case 1:
@ -186,7 +186,7 @@ void Room::love5TalkToPreax() {
showText(TX_SPEAKER_PREAX, TX_LOV5_060); showText(TX_SPEAKER_PREAX, TX_LOV5_060);
break; break;
default: default:
showText(TX_DIALOG_ERROR); showDescription(TX_DIALOG_ERROR);
break; break;
} }
@ -316,7 +316,7 @@ void Room::love5UseMedkitOnPreax() {
void Room::love5UseWaterOnPreax() { void Room::love5UseWaterOnPreax() {
if (_awayMission->love.preaxCured) { if (_awayMission->love.preaxCured) {
showText(TX_LOV5N018); showDescription(TX_LOV5N018);
showText(TX_SPEAKER_MCCOY, TX_LOV5_029); showText(TX_SPEAKER_MCCOY, TX_LOV5_029);
showText(TX_SPEAKER_KIRK, TX_LOV5_007); showText(TX_SPEAKER_KIRK, TX_LOV5_007);
if (!_awayMission->love.gotPointsForHydratingPreax) { if (!_awayMission->love.gotPointsForHydratingPreax) {
@ -330,7 +330,7 @@ void Room::love5UseWaterOnPreax() {
// BUGFIX: original didn't have correct speaker. Also, you shouldn't lose your // BUGFIX: original didn't have correct speaker. Also, you shouldn't lose your
// water since it's not actually used here, so a "loseItem" line was removed. // water since it's not actually used here, so a "loseItem" line was removed.
} else { } else {
showText(TX_LOV5N017); showDescription(TX_LOV5N017);
if (!_awayMission->redshirtDead) { if (!_awayMission->redshirtDead) {
showText(TX_SPEAKER_FERRIS, TX_LOV5_053); showText(TX_SPEAKER_FERRIS, TX_LOV5_053);
showText(TX_SPEAKER_KIRK, TX_LOV5_005); showText(TX_SPEAKER_KIRK, TX_LOV5_005);
@ -366,7 +366,7 @@ void Room::love5CuredPreax() {
walkCrewman(OBJECT_MCCOY, 0xdc, 0xc3); walkCrewman(OBJECT_MCCOY, 0xdc, 0xc3);
_awayMission->crewDirectionsAfterWalk[OBJECT_MCCOY] = DIR_E; _awayMission->crewDirectionsAfterWalk[OBJECT_MCCOY] = DIR_E;
showText(TX_LOV5N007); showDescription(TX_LOV5N007);
// BUG: says he's dehydrated, but doesn't check whether you've given water to him // BUG: says he's dehydrated, but doesn't check whether you've given water to him
// already (like it does in LOVE4). // already (like it does in LOVE4).

View file

@ -158,7 +158,7 @@ void Room::loveaTimer2Expired() {
if (_awayMission->love.spockInfectionCounter >= 100) { // Spock succumbs, game over if (_awayMission->love.spockInfectionCounter >= 100) { // Spock succumbs, game over
loadActorAnim(OBJECT_SPOCK, "sgetdn", -1, -1, 0); loadActorAnim(OBJECT_SPOCK, "sgetdn", -1, -1, 0);
playMidiMusicTracks(2, -1); // FIXME: assembly had no second parameter...? playMidiMusicTracks(2, -1); // FIXME: assembly had no second parameter...?
showText(TX_GENER004); showDescription(TX_GENER004);
showGameOverMenu(); showGameOverMenu();
} else if (_awayMission->love.spockInfectionCounter == 15) { } else if (_awayMission->love.spockInfectionCounter == 15) {
showText(TX_SPEAKER_SPOCK, TX_SPOKCOFF); showText(TX_SPEAKER_SPOCK, TX_SPOKCOFF);
@ -208,7 +208,7 @@ void Room::loveaUseMTricorderOnHuman() {
} }
void Room::loveaUseRomulanLaughingGas() { void Room::loveaUseRomulanLaughingGas() {
showText(TX_LOV2N005); showDescription(TX_LOV2N005);
_awayMission->love.releasedRomulanLaughingGas = true; _awayMission->love.releasedRomulanLaughingGas = true;
loseItem(OBJECT_IRLG); loseItem(OBJECT_IRLG);
@ -217,7 +217,7 @@ void Room::loveaUseRomulanLaughingGas() {
} }
void Room::loveaUseHumanLaughingGas() { void Room::loveaUseHumanLaughingGas() {
showText(TX_LOV2N005); showDescription(TX_LOV2N005);
showText(TX_SPEAKER_SPOCK, TX_MUD2_040); showText(TX_SPEAKER_SPOCK, TX_MUD2_040);
_awayMission->love.releasedHumanLaughingGas = true; _awayMission->love.releasedHumanLaughingGas = true;
loseItem(OBJECT_IN2O); loseItem(OBJECT_IN2O);
@ -228,7 +228,7 @@ void Room::loveaUseHumanLaughingGas() {
} }
void Room::loveaUseAmmonia() { void Room::loveaUseAmmonia() {
showText(TX_LOV2N005); showDescription(TX_LOV2N005);
// TODO: redshirt says something in floppy edition only // TODO: redshirt says something in floppy edition only
loseItem(OBJECT_INH3); loseItem(OBJECT_INH3);
} }

View file

@ -92,42 +92,42 @@ void Room::mudd0UseCommunicator() {
void Room::mudd0LookAtFoodBox() { void Room::mudd0LookAtFoodBox() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD0N012); showDescription(TX_MUD0N012);
} }
void Room::mudd0LookAtComponentBox() { void Room::mudd0LookAtComponentBox() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD0N013); showDescription(TX_MUD0N013);
} }
void Room::mudd0LookAnywhere() { void Room::mudd0LookAnywhere() {
showText(TX_MUD0N019); showDescription(TX_MUD0N019);
} }
void Room::mudd0LookAtMemoryDiskBox() { void Room::mudd0LookAtMemoryDiskBox() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD0N010); showDescription(TX_MUD0N010);
} }
void Room::mudd0LookAtDegrimerBox() { void Room::mudd0LookAtDegrimerBox() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_W; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_W;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD0N008); showDescription(TX_MUD0N008);
} }
void Room::mudd0LookAtLense() { void Room::mudd0LookAtLense() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_E; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_E;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD0N014); showDescription(TX_MUD0N014);
} }
void Room::mudd0UseSTricorderAnywhere() { void Room::mudd0UseSTricorderAnywhere() {
// Narrator says something, not Spock (so we don't use "spockScan" function) // Narrator says something, not Spock (so we don't use "spockScan" function)
loadActorAnim2(OBJECT_SPOCK, "sscans", -1, -1, 0); loadActorAnim2(OBJECT_SPOCK, "sscans", -1, -1, 0);
playSoundEffectIndex(SND_TRICORDER); playSoundEffectIndex(SND_TRICORDER);
showText(TX_MUD0N015); showDescription(TX_MUD0N015);
} }
void Room::mudd0UseMTricorderAnywhere() { void Room::mudd0UseMTricorderAnywhere() {
@ -136,7 +136,7 @@ void Room::mudd0UseMTricorderAnywhere() {
// above. // above.
loadActorAnim2(OBJECT_MCCOY, "mscans", -1, -1, 0); loadActorAnim2(OBJECT_MCCOY, "mscans", -1, -1, 0);
playSoundEffectIndex(SND_TRICORDER); playSoundEffectIndex(SND_TRICORDER);
showText(TX_MUD0N015); showDescription(TX_MUD0N015);
} }
void Room::mudd0UseSTricorderOnMemoryDiskBox() { void Room::mudd0UseSTricorderOnMemoryDiskBox() {
@ -148,7 +148,7 @@ void Room::mudd0UseSTricorderOnDegrimerBox() {
_awayMission->crewDirectionsAfterWalk[OBJECT_SPOCK] = DIR_W; _awayMission->crewDirectionsAfterWalk[OBJECT_SPOCK] = DIR_W;
loadActorAnim2(OBJECT_SPOCK, "sscanw", -1, -1, 0); loadActorAnim2(OBJECT_SPOCK, "sscanw", -1, -1, 0);
playSoundEffectIndex(SND_TRICORDER); playSoundEffectIndex(SND_TRICORDER);
showText(TX_MUD0N000); showDescription(TX_MUD0N000);
} }
void Room::mudd0UseMTricorderOnLense() { void Room::mudd0UseMTricorderOnLense() {
@ -160,7 +160,7 @@ void Room::mudd0UseMTricorderOnLense() {
void Room::mudd0GetLense() { void Room::mudd0GetLense() {
if (_awayMission->mudd.gotLense) if (_awayMission->mudd.gotLense)
showText(TX_MUD0N016); showDescription(TX_MUD0N016);
else { else {
_awayMission->mudd.gotLense = true; _awayMission->mudd.gotLense = true;
_awayMission->mudd.missionScore++; _awayMission->mudd.missionScore++;
@ -173,7 +173,7 @@ void Room::mudd0GetLense() {
void Room::mudd0GetMemoryDisk() { void Room::mudd0GetMemoryDisk() {
if (_awayMission->mudd.gotMemoryDisk) if (_awayMission->mudd.gotMemoryDisk)
showText(TX_MUD0N016); showDescription(TX_MUD0N016);
else { else {
_awayMission->mudd.gotMemoryDisk = true; _awayMission->mudd.gotMemoryDisk = true;
_awayMission->mudd.missionScore++; _awayMission->mudd.missionScore++;
@ -185,7 +185,7 @@ void Room::mudd0GetMemoryDisk() {
void Room::mudd0GetDegrimer() { void Room::mudd0GetDegrimer() {
if (_awayMission->mudd.gotDegrimer) if (_awayMission->mudd.gotDegrimer)
showText(TX_MUD0N016); showDescription(TX_MUD0N016);
else { else {
_awayMission->mudd.gotDegrimer = true; _awayMission->mudd.gotDegrimer = true;
_awayMission->mudd.missionScore++; _awayMission->mudd.missionScore++;
@ -203,7 +203,7 @@ void Room::mudd0PickedUpLense() {
void Room::mudd0PickedUpItem() { void Room::mudd0PickedUpItem() {
_awayMission->disableInput = false; // NOTE: this was never set to true _awayMission->disableInput = false; // NOTE: this was never set to true
showText(TX_LOV1N007); showDescription(TX_LOV1N007);
} }
@ -236,23 +236,23 @@ void Room::mudd0UseMedkit() {
} }
void Room::mudd0LookAtKirk() { void Room::mudd0LookAtKirk() {
showText(TX_MUD0N004); showDescription(TX_MUD0N004);
} }
void Room::mudd0LookAtSpock() { void Room::mudd0LookAtSpock() {
showText(TX_MUD0N007); showDescription(TX_MUD0N007);
} }
void Room::mudd0LookAtMccoy() { void Room::mudd0LookAtMccoy() {
showText(TX_MUD0N001); showDescription(TX_MUD0N001);
} }
void Room::mudd0LookAtRedshirt() { void Room::mudd0LookAtRedshirt() {
showText(TX_MUD0N005); showDescription(TX_MUD0N005);
} }
void Room::mudd0LookAtMudd() { void Room::mudd0LookAtMudd() {
showText(TX_MUD0N003); showDescription(TX_MUD0N003);
} }
void Room::mudd0TalkToKirk() { void Room::mudd0TalkToKirk() {

View file

@ -161,7 +161,7 @@ void Room::mudd1SpockPressedRedButton() {
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 0: case 0:
@ -170,7 +170,7 @@ void Room::mudd1SpockPressedRedButton() {
// ENHANCEMENT: Original text was just "(Spock raises eyebrow)" without any audio. // ENHANCEMENT: Original text was just "(Spock raises eyebrow)" without any audio.
// This changes it to a narration to make it flow better. // This changes it to a narration to make it flow better.
// TODO: This needs to be refactored // TODO: This needs to be refactored
showText(TX_DEM0N009); showDescription(TX_DEM0N009);
break; break;
case 1: case 1:
@ -186,7 +186,7 @@ void Room::mudd1SpockPressedRedButton() {
void Room::mudd1GetTorpedo() { void Room::mudd1GetTorpedo() {
showText(TX_MUD1N014); showDescription(TX_MUD1N014);
} }
void Room::mudd1UseSTricorderOnTorpedo() { void Room::mudd1UseSTricorderOnTorpedo() {
@ -216,51 +216,51 @@ void Room::mudd1UseMedkitAnywhere() {
} }
void Room::mudd1LookAnywhere() { void Room::mudd1LookAnywhere() {
showText(TX_MUD1N011); showDescription(TX_MUD1N011);
} }
void Room::mudd1LookAtTorpedo() { void Room::mudd1LookAtTorpedo() {
showText(TX_MUD1N002); showDescription(TX_MUD1N002);
} }
void Room::mudd1LookAtFallenTorpedo() { void Room::mudd1LookAtFallenTorpedo() {
showText(TX_MUD1N012); showDescription(TX_MUD1N012);
} }
void Room::mudd1LookAtTorpedoLauncher() { void Room::mudd1LookAtTorpedoLauncher() {
showText(TX_MUD1N003); showDescription(TX_MUD1N003);
} }
void Room::mudd1LookAtKirk() { void Room::mudd1LookAtKirk() {
showText(TX_MUD1N005); showDescription(TX_MUD1N005);
} }
void Room::mudd1LookAtSpock() { void Room::mudd1LookAtSpock() {
showText(TX_MUD1N009); showDescription(TX_MUD1N009);
} }
void Room::mudd1LookAtMccoy() { void Room::mudd1LookAtMccoy() {
showText(TX_MUD1N008); showDescription(TX_MUD1N008);
} }
void Room::mudd1LookAtRedshirt() { void Room::mudd1LookAtRedshirt() {
showText(TX_MUD1N006); showDescription(TX_MUD1N006);
} }
void Room::mudd1LookAtCrane() { void Room::mudd1LookAtCrane() {
showText(TX_MUD1N000); showDescription(TX_MUD1N000);
} }
void Room::mudd1LookAtRedButton() { void Room::mudd1LookAtRedButton() {
showText(TX_MUD1N001); showDescription(TX_MUD1N001);
} }
void Room::mudd1LookAtBlueButton() { void Room::mudd1LookAtBlueButton() {
showText(TX_MUD1N015); showDescription(TX_MUD1N015);
} }
void Room::mudd1LookAtYellowButton() { void Room::mudd1LookAtYellowButton() {
showText(TX_MUD1N016); showDescription(TX_MUD1N016);
} }
void Room::mudd1TalkToKirk() { void Room::mudd1TalkToKirk() {

View file

@ -132,7 +132,7 @@ void Room::mudd2UseCommunicator() {
} }
void Room::mudd2LookAtCapsules() { void Room::mudd2LookAtCapsules() {
showText(TX_MUD2N008); showDescription(TX_MUD2N008);
} }
void Room::mudd2UseMTricorderOnCapsules() { void Room::mudd2UseMTricorderOnCapsules() {
@ -324,31 +324,31 @@ void Room::mudd2MccoyCuredMudd() {
void Room::mudd2LookAtKirk() { void Room::mudd2LookAtKirk() {
showText(TX_MUD2N003); showDescription(TX_MUD2N003);
} }
void Room::mudd2LookAtSpock() { void Room::mudd2LookAtSpock() {
showText(TX_MUD2N006); showDescription(TX_MUD2N006);
} }
void Room::mudd2LookAtMccoy() { void Room::mudd2LookAtMccoy() {
showText(TX_MUD2N000); showDescription(TX_MUD2N000);
} }
void Room::mudd2LookAtRedshirt() { void Room::mudd2LookAtRedshirt() {
showText(TX_MUD2N004); showDescription(TX_MUD2N004);
} }
void Room::mudd2LookAtMudd() { void Room::mudd2LookAtMudd() {
showText(TX_MUD2N002); showDescription(TX_MUD2N002);
} }
void Room::mudd2LookAtControlPanel() { void Room::mudd2LookAtControlPanel() {
showText(TX_MUD2N011); showDescription(TX_MUD2N011);
} }
void Room::mudd2LookAtBed() { void Room::mudd2LookAtBed() {
showText(TX_MUD2N007); showDescription(TX_MUD2N007);
} }
void Room::mudd2TalkToKirk() { void Room::mudd2TalkToKirk() {

View file

@ -74,7 +74,7 @@ void Room::mudd3LookAtScreen() {
if (_awayMission->mudd.translatedAlienLanguage) if (_awayMission->mudd.translatedAlienLanguage)
showText(TX_SPEAKER_SPOCK, TX_MUD3_038); showText(TX_SPEAKER_SPOCK, TX_MUD3_038);
else else
showText(TX_MUD3N017); showDescription(TX_MUD3N017);
} }
void Room::mudd3UseSTricorderOnScreen() { void Room::mudd3UseSTricorderOnScreen() {
@ -87,7 +87,7 @@ void Room::mudd3UseSTricorderOnScreen() {
// BUGFIX: Event was actually "use screen on kirk", which makes no sense. // BUGFIX: Event was actually "use screen on kirk", which makes no sense.
void Room::mudd3UseKirkOnScreen() { void Room::mudd3UseKirkOnScreen() {
if (!_awayMission->mudd.translatedAlienLanguage) { if (!_awayMission->mudd.translatedAlienLanguage) {
showText(TX_MUD3N011); showDescription(TX_MUD3N011);
showText(TX_SPEAKER_SPOCK, TX_MUD3_037); showText(TX_SPEAKER_SPOCK, TX_MUD3_037);
} }
} }
@ -98,7 +98,7 @@ void Room::mudd3UseSpockOnSphere() {
if (_awayMission->mudd.computerDataErasedOrDestroyed) { if (_awayMission->mudd.computerDataErasedOrDestroyed) {
if (!_awayMission->mudd.databaseDestroyed) { if (!_awayMission->mudd.databaseDestroyed) {
showText(TX_MUD3N000); showDescription(TX_MUD3N000);
showText(TX_SPEAKER_SPOCK, TX_MUD3_052); showText(TX_SPEAKER_SPOCK, TX_MUD3_052);
showText(TX_SPEAKER_KIRK, TX_MUD3_012); showText(TX_SPEAKER_KIRK, TX_MUD3_012);
showText(TX_SPEAKER_MCCOY, TX_MUD3_024); showText(TX_SPEAKER_MCCOY, TX_MUD3_024);
@ -259,7 +259,7 @@ void Room::mudd3Timer2Expired() {
_awayMission->mudd.computerDataErasedOrDestroyed = true; _awayMission->mudd.computerDataErasedOrDestroyed = true;
showText(TX_SPEAKER_MUDD, TX_MUD3_065); showText(TX_SPEAKER_MUDD, TX_MUD3_065);
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // Allow him to access the database (he ends up erasing it) if (choice == 0) { // Allow him to access the database (he ends up erasing it)
showText(TX_SPEAKER_MUDD, TX_MUD3_066); showText(TX_SPEAKER_MUDD, TX_MUD3_066);
@ -269,7 +269,7 @@ void Room::mudd3Timer2Expired() {
// Otherwise, the end of the mission when you confront Mudd doesn't make sense // Otherwise, the end of the mission when you confront Mudd doesn't make sense
// unless the player happened to try accessing the database again. Also, if you // unless the player happened to try accessing the database again. Also, if you
// talk to the crew, they berate him for no apparent reason if this isn't clear. // talk to the crew, they berate him for no apparent reason if this isn't clear.
showText(TX_MUD3N000); showDescription(TX_MUD3N000);
showText(TX_SPEAKER_MCCOY, TX_MUD3_031); showText(TX_SPEAKER_MCCOY, TX_MUD3_031);
} else { // Don't allow it (he destroys it by accident) } else { // Don't allow it (he destroys it by accident)
@ -296,21 +296,21 @@ void Room::mudd3UseMemoryDiskOnSphere() {
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
if (_awayMission->mudd.databaseDestroyed) if (_awayMission->mudd.databaseDestroyed)
showText(TX_MUD3N014); showDescription(TX_MUD3N014);
else if (_awayMission->mudd.translatedAlienLanguage && !_awayMission->mudd.muddErasedDatabase) { else if (_awayMission->mudd.translatedAlienLanguage && !_awayMission->mudd.muddErasedDatabase) {
showText(TX_MUD3N020); showDescription(TX_MUD3N020);
if (!_awayMission->mudd.gotPointsForDownloadingData) { if (!_awayMission->mudd.gotPointsForDownloadingData) {
_awayMission->mudd.missionScore += 3; _awayMission->mudd.missionScore += 3;
_awayMission->mudd.gotPointsForDownloadingData = true; _awayMission->mudd.gotPointsForDownloadingData = true;
} }
} else } else
showText(TX_MUD3N019); showDescription(TX_MUD3N019);
} }
void Room::mudd3GetRepairTool() { void Room::mudd3GetRepairTool() {
if (_awayMission->mudd.tookRepairTool) if (_awayMission->mudd.tookRepairTool)
showText(TX_MUD3N018); // NOTE: unused, since the object disappears, can't be selected again showDescription(TX_MUD3N018); // NOTE: unused, since the object disappears, can't be selected again
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
@ -336,7 +336,7 @@ void Room::mudd3LookAtSphere() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_S;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_MUD3N015); showDescription(TX_MUD3N015);
} }
void Room::mudd3WalkToNorthDoor() { void Room::mudd3WalkToNorthDoor() {
@ -366,34 +366,34 @@ void Room::mudd3TouchedHotspot1() {
void Room::mudd3LookAtKirk() { void Room::mudd3LookAtKirk() {
if (!_awayMission->mudd.muddInDatabaseRoom) if (!_awayMission->mudd.muddInDatabaseRoom)
showText(TX_MUD3N005); showDescription(TX_MUD3N005);
else else
showText(TX_MUD3N004); showDescription(TX_MUD3N004);
} }
void Room::mudd3LookAtSpock() { void Room::mudd3LookAtSpock() {
if (!_awayMission->mudd.muddInDatabaseRoom) if (!_awayMission->mudd.muddInDatabaseRoom)
showText(TX_MUD3N012); showDescription(TX_MUD3N012);
else else
showText(TX_MUD3N002); showDescription(TX_MUD3N002);
} }
void Room::mudd3LookAtMccoy() { void Room::mudd3LookAtMccoy() {
if (!_awayMission->mudd.muddInDatabaseRoom) if (!_awayMission->mudd.muddInDatabaseRoom)
showText(TX_MUD3N010); showDescription(TX_MUD3N010);
else else
showText(TX_MUD3N009); showDescription(TX_MUD3N009);
} }
void Room::mudd3LookAtRedshirt() { void Room::mudd3LookAtRedshirt() {
if (!_awayMission->mudd.muddInDatabaseRoom) if (!_awayMission->mudd.muddInDatabaseRoom)
showText(TX_MUD3N007); showDescription(TX_MUD3N007);
else else
showText(TX_MUD3N006); showDescription(TX_MUD3N006);
} }
void Room::mudd3LookAtMudd() { void Room::mudd3LookAtMudd() {
showText(TX_MUD3N003); showDescription(TX_MUD3N003);
} }
void Room::mudd3TalkToKirk() { void Room::mudd3TalkToKirk() {

View file

@ -122,7 +122,7 @@ void Room::mudd4ShowLeftConsoleMenu() {
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 0: // Sensors case 0: // Sensors
@ -225,7 +225,7 @@ void Room::mudd4ShowRightConsoleMenu() {
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 0: // Communications case 0: // Communications
@ -297,7 +297,7 @@ void Room::mudd4KirkUsedCommunications() {
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 1) { if (choice == 1) {
endMission(_awayMission->mudd.missionScore, 0x1b, _awayMission->mudd.torpedoStatus); endMission(_awayMission->mudd.missionScore, 0x1b, _awayMission->mudd.torpedoStatus);
@ -317,7 +317,7 @@ void Room::mudd4KirkUsedCommunications() {
showText(TX_SPEAKER_KIRK, TX_MUD4_020); showText(TX_SPEAKER_KIRK, TX_MUD4_020);
showText(TX_SPEAKER_SCOTT, TX_MUD4_S03); showText(TX_SPEAKER_SCOTT, TX_MUD4_S03);
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 1) { if (choice == 1) {
endMission(_awayMission->mudd.missionScore, 0x1b, _awayMission->mudd.torpedoStatus); endMission(_awayMission->mudd.missionScore, 0x1b, _awayMission->mudd.torpedoStatus);
@ -365,7 +365,7 @@ void Room::mudd4KirkReachedPositionToTalkToMudd() {
}; };
showText(TX_SPEAKER_MUDD, TX_MUD4_066); showText(TX_SPEAKER_MUDD, TX_MUD4_066);
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 1) { if (choice == 1) {
// Copy of code at very bottom of function // Copy of code at very bottom of function
@ -426,7 +426,7 @@ void Room::mudd4KirkReachedPositionToTalkToMudd() {
}; };
showText(TX_SPEAKER_MUDD, TX_MUD4_065); showText(TX_SPEAKER_MUDD, TX_MUD4_065);
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 1) { if (choice == 1) {
showText(TX_SPEAKER_MUDD, TX_MUD4_074); showText(TX_SPEAKER_MUDD, TX_MUD4_074);
@ -479,7 +479,7 @@ void Room::mudd4UseMedkit() {
void Room::mudd4GetRepairTool() { void Room::mudd4GetRepairTool() {
if (_awayMission->mudd.tookRepairTool) if (_awayMission->mudd.tookRepairTool)
showText(TX_MUD4N012); // NOTE: unused, since the object disappears, can't be selected again showDescription(TX_MUD4N012); // NOTE: unused, since the object disappears, can't be selected again
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
@ -500,34 +500,34 @@ void Room::mudd4PickedUpRepairTool() {
} }
void Room::mudd4LookAtConsole() { void Room::mudd4LookAtConsole() {
showText(TX_MUD4N000); showDescription(TX_MUD4N000);
} }
void Room::mudd4LookAtViewscreen() { void Room::mudd4LookAtViewscreen() {
if (_awayMission->mudd.viewScreenEnabled) if (_awayMission->mudd.viewScreenEnabled)
showText(TX_MUD4N008); showDescription(TX_MUD4N008);
else else
showText(TX_MUD4N013); showDescription(TX_MUD4N013);
} }
void Room::mudd4LookAtKirk() { void Room::mudd4LookAtKirk() {
showText(TX_MUD4N003); showDescription(TX_MUD4N003);
} }
void Room::mudd4LookAtSpock() { void Room::mudd4LookAtSpock() {
showText(TX_MUD4N006); showDescription(TX_MUD4N006);
} }
void Room::mudd4LookAtMccoy() { void Room::mudd4LookAtMccoy() {
showText(TX_MUD4N001); showDescription(TX_MUD4N001);
} }
void Room::mudd4LookAtRedshirt() { void Room::mudd4LookAtRedshirt() {
showText(TX_MUD4N004); showDescription(TX_MUD4N004);
} }
void Room::mudd4LookAtRepairTool() { void Room::mudd4LookAtRepairTool() {
showText(TX_MUD4N011); showDescription(TX_MUD4N011);
} }
void Room::mudd4TalkToKirk() { void Room::mudd4TalkToKirk() {

View file

@ -69,7 +69,7 @@ void Room::mudd5Timer1Expired() { // Mudd enters room through hatch
}; };
showText(TX_SPEAKER_MUDD, TX_MUD5_034); showText(TX_SPEAKER_MUDD, TX_MUD5_034);
showText(choices); showMultipleTexts(choices);
showText(TX_SPEAKER_MUDD, TX_MUD5_037); showText(TX_SPEAKER_MUDD, TX_MUD5_037);
loadActorAnim2(OBJECT_MUDD, "s4ephc"); loadActorAnim2(OBJECT_MUDD, "s4ephc");
@ -175,16 +175,16 @@ void Room::mudd5KirkTimer3Expired() { // Mudd popped back in after repairing gen
} }
void Room::mudd5LookAtHatch() { void Room::mudd5LookAtHatch() {
showText(TX_MUD5N011); showDescription(TX_MUD5N011);
showText(TX_SPEAKER_SPOCK, TX_MUD5_031); showText(TX_SPEAKER_SPOCK, TX_MUD5_031);
showText(TX_SPEAKER_KIRK, TX_MUD5_009); showText(TX_SPEAKER_KIRK, TX_MUD5_009);
} }
void Room::mudd5LookAtLifeSupportGenerator() { void Room::mudd5LookAtLifeSupportGenerator() {
if (_awayMission->mudd.lifeSupportMalfunctioning) if (_awayMission->mudd.lifeSupportMalfunctioning)
showText(TX_MUD5N008); showDescription(TX_MUD5N008);
else { else {
showText(TX_MUD5N012); showDescription(TX_MUD5N012);
showText(TX_SPEAKER_SPOCK, TX_MUD5_026); showText(TX_SPEAKER_SPOCK, TX_MUD5_026);
} }
} }
@ -203,31 +203,31 @@ void Room::mudd5WalkToDoor() {
} }
void Room::mudd5LookAtKirk() { void Room::mudd5LookAtKirk() {
showText(TX_MUD5N002); showDescription(TX_MUD5N002);
} }
void Room::mudd5LookAtSpock() { void Room::mudd5LookAtSpock() {
showText(TX_MUD5N005); showDescription(TX_MUD5N005);
} }
void Room::mudd5LookAtMccoy() { void Room::mudd5LookAtMccoy() {
showText(TX_MUD5N004); showDescription(TX_MUD5N004);
} }
void Room::mudd5LookAtRedshirt() { void Room::mudd5LookAtRedshirt() {
showText(TX_MUD5N003); showDescription(TX_MUD5N003);
} }
void Room::mudd5LookAtDoor() { void Room::mudd5LookAtDoor() {
showText(TX_MUD5N010); showDescription(TX_MUD5N010);
} }
void Room::mudd5LookAtCrane() { void Room::mudd5LookAtCrane() {
showText(TX_MUD5N000); showDescription(TX_MUD5N000);
} }
void Room::mudd5LookAtEngine() { void Room::mudd5LookAtEngine() {
showText(TX_MUD5N006); showDescription(TX_MUD5N006);
} }
void Room::mudd5TalkToKirk() { void Room::mudd5TalkToKirk() {

View file

@ -44,7 +44,7 @@ void Room::muddaUseLenseOnDegrimer() {
loseItem(OBJECT_ILENSES); loseItem(OBJECT_ILENSES);
_awayMission->mudd.missionScore++; _awayMission->mudd.missionScore++;
showText(text[_roomIndex]); showDescription(text[_roomIndex]);
} }
@ -102,7 +102,7 @@ void Room::muddaUseDegrimer() {
TX_MUD5N001, TX_MUD5N001,
}; };
showText(text[_roomIndex]); showDescription(text[_roomIndex]);
} }
void Room::muddaTick() { void Room::muddaTick() {
@ -175,7 +175,7 @@ void Room::muddaTick() {
anim += directions[i][_roomIndex]; anim += directions[i][_roomIndex];
loadActorAnim2(i, anim); loadActorAnim2(i, anim);
} }
showText(deathText[_roomIndex]); showDescription(deathText[_roomIndex]);
showGameOverMenu(); showGameOverMenu();
} }
} }

View file

@ -93,15 +93,15 @@ void Room::sins0Tick1() {
} }
void Room::sins0LookAnywhere() { void Room::sins0LookAnywhere() {
showText(TX_SIN0N009); showDescription(TX_SIN0N009);
} }
void Room::sins0LookAtOpenDoor() { void Room::sins0LookAtOpenDoor() {
showText(TX_SIN0N005); showDescription(TX_SIN0N005);
} }
void Room::sins0LookAtClosedDoor() { void Room::sins0LookAtClosedDoor() {
showText(TX_SIN0N008); showDescription(TX_SIN0N008);
} }
void Room::sins0TalkToSpock() { void Room::sins0TalkToSpock() {
@ -127,7 +127,7 @@ void Room::sins0TalkToRedshirt() {
} }
void Room::sins0LookAtGround() { void Room::sins0LookAtGround() {
showText(TX_SIN0N006); showDescription(TX_SIN0N006);
} }
void Room::sins0GetRock() { void Room::sins0GetRock() {
@ -139,7 +139,7 @@ void Room::sins0GetRock() {
void Room::sins0PickedUpRock() { void Room::sins0PickedUpRock() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
loadActorStandAnim(OBJECT_KIRK); loadActorStandAnim(OBJECT_KIRK);
showText(TX_SIN0N010); showDescription(TX_SIN0N010);
giveItem(OBJECT_IS8ROCKS); giveItem(OBJECT_IS8ROCKS);
} }
@ -172,7 +172,7 @@ void Room::sins0Tick40() {
} }
void Room::sins0LookAtStatue() { void Room::sins0LookAtStatue() {
showText(TX_SIN0N011); showDescription(TX_SIN0N011);
showText(TX_SPEAKER_MCCOY, TX_SIN0_015); showText(TX_SPEAKER_MCCOY, TX_SIN0_015);
showText(TX_SPEAKER_SPOCK, TX_SIN0_021); showText(TX_SPEAKER_SPOCK, TX_SIN0_021);
showText(TX_SPEAKER_MOSHER, TX_SIN0_027); showText(TX_SPEAKER_MOSHER, TX_SIN0_027);
@ -180,28 +180,28 @@ void Room::sins0LookAtStatue() {
} }
void Room::sins0LookAtPlanet() { void Room::sins0LookAtPlanet() {
showText(TX_SIN0N007); showDescription(TX_SIN0N007);
} }
void Room::sins0LookAtSky() { void Room::sins0LookAtSky() {
// This seems unused, due to HOTSPOT_SKY not being mapped anywhere? // This seems unused, due to HOTSPOT_SKY not being mapped anywhere?
showText(TX_SIN0N004); showDescription(TX_SIN0N004);
} }
void Room::sins0LookAtKirk() { void Room::sins0LookAtKirk() {
showText(TX_SIN0N002); showDescription(TX_SIN0N002);
} }
void Room::sins0LookAtSpock() { void Room::sins0LookAtSpock() {
showText(TX_SIN0N003); showDescription(TX_SIN0N003);
} }
void Room::sins0LookAtMccoy() { void Room::sins0LookAtMccoy() {
showText(TX_SIN0N000); showDescription(TX_SIN0N000);
} }
void Room::sins0LookAtRedshirt() { void Room::sins0LookAtRedshirt() {
showText(TX_SIN0N001); showDescription(TX_SIN0N001);
} }
void Room::sins0UseSTricorderOnClosedDoor() { void Room::sins0UseSTricorderOnClosedDoor() {

View file

@ -117,27 +117,27 @@ void Room::sins1Tick1() {
} }
void Room::sins1LookAnywhere() { void Room::sins1LookAnywhere() {
showText(TX_SIN1N001); showDescription(TX_SIN1N001);
} }
void Room::sins1LookAtLock() { void Room::sins1LookAtLock() {
showText(TX_SIN1N009); showDescription(TX_SIN1N009);
} }
void Room::sins1LookAtDoor() { void Room::sins1LookAtDoor() {
// NOTE: This function had two implementations (one unused). // NOTE: This function had two implementations (one unused).
if (true) if (true)
showText(TX_SIN1N010); showDescription(TX_SIN1N010);
else else
showText(TX_SIN1N008); showDescription(TX_SIN1N008);
} }
void Room::sins1LookAtPanel() { void Room::sins1LookAtPanel() {
showText(TX_SIN1N003); showDescription(TX_SIN1N003);
} }
void Room::sins1LookAtKeypad() { void Room::sins1LookAtKeypad() {
showText(TX_SIN1N011); showDescription(TX_SIN1N011);
} }
void Room::sins1UseSTricorderOnPanel() { void Room::sins1UseSTricorderOnPanel() {
@ -169,7 +169,7 @@ void Room::sins1UseSTricorderOnLens() {
} }
void Room::sins1UseRockOnDoor() { void Room::sins1UseRockOnDoor() {
showText(TX_SIN1N007); showDescription(TX_SIN1N007);
} }
void Room::sins1UseRedshirtOnKeypad() { void Room::sins1UseRedshirtOnKeypad() {
@ -298,23 +298,23 @@ void Room::sins1TalkToRedshirt() {
} }
void Room::sins1LookAtKirk() { void Room::sins1LookAtKirk() {
showText(TX_SIN1N005); showDescription(TX_SIN1N005);
} }
void Room::sins1LookAtSpock() { void Room::sins1LookAtSpock() {
showText(TX_SIN1N004); showDescription(TX_SIN1N004);
} }
void Room::sins1LookAtMccoy() { void Room::sins1LookAtMccoy() {
showText(TX_SIN1N006); showDescription(TX_SIN1N006);
} }
void Room::sins1LookAtRedshirt() { void Room::sins1LookAtRedshirt() {
showText(TX_SIN1N002); showDescription(TX_SIN1N002);
} }
void Room::sins1LookAtLens() { void Room::sins1LookAtLens() {
showText(TX_SIN1N000); showDescription(TX_SIN1N000);
} }
void Room::sins1UseCommunicator() { void Room::sins1UseCommunicator() {

View file

@ -238,35 +238,35 @@ void Room::sins2Tick40() {
} }
void Room::sins2LookAnywhere() { void Room::sins2LookAnywhere() {
showText(TX_SIN2N006); showDescription(TX_SIN2N006);
} }
void Room::sins2LookAtOpenDoor() { void Room::sins2LookAtOpenDoor() {
showText(TX_SIN2N007); showDescription(TX_SIN2N007);
} }
void Room::sins2LookAtTerminal() { void Room::sins2LookAtTerminal() {
showText(TX_SIN2N000); showDescription(TX_SIN2N000);
} }
void Room::sins2LookAtKeypad() { void Room::sins2LookAtKeypad() {
showText(TX_SIN2N001); showDescription(TX_SIN2N001);
} }
void Room::sins2LookAtKirk() { void Room::sins2LookAtKirk() {
showText(TX_SIN2N003); showDescription(TX_SIN2N003);
} }
void Room::sins2LookAtSpock() { void Room::sins2LookAtSpock() {
showText(TX_SIN2N005); showDescription(TX_SIN2N005);
} }
void Room::sins2LookAtMccoy() { void Room::sins2LookAtMccoy() {
showText(TX_SIN2N004); showDescription(TX_SIN2N004);
} }
void Room::sins2LookAtRedshirt() { void Room::sins2LookAtRedshirt() {
showText(TX_SIN2N002); showDescription(TX_SIN2N002);
} }
void Room::sins2TalkToKirk() { void Room::sins2TalkToKirk() {
@ -289,7 +289,7 @@ void Room::sins2TalkToRedshirt() {
void Room::sins2LookAtDoor() { void Room::sins2LookAtDoor() {
if (!_awayMission->sins.openedInnerDoor) if (!_awayMission->sins.openedInnerDoor)
showText(TX_SIN2N008); showDescription(TX_SIN2N008);
} }
void Room::sins2UseSpockOnDoor() { void Room::sins2UseSpockOnDoor() {

View file

@ -172,19 +172,19 @@ void Room::sins3UseSTricorderOnPanel() {
} }
void Room::sins3LookAtDrill() { void Room::sins3LookAtDrill() {
showText(TX_SIN3N012); showDescription(TX_SIN3N012);
} }
void Room::sins3LookAtPanel() { void Room::sins3LookAtPanel() {
showText(TX_SIN3N011); showDescription(TX_SIN3N011);
} }
void Room::sins3LookAtMonitor() { void Room::sins3LookAtMonitor() {
showText(TX_SIN3N007); showDescription(TX_SIN3N007);
} }
void Room::sins3LookAnywhere() { void Room::sins3LookAnywhere() {
showText(TX_SIN3N013); showDescription(TX_SIN3N013);
} }
void Room::sins3UseSTricorderOnWall() { void Room::sins3UseSTricorderOnWall() {
@ -197,11 +197,11 @@ void Room::sins3UseSTricorderOnWall() {
void Room::sins3LookAtBox() { void Room::sins3LookAtBox() {
if (_awayMission->sins.boxState == 0) if (_awayMission->sins.boxState == 0)
showText(TX_SIN3N000); showDescription(TX_SIN3N000);
else if (_awayMission->sins.boxState == 1) else if (_awayMission->sins.boxState == 1)
showText(TX_SIN3N008); showDescription(TX_SIN3N008);
else if (_awayMission->sins.boxState == 2) else if (_awayMission->sins.boxState == 2)
showText(TX_SIN3N005); showDescription(TX_SIN3N005);
} }
void Room::sins3UseKirkOnBox() { void Room::sins3UseKirkOnBox() {
@ -326,7 +326,7 @@ void Room::sins3SpockReachedPanel() {
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 3) // cancel if (choice == 3) // cancel
return; return;
@ -428,7 +428,7 @@ void Room::sins3RockVaporized() {
void Room::sins3UseDrillAnywhere() { void Room::sins3UseDrillAnywhere() {
// It isn't possible to "use" a hotspot on something else, so this is never called? // It isn't possible to "use" a hotspot on something else, so this is never called?
showText(TX_SIN3N009); showDescription(TX_SIN3N009);
} }
void Room::sins3GetIDCard() { void Room::sins3GetIDCard() {
@ -452,27 +452,27 @@ void Room::sins3PickedUpIDCard() {
void Room::sins3LookAtItemBeingDrilled() { void Room::sins3LookAtItemBeingDrilled() {
if (_awayMission->sins.moldState == 2) if (_awayMission->sins.moldState == 2)
showText(TX_SIN3N006); showDescription(TX_SIN3N006);
else if (_awayMission->sins.moldState == 3) else if (_awayMission->sins.moldState == 3)
showText(TX_SIN3N014); showDescription(TX_SIN3N014);
else if (_awayMission->sins.moldState == 4) else if (_awayMission->sins.moldState == 4)
showText(TX_SIN3N010); showDescription(TX_SIN3N010);
} }
void Room::sins3LookAtKirk() { void Room::sins3LookAtKirk() {
showText(TX_SIN3N003); showDescription(TX_SIN3N003);
} }
void Room::sins3LookAtSpock() { void Room::sins3LookAtSpock() {
showText(TX_SIN3N004); showDescription(TX_SIN3N004);
} }
void Room::sins3LookAtMccoy() { void Room::sins3LookAtMccoy() {
showText(TX_SIN3N001); // BUGFIX: Speaker is "nobody", not Dr. McCoy showDescription(TX_SIN3N001); // BUGFIX: Speaker is "nobody", not Dr. McCoy
} }
void Room::sins3LookAtRedshirt() { void Room::sins3LookAtRedshirt() {
showText(TX_SIN3N002); showDescription(TX_SIN3N002);
} }
void Room::sins3TalkToKirk() { void Room::sins3TalkToKirk() {

View file

@ -142,7 +142,7 @@ void Room::sins4UsePhaserOnPanel() {
void Room::sins4UseIDCardOnPanel() { void Room::sins4UseIDCardOnPanel() {
if (_awayMission->sins.unlockedIDCardDoor) if (_awayMission->sins.unlockedIDCardDoor)
showText(TX_SIN4N006); showDescription(TX_SIN4N006);
else else
walkCrewmanC(OBJECT_KIRK, 0xb8, 0x86, &Room::sins4KirkReachedPanel); walkCrewmanC(OBJECT_KIRK, 0xb8, 0x86, &Room::sins4KirkReachedPanel);
} }
@ -170,7 +170,7 @@ void Room::sins4KirkReachedPanelWithRock() {
} }
void Room::sins4KirkUsedRockOnPanel() { void Room::sins4KirkUsedRockOnPanel() {
showText(TX_SIN4N012); showDescription(TX_SIN4N012);
showText(TX_SPEAKER_SPOCK, TX_SIN4_022); showText(TX_SPEAKER_SPOCK, TX_SIN4_022);
if (_awayMission->sins.gatheredClues == 7) { if (_awayMission->sins.gatheredClues == 7) {
@ -180,19 +180,19 @@ void Room::sins4KirkUsedRockOnPanel() {
} }
void Room::sins4LookAtWestDoor() { void Room::sins4LookAtWestDoor() {
showText(TX_SIN4N009); showDescription(TX_SIN4N009);
} }
void Room::sins4LookAtEastDoor() { void Room::sins4LookAtEastDoor() {
showText(TX_SIN4N010); showDescription(TX_SIN4N010);
} }
void Room::sins4LookAnywhere() { void Room::sins4LookAnywhere() {
showText(TX_SIN4N013); showDescription(TX_SIN4N013);
} }
void Room::sins4LookAtPanel() { void Room::sins4LookAtPanel() {
showText(TX_SIN4N011); showDescription(TX_SIN4N011);
} }
void Room::sins4Tick40() { void Room::sins4Tick40() {
@ -211,35 +211,35 @@ void Room::sins4Tick40() {
} }
void Room::sins4LookAtKirk() { void Room::sins4LookAtKirk() {
showText(TX_SIN4N002); showDescription(TX_SIN4N002);
} }
void Room::sins4LookAtSpock() { void Room::sins4LookAtSpock() {
showText(TX_SIN4N004); showDescription(TX_SIN4N004);
} }
void Room::sins4LookAtMccoy() { void Room::sins4LookAtMccoy() {
showText(TX_SIN4N003); showDescription(TX_SIN4N003);
} }
void Room::sins4LookAtRedshirt() { void Room::sins4LookAtRedshirt() {
showText(TX_SIN4N001); showDescription(TX_SIN4N001);
} }
void Room::sins4LookAtLight() { void Room::sins4LookAtLight() {
showText(TX_SIN4N000); showDescription(TX_SIN4N000);
} }
void Room::sins4LookAtBeam() { void Room::sins4LookAtBeam() {
showText(TX_SIN4N005); showDescription(TX_SIN4N005);
} }
void Room::sins4LookAtOpenNorthDoor() { void Room::sins4LookAtOpenNorthDoor() {
showText(TX_SIN4N008); showDescription(TX_SIN4N008);
} }
void Room::sins4LookAtClosedNorthDoor() { void Room::sins4LookAtClosedNorthDoor() {
showText(TX_SIN4N007); showDescription(TX_SIN4N007);
} }
void Room::sins4TalkToKirk() { void Room::sins4TalkToKirk() {

View file

@ -311,7 +311,7 @@ void Room::sins5WireConnected() {
_awayMission->sins.wireConnected1 = true; _awayMission->sins.wireConnected1 = true;
_awayMission->sins.wireConnected2 = true; _awayMission->sins.wireConnected2 = true;
loadActorAnim2(OBJECT_CABLE, "s5cabl", 0, 0); loadActorAnim2(OBJECT_CABLE, "s5cabl", 0, 0);
showText(TX_SIN5N004); showDescription(TX_SIN5N004);
loseItem(OBJECT_ICONECT); loseItem(OBJECT_ICONECT);
playMidiMusicTracks(MIDITRACK_30, -1); playMidiMusicTracks(MIDITRACK_30, -1);
} }
@ -393,8 +393,8 @@ void Room::sins5Timer2Expired() {
void Room::sins5ComputerLaunchesMissiles() { void Room::sins5ComputerLaunchesMissiles() {
playMidiMusicTracks(MIDITRACK_2, -1); playMidiMusicTracks(MIDITRACK_2, -1);
showText(TX_SIN5N012); showDescription(TX_SIN5N012);
showText(TX_SIN5N013); showDescription(TX_SIN5N013);
showGameOverMenu(); showGameOverMenu();
} }
@ -403,47 +403,47 @@ void Room::sins5Timer3Expired() {
} }
void Room::sins5LookAnywhere() { void Room::sins5LookAnywhere() {
showText(TX_SIN5N005); showDescription(TX_SIN5N005);
} }
void Room::sins5LookAtKirk() { void Room::sins5LookAtKirk() {
showText(TX_SIN5N000); showDescription(TX_SIN5N000);
} }
void Room::sins5LookAtSpock() { void Room::sins5LookAtSpock() {
showText(TX_SIN5N006); showDescription(TX_SIN5N006);
} }
void Room::sins5LookAtMccoy() { void Room::sins5LookAtMccoy() {
showText(TX_SIN5N001); showDescription(TX_SIN5N001);
} }
void Room::sins5LookAtRedshirt() { void Room::sins5LookAtRedshirt() {
showText(TX_SIN5N002); showDescription(TX_SIN5N002);
} }
void Room::sins5LookAtLight() { void Room::sins5LookAtLight() {
showText(TX_SIN5N007); showDescription(TX_SIN5N007);
} }
void Room::sins5LookAtLeftComputer() { void Room::sins5LookAtLeftComputer() {
showText(TX_SIN5N010); showDescription(TX_SIN5N010);
} }
void Room::sins5LookAtMiddleComputer() { void Room::sins5LookAtMiddleComputer() {
showText(TX_SIN5N008); showDescription(TX_SIN5N008);
} }
void Room::sins5LookAtRightComputer() { void Room::sins5LookAtRightComputer() {
showText(TX_SIN5N009); showDescription(TX_SIN5N009);
} }
void Room::sins5LookAtMissile() { void Room::sins5LookAtMissile() {
showText(TX_SIN5N003); showDescription(TX_SIN5N003);
} }
void Room::sins5LookAtNorthDoor() { void Room::sins5LookAtNorthDoor() {
showText(TX_SIN5N011); showDescription(TX_SIN5N011);
} }
void Room::sins5UseMedkitOnCrewman() { void Room::sins5UseMedkitOnCrewman() {

View file

@ -117,7 +117,7 @@ void Room::trial0ReachedRoomCenter() {
TX_TRI0_019, TX_TRI0_016, TX_TRI0_021, TX_TRI0_019, TX_TRI0_016, TX_TRI0_021,
TX_BLANK TX_BLANK
}; };
showText(choices1); showMultipleTexts(choices1);
showText(TX_SPEAKER_VLICT, TX_TRI0_054); showText(TX_SPEAKER_VLICT, TX_TRI0_054);
showText(TX_SPEAKER_KIRK, TX_TRI0_004); showText(TX_SPEAKER_KIRK, TX_TRI0_004);
@ -128,7 +128,7 @@ void Room::trial0ReachedRoomCenter() {
TX_TRI0_011, TX_TRI0_018, TX_TRI0_015, TX_TRI0_011, TX_TRI0_018, TX_TRI0_015,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices2); int choice = showMultipleTexts(choices2);
if (choice == 0) { // Kirk intervenes as a warrior if (choice == 0) { // Kirk intervenes as a warrior
showText(TX_SPEAKER_VLICT, TX_TRI0_043); showText(TX_SPEAKER_VLICT, TX_TRI0_043);
@ -153,7 +153,7 @@ void Room::trial0ReachedRoomCenter() {
TX_TRI0_023, TX_TRI0_006, TX_TRI0_010, TX_TRI0_023, TX_TRI0_006, TX_TRI0_010,
TX_BLANK TX_BLANK
}; };
choice = showText(choices3); choice = showMultipleTexts(choices3);
if (choice == 0 || choice == 1) { if (choice == 0 || choice == 1) {
showText(TX_SPEAKER_VLICT, TX_TRI0_052); showText(TX_SPEAKER_VLICT, TX_TRI0_052);
@ -163,7 +163,7 @@ void Room::trial0ReachedRoomCenter() {
TX_TRI0_017, TX_TRI0_020, TX_TRI0_008, TX_TRI0_017, TX_TRI0_020, TX_TRI0_008,
TX_BLANK TX_BLANK
}; };
choice = showText(choices4); choice = showMultipleTexts(choices4);
if (choice == 0 || choice == 1) { if (choice == 0 || choice == 1) {
showText(TX_SPEAKER_VLICT, TX_TRI0_057); showText(TX_SPEAKER_VLICT, TX_TRI0_057);
@ -175,7 +175,7 @@ void Room::trial0ReachedRoomCenter() {
TX_TRI0_009, TX_TRI0_014, TX_TRI0_013, TX_TRI0_009, TX_TRI0_014, TX_TRI0_013,
TX_BLANK TX_BLANK
}; };
choice = showText(choices5); choice = showMultipleTexts(choices5);
if (choice == 0 || choice == 1) { if (choice == 0 || choice == 1) {
showText(TX_SPEAKER_VLICT, TX_TRI0_055); showText(TX_SPEAKER_VLICT, TX_TRI0_055);
@ -205,43 +205,43 @@ void Room::trial0ReachedRoomCenter() {
} }
void Room::trial0LookAtWindow() { void Room::trial0LookAtWindow() {
showText(TX_TRI0N007); showDescription(TX_TRI0N007);
} }
void Room::trial0LookAtVlict() { void Room::trial0LookAtVlict() {
showText(TX_TRI0N001); showDescription(TX_TRI0N001);
} }
void Room::trial0LookAtGuard() { void Room::trial0LookAtGuard() {
showText(TX_TRI0N000); showDescription(TX_TRI0N000);
} }
void Room::trial0LookAtBench() { void Room::trial0LookAtBench() {
showText(TX_TRI0N006); showDescription(TX_TRI0N006);
} }
void Room::trial0LookAtSeal() { void Room::trial0LookAtSeal() {
showText(TX_TRI0N008); showDescription(TX_TRI0N008);
} }
void Room::trial0LookAtKirk() { void Room::trial0LookAtKirk() {
showText(TX_TRI0N004); showDescription(TX_TRI0N004);
} }
void Room::trial0LookAtSpock() { void Room::trial0LookAtSpock() {
showText(TX_TRI0N005); showDescription(TX_TRI0N005);
} }
void Room::trial0LookAtMccoy() { void Room::trial0LookAtMccoy() {
showText(TX_TRI0N002); showDescription(TX_TRI0N002);
} }
void Room::trial0LookAtRedshirt() { void Room::trial0LookAtRedshirt() {
showText(TX_TRI0N003); showDescription(TX_TRI0N003);
} }
void Room::trial0LookAtQuetzecoatl() { void Room::trial0LookAtQuetzecoatl() {
showText(TX_TRI0N009); showDescription(TX_TRI0N009);
} }
void Room::trial0TalkToVlict() { void Room::trial0TalkToVlict() {

View file

@ -238,47 +238,47 @@ void Room::trial1PickedUpRod() {
} }
void Room::trial1LookAtKirk() { void Room::trial1LookAtKirk() {
showText(TX_TRI1N003); showDescription(TX_TRI1N003);
} }
void Room::trial1LookAtSpock() { void Room::trial1LookAtSpock() {
showText(TX_TRI1N017); showDescription(TX_TRI1N017);
} }
void Room::trial1LookAtMccoy() { void Room::trial1LookAtMccoy() {
showText(TX_TRI1N016); showDescription(TX_TRI1N016);
} }
void Room::trial1LookAtRedshirt() { void Room::trial1LookAtRedshirt() {
showText(TX_TRI1N015); showDescription(TX_TRI1N015);
} }
void Room::trial1LookAtWall() { void Room::trial1LookAtWall() {
showText(TX_TRI1N011); showDescription(TX_TRI1N011);
} }
void Room::trial1LookAtFloor() { void Room::trial1LookAtFloor() {
showText(TX_TRI1N006); showDescription(TX_TRI1N006);
} }
void Room::trial1LookAtRods() { void Room::trial1LookAtRods() {
showText(TX_TRI1N009); showDescription(TX_TRI1N009);
} }
void Room::trial1LookAtDoor() { void Room::trial1LookAtDoor() {
showText(TX_TRI1N001); showDescription(TX_TRI1N001);
} }
void Room::trial1LookAtLock() { void Room::trial1LookAtLock() {
showText(TX_TRI1N002); showDescription(TX_TRI1N002);
} }
void Room::trial1LookAtEntity() { void Room::trial1LookAtEntity() {
showText(TX_TRI1N000); showDescription(TX_TRI1N000);
} }
void Room::trial1LookAtMoltenRock() { void Room::trial1LookAtMoltenRock() {
showText(TX_TRI1N007); showDescription(TX_TRI1N007);
} }
void Room::trial1TalkToKirk() { void Room::trial1TalkToKirk() {
@ -307,11 +307,11 @@ void Room::trial1UsePhaserOnCrewman() {
} }
void Room::trial1UsePhaserOnEntity() { void Room::trial1UsePhaserOnEntity() {
showText(TX_TRI1N004); showDescription(TX_TRI1N004);
} }
void Room::trial1UsePhaserOnWall() { void Room::trial1UsePhaserOnWall() {
showText(TX_TRI1N008); showDescription(TX_TRI1N008);
} }
@ -345,7 +345,7 @@ void Room::trial1ReachedFloorToUseKillPhaser() {
} }
void Room::trial1DoneShootingFloorWithKillPhaser() { void Room::trial1DoneShootingFloorWithKillPhaser() {
showText(TX_TRI1N014); showDescription(TX_TRI1N014);
loadActorAnim2(OBJECT_MOLTEN_ROCK, "t1mltd", 0xca, 0xbc); loadActorAnim2(OBJECT_MOLTEN_ROCK, "t1mltd", 0xca, 0xbc);
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_E; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_E;
@ -357,7 +357,7 @@ void Room::trial1DoneShootingFloorWithKillPhaser() {
} }
void Room::trial1UsePhaserOnRod() { void Room::trial1UsePhaserOnRod() {
showText(TX_TRI1N012); showDescription(TX_TRI1N012);
} }
void Room::trial1UsePhaserOnDoor() { void Room::trial1UsePhaserOnDoor() {
@ -434,7 +434,7 @@ void Room::trial1UseCommunicator() {
TX_TRI1_005, TX_TRI1_004, TX_TRI1_009, TX_TRI1_005, TX_TRI1_004, TX_TRI1_009,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // "Beam us back to the enterprise" if (choice == 0) { // "Beam us back to the enterprise"
_awayMission->trial.missionEndMethod = 1; _awayMission->trial.missionEndMethod = 1;
@ -461,7 +461,7 @@ void Room::trial1UseCommunicator() {
TX_TRI1_006, TX_TRI1_002, TX_TRI1_006, TX_TRI1_002,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // Don't analyze the anomolous program if (choice == 0) { // Don't analyze the anomolous program
showText(TX_SPEAKER_UHURA, TX_TRI1U079); showText(TX_SPEAKER_UHURA, TX_TRI1U079);
@ -476,7 +476,7 @@ void Room::trial1UseCommunicator() {
TX_TRI1_003, TX_TRI1_008, TX_TRI1_003, TX_TRI1_008,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 0) { // Activate the program if (choice == 0) { // Activate the program
showText(TX_SPEAKER_UHURA, TX_TRI1U095); showText(TX_SPEAKER_UHURA, TX_TRI1U095);
@ -625,7 +625,7 @@ void Room::trial1UseRodOnRedshirt() {
} }
void Room::trial1UseRodOnFloorOrWall() { void Room::trial1UseRodOnFloorOrWall() {
showText(TX_TRI1C002); showDescription(TX_TRI1C002);
} }
@ -645,7 +645,7 @@ void Room::trial1DoneThrowingWoodRod() {
void Room::trial1UseWoodRodOnLock() { void Room::trial1UseWoodRodOnLock() {
showText(TX_TRI1N005); showDescription(TX_TRI1N005);
} }
@ -660,7 +660,7 @@ void Room::trial1ReachedMoltenRock() {
void Room::trial1DoneCoatingWoodRod() { void Room::trial1DoneCoatingWoodRod() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
showText(TX_TRI1N013); showDescription(TX_TRI1N013);
loseItem(OBJECT_IWROD); loseItem(OBJECT_IWROD);
giveItem(OBJECT_IIROD); giveItem(OBJECT_IIROD);
@ -699,7 +699,7 @@ void Room::trial1DoneThrowingIronRod() {
void Room::trial1UseIronRodOnLock() { void Room::trial1UseIronRodOnLock() {
showText(TX_TRI1N004); showDescription(TX_TRI1N004);
} }
void Room::trial1GetThrownIronRod() { void Room::trial1GetThrownIronRod() {

View file

@ -164,35 +164,35 @@ void Room::trial2TouchedHotspot0() { // This is unused
} }
void Room::trial2LookAtKirk() { void Room::trial2LookAtKirk() {
showText(TX_TRI2N003); showDescription(TX_TRI2N003);
} }
void Room::trial2LookAtSpock() { void Room::trial2LookAtSpock() {
showText(TX_TRI2N001); showDescription(TX_TRI2N001);
} }
void Room::trial2LookAtMccoy() { void Room::trial2LookAtMccoy() {
showText(TX_TRI2N006); showDescription(TX_TRI2N006);
} }
void Room::trial2LookAtRedshirt() { void Room::trial2LookAtRedshirt() {
showText(TX_TRI2N002); showDescription(TX_TRI2N002);
} }
void Room::trial2LookAtInsignia() { void Room::trial2LookAtInsignia() {
showText(TX_TRI2N004); showDescription(TX_TRI2N004);
} }
void Room::trial2LookAtGlob() { void Room::trial2LookAtGlob() {
showText(TX_TRI2N000); showDescription(TX_TRI2N000);
} }
void Room::trial2LookAtWall() { void Room::trial2LookAtWall() {
showText(TX_TRI2N007); showDescription(TX_TRI2N007);
} }
void Room::trial2LookAtDoor() { void Room::trial2LookAtDoor() {
showText(TX_TRI2N005); showDescription(TX_TRI2N005);
} }
void Room::trial2TalkToKirk() { void Room::trial2TalkToKirk() {
@ -212,11 +212,11 @@ void Room::trial2TalkToRedshirt() {
} }
void Room::trial2TalkToGlob() { void Room::trial2TalkToGlob() {
showText(TX_QUIET); showDescription(TX_QUIET);
} }
void Room::trial2UsePhaserOnWall() { void Room::trial2UsePhaserOnWall() {
showText(TX_TRI2N008); showDescription(TX_TRI2N008);
} }
@ -410,7 +410,7 @@ void Room::trial2UseCommunicator() {
TX_TRI2_003, TX_TRI2_004, TX_TRI2_007, TX_TRI2_003, TX_TRI2_004, TX_TRI2_007,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // "Beam us back to the enterprise" if (choice == 0) { // "Beam us back to the enterprise"
_awayMission->trial.missionEndMethod = 1; _awayMission->trial.missionEndMethod = 1;

View file

@ -220,7 +220,7 @@ void Room::trial3CheckShowUhuraText() {
TX_TRI3_006, TX_TRI3_002, TX_TRI3_003, TX_TRI3_006, TX_TRI3_002, TX_TRI3_003,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // Don't beam out if (choice == 0) { // Don't beam out
} else if (choice == 1) { // Beam to enterprise } else if (choice == 1) { // Beam to enterprise
@ -260,27 +260,27 @@ void Room::trial3KirkExploded() {
} }
void Room::trial3LookAtKirk() { void Room::trial3LookAtKirk() {
showText(TX_TRI3N000); showDescription(TX_TRI3N000);
} }
void Room::trial3LookAtSpock() { void Room::trial3LookAtSpock() {
showText(TX_TRI3N004); showDescription(TX_TRI3N004);
} }
void Room::trial3LookAtMccoy() { void Room::trial3LookAtMccoy() {
showText(TX_TRI3N001); showDescription(TX_TRI3N001);
} }
void Room::trial3LookAtRedshirt() { void Room::trial3LookAtRedshirt() {
showText(TX_TRI3N002); showDescription(TX_TRI3N002);
} }
void Room::trial3LookAtExit() { void Room::trial3LookAtExit() {
showText(TX_TRI3N005); showDescription(TX_TRI3N005);
} }
void Room::trial3LookAtWall() { void Room::trial3LookAtWall() {
showText(TX_TRI3N007); showDescription(TX_TRI3N007);
} }
void Room::trial3TalkToKirk() { void Room::trial3TalkToKirk() {
@ -300,7 +300,7 @@ void Room::trial3TalkToRedshirt() {
} }
void Room::trial3UsePhaserOnWall() { void Room::trial3UsePhaserOnWall() {
showText(TX_TRI3N006); showDescription(TX_TRI3N006);
} }
void Room::trial3UseStunPhaserOnKlingon1() { void Room::trial3UseStunPhaserOnKlingon1() {
@ -346,7 +346,7 @@ void Room::trial3ReadyToShootKlingon1OnKill() {
} }
void Room::trial3UsePhaserAnywhere() { void Room::trial3UsePhaserAnywhere() {
showText(TX_TRI3N003); showDescription(TX_TRI3N003);
} }
void Room::trial3UseMTricorderOnKirk() { void Room::trial3UseMTricorderOnKirk() {
@ -395,7 +395,7 @@ void Room::trial3UseCommunicator() {
TX_TRI3_103, TX_TRI3_104, TX_TRI3_107, TX_TRI3_103, TX_TRI3_104, TX_TRI3_107,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // "Beam us back to the enterprise" if (choice == 0) { // "Beam us back to the enterprise"
_awayMission->trial.missionEndMethod = 1; _awayMission->trial.missionEndMethod = 1;

View file

@ -54,7 +54,7 @@ void Room::trial4Tick60() {
TX_TRI4_022, TX_TRI4_039, TX_TRI4_032, TX_TRI4_022, TX_TRI4_039, TX_TRI4_032,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // "You were trying to kill us" if (choice == 0) { // "You were trying to kill us"
showText(TX_SPEAKER_VLICT, TX_TRI4_064); showText(TX_SPEAKER_VLICT, TX_TRI4_064);
@ -64,7 +64,7 @@ void Room::trial4Tick60() {
TX_TRI4_033, TX_TRI4_009, TX_TRI4_002, TX_TRI4_033, TX_TRI4_009, TX_TRI4_002,
TX_BLANK TX_BLANK
}; };
showText(choices2); // choice doesn't matter showMultipleTexts(choices2); // choice doesn't matter
showText(TX_SPEAKER_VLICT, TX_TRI4_062); showText(TX_SPEAKER_VLICT, TX_TRI4_062);
showText(TX_SPEAKER_KIRK, TX_TRI4_014); showText(TX_SPEAKER_KIRK, TX_TRI4_014);
@ -76,7 +76,7 @@ void Room::trial4Tick60() {
TX_TRI4_029, TX_TRI4_020, TX_TRI4_030, TX_TRI4_029, TX_TRI4_020, TX_TRI4_030,
TX_BLANK TX_BLANK
}; };
choice = showText(choices3); choice = showMultipleTexts(choices3);
if (choice == 0) { // "Then you have my deepest respect" if (choice == 0) { // "Then you have my deepest respect"
// Nothing more // Nothing more
@ -104,7 +104,7 @@ void Room::trial4Tick60() {
TX_TRI4_019, TX_TRI4_025, TX_TRI4_008, TX_TRI4_019, TX_TRI4_025, TX_TRI4_008,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 1) { // Threatened Vlict if (choice == 1) { // Threatened Vlict
showText(TX_SPEAKER_VLICT, TX_TRI4_069); showText(TX_SPEAKER_VLICT, TX_TRI4_069);
@ -118,7 +118,7 @@ void Room::trial4Tick60() {
TX_TRI4_027, TX_TRI4_034, TX_TRI4_018, TX_TRI4_027, TX_TRI4_034, TX_TRI4_018,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 0) { // "Let's stop playing games" if (choice == 0) { // "Let's stop playing games"
showText(TX_SPEAKER_VLICT, TX_TRI4_075); showText(TX_SPEAKER_VLICT, TX_TRI4_075);
@ -131,7 +131,7 @@ void Room::trial4Tick60() {
TX_TRI4_028, TX_TRI4_021, TX_TRI4_031, TX_TRI4_028, TX_TRI4_021, TX_TRI4_031,
TX_BLANK TX_BLANK
}; };
choice = showText(choices3); choice = showMultipleTexts(choices3);
if (choice == 0 || choice == 1) { if (choice == 0 || choice == 1) {
showText(TX_SPEAKER_VLICT, TX_TRI4_068); showText(TX_SPEAKER_VLICT, TX_TRI4_068);
@ -156,7 +156,7 @@ void Room::trial4Tick60() {
TX_TRI4_026, TX_TRI4_024, TX_TRI4_023, TX_TRI4_026, TX_TRI4_024, TX_TRI4_023,
TX_BLANK TX_BLANK
}; };
choice = showText(choices3); choice = showMultipleTexts(choices3);
if (choice == 0) { // "The empire will learn you betrayed them" if (choice == 0) { // "The empire will learn you betrayed them"
showText(TX_SPEAKER_VLICT, TX_TRI4_057); showText(TX_SPEAKER_VLICT, TX_TRI4_057);

View file

@ -198,7 +198,7 @@ void Room::trial5VlictAppeared() {
TX_TRI5_003, TX_TRI5_008, TX_TRI5_006, TX_TRI5_003, TX_TRI5_008, TX_TRI5_006,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // "Do you want me to help you?" if (choice == 0) { // "Do you want me to help you?"
showText(TX_SPEAKER_VLICT, TX_TRI5_023); showText(TX_SPEAKER_VLICT, TX_TRI5_023);
@ -209,7 +209,7 @@ void Room::trial5VlictAppeared() {
TX_TRI5_009, TX_TRI5_007, TX_TRI5_009, TX_TRI5_007,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 0) if (choice == 0)
choice = 1; choice = 1;
@ -332,27 +332,27 @@ void Room::trial5GetBlueGem3() {
} }
void Room::trial5LookAtKirk() { void Room::trial5LookAtKirk() {
showText(TX_TRI5N005); showDescription(TX_TRI5N005);
} }
void Room::trial5LookAtSpock() { void Room::trial5LookAtSpock() {
showText(TX_TRI5N009); showDescription(TX_TRI5N009);
} }
void Room::trial5LookAtMccoy() { void Room::trial5LookAtMccoy() {
showText(TX_TRI5N008); showDescription(TX_TRI5N008);
} }
void Room::trial5LookAtRedshirt() { void Room::trial5LookAtRedshirt() {
showText(TX_TRI5N010); showDescription(TX_TRI5N010);
} }
void Room::trial5LookAtBeam() { void Room::trial5LookAtBeam() {
showText(TX_TRI5N002); showDescription(TX_TRI5N002);
} }
void Room::trial5LookAtInterface() { void Room::trial5LookAtInterface() {
showText(TX_TRI5N004); showDescription(TX_TRI5N004);
} }
void Room::trial5UseSTricorderOnInterface() { void Room::trial5UseSTricorderOnInterface() {
@ -364,43 +364,43 @@ void Room::trial5UseMTricorderOnInterface() {
} }
void Room::trial5LookAtRedGem1() { void Room::trial5LookAtRedGem1() {
showText(TX_TRI5N013); showDescription(TX_TRI5N013);
} }
void Room::trial5LookAtRedGem2() { void Room::trial5LookAtRedGem2() {
showText(TX_TRI5N014); showDescription(TX_TRI5N014);
} }
void Room::trial5LookAtRedGem3() { void Room::trial5LookAtRedGem3() {
showText(TX_TRI5N015); showDescription(TX_TRI5N015);
} }
void Room::trial5LookAtGreenGem1() { void Room::trial5LookAtGreenGem1() {
showText(TX_TRI5N019); showDescription(TX_TRI5N019);
} }
void Room::trial5LookAtGreenGem2() { void Room::trial5LookAtGreenGem2() {
showText(TX_TRI5N020); showDescription(TX_TRI5N020);
} }
void Room::trial5LookAtGreenGem3() { void Room::trial5LookAtGreenGem3() {
showText(TX_TRI5N021); showDescription(TX_TRI5N021);
} }
void Room::trial5LookAtBlueGem1() { void Room::trial5LookAtBlueGem1() {
showText(TX_TRI5N016); showDescription(TX_TRI5N016);
} }
void Room::trial5LookAtBlueGem2() { void Room::trial5LookAtBlueGem2() {
showText(TX_TRI5N017); showDescription(TX_TRI5N017);
} }
void Room::trial5LookAtBlueGem3() { void Room::trial5LookAtBlueGem3() {
showText(TX_TRI5N018); showDescription(TX_TRI5N018);
} }
void Room::trial5LookAtHole() { void Room::trial5LookAtHole() {
showText(TX_TRI5N006); showDescription(TX_TRI5N006);
} }
void Room::trial5TalkToKirk() { void Room::trial5TalkToKirk() {
@ -420,22 +420,22 @@ void Room::trial5TalkToRedshirt() {
} }
void Room::trial5UsePhaser() { void Room::trial5UsePhaser() {
showText(TX_TRI5N011); showDescription(TX_TRI5N011);
} }
void Room::trial5UseMTricorderAnywhere() { void Room::trial5UseMTricorderAnywhere() {
// BUGFIX: Original had Spock doing the animation, not Mccoy // BUGFIX: Original had Spock doing the animation, not Mccoy
mccoyScan(DIR_S, -1, true); mccoyScan(DIR_S, -1, true);
showText(TX_TRI5N012); showDescription(TX_TRI5N012);
} }
void Room::trial5UseSTricorderAnywhere() { void Room::trial5UseSTricorderAnywhere() {
spockScan(DIR_S, -1, true); spockScan(DIR_S, -1, true);
showText(TX_TRI5N012); showDescription(TX_TRI5N012);
} }
void Room::trial5UseCommunicator() { void Room::trial5UseCommunicator() {
showText(TX_TRI5N007); showDescription(TX_TRI5N007);
} }
void Room::trial5UseGemOnHole(int16 item, int16 object, int16 hole) { void Room::trial5UseGemOnHole(int16 item, int16 object, int16 hole) {

View file

@ -48,9 +48,9 @@ void Room::tug0Tick1() {
void Room::tug0LookAtEngineer() { void Room::tug0LookAtEngineer() {
if (_awayMission->tug.engineerConscious) if (_awayMission->tug.engineerConscious)
showText(TX_TUG0N002); showDescription(TX_TUG0N002);
else else
showText(TX_TUG0N014); showDescription(TX_TUG0N014);
} }
void Room::tug0GetEngineer() { void Room::tug0GetEngineer() {
@ -59,9 +59,9 @@ void Room::tug0GetEngineer() {
void Room::tug0LookAtControls() { void Room::tug0LookAtControls() {
if (_awayMission->tug.transporterRepaired) if (_awayMission->tug.transporterRepaired)
showText(TX_TUG0N012); showDescription(TX_TUG0N012);
else else
showText(TX_TUG0N001); showDescription(TX_TUG0N001);
} }
void Room::tug0UseSpockOnControls() { void Room::tug0UseSpockOnControls() {
@ -208,15 +208,15 @@ void Room::tug0KirkGotTransmogrifier() {
void Room::tug0LookAtToolbox() { void Room::tug0LookAtToolbox() {
if (_awayMission->tug.gotTransmogrifier) if (_awayMission->tug.gotTransmogrifier)
showText(TX_TUG0N008); showDescription(TX_TUG0N008);
else else
showText(TX_TUG0N000); showDescription(TX_TUG0N000);
} }
void Room::tug0UsePhaserOnWelder() { void Room::tug0UsePhaserOnWelder() {
loseItem(OBJECT_IPWE); loseItem(OBJECT_IPWE);
giveItem(OBJECT_IPWF); giveItem(OBJECT_IPWF);
showText(TX_TUG0N006); showDescription(TX_TUG0N006);
// BUGFIX: this following line didn't exist, despite it existing in TUG1; meaning this // BUGFIX: this following line didn't exist, despite it existing in TUG1; meaning this
// was supposed to give points, but it only did in a specific room. // was supposed to give points, but it only did in a specific room.
@ -224,7 +224,7 @@ void Room::tug0UsePhaserOnWelder() {
} }
void Room::tug0UseWelderOnWireScraps() { void Room::tug0UseWelderOnWireScraps() {
showText(TX_TUG0N010); showDescription(TX_TUG0N010);
loseItem(OBJECT_IWIRSCRP); loseItem(OBJECT_IWIRSCRP);
} }
@ -387,27 +387,27 @@ void Room::tug0WalkToDoor() {
} }
void Room::tug0LookAtKirk() { void Room::tug0LookAtKirk() {
showText(TX_TUG0N003); showDescription(TX_TUG0N003);
} }
void Room::tug0LookAtSpock() { void Room::tug0LookAtSpock() {
showText(TX_TUG0N007); showDescription(TX_TUG0N007);
} }
void Room::tug0LookAtMccoy() { void Room::tug0LookAtMccoy() {
showText(TX_TUG0N005); showDescription(TX_TUG0N005);
} }
void Room::tug0LookAtRedshirt() { void Room::tug0LookAtRedshirt() {
showText(TX_TUG0N004); showDescription(TX_TUG0N004);
} }
void Room::tug0LookAtTransporter() { void Room::tug0LookAtTransporter() {
showText(TX_TUG0N013); showDescription(TX_TUG0N013);
} }
void Room::tug0LookAtDoor() { void Room::tug0LookAtDoor() {
showText(TX_TUG0N011); showDescription(TX_TUG0N011);
} }
void Room::tug0TalkToKirk() { void Room::tug0TalkToKirk() {
@ -444,7 +444,7 @@ void Room::tug0UseCommunicator() {
} }
void Room::tug0LookAnywhere() { void Room::tug0LookAnywhere() {
showText(TX_TUG0N009); showDescription(TX_TUG0N009);
} }
void Room::tug0UseSTricorderAnywhere() { void Room::tug0UseSTricorderAnywhere() {

View file

@ -53,7 +53,7 @@ void Room::tug1UseSTricorderOnAnything() {
void Room::tug1LookAtBridgeDoor() { void Room::tug1LookAtBridgeDoor() {
if (_awayMission->tug.bridgeForceFieldDown) if (_awayMission->tug.bridgeForceFieldDown)
return; return;
showText(TX_TUG1N005); showDescription(TX_TUG1N005);
} }
void Room::tug1UseSTricorderOnBridgeDoor() { void Room::tug1UseSTricorderOnBridgeDoor() {
@ -68,7 +68,7 @@ void Room::tug1UseSTricorderOnBridgeDoor() {
void Room::tug1UsePhaserOnBridgeDoor() { void Room::tug1UsePhaserOnBridgeDoor() {
if (_awayMission->tug.bridgeForceFieldDown) if (_awayMission->tug.bridgeForceFieldDown)
showText(TX_TUG1N007); showDescription(TX_TUG1N007);
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
@ -104,7 +104,7 @@ void Room::tug1UseSTricorderOnJunkPile() {
} }
void Room::tug1LookAtJunkPile() { void Room::tug1LookAtJunkPile() {
showText(TX_TUG1N000); showDescription(TX_TUG1N000);
} }
void Room::tug1GetJunkPile() { void Room::tug1GetJunkPile() {
@ -130,13 +130,13 @@ void Room::tug1KirkFinishedTakingJunkPile() {
void Room::tug1UsePhaserOnWelder() { void Room::tug1UsePhaserOnWelder() {
loseItem(OBJECT_IPWE); loseItem(OBJECT_IPWE);
giveItem(OBJECT_IPWF); giveItem(OBJECT_IPWF);
showText(TX_TUG1N004); showDescription(TX_TUG1N004);
_awayMission->tug.missionScore += 3; _awayMission->tug.missionScore += 3;
} }
void Room::tug1UseWelderOnWireScraps() { void Room::tug1UseWelderOnWireScraps() {
showText(TX_TUG1N009); showDescription(TX_TUG1N009);
loseItem(OBJECT_IWIRSCRP); loseItem(OBJECT_IWIRSCRP);
} }
@ -155,7 +155,7 @@ void Room::tug1UseCombBitOnTransmogrifier() {
void Room::tug1UsePhaserWelderOnBridgeDoor() { void Room::tug1UsePhaserWelderOnBridgeDoor() {
if (_awayMission->tug.bridgeForceFieldDown) if (_awayMission->tug.bridgeForceFieldDown)
showText(TX_TUG1N008); showDescription(TX_TUG1N008);
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
@ -165,7 +165,7 @@ void Room::tug1UsePhaserWelderOnBridgeDoor() {
void Room::tug1UsePhaserWelderOnBridgeDoorInLeftSpot() { void Room::tug1UsePhaserWelderOnBridgeDoorInLeftSpot() {
if (_awayMission->tug.bridgeForceFieldDown) if (_awayMission->tug.bridgeForceFieldDown)
showText(TX_TUG1N007); showDescription(TX_TUG1N007);
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
@ -200,19 +200,19 @@ void Room::tug1KirkFinishedUsingWelderInLeftSpot() {
} }
void Room::tug1LookAnywhere() { void Room::tug1LookAnywhere() {
showText(TX_TUG1N013); showDescription(TX_TUG1N013);
} }
void Room::tug1LookAtMccoy() { void Room::tug1LookAtMccoy() {
showText(TX_TUG1N003); showDescription(TX_TUG1N003);
} }
void Room::tug1LookAtSpock() { void Room::tug1LookAtSpock() {
showText(TX_TUG1N006); showDescription(TX_TUG1N006);
} }
void Room::tug1LookAtRedshirt() { void Room::tug1LookAtRedshirt() {
showText(TX_TUG1N002); showDescription(TX_TUG1N002);
} }
void Room::tug1TalkToMccoy() { void Room::tug1TalkToMccoy() {
@ -224,15 +224,15 @@ void Room::tug1TalkToRedshirt() {
} }
void Room::tug1LookAtTerminal() { void Room::tug1LookAtTerminal() {
showText(TX_TUG1N010); showDescription(TX_TUG1N010);
} }
void Room::tug1LookAtDebris() { void Room::tug1LookAtDebris() {
showText(TX_TUG1N011); showDescription(TX_TUG1N011);
} }
void Room::tug1LookAtBrigDoor() { void Room::tug1LookAtBrigDoor() {
showText(TX_TUG1N001); showDescription(TX_TUG1N001);
} }
void Room::tug1UseSTricorderOnBrigDoor() { void Room::tug1UseSTricorderOnBrigDoor() {

View file

@ -119,19 +119,19 @@ void Room::tug2Tick60() {
} }
void Room::tug2LookAtButton() { void Room::tug2LookAtButton() {
showText(TX_TUG2N011); showDescription(TX_TUG2N011);
} }
void Room::tug2LookAtMccoy() { void Room::tug2LookAtMccoy() {
showText(TX_TUG2N005); showDescription(TX_TUG2N005);
} }
void Room::tug2LookAtSpock() { void Room::tug2LookAtSpock() {
showText(TX_TUG2N007); showDescription(TX_TUG2N007);
} }
void Room::tug2LookAtRedshirt() { void Room::tug2LookAtRedshirt() {
showText(TX_TUG2N004); showDescription(TX_TUG2N004);
} }
void Room::tug2GetBomb() { void Room::tug2GetBomb() {
@ -140,7 +140,7 @@ void Room::tug2GetBomb() {
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
walkCrewman(OBJECT_KIRK, 0xc9, 0xa0, 12); walkCrewman(OBJECT_KIRK, 0xc9, 0xa0, 12);
} else } else
showText(TX_TUG2N024); showDescription(TX_TUG2N024);
} }
void Room::tug2KirkReachedBomb() { void Room::tug2KirkReachedBomb() {
@ -155,33 +155,33 @@ void Room::tug2KirkGotBomb() {
} }
void Room::tug2LookAtBomb() { void Room::tug2LookAtBomb() {
showText(TX_TUG2N000); showDescription(TX_TUG2N000);
} }
void Room::tug2LookAtGuard1() { void Room::tug2LookAtGuard1() {
if (_awayMission->tug.guard1Status == 0) if (_awayMission->tug.guard1Status == 0)
showText(TX_TUG2N001); showDescription(TX_TUG2N001);
else if (_awayMission->tug.guard1Status == 1) else if (_awayMission->tug.guard1Status == 1)
showText(TX_TUG2N013); showDescription(TX_TUG2N013);
else if (_awayMission->tug.guard1Status == 8) else if (_awayMission->tug.guard1Status == 8)
showText(TX_TUG2N015); showDescription(TX_TUG2N015);
else if (_awayMission->tug.guard1Status == 2) else if (_awayMission->tug.guard1Status == 2)
showText(TX_TUG2N106); showDescription(TX_TUG2N106);
} }
void Room::tug2LookAtGuard2() { void Room::tug2LookAtGuard2() {
if (_awayMission->tug.guard2Status == 0) if (_awayMission->tug.guard2Status == 0)
showText(TX_TUG2N037); showDescription(TX_TUG2N037);
else if (_awayMission->tug.guard2Status == 1) else if (_awayMission->tug.guard2Status == 1)
showText(TX_TUG2N014); showDescription(TX_TUG2N014);
else if (_awayMission->tug.guard2Status == 8) else if (_awayMission->tug.guard2Status == 8)
showText(TX_TUG2N016); showDescription(TX_TUG2N016);
else if (_awayMission->tug.guard2Status == 2) else if (_awayMission->tug.guard2Status == 2)
showText(TX_TUG2N106); showDescription(TX_TUG2N106);
} }
void Room::tug2LookAtWires() { void Room::tug2LookAtWires() {
showText(TX_TUG2N010); showDescription(TX_TUG2N010);
} }
void Room::tug2UseSTricorderOnButton() { void Room::tug2UseSTricorderOnButton() {
@ -214,7 +214,7 @@ void Room::tug2RedshirtReachedWires() {
} }
void Room::tug2RedshirtDefusedBomb() { void Room::tug2RedshirtDefusedBomb() {
showText(TX_TUG2C001); showDescription(TX_TUG2C001);
showText(TX_SPEAKER_CHRISTENSEN, TX_TUG2L011); showText(TX_SPEAKER_CHRISTENSEN, TX_TUG2L011);
_awayMission->tug.field35 = 4; _awayMission->tug.field35 = 4;
_awayMission->crewDirectionsAfterWalk[OBJECT_REDSHIRT] = DIR_E; _awayMission->crewDirectionsAfterWalk[OBJECT_REDSHIRT] = DIR_E;
@ -376,7 +376,7 @@ void Room::tug2TurnedOffForceField() {
void Room::tug2PrisonersDead() { void Room::tug2PrisonersDead() {
loadActorAnim2(OBJECT_BRIG, "zapdon", 0, 0, 0); loadActorAnim2(OBJECT_BRIG, "zapdon", 0, 0, 0);
showText(TX_TUG2N026); showDescription(TX_TUG2N026);
} }
void Room::tug2PrisonersReleased() { void Room::tug2PrisonersReleased() {
@ -526,7 +526,7 @@ void Room::tug2KirkKillGuard2() {
void Room::tug2UsePhaserOnWelder() { void Room::tug2UsePhaserOnWelder() {
loseItem(OBJECT_IPWE); loseItem(OBJECT_IPWE);
giveItem(OBJECT_IPWF); giveItem(OBJECT_IPWF);
showText(TX_TUG2N006); showDescription(TX_TUG2N006);
// BUGFIX: this following line didn't exist, despite it existing in TUG1; meaning this // BUGFIX: this following line didn't exist, despite it existing in TUG1; meaning this
// was supposed to give points, but it only did in a specific room. // was supposed to give points, but it only did in a specific room.
@ -534,7 +534,7 @@ void Room::tug2UsePhaserOnWelder() {
} }
void Room::tug2UseWelderOnWireScraps() { void Room::tug2UseWelderOnWireScraps() {
showText(TX_TUG2N009); showDescription(TX_TUG2N009);
loseItem(OBJECT_IWIRSCRP); loseItem(OBJECT_IWIRSCRP);
} }
@ -552,7 +552,7 @@ void Room::tug2UseCombBitOnTransmogrifier() {
} }
void Room::tug2ShotByElasi() { void Room::tug2ShotByElasi() {
showText(TX_TUG2N025); showDescription(TX_TUG2N025);
showGameOverMenu(); showGameOverMenu();
// Unused: additional textbox that says "***Game over man!***" // Unused: additional textbox that says "***Game over man!***"
@ -563,11 +563,11 @@ void Room::tug2WalkToDoor() {
} }
void Room::tug2LookAtDoor() { void Room::tug2LookAtDoor() {
showText(TX_TUG2N012); showDescription(TX_TUG2N012);
} }
void Room::tug2LookAtKirk() { void Room::tug2LookAtKirk() {
showText(TX_TUG2N003); showDescription(TX_TUG2N003);
} }
void Room::tug2TalkToKirk() { void Room::tug2TalkToKirk() {
@ -824,19 +824,19 @@ void Room::tug2UseMedkitOnGuard2() {
void Room::tug2LookAnywhere() { void Room::tug2LookAnywhere() {
if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && _awayMission->tug.field35 == 6) if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && _awayMission->tug.field35 == 6)
showText(TX_TUG2N019); showDescription(TX_TUG2N019);
else if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && !_awayMission->tug.brigForceFieldDown) else if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && !_awayMission->tug.brigForceFieldDown)
showText(TX_TUG2N017); showDescription(TX_TUG2N017);
else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && _awayMission->tug.field35 == 6) else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && _awayMission->tug.field35 == 6)
showText(TX_TUG2N020); showDescription(TX_TUG2N020);
else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && !_awayMission->tug.brigForceFieldDown) else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && !_awayMission->tug.brigForceFieldDown)
showText(TX_TUG2N018); showDescription(TX_TUG2N018);
else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && _awayMission->tug.brigForceFieldDown) else if (_awayMission->tug.guard1Status == GUARDSTAT_STUNNED && _awayMission->tug.guard2Status == GUARDSTAT_STUNNED && _awayMission->tug.brigForceFieldDown)
showText(TX_TUG2N021); showDescription(TX_TUG2N021);
else if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && _awayMission->tug.brigForceFieldDown) else if (_awayMission->tug.guard1Status == GUARDSTAT_DEAD && _awayMission->tug.guard2Status == GUARDSTAT_DEAD && _awayMission->tug.brigForceFieldDown)
showText(TX_TUG2N022); showDescription(TX_TUG2N022);
else else
showText(TX_TUG2N023); showDescription(TX_TUG2N023);
} }
void Room::tug2TalkToBrig() { void Room::tug2TalkToBrig() {

View file

@ -54,7 +54,7 @@ void Room::tug3Tick40() {
} }
void Room::tug3LookAnywhere() { void Room::tug3LookAnywhere() {
showText(TX_TUG3N007); showDescription(TX_TUG3N007);
} }
void Room::tug3ElasiSurrendered() { void Room::tug3ElasiSurrendered() {
@ -231,7 +231,7 @@ void Room::tug3TalkToElasi1() {
TX_TUG3_002, TX_TUG3_002,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
switch (choice) { switch (choice) {
case 0: // They surrender case 0: // They surrender
@ -290,15 +290,15 @@ void Room::tug3Elasi1ShotConsoleAndSurrenders() {
} }
void Room::tug3LookAtMccoy() { void Room::tug3LookAtMccoy() {
showText(TX_TUG3N000); showDescription(TX_TUG3N000);
} }
void Room::tug3LookAtSpock() { void Room::tug3LookAtSpock() {
showText(TX_TUG3N002); showDescription(TX_TUG3N002);
} }
void Room::tug3LookAtRedshirt() { void Room::tug3LookAtRedshirt() {
showText(TX_TUG3N001); showDescription(TX_TUG3N001);
} }
void Room::tug3LookAtElasi1() { void Room::tug3LookAtElasi1() {
@ -309,32 +309,32 @@ void Room::tug3LookAtElasi1() {
// instead of just checking if he's stunned. // instead of just checking if he's stunned.
if (_awayMission->tug.bridgeElasi1Status == GUARDSTAT_STUNNED || _awayMission->tug.bridgeElasi1Status == GUARDSTAT_DEAD) if (_awayMission->tug.bridgeElasi1Status == GUARDSTAT_STUNNED || _awayMission->tug.bridgeElasi1Status == GUARDSTAT_DEAD)
showText(TX_TUG3N003); showDescription(TX_TUG3N003);
else else
showText(TX_TUG3N008); showDescription(TX_TUG3N008);
} }
void Room::tug3LookAtElasi2() { void Room::tug3LookAtElasi2() {
// BUGFIX: also check if stunned. They can't "glare at the crewmembers" if they're // BUGFIX: also check if stunned. They can't "glare at the crewmembers" if they're
// unconscious. (applies to below functions too.) // unconscious. (applies to below functions too.)
if (_awayMission->tug.bridgeElasi2Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED) if (_awayMission->tug.bridgeElasi2Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED)
showText(TX_TUG3N004); showDescription(TX_TUG3N004);
else else
showText(TX_TUG3N005); showDescription(TX_TUG3N005);
} }
void Room::tug3LookAtElasi3() { void Room::tug3LookAtElasi3() {
if (_awayMission->tug.bridgeElasi3Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED) if (_awayMission->tug.bridgeElasi3Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED)
showText(TX_TUG3N004); showDescription(TX_TUG3N004);
else else
showText(TX_TUG3N005); showDescription(TX_TUG3N005);
} }
void Room::tug3LookAtElasi4() { void Room::tug3LookAtElasi4() {
if (_awayMission->tug.bridgeElasi4Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED) if (_awayMission->tug.bridgeElasi4Status == GUARDSTAT_DEAD || _awayMission->tug.bridgeElasi2Status == GUARDSTAT_STUNNED)
showText(TX_TUG3N004); showDescription(TX_TUG3N004);
else else
showText(TX_TUG3N005); showDescription(TX_TUG3N005);
} }
void Room::tug3TalkToMccoy() { void Room::tug3TalkToMccoy() {
@ -462,7 +462,7 @@ void Room::tug3Timer1Expired() {
_awayMission->timers[1] = 100; _awayMission->timers[1] = 100;
_awayMission->tug.orbitalDecayCounter++; _awayMission->tug.orbitalDecayCounter++;
} else { // Game over } else { // Game over
showText(TX_TUG3N006); showDescription(TX_TUG3N006);
showGameOverMenu(); showGameOverMenu();
} }
} }

View file

@ -217,7 +217,7 @@ void Room::veng0UseMccoyOnDeadCrewman() {
void Room::veng0UseSawOnBeam() { void Room::veng0UseSawOnBeam() {
if (_awayMission->veng.beamState == 1 || _awayMission->veng.beamState == 2) if (_awayMission->veng.beamState == 1 || _awayMission->veng.beamState == 2)
showText(TX_VEN0N008); showDescription(TX_VEN0N008);
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
walkCrewmanC(OBJECT_KIRK, 0x24, 0xc2, &Room::veng0KirkReachedSaw); walkCrewmanC(OBJECT_KIRK, 0x24, 0xc2, &Room::veng0KirkReachedSaw);
@ -241,7 +241,7 @@ void Room::veng0DoneCuttingBeam() {
loadActorStandAnim(OBJECT_9); loadActorStandAnim(OBJECT_9);
loadActorStandAnim(OBJECT_10); loadActorStandAnim(OBJECT_10);
showText(TX_VEN0N007); showDescription(TX_VEN0N007);
_awayMission->veng.beamState = 1; _awayMission->veng.beamState = 1;
veng0GetBeam(); veng0GetBeam();
@ -249,12 +249,12 @@ void Room::veng0DoneCuttingBeam() {
void Room::veng0GetBeam() { void Room::veng0GetBeam() {
if (_awayMission->veng.beamState == 1) { if (_awayMission->veng.beamState == 1) {
showText(TX_VEN0N019); showDescription(TX_VEN0N019);
_awayMission->veng.beamState = 2; _awayMission->veng.beamState = 2;
giveItem(OBJECT_IBEAM); giveItem(OBJECT_IBEAM);
loadActorAnim2(OBJECT_BEAM, "s7r0bf", 0x0e, 0x9a); loadActorAnim2(OBJECT_BEAM, "s7r0bf", 0x0e, 0x9a);
} else } else
showText(TX_VEN0N009); showDescription(TX_VEN0N009);
} }
void Room::veng0TalkToKirk() { void Room::veng0TalkToKirk() {
@ -277,62 +277,62 @@ void Room::veng0TalkToRedshirt() {
} }
void Room::veng0LookAtPatterson() { void Room::veng0LookAtPatterson() {
showText(TX_VEN0N004); showDescription(TX_VEN0N004);
} }
void Room::veng0LookAtDeadCrewman2() { void Room::veng0LookAtDeadCrewman2() {
showText(TX_VEN0N017); showDescription(TX_VEN0N017);
} }
void Room::veng0LookAtComputerBank() { void Room::veng0LookAtComputerBank() {
showText(TX_VEN0N005); showDescription(TX_VEN0N005);
} }
void Room::veng0LookAtChair() { void Room::veng0LookAtChair() {
showText(TX_VEN0N015); showDescription(TX_VEN0N015);
} }
void Room::veng0LookAtKirk() { void Room::veng0LookAtKirk() {
showText(TX_VEN0N001); showDescription(TX_VEN0N001);
} }
void Room::veng0LookAtSpock() { void Room::veng0LookAtSpock() {
showText(TX_VEN0N006); showDescription(TX_VEN0N006);
} }
void Room::veng0LookAtMccoy() { void Room::veng0LookAtMccoy() {
showText(TX_VEN0N002); showDescription(TX_VEN0N002);
} }
void Room::veng0LookAtRedshirt() { void Room::veng0LookAtRedshirt() {
showText(TX_VEN0N003); showDescription(TX_VEN0N003);
} }
void Room::veng0LookAtViewscreen() { void Room::veng0LookAtViewscreen() {
showText(TX_VEN0N010); showDescription(TX_VEN0N010);
} }
void Room::veng0LookAtHelmConsole() { void Room::veng0LookAtHelmConsole() {
showText(TX_VEN0N011); showDescription(TX_VEN0N011);
} }
void Room::veng0LookAtNavConsole() { void Room::veng0LookAtNavConsole() {
showText(TX_VEN0N012); showDescription(TX_VEN0N012);
} }
void Room::veng0LookAtBeam() { void Room::veng0LookAtBeam() {
if (_awayMission->veng.beamState == 1) if (_awayMission->veng.beamState == 1)
showText(TX_VEN0N013); showDescription(TX_VEN0N013);
else else
showText(TX_VEN0N000); showDescription(TX_VEN0N000);
} }
void Room::veng0LookAnywhere() { void Room::veng0LookAnywhere() {
showText(TX_VEN0N018); showDescription(TX_VEN0N018);
} }
void Room::veng0LookAtDeadCrewman1() { void Room::veng0LookAtDeadCrewman1() {
showText(TX_VEN0N016); showDescription(TX_VEN0N016);
} }
void Room::veng0UseMccoyOnLivingCrewman() { void Room::veng0UseMccoyOnLivingCrewman() {

View file

@ -158,7 +158,7 @@ void Room::veng1WalkToDoor() {
_roomVar.veng.walkingToDoor = true; _roomVar.veng.walkingToDoor = true;
_awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N; _awayMission->crewDirectionsAfterWalk[OBJECT_KIRK] = DIR_N;
} else } else
showText(TX_VEN1N007); showDescription(TX_VEN1N007);
} }
void Room::veng1TouchedHotspot0() { void Room::veng1TouchedHotspot0() {
@ -180,7 +180,7 @@ void Room::veng1TouchedTurbolift() {
} }
void Room::veng1LookAtDeadGuy() { void Room::veng1LookAtDeadGuy() {
showText(TX_VEN4N014); showDescription(TX_VEN4N014);
} }
void Room::veng1UseSTricorderOnVent() { void Room::veng1UseSTricorderOnVent() {
@ -189,43 +189,43 @@ void Room::veng1UseSTricorderOnVent() {
void Room::veng1LookAtPanel() { void Room::veng1LookAtPanel() {
if (!_awayMission->veng.openedPanel) if (!_awayMission->veng.openedPanel)
showText(TX_VEN1N022); showDescription(TX_VEN1N022);
else if (!_awayMission->veng.removedPanelDebris) else if (!_awayMission->veng.removedPanelDebris)
showText(TX_VEN1N019); showDescription(TX_VEN1N019);
else else
showText(TX_VEN1N010); showDescription(TX_VEN1N010);
} }
void Room::veng1LookAtDoor() { void Room::veng1LookAtDoor() {
showText(TX_VEN1N021); showDescription(TX_VEN1N021);
} }
void Room::veng1LookAtSaw() { void Room::veng1LookAtSaw() {
showText(TX_VEN1N001); showDescription(TX_VEN1N001);
} }
void Room::veng1LookAtDebris() { void Room::veng1LookAtDebris() {
showText(TX_VEN1N000); showDescription(TX_VEN1N000);
} }
void Room::veng1LookAtKirk() { void Room::veng1LookAtKirk() {
showText(TX_VEN1N002); showDescription(TX_VEN1N002);
} }
void Room::veng1LookAtMccoy() { void Room::veng1LookAtMccoy() {
showText(TX_VEN1N004); showDescription(TX_VEN1N004);
} }
void Room::veng1LookAtSpock() { void Room::veng1LookAtSpock() {
showText(TX_VEN1N003); showDescription(TX_VEN1N003);
} }
void Room::veng1LookAtRedshirt() { void Room::veng1LookAtRedshirt() {
showText(TX_VEN1N005); showDescription(TX_VEN1N005);
} }
void Room::veng1LookAnywhere() { void Room::veng1LookAnywhere() {
showText(TX_VEN1N020); showDescription(TX_VEN1N020);
} }
void Room::veng1TalkToKirk() { void Room::veng1TalkToKirk() {
@ -287,32 +287,32 @@ void Room::veng1KirkAccessedPanel() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
if (!_awayMission->veng.clearedPanelDebris) { if (!_awayMission->veng.clearedPanelDebris) {
showText(TX_VEN1N016); showDescription(TX_VEN1N016);
} else if (!_awayMission->veng.openedPanel) { } else if (!_awayMission->veng.openedPanel) {
_awayMission->veng.openedPanel = true; _awayMission->veng.openedPanel = true;
showText(TX_VEN1N017); showDescription(TX_VEN1N017);
loadActorAnim2(OBJECT_DEBRIS, "s7r1p2", 0xd1, 0x6a); loadActorAnim2(OBJECT_DEBRIS, "s7r1p2", 0xd1, 0x6a);
loadActorStandAnim(OBJECT_PANEL); loadActorStandAnim(OBJECT_PANEL);
} else } else
showText(TX_VEN1_F33); showDescription(TX_VEN1_F33);
walkCrewman(OBJECT_KIRK, 0xc9, 0x98); walkCrewman(OBJECT_KIRK, 0xc9, 0x98);
} }
void Room::veng1UseSawOnPanel() { void Room::veng1UseSawOnPanel() {
showText(TX_VEN1N013); showDescription(TX_VEN1N013);
} }
void Room::veng1UseSawOnDoor() { void Room::veng1UseSawOnDoor() {
showText(TX_VEN1N014); showDescription(TX_VEN1N014);
} }
void Room::veng1UseDrillOnDebris() { void Room::veng1UseDrillOnDebris() {
showText(TX_VEN1N009); showDescription(TX_VEN1N009);
} }
void Room::veng1UseSawOnDebris() { void Room::veng1UseSawOnDebris() {
showText(TX_VEN1N018); showDescription(TX_VEN1N018);
} }
void Room::veng1UseDrillOnPanel() { void Room::veng1UseDrillOnPanel() {
@ -330,7 +330,7 @@ void Room::veng1KirkDoneDrillingPanel() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
if (!_awayMission->veng.clearedPanelDebris) { if (!_awayMission->veng.clearedPanelDebris) {
_awayMission->veng.clearedPanelDebris = true; _awayMission->veng.clearedPanelDebris = true;
showText(TX_VEN1N008); showDescription(TX_VEN1N008);
} }
} }
@ -348,10 +348,10 @@ void Room::veng1KirkUsedHypoOnDebris() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
if (!_awayMission->veng.oilInHypo) if (!_awayMission->veng.oilInHypo)
showText(TX_VEN1N012); showDescription(TX_VEN1N012);
else { else {
_awayMission->veng.loosenedDebrisWithOil = true; _awayMission->veng.loosenedDebrisWithOil = true;
showText(TX_VEN1N015); showDescription(TX_VEN1N015);
} }
} }
@ -366,7 +366,7 @@ void Room::veng1ReachedSaw() {
void Room::veng1PickedUpSaw() { void Room::veng1PickedUpSaw() {
loadActorStandAnim(OBJECT_SAW); loadActorStandAnim(OBJECT_SAW);
showText(TX_VEN1N023); showDescription(TX_VEN1N023);
giveItem(OBJECT_ILMD); giveItem(OBJECT_ILMD);
_awayMission->veng.tookMolecularSaw = true; _awayMission->veng.tookMolecularSaw = true;
@ -387,11 +387,11 @@ void Room::veng1TriedToGetDebris() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
if (!_awayMission->veng.loosenedDebrisWithOil) if (!_awayMission->veng.loosenedDebrisWithOil)
showText(TX_VEN1N006); showDescription(TX_VEN1N006);
else { else {
loadActorStandAnim(OBJECT_DEBRIS); loadActorStandAnim(OBJECT_DEBRIS);
loadActorAnim2(OBJECT_PANEL, "s7r1p3", 0xd1, 0x6a); loadActorAnim2(OBJECT_PANEL, "s7r1p3", 0xd1, 0x6a);
showText(TX_VEN1N011); showDescription(TX_VEN1N011);
_awayMission->veng.removedPanelDebris = true; _awayMission->veng.removedPanelDebris = true;
} }
} }

View file

@ -291,7 +291,7 @@ void Room::veng2Timer2Expired() { // Elasi hail the Enterprise if they haven't a
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { if (choice == 0) {
showText(TX_SPEAKER_ELASI_CAPTAIN, TX_VEN2_099); showText(TX_SPEAKER_ELASI_CAPTAIN, TX_VEN2_099);
@ -317,111 +317,111 @@ void Room::veng2TouchedDoor() {
void Room::veng2LookAtViewscreen() { void Room::veng2LookAtViewscreen() {
if (!_awayMission->veng.elasiShipDecloaked) if (!_awayMission->veng.elasiShipDecloaked)
showText(TX_VEN2N022); showDescription(TX_VEN2N022);
else else
showText(TX_VEN2N002); showDescription(TX_VEN2N002);
} }
void Room::veng2LookAtMiddleConsole() { void Room::veng2LookAtMiddleConsole() {
showText(TX_VEN2N030); showDescription(TX_VEN2N030);
} }
void Room::veng2LookAtDamageDisplay() { void Room::veng2LookAtDamageDisplay() {
if (!_awayMission->veng.impulseEnginesOn) if (!_awayMission->veng.impulseEnginesOn)
showText(TX_VEN2N035); showDescription(TX_VEN2N035);
else else
showText(TX_VEN2N032); showDescription(TX_VEN2N032);
// NOTE: There were originally 2 more cases, where "poweredSystem == 2" or otherwise. For // NOTE: There were originally 2 more cases, where "poweredSystem == 2" or otherwise. For
// the case where poweredSystem == 2, it played TX_VEN2N032, but with mismatching text. // the case where poweredSystem == 2, it played TX_VEN2N032, but with mismatching text.
} }
void Room::veng2LookAtSTricorder() { void Room::veng2LookAtSTricorder() {
showText(TX_VEN2N027); showDescription(TX_VEN2N027);
} }
void Room::veng2LookAtMTricorder() { void Room::veng2LookAtMTricorder() {
showText(TX_VEN2N024); showDescription(TX_VEN2N024);
} }
void Room::veng2LookAtTorpedoButton() { void Room::veng2LookAtTorpedoButton() {
showText(TX_VEN2N033); showDescription(TX_VEN2N033);
} }
// TODO: Consider merging "veng2LookAtTorpedoButton" with "veng2LookAtTorpedoControl" // TODO: Consider merging "veng2LookAtTorpedoButton" with "veng2LookAtTorpedoControl"
// (and the same for use actions) // (and the same for use actions)
void Room::veng2LookAtTorpedoControl() { void Room::veng2LookAtTorpedoControl() {
showText(TX_VEN2N033); showDescription(TX_VEN2N033);
if (!_awayMission->veng.impulseEnginesOn) if (!_awayMission->veng.impulseEnginesOn)
showText(TX_VEN2N001); // Unused, since it can't be selected when impulse is off? showDescription(TX_VEN2N001); // Unused, since it can't be selected when impulse is off?
else if (!_awayMission->veng.torpedoLoaded) { else if (!_awayMission->veng.torpedoLoaded) {
showText(TX_VEN2N000); showDescription(TX_VEN2N000);
if (!_awayMission->veng.elasiShipDecloaked) if (!_awayMission->veng.elasiShipDecloaked)
showText(TX_SPEAKER_SPOCK, TX_VEN2_036); showText(TX_SPEAKER_SPOCK, TX_VEN2_036);
else else
showText(TX_SPEAKER_SPOCK, TX_VEN2_037); showText(TX_SPEAKER_SPOCK, TX_VEN2_037);
_awayMission->veng.examinedTorpedoControl = true; _awayMission->veng.examinedTorpedoControl = true;
} else if (!_awayMission->veng.firedTorpedo) } else if (!_awayMission->veng.firedTorpedo)
showText(TX_VEN2N021); showDescription(TX_VEN2N021);
else else
showText(TX_VEN2N020); // Unused, since after firing the torpedo, the mission ends showDescription(TX_VEN2N020); // Unused, since after firing the torpedo, the mission ends
} }
void Room::veng2LookAtImpulseConsole() { void Room::veng2LookAtImpulseConsole() {
showText(TX_VEN2N034); showDescription(TX_VEN2N034);
if (!_awayMission->veng.impulseEnginesOn) if (!_awayMission->veng.impulseEnginesOn)
showText(TX_VEN2N008); showDescription(TX_VEN2N008);
else if (_awayMission->veng.tricordersPluggedIntoComputer != 3) else if (_awayMission->veng.tricordersPluggedIntoComputer != 3)
showText(TX_VEN2N009); showDescription(TX_VEN2N009);
else if (_awayMission->veng.poweredSystem == 0) else if (_awayMission->veng.poweredSystem == 0)
showText(TX_VEN2N009); showDescription(TX_VEN2N009);
else if (_awayMission->veng.poweredSystem == 1) else if (_awayMission->veng.poweredSystem == 1)
showText(TX_VEN2N007); showDescription(TX_VEN2N007);
else if (_awayMission->veng.poweredSystem == 2) else if (_awayMission->veng.poweredSystem == 2)
showText(TX_VEN2N005); showDescription(TX_VEN2N005);
else else
showText(TX_VEN2N006); showDescription(TX_VEN2N006);
} }
void Room::veng2LookAtMainComputer() { void Room::veng2LookAtMainComputer() {
if (_awayMission->veng.tricordersPluggedIntoComputer == 0) if (_awayMission->veng.tricordersPluggedIntoComputer == 0)
showText(TX_VEN2N003); showDescription(TX_VEN2N003);
else if (_awayMission->veng.tricordersPluggedIntoComputer == 1) // Med tricorder plugged in else if (_awayMission->veng.tricordersPluggedIntoComputer == 1) // Med tricorder plugged in
showText(TX_VEN2N023); showDescription(TX_VEN2N023);
else if (_awayMission->veng.tricordersPluggedIntoComputer == 2) // Sci tricorder plugged in else if (_awayMission->veng.tricordersPluggedIntoComputer == 2) // Sci tricorder plugged in
showText(TX_VEN2N027); showDescription(TX_VEN2N027);
else // Both else // Both
showText(TX_VEN2N025); showDescription(TX_VEN2N025);
} }
void Room::veng2LookAtRecordDeck() { void Room::veng2LookAtRecordDeck() {
showText(TX_VEN2N029); showDescription(TX_VEN2N029);
} }
void Room::veng2LookAtDeckIOConsole() { void Room::veng2LookAtDeckIOConsole() {
showText(TX_VEN2N031); showDescription(TX_VEN2N031);
} }
void Room::veng2LookAtKirk() { void Room::veng2LookAtKirk() {
showText(TX_VEN2N010); showDescription(TX_VEN2N010);
} }
void Room::veng2LookAtSpock() { void Room::veng2LookAtSpock() {
showText(TX_VEN2N019); showDescription(TX_VEN2N019);
} }
void Room::veng2LookAtMccoy() { void Room::veng2LookAtMccoy() {
showText(TX_VEN2N012); showDescription(TX_VEN2N012);
} }
void Room::veng2LookAtRedshirt() { void Room::veng2LookAtRedshirt() {
showText(TX_VEN2N004); showDescription(TX_VEN2N004);
} }
void Room::veng2LookAnywhere() { void Room::veng2LookAnywhere() {
showText(TX_VEN2N035); showDescription(TX_VEN2N035);
} }
void Room::veng2TalkToKirk() { void Room::veng2TalkToKirk() {
@ -514,7 +514,7 @@ void Room::veng2UseCommunicator() {
TX_VEN2_HAIL_ELASI, TX_VEN2_HAIL_ENT, TX_VEN2_CANCEL, TX_VEN2_HAIL_ELASI, TX_VEN2_HAIL_ENT, TX_VEN2_CANCEL,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // Hail Elasi if (choice == 0) { // Hail Elasi
if (!_awayMission->veng.torpedoLoaded) if (!_awayMission->veng.torpedoLoaded)
@ -528,7 +528,7 @@ void Room::veng2UseCommunicator() {
TX_VEN2_015, TX_VEN2_029, TX_VEN2_015, TX_VEN2_029,
TX_BLANK TX_BLANK
}; };
choice = showText(choices2); choice = showMultipleTexts(choices2);
if (choice == 0) { // "We don't have it yet" if (choice == 0) { // "We don't have it yet"
showText(TX_SPEAKER_ELASI_CAPTAIN, TX_VEN2_100); showText(TX_SPEAKER_ELASI_CAPTAIN, TX_VEN2_100);
@ -554,7 +554,7 @@ void Room::veng2UseCommunicator() {
void Room::veng2UseKirkOnTorpedoButton() { void Room::veng2UseKirkOnTorpedoButton() {
if (_awayMission->veng.poweredSystem != 1) if (_awayMission->veng.poweredSystem != 1)
showText(TX_VEN2N028); showDescription(TX_VEN2N028);
else if (!_awayMission->veng.torpedoLoaded) else if (!_awayMission->veng.torpedoLoaded)
showText(TX_SPEAKER_SPOCK, TX_VEN2_058); showText(TX_SPEAKER_SPOCK, TX_VEN2_058);
else if (!_awayMission->veng.elasiShieldsDown) else if (!_awayMission->veng.elasiShieldsDown)
@ -624,7 +624,7 @@ void Room::veng2UseSTricorderOnTorpedoButton() {
void Room::veng2UseSTricorderOnMiddleConsole() { void Room::veng2UseSTricorderOnMiddleConsole() {
spockScan(DIR_N, -1); spockScan(DIR_N, -1);
showText(TX_VEN2N030); // This is a narration, not Spock speaking showDescription(TX_VEN2N030); // This is a narration, not Spock speaking
} }
void Room::veng2UseSTricorderOnTorpedoControl() { void Room::veng2UseSTricorderOnTorpedoControl() {
@ -681,7 +681,7 @@ void Room::veng2SpockUsedImpulseConsole() {
TX_VEN2_WEA, TX_VEN2_SHI, TX_VEN2_TRA, TX_VEN2_WEA, TX_VEN2_SHI, TX_VEN2_TRA,
TX_BLANK TX_BLANK
}; };
int choice = showText(choices); int choice = showMultipleTexts(choices);
if (choice == 0) { // Weapons if (choice == 0) { // Weapons
if (_awayMission->veng.toldElasiToBeamOver) { if (_awayMission->veng.toldElasiToBeamOver) {
@ -786,7 +786,7 @@ void Room::veng2AttachedSTricorderToComputer() {
loseItem(OBJECT_ISTRICOR); loseItem(OBJECT_ISTRICOR);
loadActorAnim2(OBJECT_STRICORDER, "s7r2t1", STRICORDER_POS_X, STRICORDER_POS_Y); loadActorAnim2(OBJECT_STRICORDER, "s7r2t1", STRICORDER_POS_X, STRICORDER_POS_Y);
showText(TX_VEN2N017); showDescription(TX_VEN2N017);
walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa); walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa);
if (_awayMission->veng.tricordersPluggedIntoComputer == 3) // Both tricorders plugged in if (_awayMission->veng.tricordersPluggedIntoComputer == 3) // Both tricorders plugged in
@ -819,7 +819,7 @@ void Room::veng2AttachedMTricorderToComputer() {
loseItem(OBJECT_IMTRICOR); loseItem(OBJECT_IMTRICOR);
loadActorAnim2(OBJECT_MTRICORDER, "s7r2t2", MTRICORDER_POS_X, MTRICORDER_POS_Y); loadActorAnim2(OBJECT_MTRICORDER, "s7r2t2", MTRICORDER_POS_X, MTRICORDER_POS_Y);
showText(TX_VEN2N016); showDescription(TX_VEN2N016);
walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa); walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa);
if (_awayMission->veng.tricordersPluggedIntoComputer == 3) // Both tricorders plugged in if (_awayMission->veng.tricordersPluggedIntoComputer == 3) // Both tricorders plugged in
@ -859,7 +859,7 @@ void Room::veng2PickedUpLogDeck() {
loadActorStandAnim(OBJECT_DECK); loadActorStandAnim(OBJECT_DECK);
_awayMission->disableInput = false; _awayMission->disableInput = false;
_awayMission->veng.tookRecordDeckFromAuxilaryControl = true; _awayMission->veng.tookRecordDeckFromAuxilaryControl = true;
showText(TX_VEN2N039); showDescription(TX_VEN2N039);
giveItem(OBJECT_IDECK); giveItem(OBJECT_IDECK);
} }
@ -883,7 +883,7 @@ void Room::veng2PickedUpSTricorder() {
loadActorStandAnim(OBJECT_STRICORDER); loadActorStandAnim(OBJECT_STRICORDER);
loadActorStandAnim(OBJECT_MAIN_COMPUTER); loadActorStandAnim(OBJECT_MAIN_COMPUTER);
walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa); walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa);
showText(TX_VEN2N015); showDescription(TX_VEN2N015);
} }
void Room::veng2GetMTricorder() { void Room::veng2GetMTricorder() {
@ -906,7 +906,7 @@ void Room::veng2PickedUpMTricorder() {
loadActorStandAnim(OBJECT_MTRICORDER); loadActorStandAnim(OBJECT_MTRICORDER);
loadActorStandAnim(OBJECT_MAIN_COMPUTER); loadActorStandAnim(OBJECT_MAIN_COMPUTER);
walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa); walkCrewman(OBJECT_SPOCK, 0x5f, 0xaa);
showText(TX_VEN2N013); showDescription(TX_VEN2N013);
} }
} }

View file

@ -147,7 +147,7 @@ void Room::veng3WalkToDoor() {
if (_awayMission->veng.clearedDebris) if (_awayMission->veng.clearedDebris)
walkCrewmanC(OBJECT_KIRK, 0xa6, 0x6e, &Room::veng3ReachedTurbolift2); walkCrewmanC(OBJECT_KIRK, 0xa6, 0x6e, &Room::veng3ReachedTurbolift2);
else else
showText(TX_VEN3N006); showDescription(TX_VEN3N006);
} }
void Room::veng3ReachedTurbolift2() { void Room::veng3ReachedTurbolift2() {
@ -175,18 +175,18 @@ void Room::veng3SickbayDoorOpened() {
} }
void Room::veng3LookAtSupportBeam() { void Room::veng3LookAtSupportBeam() {
showText(TX_VEN3N007); showDescription(TX_VEN3N007);
} }
void Room::veng3LookAtDebris() { void Room::veng3LookAtDebris() {
if (!_awayMission->veng.clearedDebris) if (!_awayMission->veng.clearedDebris)
showText(TX_VEN3N009); showDescription(TX_VEN3N009);
else else
showText(TX_VEN3N007); // UNUSED (debris is gone) showDescription(TX_VEN3N007); // UNUSED (debris is gone)
} }
void Room::veng3LookAtTurbolift2Door() { void Room::veng3LookAtTurbolift2Door() {
showText(TX_VEN3N012); showDescription(TX_VEN3N012);
if (!_awayMission->veng.lookedAtTurbolift2Door) { if (!_awayMission->veng.lookedAtTurbolift2Door) {
_awayMission->veng.lookedAtTurbolift2Door = true; _awayMission->veng.lookedAtTurbolift2Door = true;
@ -198,35 +198,35 @@ void Room::veng3LookAtTurbolift2Door() {
} }
void Room::veng3LookAtSickbayDoor() { void Room::veng3LookAtSickbayDoor() {
showText(TX_VEN3N011); showDescription(TX_VEN3N011);
} }
void Room::veng3LookAtCable() { void Room::veng3LookAtCable() {
showText(TX_VEN3N013); showDescription(TX_VEN3N013);
} }
void Room::veng3LookAtDeadGuy() { void Room::veng3LookAtDeadGuy() {
showText(TX_VEN3N005); showDescription(TX_VEN3N005);
} }
void Room::veng3LookAtKirk() { void Room::veng3LookAtKirk() {
showText(TX_VEN3N001); showDescription(TX_VEN3N001);
} }
void Room::veng3LookAtMccoy() { void Room::veng3LookAtMccoy() {
showText(TX_VEN3N002); showDescription(TX_VEN3N002);
} }
void Room::veng3LookAtSpock() { void Room::veng3LookAtSpock() {
showText(TX_VEN3N004); showDescription(TX_VEN3N004);
} }
void Room::veng3LookAtRedshirt() { void Room::veng3LookAtRedshirt() {
showText(TX_VEN3N000); showDescription(TX_VEN3N000);
} }
void Room::veng3LookAnywhere() { void Room::veng3LookAnywhere() {
showText(TX_VEN3N003); showDescription(TX_VEN3N003);
} }
void Room::veng3UseStunPhaserOnDebris() { void Room::veng3UseStunPhaserOnDebris() {
@ -338,7 +338,7 @@ void Room::veng3TalkToRedshirt() {
} }
void Room::veng3GetDebris() { void Room::veng3GetDebris() {
showText(TX_VEN3N010); showDescription(TX_VEN3N010);
} }
void Room::veng3GetCable() { void Room::veng3GetCable() {
@ -354,7 +354,7 @@ void Room::veng3ReachedCable() {
void Room::veng3PickedUpCable() { void Room::veng3PickedUpCable() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
loadActorStandAnim(OBJECT_CABLE); loadActorStandAnim(OBJECT_CABLE);
showText(TX_VEN3N014); showDescription(TX_VEN3N014);
giveItem(OBJECT_ICABLE2); giveItem(OBJECT_ICABLE2);
_awayMission->veng.tookCableFromSickbayHallway = true; _awayMission->veng.tookCableFromSickbayHallway = true;
} }

View file

@ -234,19 +234,19 @@ void Room::veng4TalkToBrittany() {
} }
void Room::veng4LookAtDeadGuy() { void Room::veng4LookAtDeadGuy() {
showText(TX_VEN4N014); showDescription(TX_VEN4N014);
} }
void Room::veng4LookAtRightBedReadings() { void Room::veng4LookAtRightBedReadings() {
showText(TX_VEN4N013); showDescription(TX_VEN4N013);
} }
void Room::veng4LookAtDoorHotspot() { void Room::veng4LookAtDoorHotspot() {
showText(TX_VEN4N008); showDescription(TX_VEN4N008);
} }
void Room::veng4LookAtKirk() { void Room::veng4LookAtKirk() {
showText(TX_VEN4N002); showDescription(TX_VEN4N002);
} }
void Room::veng4LookAtSpock() { void Room::veng4LookAtSpock() {
@ -266,45 +266,45 @@ void Room::veng4LookAtLeftBed() {
// ENHANCEMENT: Original game showed a string with no corresponding audio ("This // ENHANCEMENT: Original game showed a string with no corresponding audio ("This
// bed contains the body of a recently deceaced crewman." Yes that's a typo.) // bed contains the body of a recently deceaced crewman." Yes that's a typo.)
// Instead, show some appropriate voiced text. // Instead, show some appropriate voiced text.
showText(TX_VEN4N017); showDescription(TX_VEN4N017);
} else } else
showText(TX_VEN4N007); showDescription(TX_VEN4N007);
} }
void Room::veng4LookAtLeftBedReadings() { void Room::veng4LookAtLeftBedReadings() {
if (!_awayMission->veng.brittanyDead) if (!_awayMission->veng.brittanyDead)
showText(TX_VEN4N006); showDescription(TX_VEN4N006);
else else
showText(TX_VEN4N005); showDescription(TX_VEN4N005);
} }
void Room::veng4LookAtBrittany() { void Room::veng4LookAtBrittany() {
if (_awayMission->veng.brittanyDead) if (_awayMission->veng.brittanyDead)
showText(TX_VEN4N017); showDescription(TX_VEN4N017);
else if (!_awayMission->veng.lookedAtBrittany) { else if (!_awayMission->veng.lookedAtBrittany) {
_awayMission->veng.lookedAtBrittany = true; _awayMission->veng.lookedAtBrittany = true;
showText(TX_SPEAKER_KIRK, TX_VEN4_005); showText(TX_SPEAKER_KIRK, TX_VEN4_005);
showText(TX_SPEAKER_MCCOY, TX_VEN4_014); showText(TX_SPEAKER_MCCOY, TX_VEN4_014);
} else if (_awayMission->veng.talkedToBrittany) } else if (_awayMission->veng.talkedToBrittany)
showText(TX_VEN4N017); showDescription(TX_VEN4N017);
else else
showText(TX_VEN4N004); showDescription(TX_VEN4N004);
} }
void Room::veng4LookAtDrill() { void Room::veng4LookAtDrill() {
showText(TX_VEN4N012); showDescription(TX_VEN4N012);
} }
void Room::veng4LookAtHypoOnTable() { void Room::veng4LookAtHypoOnTable() {
showText(TX_VEN4N010); showDescription(TX_VEN4N010);
} }
void Room::veng4LookAtDoorObject() { void Room::veng4LookAtDoorObject() {
showText(TX_VEN4N009); showDescription(TX_VEN4N009);
} }
void Room::veng4LookAnywhere() { void Room::veng4LookAnywhere() {
showText(TX_VEN4N011); showDescription(TX_VEN4N011);
} }
void Room::veng4GetHypo() { void Room::veng4GetHypo() {
@ -320,7 +320,7 @@ void Room::veng4PickedUpHypo() {
giveItem(OBJECT_IHYPO); giveItem(OBJECT_IHYPO);
_awayMission->veng.tookHypoFromSickbay = true; _awayMission->veng.tookHypoFromSickbay = true;
loadActorStandAnim(OBJECT_HYPO); loadActorStandAnim(OBJECT_HYPO);
showText(TX_VEN4N015); showDescription(TX_VEN4N015);
walkCrewman(OBJECT_KIRK, 0xcd, 0xc2); walkCrewman(OBJECT_KIRK, 0xcd, 0xc2);
_awayMission->disableInput = false; _awayMission->disableInput = false;
} }
@ -338,7 +338,7 @@ void Room::veng4PickedUpDrill() {
giveItem(OBJECT_IDRILL); giveItem(OBJECT_IDRILL);
_awayMission->veng.tookDrillFromSickbay = true; _awayMission->veng.tookDrillFromSickbay = true;
loadActorStandAnim(OBJECT_DRILL); loadActorStandAnim(OBJECT_DRILL);
showText(TX_VEN4N016); showDescription(TX_VEN4N016);
walkCrewman(OBJECT_KIRK, 0xcd, 0xc2); walkCrewman(OBJECT_KIRK, 0xcd, 0xc2);
_awayMission->disableInput = false; _awayMission->disableInput = false;
} }

View file

@ -130,43 +130,43 @@ void Room::veng5TouchedTurboliftDoor() {
} }
void Room::veng5LookAtDoor() { void Room::veng5LookAtDoor() {
showText(TX_VEN5N007); showDescription(TX_VEN5N007);
} }
void Room::veng5LookAtLadder() { void Room::veng5LookAtLadder() {
showText(TX_VEN5N008); showDescription(TX_VEN5N008);
} }
void Room::veng5LookAtDeadGuy() { void Room::veng5LookAtDeadGuy() {
showText(TX_VEN5N000); showDescription(TX_VEN5N000);
} }
void Room::veng5LookAtPowerPack() { void Room::veng5LookAtPowerPack() {
showText(TX_VEN5N009); showDescription(TX_VEN5N009);
} }
void Room::veng5LookAtDebris() { void Room::veng5LookAtDebris() {
showText(TX_VEN5N001); showDescription(TX_VEN5N001);
} }
void Room::veng5LookAtKirk() { void Room::veng5LookAtKirk() {
showText(TX_VEN5N003); showDescription(TX_VEN5N003);
} }
void Room::veng5LookAtSpock() { void Room::veng5LookAtSpock() {
showText(TX_VEN5N002); showDescription(TX_VEN5N002);
} }
void Room::veng5LookAtMccoy() { void Room::veng5LookAtMccoy() {
showText(TX_VEN5N004); showDescription(TX_VEN5N004);
} }
void Room::veng5LookAtRedshirt() { void Room::veng5LookAtRedshirt() {
showText(TX_VEN5N005); showDescription(TX_VEN5N005);
} }
void Room::veng5LookAnywhere() { void Room::veng5LookAnywhere() {
showText(TX_VEN5N006); showDescription(TX_VEN5N006);
} }
void Room::veng5UsePhaserOnPowerPack() { void Room::veng5UsePhaserOnPowerPack() {
@ -259,7 +259,7 @@ void Room::veng5ReachedPowerPack() {
void Room::veng5PickedUpPowerPack() { void Room::veng5PickedUpPowerPack() {
if (!_awayMission->veng.havePowerPack) { if (!_awayMission->veng.havePowerPack) {
loadActorStandAnim(OBJECT_POWER_PACK); loadActorStandAnim(OBJECT_POWER_PACK);
showText(TX_VEN5N010); showDescription(TX_VEN5N010);
_awayMission->veng.havePowerPack = true; _awayMission->veng.havePowerPack = true;
giveItem(OBJECT_IFUSION); giveItem(OBJECT_IFUSION);
} }

View file

@ -189,72 +189,72 @@ void Room::veng6DoorOpened() {
} }
void Room::veng6LookAtLeftPort() { void Room::veng6LookAtLeftPort() {
showText(TX_VEN6N018); showDescription(TX_VEN6N018);
} }
void Room::veng6LookAtRightPort() { void Room::veng6LookAtRightPort() {
showText(TX_VEN6N016); showDescription(TX_VEN6N016);
} }
void Room::veng6LookAtDoor() { void Room::veng6LookAtDoor() {
showText(TX_VEN5N007); showDescription(TX_VEN5N007);
} }
void Room::veng6LookAtOilCanister() { void Room::veng6LookAtOilCanister() {
showText(TX_VEN6N011); showDescription(TX_VEN6N011);
} }
void Room::veng6LookAtCabinet() { void Room::veng6LookAtCabinet() {
showText(TX_VEN6N015); showDescription(TX_VEN6N015);
} }
void Room::veng6LookAtCable() { void Room::veng6LookAtCable() {
showText(TX_VEN6N013); showDescription(TX_VEN6N013);
} }
void Room::veng6LookAtRightConsole() { void Room::veng6LookAtRightConsole() {
showText(TX_VEN6N017); showDescription(TX_VEN6N017);
} }
void Room::veng6LookAtImpulseEngines() { void Room::veng6LookAtImpulseEngines() {
showText(TX_VEN6N010); showDescription(TX_VEN6N010);
} }
void Room::veng6LookAtLeftConsole() { void Room::veng6LookAtLeftConsole() {
showText(TX_VEN6N009); showDescription(TX_VEN6N009);
} }
void Room::veng6LookAtJunctionBox() { void Room::veng6LookAtJunctionBox() {
showText(TX_VEN6N012); showDescription(TX_VEN6N012);
} }
void Room::veng6LookAtJournal() { void Room::veng6LookAtJournal() {
showText(TX_VEN6N025); showDescription(TX_VEN6N025);
showText(TX_SPEAKER_SPOCK, TX_VEN6_021); showText(TX_SPEAKER_SPOCK, TX_VEN6_021);
} }
void Room::veng6LookAtKirk() { void Room::veng6LookAtKirk() {
showText(TX_VEN6N001); showDescription(TX_VEN6N001);
} }
void Room::veng6LookAtSpock() { void Room::veng6LookAtSpock() {
showText(TX_VEN6N003); showDescription(TX_VEN6N003);
} }
void Room::veng6LookAtMccoy() { void Room::veng6LookAtMccoy() {
showText(TX_VEN6N002); showDescription(TX_VEN6N002);
} }
void Room::veng6LookAtRedshirt() { void Room::veng6LookAtRedshirt() {
showText(TX_VEN6N000); showDescription(TX_VEN6N000);
} }
void Room::veng6LookAtDeadGuy() { void Room::veng6LookAtDeadGuy() {
showText(TX_VEN0N016); showDescription(TX_VEN0N016);
} }
void Room::veng6LookAnywhere() { void Room::veng6LookAnywhere() {
showText(TX_VEN6N019); showDescription(TX_VEN6N019);
} }
void Room::veng6TalkToKirk() { void Room::veng6TalkToKirk() {
@ -303,7 +303,7 @@ void Room::veng6KirkOrSpockReachedLeftPort() {
void Room::veng6AttachedLeftCable() { void Room::veng6AttachedLeftCable() {
loadActorAnim(OBJECT_CABLE_1, "s7r6cl", CABLE_1_X, CABLE_1_Y); loadActorAnim(OBJECT_CABLE_1, "s7r6cl", CABLE_1_X, CABLE_1_Y);
showText(TX_VEN6N020); showDescription(TX_VEN6N020);
_awayMission->veng.junctionCablesConnected |= 1; _awayMission->veng.junctionCablesConnected |= 1;
loseItem(_roomVar.veng.cableInUse); loseItem(_roomVar.veng.cableInUse);
_awayMission->disableInput = false; _awayMission->disableInput = false;
@ -337,7 +337,7 @@ void Room::veng6KirkOrSpockReachedRightPort() {
void Room::veng6AttachedRightCable() { void Room::veng6AttachedRightCable() {
loadActorAnim(OBJECT_CABLE_2, "s7r6cr", CABLE_2_X, CABLE_2_Y); loadActorAnim(OBJECT_CABLE_2, "s7r6cr", CABLE_2_X, CABLE_2_Y);
showText(TX_VEN6N022); showDescription(TX_VEN6N022);
_awayMission->veng.junctionCablesConnected |= 2; _awayMission->veng.junctionCablesConnected |= 2;
loseItem(_roomVar.veng.cableInUse); loseItem(_roomVar.veng.cableInUse);
_awayMission->disableInput = false; _awayMission->disableInput = false;
@ -374,7 +374,7 @@ void Room::veng6SpockAdjustedJunctionBox() {
void Room::veng6UseHypoOnOilCanister() { void Room::veng6UseHypoOnOilCanister() {
if (_awayMission->veng.oilInHypo) if (_awayMission->veng.oilInHypo)
showText(TX_VEN6N006); showDescription(TX_VEN6N006);
else { else {
_awayMission->disableInput = true; _awayMission->disableInput = true;
walkCrewmanC(OBJECT_KIRK, 0x3c, 0x9e, &Room::veng6ReachedOilCanister); walkCrewmanC(OBJECT_KIRK, 0x3c, 0x9e, &Room::veng6ReachedOilCanister);
@ -387,7 +387,7 @@ void Room::veng6ReachedOilCanister() {
void Room::veng6FilledHypoWithOil() { void Room::veng6FilledHypoWithOil() {
_awayMission->disableInput = false; _awayMission->disableInput = false;
showText(TX_VEN6N007); showDescription(TX_VEN6N007);
_awayMission->veng.oilInHypo = true; _awayMission->veng.oilInHypo = true;
} }
@ -412,7 +412,7 @@ void Room::veng6OpenedOrClosedCabinet() {
playSoundEffectIndex(SND_DOOR1); playSoundEffectIndex(SND_DOOR1);
_awayMission->veng.engineeringCabinetOpen = true; _awayMission->veng.engineeringCabinetOpen = true;
if (!_awayMission->veng.tookEngineeringJournal) if (!_awayMission->veng.tookEngineeringJournal)
showText(TX_VEN6N005); showDescription(TX_VEN6N005);
} }
} }
@ -442,11 +442,11 @@ void Room::veng6UsePowerPackOnLeftConsole() {
} }
void Room::veng6GetJunctionBox() { void Room::veng6GetJunctionBox() {
showText(TX_MUD1N014); showDescription(TX_MUD1N014);
} }
void Room::veng6GetOilCanister() { void Room::veng6GetOilCanister() {
showText(TX_VEN6N008); showDescription(TX_VEN6N008);
} }
void Room::veng6GetEngineeringJournal() { void Room::veng6GetEngineeringJournal() {
@ -461,7 +461,7 @@ void Room::veng6ReachedEngineeringJournal() {
void Room::veng6TookEngineeringJournal() { void Room::veng6TookEngineeringJournal() {
loadActorStandAnim(OBJECT_JOURNAL); loadActorStandAnim(OBJECT_JOURNAL);
_awayMission->disableInput = false; _awayMission->disableInput = false;
showText(TX_VEN6N024); showDescription(TX_VEN6N024);
_awayMission->veng.tookEngineeringJournal = true; _awayMission->veng.tookEngineeringJournal = true;
giveItem(OBJECT_ITECH); giveItem(OBJECT_ITECH);
} }

View file

@ -107,41 +107,41 @@ void Room::veng7TouchedTurboliftDoor() {
} }
void Room::veng7LookAtCollapsedSection() { void Room::veng7LookAtCollapsedSection() {
showText(TX_VEN7N001); showDescription(TX_VEN7N001);
} }
void Room::veng7LookAtDeadGuy() { void Room::veng7LookAtDeadGuy() {
// ENHANCEMENT: Original played TX_VEN0N016. This is reused and boring, and there is // ENHANCEMENT: Original played TX_VEN0N016. This is reused and boring, and there is
// a more interesting unused audio file, so use that instead. // a more interesting unused audio file, so use that instead.
showText(TX_VEN7N000); showDescription(TX_VEN7N000);
} }
void Room::veng7LookAtDoor() { void Room::veng7LookAtDoor() {
showText(TX_VEN7N007); showDescription(TX_VEN7N007);
} }
void Room::veng7LookAtCable() { void Room::veng7LookAtCable() {
showText(TX_VEN7N008); showDescription(TX_VEN7N008);
} }
void Room::veng7LookAtKirk() { void Room::veng7LookAtKirk() {
showText(TX_VEN7N003); showDescription(TX_VEN7N003);
} }
void Room::veng7LookAtSpock() { void Room::veng7LookAtSpock() {
showText(TX_VEN7N005); showDescription(TX_VEN7N005);
} }
void Room::veng7LookAtMccoy() { void Room::veng7LookAtMccoy() {
showText(TX_VEN7N004); showDescription(TX_VEN7N004);
} }
void Room::veng7LookAtRedshirt() { void Room::veng7LookAtRedshirt() {
showText(TX_VEN7N002); showDescription(TX_VEN7N002);
} }
void Room::veng7LookAnywhere() { void Room::veng7LookAnywhere() {
showText(TX_VEN7N006); showDescription(TX_VEN7N006);
} }
void Room::veng7TalkToKirk() { void Room::veng7TalkToKirk() {
@ -184,7 +184,7 @@ void Room::veng7ReachedCable() {
void Room::veng7PickedUpCable() { void Room::veng7PickedUpCable() {
loadActorStandAnim(OBJECT_CABLE); loadActorStandAnim(OBJECT_CABLE);
showText(TX_VEN7N009); showDescription(TX_VEN7N009);
giveItem(OBJECT_ICABLE1); giveItem(OBJECT_ICABLE1);
_awayMission->veng.tookCableFromTransporterRoomHallway = true; _awayMission->veng.tookCableFromTransporterRoomHallway = true;
_awayMission->disableInput = false; _awayMission->disableInput = false;

View file

@ -159,54 +159,54 @@ void Room::veng8SparkAnim2Done() {
} }
void Room::veng8LookAtPowerPack() { void Room::veng8LookAtPowerPack() {
showText(TX_VEN8N004); showDescription(TX_VEN8N004);
} }
void Room::veng8LookAtDoor() { void Room::veng8LookAtDoor() {
showText(TX_VEN8N009); showDescription(TX_VEN8N009);
} }
void Room::veng8LookAtPowerCircuits() { void Room::veng8LookAtPowerCircuits() {
showText(TX_VEN8N006); showDescription(TX_VEN8N006);
} }
void Room::veng8LookAtControls() { void Room::veng8LookAtControls() {
showText(TX_VEN8N007); showDescription(TX_VEN8N007);
} }
void Room::veng8LookAtDeadGuy() { void Room::veng8LookAtDeadGuy() {
showText(TX_VEN8N003); // Unused, since the dead guy object isn't drawn showDescription(TX_VEN8N003); // Unused, since the dead guy object isn't drawn
} }
void Room::veng8LookAtSlider() { void Room::veng8LookAtSlider() {
showText(TX_VEN8N008); showDescription(TX_VEN8N008);
} }
void Room::veng8LookAtKirk() { void Room::veng8LookAtKirk() {
showText(TX_VEN8N001); showDescription(TX_VEN8N001);
} }
void Room::veng8LookAtSpock() { void Room::veng8LookAtSpock() {
// NOTE: Potential alternative is VEN8N011 // NOTE: Potential alternative is VEN8N011
showText(TX_VEN5N002); showDescription(TX_VEN5N002);
} }
void Room::veng8LookAtMccoy() { void Room::veng8LookAtMccoy() {
// NOTE: Potential alternative is VEN8N002 (though it doesn't fit very well with this // NOTE: Potential alternative is VEN8N002 (though it doesn't fit very well with this
// room, so perhaps the circumstances of this room changed in development) // room, so perhaps the circumstances of this room changed in development)
showText(TX_VEN5N004); showDescription(TX_VEN5N004);
} }
void Room::veng8LookAtRedshirt() { void Room::veng8LookAtRedshirt() {
showText(TX_VEN8N000); showDescription(TX_VEN8N000);
} }
void Room::veng8LookAtTransporter() { void Room::veng8LookAtTransporter() {
showText(TX_VEN8N010); showDescription(TX_VEN8N010);
} }
void Room::veng8LookAnywhere() { void Room::veng8LookAnywhere() {
showText(TX_VEN8N005); showDescription(TX_VEN8N005);
} }
void Room::veng8TalkToKirk() { void Room::veng8TalkToKirk() {

View file

@ -60,7 +60,7 @@ void Room::vengaTick() {
_awayMission->veng.counterUntilElasiDestroyShip--; _awayMission->veng.counterUntilElasiDestroyShip--;
if (_awayMission->veng.counterUntilElasiDestroyShip == 0 && !_awayMission->veng.firedTorpedo) { if (_awayMission->veng.counterUntilElasiDestroyShip == 0 && !_awayMission->veng.firedTorpedo) {
// Elasi fire torpedoes at you since you wouldn't lower your shields. // Elasi fire torpedoes at you since you wouldn't lower your shields.
showText(TX_VENA_F40); showDescription(TX_VENA_F40);
showGameOverMenu(); showGameOverMenu();
return; return;
} }
@ -76,7 +76,7 @@ void Room::vengaTick() {
} }
void Room::vengaElasiBeamOver() { void Room::vengaElasiBeamOver() {
showText(TX_VENA_F32); showDescription(TX_VENA_F32);
showGameOverMenu(); showGameOverMenu();
} }
@ -86,9 +86,9 @@ void Room::vengaUsePhaserAnywhere() {
void Room::vengaLookAtHypo() { void Room::vengaLookAtHypo() {
if (_awayMission->veng.oilInHypo) if (_awayMission->veng.oilInHypo)
showText(TX_VEN4N007); showDescription(TX_VEN4N007);
else else
showText(TX_VEN4N010); showDescription(TX_VEN4N010);
} }
void Room::vengaUseCommunicator() { void Room::vengaUseCommunicator() {