mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-28 15:57:58 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user