version 1.68 | | version 1.69 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.68 2005/09/25 09:47:23 ryo_saeba Exp $"; | | * "$Id: c_misc.c,v 1.69 2005/09/25 18:36:02 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
new_draw_info_format( NDI_WHITE, 0, pl, "Quest: %s\n%s\n", | | new_draw_info_format( NDI_WHITE, 0, pl, "Quest: %s\n%s\n", |
quest_get_name( quest ), | | quest_get_name( quest ), |
quest->lore ? quest->lore : "(no description available)" ); | | quest->lore ? quest->lore : "(no description available)" ); |
| | /* |
for ( item = pl->inv; item; item = item->below ) | | for ( item = pl->inv; item; item = item->below ) |
{ | | { |
if ( ( item != quest ) | | if ( ( item != quest ) |
| | |
new_draw_info( NDI_WHITE, 0, pl, "------\n" ); | | new_draw_info( NDI_WHITE, 0, pl, "------\n" ); |
} | | } |
} | | } |
| | */ |
} | | } |
| | |
/** | | /** |
| | |
new_draw_info( NDI_WHITE, 0, pl, "Completed quests:\n" ); | | new_draw_info( NDI_WHITE, 0, pl, "Completed quests:\n" ); |
for ( item = pl->inv; item; item = item->below ) | | for ( item = pl->inv; item; item = item->below ) |
{ | | { |
if ( quest_is_quest_marker( item ) && quest_is_end( item->slaying ) ) | | if ( quest_is_quest_marker( item, 0 ) ) |
{ | | { |
new_draw_info( NDI_WHITE, 0, pl, quest_get_name( item ) ); | | new_draw_info( NDI_WHITE, 0, pl, item->name ); |
new_draw_info( NDI_WHITE, 0, pl, "\n" ); | | new_draw_info( NDI_WHITE, 0, pl, "\n" ); |
} | | } |
} | | } |
| | |
{ | | { |
for ( item = pl->inv; item; item = item->below ) | | for ( item = pl->inv; item; item = item->below ) |
{ | | { |
if ( quest_is_quest_marker( item ) | | if ( quest_is_quest_marker( item, 0 ) |
&& strstr( quest_get_name( item ), params ) ) | | && !strcmp( quest_get_name( item ), params ) ) |
{ | | { |
display_quest_details( pl, item ); | | display_quest_details( pl, item ); |
} | | } |
| | |
new_draw_info( NDI_WHITE, 0, pl, "Current quests:\n" ); | | new_draw_info( NDI_WHITE, 0, pl, "Current quests:\n" ); |
for ( item = pl->inv; item; item = item->below ) | | for ( item = pl->inv; item; item = item->below ) |
{ | | { |
if ( quest_is_quest_marker( item ) | | if ( quest_is_quest_marker( item, 0 ) |
&& quest_is_start( item->slaying ) ) | | && quest_is_in_progress( item, 0 ) ) |
{ | | { |
new_draw_info( NDI_WHITE, 0, pl, quest_get_name( item ) ); | | new_draw_info( NDI_WHITE, 0, pl, quest_get_name( item ) ); |
new_draw_info( NDI_WHITE, 0, pl, "\n" ); | | new_draw_info( NDI_WHITE, 0, pl, "\n" ); |
} | | } |
} | | } |
| | |
return 1; | | return 1; |
} | | } |