EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

I have become incredibly lazy. I love being able to ask a question and get some answers even when I am quite capable of spending time in the code and answering it myself.

So I am running the version in 1420. Nothing else has changed, especially EatDrink parameters that I set. I find it now likes lasagna regardless of the calendar and coffee pixie sticks. This is not necessarily a problem since I also think I am getting about 20 more adventures than with the previous diet. So, is this because there was a problem with the way these items were previously handled that has been fixed, or should I start gathering data because recent changes might have made them inappropriately attractive? If I weren't getting more adventures, I'd just assume the latter but since I am, I figure I will just ask.

Thanks.
 
Hehe.

Okay, the lasagna thing is that it now uses the potion of the field gar for +5 adventures, min/max, per lasagna. That makes lasagna awesome. It still considers whether or not this is fiscally sound.

The coffee pixie sticks thing is that the old coinmaster check would look if you had the tokens already in your inventory and not try to purchase them otherwise. So the coffee pixie sticks would only be picked as the best spleener if you already had the game grid tickets... not just if you could buy them from the mall. Bug. That got fixed above as well, so now it considers coinmaster items if you can ever acquire the item, not just if you've got it prepped and ready.

One more problem that got fixed... overdrinkers were considered without ode, but the size of the drink does matter in terms of total adventures. That means that the bucket wasn't being considered as valuable as it should have been, since it provides a fairly steady 28 or so adventures, better than the 24 from a tux drink, though not as good as the 30 from a TPS drink, but... It means that for the majority of ED users, they should be getting several more adventures, especially in aftercore.

One note regarding the lasagna thing... mafia currently has its time detection for the Thursday's Ruby and lasagna bugged. Once that gets fixed in mafia, ED will automagically detect Mondays correctly, but for now, it might be confused as to whether or not lasagna is still great on Mondays, and especially Sunday nights, since mafia will block you from being able to take full advantage of lasagnas just after the Sunday-night rollover. There's discussion in the bug threads regarding this, and eventually I assume someone will submit a patch that changes those two GMT-3.5 times to GMT-7, but since actual developers are talking about this, they don't need me to submit a patch that would take longer to apply then the manual changes would. It's just a matter of them testing it, I'm assuming. :) Don't trust the wiki... heh.
 
Last edited:
The attached is the "mafia uses negative numbers for certain objects autosell prices which screws up the autosell_price*3 calculation for daily_special items" version of EatDrink. :)

Before:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.7).
Consuming up to 30 food, 0 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. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 10, consuming to 30 with 16079 meat.
0: Song of Glorious Lunch price: 0 value: 25000
1: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
2: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
3: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
4: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
5: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
6: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
7: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
8: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
9: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
10: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
11: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
12: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
13: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
14: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
15: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
16: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
17: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
18: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
19: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
20: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:-465 own:0 value:4966
spleen: At 0, consuming to 15 with 19840 meat.
Finished.
Spent -9140 meat with additional expenditures of 0 meat. Gained Fullness: 20. Inebriety: 0. Spleen: 0.
Adventures: 70. Muscle: 180. Moxie: 180. Mysticality: 180.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Note that I gained 9140 meat. This is nice.
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.7).
Consuming up to 30 food, 0 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. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 10, consuming to 30 with 16079 meat.
0: Song of Glorious Lunch price: 0 value: 25000
1: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
2: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
3: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
4: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
5: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
6: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
7: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
8: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
9: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
10: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
11: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
12: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
13: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
14: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
15: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
16: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
17: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
18: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
19: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
20: laser-broiled pear lev:1 gain:1.0 adv:3.5 musc:9.0 myst:9.0 mox:9.0 meat:465 own:0 value:4036
spleen: At 0, consuming to 15 with 6619 meat.
Finished.
Spent 9460 meat with additional expenditures of 0 meat. Gained Fullness: 20. Inebriety: 0. Spleen: 0.
Adventures: 70. Muscle: 180. Moxie: 180. Mysticality: 180.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
Note that I spent 9460 meat. This is accurate. :)

Basically, we just put the autosell_price into an abs() block.
 

Attachments

Theraze, thanks for all the fixes :)

I wanted to test it together with the latest mafia fix, and got the following results:

Before midnight in Arizona:

