MCPcopy Index your code
hub / github.com/NetHack/NetHack / wiz_makemap

Function wiz_makemap

src/wizcmds.c:152–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152DISABLE_WARNING_FORMAT_NONLITERAL
153
154/* #wizmakemap - discard current dungeon level and replace with a new one */
155int
156wiz_makemap(void)
157{
158 if (wizard) {
159 boolean was_in_W_tower = In_W_tower(u.ux, u.uy, &u.uz);
160
161 makemap_prepost(TRUE, was_in_W_tower);
162 /* create a new level; various things like bestowing a guardian
163 angel on Astral or setting off alarm on Ft.Ludios are handled
164 by goto_level(do.c) so won't occur for replacement levels */
165 mklev();
166 makemap_prepost(FALSE, was_in_W_tower);
167 } else {
168 pline(unavailcmd, ecname_from_fn(wiz_makemap));
169 }
170 return ECMD_OK;
171}
172
173/* the #wizmap command - reveal the level map
174 and any traps or engravings on it */

Callers

nothing calls this directly

Calls 5

In_W_towerFunction · 0.85
makemap_prepostFunction · 0.85
mklevFunction · 0.85
ecname_from_fnFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected