record and replay debug ghost mode
This commit is contained in:
@@ -1937,6 +1937,20 @@ void debug_fly() {
|
|||||||
put_pc_screen();
|
put_pc_screen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void debug_ghost_mode() {
|
||||||
|
if(recording){
|
||||||
|
record_action("debug_ghost_mode", "");
|
||||||
|
}
|
||||||
|
if(univ.ghost_mode){
|
||||||
|
univ.ghost_mode = false;
|
||||||
|
ASB("Debug: Ghost mode OFF.");
|
||||||
|
}else{
|
||||||
|
univ.ghost_mode = true;
|
||||||
|
ASB("Debug:Ghost mode ON.");
|
||||||
|
}
|
||||||
|
print_buf();
|
||||||
|
}
|
||||||
|
|
||||||
bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
||||||
bool are_done = false;
|
bool are_done = false;
|
||||||
location pass_point; // TODO: This isn't needed
|
location pass_point; // TODO: This isn't needed
|
||||||
@@ -2152,14 +2166,7 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
|||||||
|
|
||||||
case 'G':
|
case 'G':
|
||||||
if(!univ.debug_mode) break;
|
if(!univ.debug_mode) break;
|
||||||
if(univ.ghost_mode){
|
debug_ghost_mode();
|
||||||
univ.ghost_mode = false;
|
|
||||||
ASB("Debug: Ghost mode OFF.");
|
|
||||||
}else{
|
|
||||||
univ.ghost_mode = true;
|
|
||||||
ASB("Debug:Ghost mode ON.");
|
|
||||||
}
|
|
||||||
print_buf();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'H':
|
case 'H':
|
||||||
|
@@ -82,5 +82,6 @@ void debug_refresh_stores();
|
|||||||
void debug_clean_up();
|
void debug_clean_up();
|
||||||
void debug_stealth_detect_life_firewalk();
|
void debug_stealth_detect_life_firewalk();
|
||||||
void debug_fly();
|
void debug_fly();
|
||||||
|
void debug_ghost_mode();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -503,6 +503,8 @@ static void replay_next_action() {
|
|||||||
debug_stealth_detect_life_firewalk();
|
debug_stealth_detect_life_firewalk();
|
||||||
}else if(t == "debug_fly"){
|
}else if(t == "debug_fly"){
|
||||||
debug_fly();
|
debug_fly();
|
||||||
|
}else if(t == "debug_ghost_mode"){
|
||||||
|
debug_ghost_mode();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO some of these actions shouldn't call advance_time(). They should return
|
// TODO some of these actions shouldn't call advance_time(). They should return
|
||||||
|
Reference in New Issue
Block a user