Consuming up to 15 food, 14 booze, and 20 spleen and then finishing off with the stiffest drink we can find.
Considering food from inventory Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 250000.0.
Retrieval cap is 20000. Price will be a factor if you own it already.
An adventure has the value of 1200 meat. Moxie subpoint is 0.0. Nonprime stat subpoint is 0.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 3077493 meat.
0: milk of magnesium price: 975 value: 17025
1: Moon Pie lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
2: Moon Pie lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
3: Moon Pie lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
drink: At 0, consuming to 14 with 3046518 meat.
0: Ode to Booze price: 0 value: 16800
1: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
2: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
3: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:5749 own:0 value:4025
4: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:5749 own:0 value:4025
spleen: At 0, consuming to 20 with 3015020 meat.
1: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
2: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
3: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
4: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
5: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
At drunkenness of 14. Overdrinking with 3000670 meat.
1: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:-2 value:32000
choc: Checking non-filling crimbo chocolates - all 3 kinds
Best find was chocolate disco ball with a value of -895. That's no good, so not consuming and moving on.
Finished.
Spent 75848 meat with additional expenditures of 975 meat. Gained Fullness: 15. Inebriety: 19. Spleen: 20.
Adventures: 274. Muscle: 180. Moxie: 180. Mysticality: 224.

After midnight in Arizona:

Consuming up to 15 food, 14 booze, and 20 spleen and then finishing off with the stiffest drink we can find.
Considering food from inventory Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 250000.0.
Retrieval cap is 20000. Price will be a factor if you own it already.
An adventure has the value of 1200 meat. Moxie subpoint is 0.0. Nonprime stat subpoint is 0.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 15 with 3077393 meat.
0: milk of magnesium price: 975 value: 17025
0: potion of the field gar price: 9100 value: 20900
1: long pork lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:50.5 mox:0.0 meat:4699 own:0 value:6033
2: long pork lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:50.5 mox:0.0 meat:4699 own:0 value:6033
3: long pork lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:50.5 mox:0.0 meat:4699 own:0 value:6033
4: long pork lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:50.5 mox:0.0 meat:4699 own:0 value:6033
5: long pork lasagna lev:10 gain:3.0 adv:19.0 musc:0.0 myst:50.5 mox:0.0 meat:4699 own:0 value:6033
drink: At 0, consuming to 14 with 3043823 meat.
0: Ode to Booze price: 0 value: 16800
1: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
2: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:0 value:5200
3: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:5749 own:0 value:4025
4: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:5749 own:0 value:4025
spleen: At 0, consuming to 20 with 3012325 meat.
1: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
2: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
3: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
4: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
5: coffee pixie stick lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:2870 own:0 value:1532
At drunkenness of 14. Overdrinking with 2997975 meat.
1: Wrecked Generator lev:5 gain:5.0 adv:30.0 musc:25.0 myst:25.0 mox:25.0 meat:10000 own:-2 value:32000
choc: Checking non-filling crimbo chocolates - all 3 kinds
Best find was chocolate disco ball with a value of -895. That's no good, so not consuming and moving on.
Finished.
Spent 69343 meat with additional expenditures of 10075 meat. Gained Fullness: 15. Inebriety: 19. Spleen: 20.
Adventures: 279. Muscle: 105. Moxie: 105. Mysticality: 399.

So first of all, the lasagna was considered correctly, with timezone and all :)

However, it offered Moon Pies (on Monday) and Wrecked Generators. There are a couple of issues with that:
1. I have no access to the store that sells them, as I didn't do the required quest.
2. Even if I did, access depends on the Transpondent effect, which costs 5k -- I think this cost wasn't considered.
3. They cost 100 lunar isotopes each, and those go for 240 in the mall -- making the cost of each 24k and not 10k.
I think the problem here is the couple of limited sales for 100 meat, but they aren't nearly enough.
 
3. They cost 100 lunar isotopes each, and those go for 240 in the mall -- making the cost of each 24k and not 10k.
I think the problem here is the couple of limited sales for 100 meat, but they aren't nearly enough.

I doubt a script can do much about that when there are 6 available at 100 meat.
 
Yep, all we can do is trust mafia about mall prices... but if the price goes up above our buy limit, it recalculates. In this case, it would have tried to buy 3 at (by default) 12,500 meat or less each, and when it failed to buy a single one, would have eliminated them from the list. Then it would have picked something else with a slightly lower value, but that's actually possible.

