| 2508 | } |
| 2509 | |
| 2510 | static void _prep_input() |
| 2511 | { |
| 2512 | you.turn_is_over = false; |
| 2513 | you.time_taken = player_speed(); |
| 2514 | you.shield_blocks = 0; // no blocks this round |
| 2515 | you.reprisals.clear(); |
| 2516 | you.triggers_done.init(0); |
| 2517 | you.attempted_attack = false; |
| 2518 | |
| 2519 | you.redraw_status_lights = true; |
| 2520 | you.redraw_title = true; |
| 2521 | if (you.running == 0) |
| 2522 | { |
| 2523 | you.quiver_action.set_needs_redraw(); |
| 2524 | you.refresh_rampage_hints(); |
| 2525 | } |
| 2526 | print_stats(); |
| 2527 | update_screen(); |
| 2528 | |
| 2529 | viewwindow(); |
| 2530 | update_screen(); // ??? |
| 2531 | if (check_for_interesting_features() && you.running.is_explore()) |
| 2532 | stop_running(); |
| 2533 | |
| 2534 | if (you.seen_portals) |
| 2535 | { |
| 2536 | ASSERT(have_passive(passive_t::detect_portals)); |
| 2537 | if (you.seen_portals == 1) |
| 2538 | mprf(MSGCH_GOD, "You have a vision of a gate."); |
| 2539 | else |
| 2540 | mprf(MSGCH_GOD, "You have a vision of multiple gates."); |
| 2541 | |
| 2542 | you.seen_portals = 0; |
| 2543 | } |
| 2544 | } |
| 2545 | |
| 2546 | static void _check_sanctuary() |
| 2547 | { |
no test coverage detected