Skip to content

Commit

Permalink
Report which profession items are being added for in test mode (#43210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Aug 25, 2020
1 parent cc692d2 commit 8b385a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ static constexpr int NEWCHAR_TAB_MAX = 6 ;

static int skill_increment_cost( const Character &u, const skill_id &skill );

extern bool test_mode;

enum struct tab_direction {
NONE,
FORWARD,
Expand Down Expand Up @@ -374,6 +376,9 @@ void avatar::randomize( const bool random_scenario, points_left &points, bool pl

void avatar::add_profession_items()
{
if( test_mode ) {
DebugLog( D_INFO, DC_ALL ) << "add_profession_items for profession: " << prof->ident().str();
}
std::list<item> prof_items = prof->items( male, get_mutations() );

for( item &it : prof_items ) {
Expand Down

0 comments on commit 8b385a2

Please sign in to comment.