The only mall price mafia gives us is the fifth cheapest, so if there's limited numbers selling at 100 meat, that screws up the item count. Which is why we temporarily set your autoBuyPriceLimit to not blow WAY more meat than expected.
 
Oh, I see, so it shouldn't be a problem.
What about the actual access to the store, will it fail and try something else as well?

Edit: as the price of 24,000 meat for each consists of 100 lunar isotopes, will the auto buy limit also work?
Since each lunar isotope is 240, which is below the limit of 12,500 meat (in this case)?
 
Last edited:
The price is 100, not 240. Because that's how much the 5th cheapest is. So 100*100=10k, not 24k. Which is below the limit. As lost and myself both said. :)

I can keep repeating myself, but basically it's a limitation of mafia not having a speculative retrieve_item that will return how much total meat you're going to spend to get that. The problem for mafia is, what should it return... the total meat spent, whether or not it worked, how many items were retrieved if you were trying for multiple... it presents an interesting question. :) Especially when you throw in, how do you keep it from being used as a mallbot, since if you're retrieving a single item that you just purchase from the mall, that should be the same as a mall-bot-able cheapest. So it's unlikely we'll ever get the speculative RI, even though it would eliminate questions like this...
 
I'm just trying to understand how many lunar isotopes, if any, it will buy in this case before failing and eliminating it from the list.

Other than that, there's only the question of considering the Transpondent effect price.

I appreciate your patience :)
 
With r10881, Mafia knows whether the Generator quest has been completed. The Lunar Lunch-o-Mat won't be accessible if not:

Code:
> get questF04Elves

finished

> ash $coinmaster[ Lunar Lunch-o-Mat ].is_accessible()

Returned: true

> set questF04Elves =

questF04Elves =>

> ash $coinmaster[ Lunar Lunch-o-Mat ].is_accessible()

Returned: false

> ash $coinmaster[ Lunar Lunch-o-Mat ].inaccessible_reason()

Returned: You need to repair the Elves' Shield Generator to shop at the Lunar Lunch-o-Mat.

EDIT:

if inaccessible_reason() is "You need a transporter transponder to go there.", then the quest has been completed, but the player doesn't have any transponder in his inventory.
 
Okay, this SHOULD work now. Put is_accessible() onto all the coinmaster token checks. :)

Edit: Oops. && && isn't valid code. Silly...
 

Attachments

Last edited:
Happy that it's apparently working for you! Let me know if there's anything else that's needing to be fixed up. :)
 
And... today we have the "Non-tradeables can be daily specials too!" release of EatDrink for your consumption pleasure. This version should eat the corned beef reubens from the restaurant instead of bean burritos or whatever other subpar food you might have available.

Before change:
> ash import <eatdrink.ash> effective_price($item[reuben], false)

Returned: 999999999
After change:
> ash import <eatdrink.ash> effective_price($item[reuben], false)

Returned: 15

Edit: Which has now been replaced with the "Some people might want their simulations of Boriscore food to be accurate... picky picky people." release of EatDrink. :) This one will correctly simulate the extra adventures from Gloriously Lunching. If any of the 9 people that grabbed the daily non-tradeables version want to simulate more accurately, it's attached.
 

Attachments

Last edited:
I'm not sure why eatdrink thinks that it's okay to use a Wrecked Generator when I set my valueOfAdventure to "750". considerCostWhenOwned is set to "true".
 
Well, if you feel like giving us the quote about its consumption, similar to in posts 1423/1424, that would help a lot. On a quick check, you're looking at an item worth 30 adventures on average that takes 100 tokens worth 100 meat each, so 10k meat to acquire. It's worth 22.5k value for the adventures, plus whatever the stats are worth. That means you've got 12.5k value left, divided by 5. So a total of 2.5k meat for the adventures... not too shabby.
 
I'm not sure why eatdrink thinks that it's okay to use a Wrecked Generator when I set my valueOfAdventure to "750". considerCostWhenOwned is set to "true".
It would help if you explained *why* you think it's not okay for EatDrink to use a Wrecked Generator.

Drinking a Wrecked Generator will net you (adv*VoA-cost) meat, where adv is 30 for a Wrecked Generator, VoA = value of adventure (750 for you), and cost is 100*100 meat here. Divide this by the amount of drunkness used to get a basis to which you can compare other spleen items.

