diff options
| author | Petr Mrázek | 2011-07-09 13:52:00 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-09 13:52:00 +0200 |
| commit | 520916240328964f0f4a5fc080bca1b27891b435 (patch) | |
| tree | 4b6c07f643d393a7591e2a0693ee7f1135070297 /plugins/reveal.cpp | |
| parent | d894ef0ffa6444167d6cf822521b51051b2ec89a (diff) | |
| download | dfhack-520916240328964f0f4a5fc080bca1b27891b435.tar.gz dfhack-520916240328964f0f4a5fc080bca1b27891b435.tar.bz2 dfhack-520916240328964f0f4a5fc080bca1b27891b435.tar.xz | |
reveal - shorter commands, reversed safe and hell mode (safe is now default)
Diffstat (limited to 'plugins/reveal.cpp')
| -rw-r--r-- | plugins/reveal.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index d3f91071..01cefb0d 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -57,7 +57,7 @@ revealstate revealed = NOT_REVEALED; DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & params); DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> & params); -DFhackCExport command_result revealtoggle(DFHack::Core * c, std::vector<std::string> & params); +DFhackCExport command_result revtoggle(DFHack::Core * c, std::vector<std::string> & params); DFhackCExport const char * plugin_name ( void ) { @@ -67,9 +67,9 @@ DFhackCExport const char * plugin_name ( void ) DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands) { commands.clear(); - commands.push_back(PluginCommand("reveal","Reveal the map. 'reveal safe' will keep hell hidden.",reveal)); + commands.push_back(PluginCommand("reveal","Reveal the map. 'reveal hell' will also reveal hell.",reveal)); commands.push_back(PluginCommand("unreveal","Revert the map to its previous state.",unreveal)); - commands.push_back(PluginCommand("revealtoggle","Reveal/unreveal depending on state.",revealtoggle)); + commands.push_back(PluginCommand("revtoggle","Reveal/unreveal depending on state.",revtoggle)); return CR_OK; } @@ -96,10 +96,10 @@ DFhackCExport command_result plugin_shutdown ( Core * c ) DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & params) { - bool no_hell = false; - if(params.size() && params[0] == "safe") + bool no_hell = true; + if(params.size() && params[0] == "hell") { - no_hell = true; + no_hell = false; } if(revealed != NOT_REVEALED) @@ -238,7 +238,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> return CR_OK; } -DFhackCExport command_result revealtoggle (DFHack::Core * c, std::vector<std::string> & params) +DFhackCExport command_result revtoggle (DFHack::Core * c, std::vector<std::string> & params) { if(revealed) { |
