summaryrefslogtreecommitdiff
path: root/plugins/weather.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-13 14:42:09 +0200
committerPetr Mrázek2011-08-13 14:42:09 +0200
commit81e6bce92ce0efd8dda1036a84a24655f8bbf82d (patch)
tree7ea53d7f3c7b013c5042ead5b350ef64ed2c4982 /plugins/weather.cpp
parent1cbcb99dd53a9236e1e008ed8a4447296973e399 (diff)
downloaddfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.gz
dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.bz2
dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.xz
Command history separated from Console.
Diffstat (limited to 'plugins/weather.cpp')
-rw-r--r--plugins/weather.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/weather.cpp b/plugins/weather.cpp
index 76757b25..d01bfcb7 100644
--- a/plugins/weather.cpp
+++ b/plugins/weather.cpp
@@ -23,10 +23,7 @@ DFhackCExport const char * plugin_name ( void )
DFhackCExport command_result plugin_init ( Core * c, std::vector <PluginCommand> &commands)
{
commands.clear();
- commands.push_back(PluginCommand("weather",
- "Print the weather map or change weather.\
-\n Options: 'snow' = make it snow, 'rain' = make it rain.\
-\n 'clear' = clear the sky",weather));
+ commands.push_back(PluginCommand("weather", "Print the weather map or change weather.",weather));
return CR_OK;
}
@@ -61,7 +58,13 @@ DFhackCExport command_result weather (Core * c, vector <string> & parameters)
}
if(help)
{
-
+ c->con.print("Prints the current weather map by default.\n"
+ "Options:\n"
+ "snow - make it snow everywhere.\n"
+ "rain - make it rain.\n"
+ "clear - clear the sky.\n"
+ );
+ return CR_OK;
}
if(lock && unlock)
{