Core/Misc: Some missed $ for string interpolation and some cleanups to code.

This commit is contained in:
hondacrx
2021-01-14 20:50:44 -05:00
parent b503b842d6
commit fa689dac1e
10 changed files with 14 additions and 14 deletions
@@ -97,7 +97,7 @@ namespace Game
if (criteria == null)
{
// Removing non-existing criteria data for all characters
Log.outError(LogFilter.Player, "Non-existing quest objective criteria {criteriaId} data has been removed from the table `character_queststatus_objectives_criteria_progress`.");
Log.outError(LogFilter.Player, $"Non-existing quest objective criteria {criteriaId} data has been removed from the table `character_queststatus_objectives_criteria_progress`.");
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.DEL_INVALID_QUEST_PROGRESS_CRITERIA);
stmt.AddValue(0, criteriaId);
@@ -234,7 +234,7 @@ namespace Game
referencePlayer.KillCreditCriteriaTreeObjective(questObjective);
Log.outInfo(LogFilter.Player, "QuestObjectiveCriteriaMgr.CompletedObjective({questObjective.ID}). {GetOwnerInfo()}");
Log.outInfo(LogFilter.Player, $"QuestObjectiveCriteriaMgr.CompletedObjective({questObjective.Id}). {GetOwnerInfo()}");
_completedObjectives.Add(questObjective.Id);
}
@@ -277,7 +277,7 @@ namespace Game
if (HasCompletedObjective(objective))
{
Log.outTrace(LogFilter.Player, "QuestObjectiveCriteriaMgr.CanUpdateCriteriaTree: (Id: {criteria.ID} Type {criteria.Entry.Type} Quest Objective {objective.ID}) Objective already completed");
Log.outTrace(LogFilter.Player, $"QuestObjectiveCriteriaMgr.CanUpdateCriteriaTree: (Id: {criteria.Id} Type {criteria.Entry.Type} Quest Objective {objective.Id}) Objective already completed");
return false;
}