record and replay debug stealth, detect life, firewalk
This commit is contained in:
@@ -1910,6 +1910,19 @@ void debug_clean_up() {
|
|||||||
put_pc_screen();
|
put_pc_screen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void debug_stealth_detect_life_firewalk() {
|
||||||
|
if(recording){
|
||||||
|
record_action("debug_stealth_detect_life_firewalk", "");
|
||||||
|
}
|
||||||
|
univ.party.status[ePartyStatus::STEALTH] += 10;
|
||||||
|
univ.party.status[ePartyStatus::DETECT_LIFE] += 10;
|
||||||
|
univ.party.status[ePartyStatus::FIREWALK] += 10;
|
||||||
|
add_string_to_buf("Debug: Stealth, Detect Life, Firewalk!");
|
||||||
|
draw_text_bar();
|
||||||
|
print_buf();
|
||||||
|
put_pc_screen();
|
||||||
|
}
|
||||||
|
|
||||||
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
|
||||||
@@ -2115,13 +2128,7 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){
|
|||||||
|
|
||||||
case 'E':
|
case 'E':
|
||||||
if(!univ.debug_mode) break;
|
if(!univ.debug_mode) break;
|
||||||
univ.party.status[ePartyStatus::STEALTH] += 10;
|
debug_stealth_detect_life_firewalk();
|
||||||
univ.party.status[ePartyStatus::DETECT_LIFE] += 10;
|
|
||||||
univ.party.status[ePartyStatus::FIREWALK] += 10;
|
|
||||||
add_string_to_buf("Debug: Stealth, Detect Life, Firewalk!");
|
|
||||||
draw_text_bar();
|
|
||||||
print_buf();
|
|
||||||
put_pc_screen();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'F':
|
case 'F':
|
||||||
|
@@ -80,5 +80,6 @@ void debug_magic_map();
|
|||||||
void debug_enter_town();
|
void debug_enter_town();
|
||||||
void debug_refresh_stores();
|
void debug_refresh_stores();
|
||||||
void debug_clean_up();
|
void debug_clean_up();
|
||||||
|
void debug_stealth_detect_life_firewalk();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -499,6 +499,8 @@ static void replay_next_action() {
|
|||||||
debug_refresh_stores();
|
debug_refresh_stores();
|
||||||
}else if(t == "debug_clean_up"){
|
}else if(t == "debug_clean_up"){
|
||||||
debug_clean_up();
|
debug_clean_up();
|
||||||
|
}else if(t == "debug_stealth_detect_life_firewalk"){
|
||||||
|
debug_stealth_detect_life_firewalk();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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