record and replay showing PC info

This commit is contained in:
2024-08-27 20:18:33 -05:00
committed by Celtic Minstrel
parent 9eba2ab4e5
commit e12838a04e
2 changed files with 5 additions and 0 deletions

View File

@@ -465,6 +465,9 @@ static bool give_pc_extra_info(cDialog& me, std::string item_hit, const short pc
}
void give_pc_info(short pc_num) {
if(recording){
record_action("give_pc_info", boost::lexical_cast<std::string>(pc_num));
}
using namespace std::placeholders;
std::string str;

View File

@@ -525,6 +525,8 @@ static void replay_next_action() {
handle_print_pc_hp(boost::lexical_cast<int>(next_action.GetText()));
}else if(t == "handle_print_pc_sp"){
handle_print_pc_sp(boost::lexical_cast<int>(next_action.GetText()));
}else if(t == "give_pc_info"){
give_pc_info(boost::lexical_cast<short>(next_action.GetText()));
}
// TODO some of these actions shouldn't call advance_time(). They should return