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
+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