diff --git a/README.md b/README.md index 6036d7ee..2158af92 100644 --- a/README.md +++ b/README.md @@ -609,9 +609,10 @@ Some subcommands are always available. They are: * `$edit mat reset evade`: Clear your usage of evade materials (BB only) * `$edit mat reset def`: Clear your usage of def materials (BB only) * `$edit mat reset luck`: Clear your usage of luck materials (BB only) -* `$edit mat reset hp`: Clear your usage of hp materials (BB only) -* `$edit mat reset tp`: Clear your usage of tp materials (BB only) -* `$edit mat reset all`: Clear your usage of all materials (BB only) +* `$edit mat reset hp`: Clear your usage of HP materials (BB only) +* `$edit mat reset tp`: Clear your usage of TP materials (BB only) +* `$edit mat reset all`: Clear your usage of all materials except HP and TP (BB only) +* `$edit mat reset every`: Clear your usage of all materials including HP and TP (BB only) * `$edit namecolor AARRGGBB`: Set your name color (AARRGGBB specified in hex) * `$edit language L`: Set your language (Generally only useful on BB; values for L: J = Japanese, E = English, G = German, F = French, S = Spanish, B = Simplified Chinese, T = Traditional Chinese, K = Korean) * `$edit name NAME`: Set your character name diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index df5a1569..53885e5c 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -1358,8 +1358,17 @@ static void server_command_edit(shared_ptr c, const std::string& args) { p->set_material_usage(MatType::EVADE, 0); p->set_material_usage(MatType::DEF, 0); p->set_material_usage(MatType::LUCK, 0); + } else if (which == "every") { + p->set_material_usage(MatType::POWER, 0); + p->set_material_usage(MatType::MIND, 0); + p->set_material_usage(MatType::EVADE, 0); + p->set_material_usage(MatType::DEF, 0); + p->set_material_usage(MatType::LUCK, 0); p->set_material_usage(MatType::HP, 0); p->set_material_usage(MatType::TP, 0); + } else { + send_text_message(c, "$C6Invalid subcommand"); + return; } } else { send_text_message(c, "$C6Invalid subcommand");