Skip to content

Commit

Permalink
Merge pull request #71116 from FlaKougar/spells-from-hobbies
Browse files Browse the repository at this point in the history
Hobbies can provide spells
  • Loading branch information
Maleclypse authored Jan 21, 2024
2 parents 31ed6df + 759af72 commit 44251a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,12 @@ void avatar::initialize( character_type type )
}

prof->learn_spells( *this );

// Also learn spells from hobbies
for( const profession *profession : hobbies ) {
profession->learn_spells( *this );
}

}

static void draw_points( const catacurses::window &w, pool_type pool, const avatar &u,
Expand Down

0 comments on commit 44251a0

Please sign in to comment.