Ground Items - Always show highlighted items

Show highlighted items even if they are under the GE/HA value thresholds.
This commit is contained in:
Unmoon
2017-12-22 18:04:32 +02:00
committed by Adam
parent d74f2f3e46
commit 833bc3e6b2

View File

@@ -205,7 +205,8 @@ public class GroundItemsOverlay extends Overlay
gePrice = itemPrice == null ? 0 : itemPrice.getPrice() * quantity;
alchPrice = Math.round(itemDefinition.getPrice() * HIGH_ALCHEMY_CONSTANT) * quantity;
}
if (gePrice == 0 || ((gePrice >= config.getHideUnderGeValue()) &&
if (highlightedItems.contains(itemDefinition.getName().toLowerCase()) ||
gePrice == 0 || ((gePrice >= config.getHideUnderGeValue()) &&
(alchPrice >= config.getHideUnderHAValue())))
{
items.put(itemId, quantity);