Core/Loot: Updated LootType enum for 9.2.7

Port From (https://github.com/TrinityCore/TrinityCore/commit/74dbed1d0ea11373b5765a4c53b1a762203fcbd2)
This commit is contained in:
hondacrx
2022-09-02 14:22:40 -04:00
parent 7bba4bdd79
commit 2cb4ea2ff2
6 changed files with 45 additions and 37 deletions
+7 -4
View File
@@ -75,14 +75,17 @@ namespace Framework.Constants
Pickpocketing = 2,
Fishing = 3,
Disenchanting = 4,
// Ignored Always By Client
Item = 5,
Skinning = 6,
Prospecting = 7,
Milling = 8,
GatheringNode = 8,
Chest = 9,
CorpsePersonal = 14,
Fishinghole = 20, // Unsupported By Client, Sending Fishing Instead
Insignia = 21, // Unsupported By Client, Sending Corpse Instead
FishingJunk = 22 // unsupported by client, sending LOOT_FISHING instead
FishingJunk = 22, // unsupported by client, sending LOOT_FISHING instead
Prospecting = 23,
Milling = 24
}
public enum LootItemType
+18
View File
@@ -445,6 +445,24 @@ namespace Framework.Constants
{
return slot >= PetSaveMode.FirstStableSlot && slot < PetSaveMode.LastStableSlot;
}
public static LootType GetLootTypeForClient(LootType lootType)
{
switch (lootType)
{
case LootType.Prospecting:
case LootType.Milling:
return LootType.Disenchanting;
case LootType.Insignia:
return LootType.Skinning;
case LootType.Fishinghole:
case LootType.FishingJunk:
return LootType.Fishing;
default:
break;
}
return lootType;
}
}
public enum Locale