diff --git a/gr-sim/tfv/tfv_worldmap.c b/gr-sim/tfv/tfv_worldmap.c index 937fc740..c5f5f039 100644 --- a/gr-sim/tfv/tfv_worldmap.c +++ b/gr-sim/tfv/tfv_worldmap.c @@ -147,6 +147,8 @@ int world_map(void) { int on_bird=0; int conversation_started=0; int conversation_person=0; + int conversation_count=0; + int item_received=-1; /************************************************/ /* Landed */ @@ -213,6 +215,7 @@ int world_map(void) { if (destination_type==LOCATION_CONVERSATION) { conversation_started=1; conversation_person=special_destination; + if (dialog[conversation_person].count==-1) { dialog[conversation_person].count=0; } @@ -220,6 +223,23 @@ int world_map(void) { dialog[conversation_person].count= dialog[conversation_person].statement[dialog[conversation_person].count].next; } + conversation_count=dialog[conversation_person].count; + if (dialog[conversation_person].statement[conversation_count].action==ACTION_ITEM) { + item_received=dialog[conversation_person].statement[conversation_count].item; + if (item_received<8) { + items1|=(1<>3][item_received%8]; + ram[CH]=(40-(15+strlen(item_name)))/2; + ram[CV]=23; + move_and_print("RECEIVED ITEM: "); + ram[CH]+=15; + move_and_print(item_name); + } + } page_flip();