mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
[Commands] Cleanup #gender Command. (#1832)
- Cleanup message and logic. - Cleanup other spots using similar logic so they're all uniform.
This commit is contained in:
+14
-16
@@ -19,12 +19,10 @@ void command_stun(Client *c, const Seperator *sep)
|
||||
target = c->GetTarget();
|
||||
if (target->IsClient()) {
|
||||
target->CastToClient()->Stun(duration);
|
||||
}
|
||||
else if (target->IsNPC()) {
|
||||
} else if (target->IsNPC()) {
|
||||
target->CastToNPC()->Stun(duration);
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
c->Stun(duration);
|
||||
}
|
||||
|
||||
@@ -34,12 +32,12 @@ void command_stun(Client *c, const Seperator *sep)
|
||||
"You stunned {} for {}.",
|
||||
(
|
||||
c == target ?
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
),
|
||||
ConvertMillisecondsToTime(duration)
|
||||
) :
|
||||
@@ -47,12 +45,12 @@ void command_stun(Client *c, const Seperator *sep)
|
||||
"You unstunned {}.",
|
||||
(
|
||||
c == target ?
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
"yourself" :
|
||||
fmt::format(
|
||||
"{} ({})",
|
||||
target->GetCleanName(),
|
||||
target->GetID()
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user