diff options
-rw-r--r-- | crawl-ref/source/acr.cc | 13 | ||||
-rw-r--r-- | crawl-ref/source/command.cc | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 2b29adfdd7..357ad38069 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -804,6 +804,19 @@ static void _do_wizard_command(int wiz_command, bool silent_fail) wizard_create_spec_monster_name(); break; + case 'R': + sprintf(specs, "Set monster spawn rate to what? (now %d) ", + env.spawn_random_rate); + mpr( specs, MSGCH_PROMPT ); + + get_input_line( specs, sizeof( specs ) ); + if (specs[0] != '\0') + { + if (tmp = atoi(specs)) + env.spawn_random_rate = tmp; + } + break; + case 'r': wizard_change_species(); break; diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index c65bcb02ae..eec9382a82 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -2300,6 +2300,7 @@ int list_wizard_commands(bool do_redraw_screen) "<w>Ctrl-A</w> : generate new Abyss area\n" "<w>b</w> : controlled blink\n" "<w>B</w> : banish yourself to the Abyss\n" + "<w>R</w> : change monster spawn rate\n" "<w>k</w> : shift section of a labyrinth\n" "<w>u</w>/<w>d</w> : shift up/down one level\n" "<w>~</w> : go to a specific level\n" |