feat(Core/Loot): add configurable option to specify ilv restriction for items below player class in NeedBeforeGreed loot mode in DF (#7701)

This commit is contained in:
UltraNix
2021-09-06 18:24:41 +02:00
committed by GitHub
parent 02b0b29ffa
commit 066d2ef85b
4 changed files with 12 additions and 1 deletions

View File

@@ -2423,7 +2423,7 @@ InventoryResult Player::CanRollForItemInLFG(ItemTemplate const* proto, WorldObje
{
return EQUIP_ERR_CANT_DO_RIGHT_NOW;
}
else if (proto->ItemLevel > 70)
else if (sWorld->getIntConfig(CONFIG_LOOT_NEED_BEFORE_GREED_ILVL_RESTRICTION) && proto->ItemLevel > sWorld->getIntConfig(CONFIG_LOOT_NEED_BEFORE_GREED_ILVL_RESTRICTION))
{
if (proto->SubClass < subclassToCompare)
{