Added ge_announcement_limit configuration for setting minimum high alchemy value required for bot GE items to be announced

This commit is contained in:
RiL
2023-04-02 08:41:43 +00:00
committed by Ryan
parent dcdeefe85e
commit fc28c97400
4 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -578,7 +578,8 @@ class ScriptAPI(private val bot: Player) {
* @author Gexja
*/
fun saleIsBigNews(itemID: Int, amount: Int): Boolean {
return ItemDefinition.forId(itemID).getAlchemyValue(true) * amount >= 500
return ItemDefinition.forId(itemID).getAlchemyValue(true) * amount >= (GameWorld.settings?.ge_announcement_limit
?: 500)
}
/**