[Cleanup] Use explicit conversions for enum formatting (#4064)

This is prep for updating to fmt 10 which removed implicit conversions
for enums.
This commit is contained in:
hg
2024-02-12 03:58:48 -05:00
committed by GitHub
parent 20c01ef343
commit e920e35a5c
21 changed files with 33 additions and 17 deletions
+2 -2
View File
@@ -343,7 +343,7 @@ void NPC::DescribeAggro(Client *to_who, Mob *mob, bool verbose) {
"{} does not have low enough faction, their Faction Level is {} ({}).",
to_who->GetTargetDescription(mob),
FactionValueToString(faction_value),
faction_value
static_cast<int>(faction_value)
).c_str()
);
return;
@@ -556,7 +556,7 @@ bool Mob::CheckWillAggro(Mob *mob) {
LogAggro("Is In zone?:[{}]\n", mob->InZone());
LogAggro("Dist^2: [{}]\n", distance_squared);
LogAggro("Range^2: [{}]\n", aggro_range_squared);
LogAggro("Faction: [{}]\n", faction_value);
LogAggro("Faction: [{}]\n", static_cast<int>(faction_value));
LogAggro("AlwaysAggroFlag: [{}]\n", AlwaysAggro());
LogAggro("Int: [{}]\n", GetINT());
LogAggro("Con: [{}]\n", GetLevelCon(mob->GetLevel()));