"An unused charge of milk of magnesium will persist through rollover, but using another milk of magnesium without first using the charge will overwrite it instead of stack."
Carrying milk charges over rollover does happen, either deliberately (saving more turns for tickets/events) or accidentally (forgot to use milk before being full, or last fullness didn't consume the charge - think hobopolis food).
The single boolean _milkOfMagnesiumUsed doesn't allow tracking both daily milk consumption (only 1 per day) and charge usage (up to 2 per day). I propose adding a _milkOfMagnesiumCharge that doesn't reset at rollover to track charges, whether the milk was used today or before rollover.
net/sourceforge/kolmafia/request/EatItemRequest.java
net/sourceforge/kolmafia/request/UseItemRequest.java
Carrying milk charges over rollover does happen, either deliberately (saving more turns for tickets/events) or accidentally (forgot to use milk before being full, or last fullness didn't consume the charge - think hobopolis food).
The single boolean _milkOfMagnesiumUsed doesn't allow tracking both daily milk consumption (only 1 per day) and charge usage (up to 2 per day). I propose adding a _milkOfMagnesiumCharge that doesn't reset at rollover to track charges, whether the milk was used today or before rollover.
net/sourceforge/kolmafia/request/EatItemRequest.java
- Would update _milkOfMagnesiumCharge instead of _milkOfMagnesiumUsed when detecting the message "magnesium-flavored belch"
- The nag check for milkUsed would look for _milkOfMagnesiumUsed OR _milkOfMagnesiumCharge
net/sourceforge/kolmafia/request/UseItemRequest.java
- Would update _milkOfMagnesiumCharge (at the same time as _milkOfMagnesiumUsed) when detecting the message "stomach immediately begins to churn"
- A different nag could be added if trying to use another milk before using the previous day's charge
Last edited: