mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-30 17:58:16 +00:00
[Strings] Refactor Strings Usage (#2305)
* Initial commit checkpoint * More functions converted * Commify * More functions * Fin * Sort declarations * Split functions between files * Bots * Update strings.h * Split * Revert find replaces * Repository template * Money * Misc function * Update CMakeLists.txt * Saylink * Update strings.cpp * Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database * API casings
This commit is contained in:
@@ -17,7 +17,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
c->Message(Chat::White, "You must target an NPC to use this command.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
auto target = c->GetTarget()->CastToNPC();
|
||||
|
||||
bool is_consider = !strcasecmp(sep->arg[1], "consider");
|
||||
@@ -42,7 +42,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_consider) {
|
||||
if (is_consider) {
|
||||
if (arguments == 2) {
|
||||
auto mob_name = sep->arg[2];
|
||||
auto mob_to_consider = entity_list.GetMob(mob_name);
|
||||
@@ -153,7 +153,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
delay ?
|
||||
fmt::format(
|
||||
"a delay of {} ({})",
|
||||
ConvertMillisecondsToTime(delay),
|
||||
Strings::MillisecondsToTime(delay),
|
||||
delay
|
||||
):
|
||||
"no delay"
|
||||
@@ -162,7 +162,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
minimum_delay ?
|
||||
fmt::format(
|
||||
"a minimum delay of {} ({})",
|
||||
ConvertMillisecondsToTime(minimum_delay),
|
||||
Strings::MillisecondsToTime(minimum_delay),
|
||||
minimum_delay
|
||||
):
|
||||
"no minimum delay"
|
||||
@@ -209,7 +209,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
fmt::format(
|
||||
"a delay of {} ({})",
|
||||
delay,
|
||||
ConvertMillisecondsToTime(delay)
|
||||
Strings::MillisecondsToTime(delay)
|
||||
):
|
||||
"no delay"
|
||||
),
|
||||
@@ -218,7 +218,7 @@ void command_ai(Client *c, const Seperator *sep)
|
||||
fmt::format(
|
||||
"a minimum delay of {} ({})",
|
||||
minimum_delay,
|
||||
ConvertMillisecondsToTime(delay)
|
||||
Strings::MillisecondsToTime(delay)
|
||||
):
|
||||
"no minimum delay"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user