Update reward_system.cpp

{} fmt style is not working with PSendSysMessage at this time so we revert them back to %u for now
This commit is contained in:
acidmanifesto
2022-02-18 20:11:12 -05:00
committed by GitHub
parent 02874dee0d
commit 175bf9e05a

View File

@@ -45,7 +45,7 @@ public:
if (!result)
{
ChatHandler(player->GetSession()).PSendSysMessage("[Reward System] Better luck next time! Your roll was {}.", roll);
ChatHandler(player->GetSession()).PSendSysMessage("[Reward System] Better luck next time! Your roll was %u.", roll);
RewardTimer = initialTimer;
return;
}
@@ -62,7 +62,7 @@ public:
SendRewardToPlayer(player, pItem, quantity);
} while (result->NextRow());
ChatHandler(player->GetSession()).PSendSysMessage("[Reward System] Congratulations you have won with a roll of {}", roll);
ChatHandler(player->GetSession()).PSendSysMessage("[Reward System] Congratulations you have won with a roll of %u.", roll);
RewardTimer = initialTimer;
}