mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-05 06:31:25 +00:00
tfv: more dialog fixes
This commit is contained in:
parent
490803d026
commit
1035f0fec2
@ -20,7 +20,7 @@ struct dialog_type dialog[MAX_DIALOG]={
|
||||
.statement[0].words="Your journey takes you toward Bel Air.",
|
||||
.statement[0].next=1,
|
||||
.statement[1].words="Hari Seldon predicted this!",
|
||||
.statement[1].next=1,
|
||||
.statement[1].next=2,
|
||||
.statement[2].words="PLOT!",
|
||||
.statement[2].next=2,
|
||||
|
||||
@ -34,10 +34,10 @@ struct dialog_type dialog[MAX_DIALOG]={
|
||||
.statement[0].next=0,
|
||||
},
|
||||
[DIALOG_DARTH_TATER] = {
|
||||
.statement[0].words="In Talbot 0101B",
|
||||
.statement[0].words="In Talbot 0101C",
|
||||
.statement[0].next=1,
|
||||
.statement[1].words="There lived a big giant bee",
|
||||
.statement[1].next=2,
|
||||
.statement[1].next=1,
|
||||
.statement[2].action=ACTION_ITEM2,
|
||||
.statement[2].item=ITEM_5K_RESISTOR,
|
||||
},
|
||||
|
@ -342,7 +342,7 @@ struct map_info_type map_info[34] = {
|
||||
},
|
||||
.location[1] = {
|
||||
.name="Pete",
|
||||
.x0 = 13, .x1 = 19,
|
||||
.x0 = 11, .x1 = 17,
|
||||
.y0 = 15, .y1 = 21,
|
||||
.destination = DIALOG_PETE,
|
||||
.type=LOCATION_CONVERSATION,
|
||||
|
@ -201,10 +201,20 @@ int world_map(void) {
|
||||
}
|
||||
}
|
||||
|
||||
if (moved) conversation_started=0;
|
||||
|
||||
if (ch==13) {
|
||||
if (destination_type==LOCATION_CONVERSATION) {
|
||||
conversation_started=1;
|
||||
conversation_person=special_destination;
|
||||
if (dialog[conversation_person].count==-1) {
|
||||
dialog[conversation_person].count=0;
|
||||
}
|
||||
else {
|
||||
dialog[conversation_person].count=
|
||||
dialog[conversation_person].statement[dialog[conversation_person].count].next;
|
||||
}
|
||||
|
||||
}
|
||||
else if (destination_type==LOCATION_SPACESHIP) {
|
||||
return LOCATION_SPACESHIP;
|
||||
@ -554,7 +564,8 @@ done_entry:
|
||||
if (conversation_started) {
|
||||
ram[CH]=1;
|
||||
ram[CV]=21;
|
||||
move_and_print(dialog[conversation_person].statement[0].words);
|
||||
move_and_print(
|
||||
dialog[conversation_person].statement[dialog[conversation_person].count].words);
|
||||
// printf("%s\n",dialog[conversation_person].statement[0].words);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user