mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
(cherry picked from commit d791afae1d)
This commit is contained in:
@@ -255,7 +255,7 @@ class spell_gen_arena_drink : public AuraScript
|
||||
{
|
||||
if (!spellInfo->GetEffect(EFFECT_0).IsAura(SPELL_AURA_MOD_POWER_REGEN))
|
||||
{
|
||||
TC_LOG_ERROR("spells", "Aura %d structure has been changed - first aura is no longer SPELL_AURA_MOD_POWER_REGEN", GetId());
|
||||
TC_LOG_ERROR("spells", "Aura {} structure has been changed - first aura is no longer SPELL_AURA_MOD_POWER_REGEN", GetId());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -4216,7 +4216,7 @@ class spell_gen_mixology_bonus : public AuraScript
|
||||
SetBonusValueForEffect(EFFECT_0, 5, aurEff);
|
||||
break;
|
||||
default:
|
||||
TC_LOG_ERROR("spells", "SpellId %u couldn't be processed in spell_gen_mixology_bonus", GetId());
|
||||
TC_LOG_ERROR("spells", "SpellId {} couldn't be processed in spell_gen_mixology_bonus", GetId());
|
||||
break;
|
||||
}
|
||||
amount += bonus;
|
||||
|
||||
@@ -250,7 +250,7 @@ class spell_rog_deadly_poison : public SpellScript
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(enchant->EffectArg[s]);
|
||||
if (!spellInfo)
|
||||
{
|
||||
TC_LOG_ERROR("spells", "Player::CastItemCombatSpell Enchant %i, player (Name: %s, %s) cast unknown spell %i", enchant->ID, player->GetName().c_str(), player->GetGUID().ToString().c_str(), enchant->EffectArg[s]);
|
||||
TC_LOG_ERROR("spells", "Player::CastItemCombatSpell Enchant {}, player (Name: {}, {}) cast unknown spell {}", enchant->ID, player->GetName(), player->GetGUID().ToString(), enchant->EffectArg[s]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ class spell_warl_create_healthstone : public SpellScriptLoader
|
||||
rank = 2;
|
||||
break;
|
||||
default:
|
||||
TC_LOG_ERROR("spells", "Unknown rank of Improved Healthstone id: %d", aurEff->GetId());
|
||||
TC_LOG_ERROR("spells", "Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user