When saving and equipping outfits containing foldable items, kolmafia can sometimes end up in a state of miscounting owned items, stating that you own zero of items that you do have or multiples of items that you do not. This leads to bad behavior when running automation involving changing equipment regularly such as ascension or farming. Garbage Collector can regularly reproduce this issue if you own a stinky cheese equipment. Unfortunately I don't have a reproduceable base case.
Some examples of resultant issues:
when I own 1 of each.
Some examples of resultant issues:
Code:
> js availableAmount(toItem("lucky gold ring"))
Returned: 0
Code:
js availableAmount(toItem("Fourth of May Cosplay Saber"))
Returned: 2