Bug - Fixed On Purchases tab, ten-leaf clovers from the Hermit should be limited

Veracity

Developer
Staff member
If you have not visited the Hermit yet today, KoLmafia does not know how many ten-leaf clovers are available from him. If you search for ten-leaf clover on the Purchases tab, the Hermit does not appear.

Once you visit the Hermit, the Hermit DOES appear on the purchases tab - as "ten-leaf clover (unlimited @ 1 worthless item): Hermit"

- If 2 ten-leaf clovers are currently available, it should show up as "ten-leaf clover (2 @ 1 worthless item): Hermit"
- If we have not visited him, perhaps it should show up as "ten-leaf clover (unknown @ 1 worthless item): Hermit"
- Perhaps we should visit the Hermit if you do a search on ten-leaf clover. Perhaps not; we may have to retrieve a worthless item and/or a Hermit permit.

I suggest that when we initialize Coinmaster purchase requests, any unlimited items should internally have a count of MAX_INT (which will show up as "unlimited"), a limited item (only the ten-leaf clover from the Hermit, currently) should have the actual available count, and if an item is limited but unknown, the internal count should be -1.

I suggest that we always initialize the Hermit's stock with an "unknown" count of ten-leaf clovers.
 
Top