Wrecked Generator profit: 30*750-10000 = 12500 meat

Drinking a Wrecked Generator will net you 12500 meat, or 12500/5 = 2500 meat per drunkness. If you think there is a better drink, do the same meat/drunkness calculation and see if you get more than 2500 meat.

Maybe 10k meat was too much for your budget? In that case you should limit the amount of meat EatDrink can spend at each step (eating, drinking and spleening are each steps). Simply do:
Code:
zlib eatdrink_stepMeat = 10000
to make sure the script doesn't spend more than 10k total on drinking (and eating and spleening).
 
Realized that I'd seen code about this earlier, and thought I might have broken it... turns out that the minimum average/quality code killed the steel organ consumption code. Wish I'd thought about it yesterday BEFORE I screwed up and filled up for the second rollover in a row after having the steel lasagna in inventory. Oh well. Attached EatDrink should function like this simulation:
Starting EatDrink.ash (version 3.1.7).
Consuming up to 25 food, 4 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. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
food: At 0, consuming to 25 with 14054 meat.
0: Song of Glorious Lunch price: 0 value: 6250
1: steel lasagna lev:5 gain:5.0 adv:0.0 musc:0.0 myst:0.0 mox:0.0 meat:2 own:1 value:1000000000
food: At 5, consuming to 25 with 13894 meat.
1: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
2: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
3: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
4: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
5: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
spleen: At 0, consuming to 15 with 13894 meat.
Finished.
Spent 480 meat with additional expenditures of 0 meat. Gained Fullness: 25. Inebriety: 0. Spleen: 0.
Adventures: 67. Muscle: 0. Moxie: 0. Mysticality: 55.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).

Edit: Ha! I was going to forget it... again. Positive side though? Script works, even if my memory doesn't in the morning. :) My log from after eating 2 fortune cookies (with glorious lunch) and the 3 reubens:
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.1.7).
Consuming up to 25 food, 4 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. Muscle subpoint is 10.0. Nonprime stat subpoint is 2.0.
food: At 11, consuming to 25 with 14630 meat.
0: Song of Glorious Lunch price: 0 value: 6250
1: steel lasagna lev:5 gain:5.0 adv:0.0 musc:0.0 myst:0.0 mox:0.0 meat:2 own:1 value:1000000000
food: At 16, consuming to 25 with 14630 meat.
1: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
2: lihc eye pie lev:2 gain:4.0 adv:8.5 musc:0.0 myst:11.5 mox:0.0 meat:130 own:1 value:2629
drink: At 0, consuming to 4 with 14630 meat.
1: snifter of thoroughly aged brandy lev:1 gain:2.0 adv:4.0 musc:0.0 myst:9.0 mox:0.0 meat:100 own:0 value:2459
2: overpriced "imported" beer lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:0.0 meat:100 own:0 value:2400
3: overpriced "imported" beer lev:1 gain:1.0 adv:2.0 musc:0.0 myst:0.0 mox:0.0 meat:100 own:0 value:2400
spleen: At 0, consuming to 15 with 14430 meat.
Finished.
Spent 200 meat. Gained Fullness: 13. Inebriety: 4. Spleen: 0.
Adventures: 32. Muscle: 0. Moxie: 0. Mysticality: 30.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
This displays another 'bug'... well, not a bug, but people might think it is. Eating the steel organs increases their total size by 5, which isn't reflected, because it's set when you call EatDrink. Should the script hijack your values and increase your max by 5 if it consumes one, or should it respect the player's wishes and only consume up to the number they told it to?
 

Attachments

Last edited:
Should the script hijack your values and increase your max by 5 if it consumes one, or should it respect the player's wishes and only consume up to the number they told it to?

I'm inclined to say that the script should do what it's told and only eat up to what the user sets the limit as. Non-explicit behavior can be disorienting: on one of my recent runs, I learned that one of my scripts automatically turns in the subquests for steel as you can. (I think it was bumRATS, but I may be mistaken.) I spent a few moments wondering what was going on before checking the logs in more detail to figure out what happened.

In this case, it's less destructive as well-- while it might be annoying to have to run the script again, you can't un-eat. Alternatively, how troublesome would it be to set an option for it, so people who prefer it one way or the other can set it how they like?
 
Back
Top