Feature Multiple Universal Seasoning Tracking

Irrat

Member
Universal Seasoning tracking in KoLMafia seems half done, as per the wiki. https://wiki.kingdomofloathing.com/Universal_Seasoning

This is kind of an extension of this report, however it feels too much like it belongs in its own thread: https://kolmafia.us/threads/universal-seasoning-can-have-multiple-uses.26769/

Mafia currently tracks _universalSeasoningsUsed which is incremented when a seasoning is used, and universalSeasoningActive which is set when a seasoning is used, and unset the next time food is consumed.

This appears to be different from how the item actually works, where uses are queued up and as per the wiki, persists over rollover.

The first preference _universalSeasoningsUsed is fine, as that tracks the actual item daily limit. The second preference universalSeasoningActive however, needs to be either retired, or deprecated and act as a reflection of a new preference, I'm thinking something like an incrementing and decrementing universalSeasoningsActive, which will reset on ascension (ascension needs verification).

The change doesn't seem that complicated, with the only caveat in my mind, being that it would be nice if the food helpers kept each other in check for when they should have been decremented, but was not. My thoughts are that some of them look like they should be using the exact same mechanisms for being triggered, so if one of them decrements but another does not, yet should have, then there's either an interaction, or the tracked count was wrong. But that would be tacked on, I just mention it here as it's definitely not worth its own thread, seeing as its not a real issue.
 
Back
Top