item manager: fix active price threshold calculation
This was meant to keep items within 5x of their Jagex price, but the logic was only correct if activePriceThreshold <= 1.0.
This commit is contained in:
@@ -328,8 +328,7 @@ public class ItemManager
|
||||
{
|
||||
return wikiPrice;
|
||||
}
|
||||
int d = jagPrice - (int) (jagPrice * activePriceThreshold);
|
||||
return wikiPrice >= jagPrice - d && wikiPrice <= jagPrice + d ? wikiPrice : jagPrice;
|
||||
return wikiPrice < jagPrice * activePriceThreshold ? wikiPrice : jagPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user