Skip to content

Commit

Permalink
DRASCULA: Make remaining static texts translatable
Browse files Browse the repository at this point in the history
drascula.dat file version bumped
  • Loading branch information
sev- committed Nov 14, 2017
1 parent 2ab66e7 commit 327dcf9
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion devtools/create_drascula/create_drascula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "create_drascula.h"
#include "staticdata.h"

#define DRASCULA_DAT_VER 4 // 1 byte
#define DRASCULA_DAT_VER 5 // 1 byte

static void writeByte(FILE *fp, uint8 b) {
fwrite(&b, 1, 1, fp);
Expand Down
2 changes: 1 addition & 1 deletion devtools/create_drascula/create_drascula.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define NUM_TEXTSYS 4
#define NUM_TEXTHIS 5
#define NUM_TEXTVERBS 6
#define NUM_TEXTMISC 3
#define NUM_TEXTMISC 7
#define NUM_TEXTD1 11

typedef unsigned char uint8;
Expand Down
20 changes: 20 additions & 0 deletions devtools/create_drascula/staticdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -6194,26 +6194,46 @@ const char *_textmisc[NUM_LANGS][NUM_TEXTMISC] = {
"HUNCHBACKED",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
"hacker",
"yoda",
"igor",
"groaaarrrrgghhhh!",
},
{
"jorobado",
"Transilvania, 1993 d.c. (despues de cenar)",
"GOOOOOOOOOOOOOOOL",
"hacker",
"yoda",
"igor",
"groaaarrrrgghhhh!",
},
{
"HUNCHBACKED",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
"hacker",
"yoda",
"igor",
"groaaarrrrgghhhh!",
},
{
"BOSSU",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
"hacker",
"yoda",
"igor",
"groaaarrrrgghhhh!",
},
{
"GOBBO",
"Transilvania, 1993 d.c. (dopo cena)",
"GOOOOOOOOOOOOOOOL!",
"hacker",
"yoda",
"igor",
"groaaarrrrgghhhh!",
},
};

Expand Down
Binary file modified dists/engine-data/drascula.dat
Binary file not shown.
2 changes: 1 addition & 1 deletion engines/drascula/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ void DrasculaEngine::animation_1_4() {
debug(4, "animation_1_4()");

if (flags[21] == 0) {
strcpy(objName[2], "igor");
strcpy(objName[2], _textmisc[5]); // "igor"
talk(275);

updateRefresh_pre();
Expand Down
2 changes: 1 addition & 1 deletion engines/drascula/drascula.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*/
namespace Drascula {

#define DRASCULA_DAT_VER 4
#define DRASCULA_DAT_VER 5
#define DATAALIGNMENT 4

enum DrasculaGameFeatures {
Expand Down
2 changes: 1 addition & 1 deletion engines/drascula/objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void DrasculaEngine::checkObjects() {
if (_mouseX > curX + 2 && _mouseY > curY + 2
&& _mouseX < curX + curWidth - 2 && _mouseY < curY + curHeight - 2) {
if (currentChapter == 2 || !_hasName) {
strcpy(textName, "hacker");
strcpy(textName, _textmisc[3]); // "hacker"
_hasName = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion engines/drascula/rooms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ bool DrasculaEngine::room_13(int fl) {
talk(411);
trackProtagonist = 3;
talk(412);
strcpy(objName[1], "yoda");
strcpy(objName[1], _textmisc[4]); // "yoda"
} else if (pickedObject == kVerbTalk && fl == 51) {
converse(7);
} else if (pickedObject == 19 && fl == 51) {
Expand Down
2 changes: 1 addition & 1 deletion engines/drascula/talk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ void DrasculaEngine::grr() {
copyBackground(253, 110, 150, 65, 20, 30, drawSurface3, screenSurface);

if (!_subtitlesDisabled)
centerText("groaaarrrrgghhhh!", 153, 65);
centerText(_textmisc[6], 153, 65); // "groaaarrrrgghhhh!"

updateScreen();

Expand Down

0 comments on commit 327dcf9

Please sign in to comment.