Only managed to get one lime with two zaps, but it's now working like this...
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.3).
Consuming up to 15 food, 19 booze, and 15 spleen
Considering food from inventory Hagnk's NPCs . Per-item budget cap is 12500.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 3000 meat each.
An adventure has the value of 500 meat. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0. Hagnk pulls are limited and their 'cost' is incorporated.
food: At 2, consuming to 15.
1: spaghetti with Skullheads lev:6 gain:6.0 adv:25.0 musc:49.5 myst:0.0 mox:0.0 meat:3300 own:0 value:1615
2: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:0 value:1600
3: Jarlsberg's key lime pie lev:6 gain:4.0 adv:15.0 musc:0.0 myst:30.5 mox:0.0 meat:1255 own:1 value:1576
food: At 13, consuming to 15.
1: handful of walnuts lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:25.0 meat:146 own:3 value:1404
2: handful of walnuts lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:25.0 meat:146 own:3 value:1404
spleen: At 1, consuming to 15.
Best find was none with a value of 0. That's no good, so not consuming and moving on.
Finished.
Spent 80 meat. Gained Fullness: 13. Inebriety: 0. Spleen: 0.
Adventures: 47. Muscle: 74. Moxie: 44. Mysticality: 48.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Repeat sims aren't accurate yet... it was expecting to use the Genalen bottle twice, but at least it's better about actual use now.
I'll repost either when people want to be testing wildly, or when I fix the simulation. I know what the problem is there... it's wiping the used item listing and starting over... but I'm not sure what the best way is of avoiding that, and still allowing for a full consideration of possibilities. Maybe keeping the consumption stack if it's the same iteration and we're simulating.
Edit: For those interested: Guess it's time to add TPS and Key detection to the have_ingredient bit to tell it that it can keep making more and more. Shame... I wanted it to be portable for people who wanted to check ingredients for other things. Ah well. Current problem is that it thinks it can use the limes for each of the pies... it does properly detect one usage per, but fails in the multi-usage side...
Edit2: Horrendously messy in the lines, but here's what we've got:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.3).
Consuming up to 30 food, 0 booze, and 15 spleen
Considering food from inventory Hagnk's NPCs . Per-item budget cap is 12500.0.
Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 3000 meat each.
An adventure has the value of 500 meat. Moxie subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 30.
1: Sneaky Pete's key lime pie lev:6 gain:4.0 adv:15.0 musc:0.0 myst:0.0 mox:30.5 meat:1255 own:1 value:1637
food: At 4, consuming to 30.
1: Sneaky Pete's key lime pie lev:6 gain:4.0 adv:15.0 musc:0.0 myst:0.0 mox:30.5 meat:1255 own:1 value:1637
food: At 8, consuming to 30.
1: Sneaky Pete's key lime pie lev:6 gain:4.0 adv:15.0 musc:0.0 myst:0.0 mox:30.5 meat:1255 own:1 value:1637
food: At 12, consuming to 30.
1: handful of walnuts lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:25.0 meat:146 own:0 value:1604
2: handful of walnuts lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:25.0 meat:146 own:0 value:1604
3: handful of walnuts lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 mox:25.0 meat:146 own:0 value:1604
4: nutty organic salad lev:11 gain:3.0 adv:13.5 musc:0.0 myst:35.5 mox:0.0 meat:2300 own:0 value:1507
5: nutty organic salad lev:11 gain:3.0 adv:13.5 musc:0.0 myst:35.5 mox:0.0 meat:2300 own:0 value:1507
6: nutty organic salad lev:11 gain:3.0 adv:13.5 musc:0.0 myst:35.5 mox:0.0 meat:2300 own:0 value:1507
7: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
8: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
9: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
10: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
11: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
12: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 mox:0.0 meat:170 own:15 value:1420
spleen: At 0, consuming to 15.
Best find was none with a value of 0. That's no good, so not consuming and moving on.
Finished.
Spent 230 meat for a value of 12123 meat. Gained Fullness: 30. Inebriety: 0. Spleen: 0.
Adventures: 112. Muscle: 132. Moxie: 165. Mysticality: 237.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
> inv lime
lime (3)
...and... proper counting. Don't mind the fact that it's trying to go to 30 consumption... I was just trying to validate that it wasn't sneaking a Boris's KLP in there somewhere.
So, the attached version here should properly allow for KLP and TPS, as well as being a bit smarter regarding ingredients and creation in general.
Sidenote - script hasn't changed since 2 hours ago: Recreated the add_ingredients function to make it more properly consider the effects of ingredients. With this function in its current form, it actually started realizing that it needs to consider the effects of the added item properly. Which is odd, as it was supposed to consider it already... Anyways, so it goes.