mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +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:
+4
-4
@@ -21,7 +21,7 @@
|
||||
#include "../common/rulesys.h"
|
||||
#include "../common/skills.h"
|
||||
#include "../common/spdat.h"
|
||||
#include "../common/string_util.h"
|
||||
#include "../common/strings.h"
|
||||
#include "../common/say_link.h"
|
||||
|
||||
#include "entity.h"
|
||||
@@ -1195,7 +1195,7 @@ void QuestManager::givecash(uint32 copper, uint32 silver, uint32 gold, uint32 pl
|
||||
initiator->MessageString(
|
||||
Chat::MoneySplit,
|
||||
YOU_RECEIVE,
|
||||
ConvertMoneyToString(
|
||||
Strings::Money(
|
||||
platinum,
|
||||
gold,
|
||||
silver,
|
||||
@@ -2992,7 +2992,7 @@ std::string QuestManager::saylink(char *saylink_text, bool silent, const char *l
|
||||
{
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
return EQ::SayLinkEngine::GenerateQuestSaylink(saylink_text, silent, link_name);
|
||||
return Saylink::Create(saylink_text, silent, link_name);
|
||||
}
|
||||
|
||||
std::string QuestManager::getcharnamebyid(uint32 char_id) {
|
||||
@@ -3401,7 +3401,7 @@ EQ::ItemInstance *QuestManager::CreateItem(uint32 item_id, int16 charges, uint32
|
||||
}
|
||||
|
||||
std::string QuestManager::secondstotime(int duration) {
|
||||
return ConvertSecondsToTime(duration);
|
||||
return Strings::SecondsToTime(duration);
|
||||
}
|
||||
|
||||
std::string QuestManager::gethexcolorcode(std::string color_name) {
|
||||
|
||||
Reference in New Issue
Block a user