a.k.a. Operation "Ain't no free lunch".
See attached patch. It's probably inadequate, but it seems to work.
See attached patch. It's probably inadequate, but it seems to work.
Code:
Index: src/net/sourceforge/kolmafia/maximizer/Maximizer.java
===================================================================
--- src/net/sourceforge/kolmafia/maximizer/Maximizer.java (revision 11817)
+++ src/net/sourceforge/kolmafia/maximizer/Maximizer.java (working copy)
@@ -694,7 +694,7 @@
price = StoreManager.getMallPrice( item );
}
}
- if ( price > maxPrice ) continue;
+ if ( price > maxPrice || price == -1 ) continue;
}
else if ( item.getCount( KoLConstants.inventory ) == 0 )
{