split all material reset into two cases
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1358,8 +1358,17 @@ static void server_command_edit(shared_ptr<Client> 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");
|
||||
|
||||
Reference in New Issue
Block a user