Skip to content

Commit

Permalink
Debug menu shows raw NPC class ids
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA committed Dec 20, 2023
1 parent 771bbce commit 6b9e752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/debug_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ static void character_edit_menu()
if( np != nullptr ) {
std::stringstream data;
data << np->get_name() << " - " << ( np->male ? _( "Male" ) : _( "Female" ) ) << " " <<
np->myclass->get_name() << std::endl;
np->myclass->get_name() << " " << _( "class ID:" ) << np->myclass.obj().id << std::endl;
if( !np->get_unique_id().empty() ) {
data << string_format( _( "Unique Id: %s" ), np->get_unique_id() ) << std::endl;
}
Expand Down Expand Up @@ -2203,7 +2203,8 @@ static void character_edit_menu()
size_t i = 0;
for( const npc_class &cl : npc_class::get_all() ) {
ids.push_back( cl.id );
classes.addentry( i, true, -1, cl.get_name() );
classes.addentry( i, true, -1, string_format( _( "%1$s (ID: %2$s)" ), cl.get_name(),
cl.id.c_str() ) );
i++;
}

Expand Down

0 comments on commit 6b9e752

Please sign in to comment.