record and replay debug towns forget
This commit is contained in:
@@ -1987,6 +1987,17 @@ void debug_increase_age() {
|
||||
put_pc_screen();
|
||||
}
|
||||
|
||||
void debug_towns_forget() {
|
||||
if(recording){
|
||||
record_action("debug_towns_forget", "");
|
||||
}
|
||||
ASB("DEBUG: Towns have short memory.");
|
||||
ASB("Your deeds have been forgotten.");
|
||||
print_buf();
|
||||
for(auto& pop : univ.party.creature_save)
|
||||
pop.which_town = 200;
|
||||
}
|
||||
|
||||
bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
bool are_done = false;
|
||||
location pass_point; // TODO: This isn't needed
|
||||
@@ -2271,11 +2282,7 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||
break;
|
||||
case '>':
|
||||
if(!univ.debug_mode) break;
|
||||
ASB("DEBUG: Towns have short memory.");
|
||||
ASB("Your deeds have been forgotten.");
|
||||
print_buf();
|
||||
for(auto& pop : univ.party.creature_save)
|
||||
pop.which_town = 200;
|
||||
debug_towns_forget();
|
||||
break;
|
||||
case '!':
|
||||
if(!univ.debug_mode) break;
|
||||
|
@@ -86,5 +86,6 @@ void debug_ghost_mode();
|
||||
void debug_return_to_start();
|
||||
void handle_victory(bool record = false);
|
||||
void debug_increase_age();
|
||||
void debug_towns_forget();
|
||||
|
||||
#endif
|
||||
|
@@ -511,6 +511,8 @@ static void replay_next_action() {
|
||||
handle_victory();
|
||||
}else if(t == "debug_increase_age"){
|
||||
debug_increase_age();
|
||||
}else if(t == "debug_towns_forget"){
|
||||
debug_towns_forget();
|
||||
}
|
||||
|
||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||
|
Reference in New Issue
Block a user