From 9ed90a1b38750ef63c1a4362fb0bf8adae1e8664 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 24 Aug 2024 14:34:07 -0500 Subject: [PATCH] record and replay alchemy help --- src/game/boe.infodlg.cpp | 3 +++ src/game/boe.main.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/boe.infodlg.cpp b/src/game/boe.infodlg.cpp index b011bb40..7c400b33 100644 --- a/src/game/boe.infodlg.cpp +++ b/src/game/boe.infodlg.cpp @@ -307,6 +307,9 @@ static bool display_alchemy_event_filter(cDialog& me, std::string item_hit, eKey } void display_alchemy() { + if(recording){ + record_action("display_alchemy", ""); + } std::string get_text; cur_entry = 3; diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index ed7dd0bb..1c26e5e1 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -358,6 +358,8 @@ static void replay_next_action() { adventure_notes(); }else if(t == "print_party_stats"){ print_party_stats(); + }else if(t == "display_alchemy"){ + display_alchemy(); } // TODO some of these actions shouldn't call advance_time(). They should return @@ -748,7 +750,6 @@ void handle_menu_choice(eMenu item_hit) { display_skills(eSkill::INVALID,0); break; case eMenu::LIBRARY_ALCHEMY: - // TODO record and replay // TODO: Create a dedicated dialog for alchemy info display_alchemy(); break;