Core/Loot: Implemented dungeon encounter personal loot

Port From (https://github.com/TrinityCore/TrinityCore/commit/010e6f7f49744b16e3ecececb7d9605f8b8db4d5)
This commit is contained in:
hondacrx
2022-10-26 01:36:15 -04:00
parent 32960df381
commit 744e9c1c19
9 changed files with 314 additions and 115 deletions
+2 -5
View File
@@ -40,7 +40,7 @@ namespace Game.Groups
m_dungeonDifficulty = Difficulty.Normal;
m_raidDifficulty = Difficulty.NormalRaid;
m_legacyRaidDifficulty = Difficulty.Raid10N;
m_lootMethod = LootMethod.FreeForAll;
m_lootMethod = LootMethod.PersonalLoot;
m_lootThreshold = ItemQuality.Uncommon;
}
@@ -120,9 +120,6 @@ namespace Game.Groups
if (m_groupFlags.HasAnyFlag(GroupFlags.Raid))
_initRaidSubGroupsCounter();
if (!IsLFGGroup())
m_lootMethod = LootMethod.GroupLoot;
m_lootThreshold = ItemQuality.Uncommon;
m_looterGuid = leaderGuid;
@@ -246,7 +243,7 @@ namespace Game.Groups
{
m_groupFlags = (m_groupFlags | GroupFlags.Lfg | GroupFlags.LfgRestricted);
m_groupCategory = GroupCategory.Instance;
m_lootMethod = LootMethod.GroupLoot;
m_lootMethod = LootMethod.PersonalLoot;
if (!IsBGGroup() && !IsBFGroup())
{
PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.UPD_GROUP_TYPE);