Okay, based on the ingredient-flaw logic issue, decided that I'd rather have the stew get properly enqueued and have me not be absolutely certain why rather than having this ingredient-bug which is weird. So... we now have this:
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
Note that the first stew has the 'normal' price, rather than this, which it would do otherwise:
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:52748
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate salad lev:0 gain:3.0 adv:4.5 musc:7.5 myst:25.0 mox:7.5 meat:10 own:1 value:17151
Note there that the salad ended up being used because it was larger, but had a spurious 17k value based on how nifty it would be if it were used for TMIM. I might figure out some nice way to... ha.
Figured I'd spend the time to rehaul how it does its checking for breakfast and so forth. This now gives us the following:
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
Proper value calculation on the initial stew including display so you can tell later.
Some other tweaks along the way... instead of the "foreach it in aggregate { aggregate[it] = 0; }" that I had been doing, just doing clear(aggregate); because I don't really care to keep a bunch of zeroed out entries. Doesn't help. Some other slight touches along the way and this version is actually .8kb smaller and runs faster. Win/win.
Edit: And hopefully it's obvious, but the way the attached version runs is the third quote, with proper display and choice-logic.
Edit2: Partial size-savings lost. TMIM display improved. Prior recap
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.9).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Coinmasters NPCs. Per-item budget cap is 12500.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
drink: At 0, consuming to 19 with 20000 meat.
1: acceptable vodka lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
2: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
3: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
4: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
spleen: At 0, consuming to 15 with 20000 meat.
Finished.
Spent 0 meat with additional expenditures of 0 meat. Gained Fullness: 14. Inebriety: 12. Spleen: 0.
Adventures: 69. Muscle: 7. Moxie: 117. Mysticality: 215.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Currently attached recap:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.9).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Coinmasters NPCs. Per-item budget cap is 12500.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:42.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
drink: At 0, consuming to 19 with 20000 meat.
1: acceptable vodka lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
2: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
3: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
4: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
spleen: At 0, consuming to 15 with 20000 meat.
Finished.
Spent 0 meat with additional expenditures of 0 meat. Gained Fullness: 14. Inebriety: 12. Spleen: 0.
Adventures: 87. Muscle: 7. Moxie: 117. Mysticality: 215.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Note the adventure difference on both the individual item and the total.
Edit3: All size-savings lost and then a bit. However:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.9).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Coinmasters NPCs. Per-item budget cap is 12500.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:42.0 musc:0.0 myst:135.0 mox:75.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
drink: At 0, consuming to 19 with 20000 meat.
1: acceptable vodka lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
2: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
3: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
4: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
spleen: At 0, consuming to 15 with 20000 meat.
Finished.
Spent 0 meat with additional expenditures of 0 meat. Gained Fullness: 14. Inebriety: 12. Spleen: 0.
Adventures: 87. Muscle: 7. Moxie: 167. Mysticality: 305.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
boosted stats on TMIM are displayed now too.
Think this makes TMIM handling complete now.
Edit4: Quick comparison.
Simulating:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.9).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Coinmasters NPCs. Per-item budget cap is 12500.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:42.0 musc:0.0 myst:135.0 mox:75.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
drink: At 0, consuming to 19 with 20000 meat.
1: acceptable vodka lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
2: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
3: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
4: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
5: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
6: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
7: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
spleen: At 0, consuming to 15 with 20000 meat.
Finished.
Spent 0 meat with additional expenditures of 0 meat. Gained Fullness: 14. Inebriety: 18. Spleen: 0.
Adventures: 93. Muscle: 7. Moxie: 188. Mysticality: 350.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Real:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.9).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Coinmasters NPCs. Per-item budget cap is 12500.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1250 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
food: At 0, consuming to 15 with 20000 meat.
1: sublime stew lev:0 gain:6.0 adv:42.0 musc:0.0 myst:135.0 mox:75.0 meat:10 own:1 value:8791.333333333334
2: sublime stew lev:0 gain:6.0 adv:24.0 musc:0.0 myst:45.0 mox:25.0 meat:10 own:1 value:5081
3: consummate corn chips lev:0 gain:2.0 adv:3.0 musc:7.5 myst:25.0 mox:7.5 meat:10 own:0 value:2010
drink: At 0, consuming to 19 with 20000 meat.
1: acceptable vodka lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
2: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
3: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
4: adequate rum lev:0 gain:3.0 adv:4.5 musc:0.0 myst:25.0 mox:15.0 meat:10 own:0 value:1965
5: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
6: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
7: mediocre lager lev:0 gain:2.0 adv:2.0 musc:0.0 myst:15.0 mox:7.5 meat:10 own:13 value:1327
spleen: At 0, consuming to 15 with 20000 meat.
Finished.
Spent 0 meat. Gained Fullness: 14. Inebriety: 18. Spleen: 0.
Adventures: 92. Muscle: 6. Moxie: 197. Mysticality: 339.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).