MCPcopy Create free account
hub / github.com/crawl/crawl / _do_wizard_command

Function _do_wizard_command

crawl-ref/source/wizard.cc:47–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#include "xom.h" // debug_xom_effects
46
47static void _do_wizard_command(int wiz_command)
48{
49 ASSERT(you.wizard);
50
51 switch (wiz_command)
52 {
53 case '?':
54 {
55 const int key = list_wizard_commands(true);
56 _do_wizard_command(key);
57 return;
58 }
59
60 case 'a': acquirement_menu(); break;
61 case 'A': wizard_set_all_skills(); break;
62 case CONTROL('A'):
63 if (player_in_branch(BRANCH_ABYSS))
64 wizard_set_abyss();
65 else
66 mpr("You can only abyss_teleport() inside the Abyss.");
67 break;
68
69 case 'b': wizard_blink(); break;
70 case 'B': you.teleport(true, true); break;
71 case CONTROL('B'):
72 if (!player_in_branch(BRANCH_ABYSS))
73 banished("wizard command");
74 else
75 down_stairs(DNGN_EXIT_ABYSS);
76 break;
77
78 case 'c': wizard_draw_card(); break;
79 case CONTROL('C'): die("Intentional crash");
80
81 case 'd': wizard_level_travel(true); break;
82 case 'D': wizard_detect_creatures(); break;
83 case CONTROL('D'): wizard_edit_durations(); break;
84
85 case 'e': do_trap_effects(); break;
86 case 'E': wizard_freeze_time(); break;
87 case CONTROL('E'): debug_dump_levgen(); break;
88
89 case 'f': wizard_quick_fsim(); break;
90 case 'F': wizard_fight_sim(false); break;
91 case CONTROL('F'): wizard_fight_sim(true); break;
92
93 case 'g': wizard_exercise_skill(); break;
94 case 'G': wizard_dismiss_all_monsters(); break;
95#ifdef DEBUG_BONES
96 case CONTROL('G'): debug_ghosts(); break;
97#endif
98
99 case 'h': wizard_heal(false); break;
100 case 'H': wizard_heal(true); break;
101 // case CONTROL('H'): break;
102
103 case 'i': wizard_identify_pack(); break;
104 case 'I': wizard_unidentify_pack(); break;

Callers 1

handle_wizard_commandFunction · 0.85

Calls 15

list_wizard_commandsFunction · 0.85
acquirement_menuFunction · 0.85
wizard_set_all_skillsFunction · 0.85
player_in_branchFunction · 0.85
wizard_set_abyssFunction · 0.85
mprFunction · 0.85
wizard_blinkFunction · 0.85
banishedFunction · 0.85
down_stairsFunction · 0.85
wizard_draw_cardFunction · 0.85
wizard_level_travelFunction · 0.85
wizard_detect_creaturesFunction · 0.85

Tested by

no test coverage detected