mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +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
@@ -571,7 +571,7 @@ bool Client::TrainDiscipline(uint32 itemid) {
|
||||
|
||||
uint32 spell_id = item->Scroll.Effect;
|
||||
if(!IsValidSpell(spell_id)) {
|
||||
Message(Chat::Red, "This tome contains invalid knowledge.");
|
||||
Message(Chat::Red, "This tome Contains invalid knowledge.");
|
||||
return(false);
|
||||
}
|
||||
|
||||
@@ -649,7 +649,7 @@ bool Client::MemorizeSpellFromItem(uint32 item_id) {
|
||||
|
||||
uint32 spell_id = item->Scroll.Effect;
|
||||
if(!IsValidSpell(spell_id)) {
|
||||
Message(Chat::Red, "This scroll contains invalid knowledge.");
|
||||
Message(Chat::Red, "This scroll Contains invalid knowledge.");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -755,7 +755,7 @@ bool Client::UseDiscipline(uint32 spell_id, uint32 target) {
|
||||
|
||||
//make sure we can use it..
|
||||
if(!IsValidSpell(spell_id)) {
|
||||
Message(Chat::Red, "This tome contains invalid knowledge.");
|
||||
Message(Chat::Red, "This tome Contains invalid knowledge.");
|
||||
return(false);
|
||||
}
|
||||
|
||||
@@ -801,7 +801,7 @@ bool Client::UseDiscipline(uint32 spell_id, uint32 target) {
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"You can use this discipline in {}.",
|
||||
ConvertSecondsToTime(remaining_time)
|
||||
Strings::SecondsToTime(remaining_time)
|
||||
).c_str()
|
||||
);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user