IronTetsubo
Member
I noticed an interesting quirk as I learned more about the maximizer setup - it would only show mall prices for items when you specified a maximum price (and of course chose pullable/buyable and can buy stuff from the mall). I would find it more useful to always show the price of the mall item when the maximizer is suggesting one, so as to give me some context as to the consequence of hitting "execute". I've got a patch to do this (I think, see below), but I have not yet tested it because I'm still in ronin. So, figured I'd at least get this out there to discuss, and if it makes sense I'll dig into it further once I can fully test it, or if a dev gets really excited about it and they take a look even better. 

Code:
### Eclipse Workspace Patch 1.0
#P kolmafia
Index: src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java
===================================================================
--- src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java (revision 11363)
+++ src/net/sourceforge/kolmafia/swingui/MaximizerFrame.java (working copy)
@@ -939,19 +939,19 @@
: "acquire & " + text;
}
}
- if ( priceLevel == 2 || (priceLevel == 1 && count > 0) )
+ if ( price <= 0 && KoLCharacter.canInteract() &&
+ ItemDatabase.isTradeable( item.getItemId() ) )
{
- if ( price <= 0 && KoLCharacter.canInteract() &&
- ItemDatabase.isTradeable( item.getItemId() ) )
+ if ( priceLevel == 2 || (priceLevel == 1 && count > 0) )
{
if ( MallPriceDatabase.getPrice( item.getItemId() )
> maxPrice * 2 )
{
continue;
}
-
- price = StoreManager.getMallPrice( item );
}
+
+ price = StoreManager.getMallPrice( item );
}
if ( price > maxPrice ) continue;
}