Core/Pooling: Quest pooling rewrite

Port From (https://github.com/TrinityCore/TrinityCore/commit/51fbda4223442635a35d3225c0797d0151ea7051)
This commit is contained in:
hondacrx
2022-01-04 17:35:29 -05:00
parent 9e61335fe8
commit ed761eb400
18 changed files with 618 additions and 542 deletions
+8
View File
@@ -312,6 +312,14 @@ namespace Game
return 0;
}
public static bool IsTakingQuestEnabled(uint questId)
{
if (!Global.QuestPoolMgr.IsQuestActive(questId))
return false;
return true;
}
public uint MoneyValue(Player player)
{
QuestMoneyRewardRecord money = CliDB.QuestMoneyRewardStorage.LookupByKey(player.GetQuestLevel(this));