record and replay parrying
This commit is contained in:
@@ -342,7 +342,10 @@ static void handle_stand_ready(bool& need_redraw, bool& need_reprint) {
|
||||
put_pc_screen();
|
||||
}
|
||||
|
||||
static void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint) {
|
||||
void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint) {
|
||||
if(recording){
|
||||
record_action("handle_parry", "");
|
||||
}
|
||||
add_string_to_buf("Parry.");
|
||||
char_parry();
|
||||
did_something = true;
|
||||
|
@@ -56,6 +56,7 @@ void handle_drop_item(short item_hit, bool& need_redraw);
|
||||
void handle_drop_item(location destination, bool& need_redraw);
|
||||
void handle_give_item(short item_hit, bool& did_something, bool& need_redraw);
|
||||
void handle_toggle_active(bool& need_reprint);
|
||||
void handle_parry(bool& did_something, bool& need_redraw, bool& need_reprint);
|
||||
void show_dialog_action(std::string xml_file);
|
||||
void handle_new_pc_graphic();
|
||||
void handle_rename_pc();
|
||||
|
@@ -530,6 +530,8 @@ static void replay_next_action() {
|
||||
close_map(true);
|
||||
}else if(t == "handle_toggle_active"){
|
||||
handle_toggle_active(need_reprint);
|
||||
}else if(t == "handle_parry"){
|
||||
handle_parry(did_something, need_redraw, need_reprint);
|
||||
}else{
|
||||
std::ostringstream sstr;
|
||||
sstr << "Couldn't replay action: " << next_action;
|
||||
|
Reference in New Issue
Block a user