record and replay debug clear statuses
This commit is contained in:
@@ -1900,6 +1900,16 @@ void debug_refresh_stores() {
|
||||
print_buf();
|
||||
}
|
||||
|
||||
void debug_clean_up() {
|
||||
if(recording){
|
||||
record_action("debug_clean_up", "");
|
||||
}
|
||||
univ.party.clear_bad_status();
|
||||
add_string_to_buf("Debug: You get cleaned up!");
|
||||
print_buf();
|
||||
put_pc_screen();
|
||||
}
|
||||
|
||||
bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
bool are_done = false;
|
||||
location pass_point; // TODO: This isn't needed
|
||||
@@ -2100,10 +2110,7 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
|
||||
case 'C':
|
||||
if(!univ.debug_mode) break;
|
||||
univ.party.clear_bad_status();
|
||||
add_string_to_buf("Debug: You get cleaned up!");
|
||||
print_buf();
|
||||
put_pc_screen();
|
||||
debug_clean_up();
|
||||
break;
|
||||
|
||||
case 'E':
|
||||
|
@@ -79,5 +79,6 @@ void debug_kill();
|
||||
void debug_magic_map();
|
||||
void debug_enter_town();
|
||||
void debug_refresh_stores();
|
||||
void debug_clean_up();
|
||||
|
||||
#endif
|
||||
|
@@ -497,6 +497,8 @@ static void replay_next_action() {
|
||||
debug_enter_town();
|
||||
}else if(t == "debug_refresh_stores"){
|
||||
debug_refresh_stores();
|
||||
}else if(t == "debug_clean_up"){
|
||||
debug_clean_up();
|
||||
}
|
||||
|
||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||
|
Reference in New Issue
Block a user