From 759af72961970d30fe47f753f37e4dec4b3084a6 Mon Sep 17 00:00:00 2001 From: Matthew Heine Date: Sat, 20 Jan 2024 11:35:26 -0500 Subject: [PATCH] Hobbies can provide spells --- src/newcharacter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/newcharacter.cpp b/src/newcharacter.cpp index 5d454807a882a..b0dca74b1d312 100644 --- a/src/newcharacter.cpp +++ b/src/newcharacter.cpp @@ -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,