record and replay tip of the day

This commit is contained in:
2024-08-24 14:54:18 -05:00
committed by Celtic Minstrel
parent b1f2465c37
commit c0df7c3f53
2 changed files with 5 additions and 1 deletions

View File

@@ -1451,6 +1451,9 @@ static bool tip_of_day_event_filter(cDialog& me, std::string item_hit, short& pa
}
void tip_of_day() {
if(recording){
record_action("tip_of_day", "");
}
using namespace std::placeholders;
short page = get_ran(1,0,ResMgr::strings.get("tips")->size() - 51);

View File

@@ -379,6 +379,8 @@ static void replay_next_action() {
eSkill force_skill = static_cast<eSkill>(enum_v);
display_skills(force_skill, 0);
}else if(t == "tip_of_day"){
tip_of_day();
}
// TODO some of these actions shouldn't call advance_time(). They should return
@@ -770,7 +772,6 @@ void handle_menu_choice(eMenu item_hit) {
display_alchemy();
break;
case eMenu::LIBRARY_TIPS:
// TODO record and replay
tip_of_day();
break;
case eMenu::LIBRARY_INTRO: