Core/Player: Rename GetQuestSlotObjectiveData to GetQuestObjectiveData

This commit is contained in:
ModoX
2024-01-01 01:31:58 +01:00
parent 099ad4a0fd
commit 38a80d7566
3 changed files with 3 additions and 3 deletions

View File

@@ -16435,7 +16435,7 @@ int32 Player::GetQuestSlotObjectiveData(uint16 slot, QuestObjective const& objec
return GetQuestSlotObjectiveFlag(slot, objective.StorageIndex) ? 1 : 0;
}
int32 Player::GetQuestSlotObjectiveData(uint32 questId, uint32 objectiveId) const
int32 Player::GetQuestObjectiveData(uint32 questId, uint32 objectiveId) const
{
uint16 slot = FindQuestSlot(questId);
if (slot >= MAX_QUEST_LOG_SIZE)

View File

@@ -1611,7 +1611,7 @@ class TC_GAME_API Player : public Unit, public GridObject<Player>
int64 GetQuestSlotEndTime(uint16 slot) const;
bool GetQuestSlotObjectiveFlag(uint16 slot, int8 objectiveIndex) const;
int32 GetQuestSlotObjectiveData(uint16 slot, QuestObjective const& objective) const;
int32 GetQuestSlotObjectiveData(uint32 questId, uint32 objectiveId) const;
int32 GetQuestObjectiveData(uint32 questId, uint32 objectiveId) const;
void SetQuestSlot(uint16 slot, uint32 quest_id);
void SetQuestSlotCounter(uint16 slot, uint8 counter, uint16 count);
void SetQuestSlotState(uint16 slot, uint32 state);

View File

@@ -2459,7 +2459,7 @@ struct npc_sparring_partner_combat_training : public ScriptedAI
break;
}
return player->GetQuestSlotObjectiveData(_questID, objectiveId);
return player->GetQuestObjectiveData(_questID, objectiveId);
}
void EnterEvadeMode(EvadeReason /*why*/) override