eqemu-server/zone/gm_commands/randomfeatures.cpp
Chris Miles 0550fcfd3f
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files

* Code cleanup
2021-11-14 22:48:47 -06:00

19 lines
407 B
C++
Executable File

#include "../client.h"
void command_randomfeatures(Client *c, const Seperator *sep)
{
Mob *target = c->GetTarget();
if (!target) {
c->Message(Chat::White, "Error: This command requires a target");
}
else {
if (target->RandomizeFeatures()) {
c->Message(Chat::White, "Features Randomized");
}
else {
c->Message(Chat::White, "This command requires a Playable Race as the target");
}
}
}