From 6c2886a71db198e6c005fdb2475757808b9bc883 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 23 Jul 2023 16:19:07 -0400 Subject: [PATCH] [Cleanup] Fix casing in corpse money and decay time. (#3511) # Notes - These were uppercase and should be lowercase. --- zone/client_packet.cpp | 4 ++-- zone/corpse.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 0a0dea12a..cd9a5202d 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -5224,12 +5224,12 @@ void Client::Handle_OP_ConsiderCorpse(const EQApplicationPacket *app) uint32 decay_time = t->GetDecayTime(); if (decay_time) { - auto time_string = Strings::SecondsToTime(decay_time, true); + const std::string& time_string = Strings::SecondsToTime(decay_time, true); Message( Chat::NPCQuestSay, fmt::format( "This corpse will decay in {}.", - time_string + Strings::ToLower(time_string) ).c_str() ); diff --git a/zone/corpse.cpp b/zone/corpse.cpp index ea6bd14de..579632786 100644 --- a/zone/corpse.cpp +++ b/zone/corpse.cpp @@ -1207,7 +1207,7 @@ void Corpse::MakeLootRequestPackets(Client* client, const EQApplicationPacket* a client->Message( Chat::Yellow, fmt::format( - "This corpse Contains {}.", + "This corpse contains {}.", Strings::Money( GetPlatinum(), GetGold(), @@ -1217,7 +1217,7 @@ void Corpse::MakeLootRequestPackets(Client* client, const EQApplicationPacket* a ).c_str() ); } else { - client->Message(Chat::Yellow, "This corpse Contains no money."); + client->Message(Chat::Yellow, "This corpse contains no money."); } auto outapp = new EQApplicationPacket(OP_MoneyOnCorpse, sizeof(moneyOnCorpseStruct));