mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +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:
+5
-5
@@ -21,7 +21,7 @@
|
||||
#include "../common/global_define.h"
|
||||
#include "../common/seperator.h"
|
||||
#include "../common/misc_functions.h"
|
||||
#include "../common/string_util.h"
|
||||
#include "../common/strings.h"
|
||||
#include "../common/features.h"
|
||||
#include "masterentity.h"
|
||||
#include "embparser.h"
|
||||
@@ -934,7 +934,7 @@ int PerlembParser::SendCommands(
|
||||
"Script Error | Package [{}] Event [{}] Error [{}]",
|
||||
pkgprefix,
|
||||
event,
|
||||
trim(e)
|
||||
Strings::Trim(e)
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -1413,7 +1413,7 @@ void PerlembParser::ExportEventVariables(
|
||||
ExportVar(package_name.c_str(), "version", zone->GetInstanceVersion());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case EVENT_LOOT_ZONE:
|
||||
case EVENT_LOOT: {
|
||||
Seperator sep(data);
|
||||
@@ -1666,12 +1666,12 @@ void PerlembParser::ExportEventVariables(
|
||||
ExportVar(package_name.c_str(), "from_z", sep.arg[2]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case EVENT_CONSIDER: {
|
||||
ExportVar(package_name.c_str(), "entity_id", std::stoi(data));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case EVENT_CONSIDER_CORPSE: {
|
||||
ExportVar(package_name.c_str(), "corpse_entity_id", std::stoi(data));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user