fixup ordering of shop items

This commit is contained in:
RedSparr0w committed 2019-11-23 11:39:03 +13:00
1 parent d2cf6fac12
commit 10c7adf74d
9 files changed
+18 -41

No files matched your search

@@ -67,7 +67,8 @@ public class Bot {
if (items.size() <= 0) return;
int item_id = Misc.randomArrayListItem(items);
String item_name = ItemAssistant.getItemName(item_id);
int value = Math.max(1, BotHandler.getItemPrice(botClient.myShopId, item_id));
int value = BotHandler.getItemPrice(botClient.myShopId, item_id);
if (value <= 0) return;
botClient.forcedChat("Selling " + item_name + " " + formatSellPrice(value) + " ea");
/*
Real chat - Disabled for now, can't get it to function correctly