soolar / consume.ash Goto Github PK
View Code? Open in Web Editor NEWCapitalistic Optimal Noms Script (Ultra Mega Edition): A diet script for kolmafia.
License: MIT License
Capitalistic Optimal Noms Script (Ultra Mega Edition): A diet script for kolmafia.
License: MIT License
CONSUME should allow eating/drinking/chewing things such as jumping horseradish, including considering the buff doubling mayo, and without overbuffing, since overbuffed turns could go to waste on pvp fights.
Drunki-bears are the only thing that come to mind, but still.
> get valueOfAdventure
3400
> CONSUME ORGANS 15 21 14
Your ideal diet: acquire 1 milk of magnesium; acquire 3 Ol' Scratch's salad fork; acquire 7 Frosty's frosty mug; acquire 3 extra-greasy slider; acquire 2 chocolate pasta spoon; acquire 6 beastly paste; acquire 5 octolus oculus; acquire 7 perfect cosmopolitan; acquire 1 Gnollish sangria; acquire 3 Special Seasoning; checkpoint; cast 2 The Ode to Booze; use milk of magnesium; maximize hp,10cold res,10hot res; drink Gnollish sangria; chew 3 beastly paste; chew 2 octolus oculus; eat 3 Ol' Scratch's salad fork; eat 3 extra-greasy slider; drink 7 Frosty's frosty mug; drink 7 perfect cosmopolitan; chew 3 beastly paste; chew 3 octolus oculus; use 2 chocolate pasta spoon; familiar Hobo Monkey; outfit checkpoint;
This should cost roughly 352,994 meat
Adventure yield should be roughly 394-442
That's an average profit of 1,111,356
Including adventures you already have, you should profit 1,651,956 today
In total, you're filling up 15 fullness, 22 liver, and 29 spleen
Note that 'chew 3 beastly paste; chew 3 octolus oculus' will give 15 spleen; the diet ends with that line so it's guaranteed to result in 15 spleen used total at the end. Perhaps I'm misinterpreting how the limit is meant to work? It appears to be a limit applied prior to spleen cleaning.
Starting today, CONSUME has been trying to chew Premium Canned Air for absolutely ridiculous negative profits. Not sure what happened and how to fix.
> set valueOfAdventure=2000
> set CONSUME.BASEMEAT=0
> CONSUME SIM
Your ideal diet: acquire 3 Breathetastic™ Premium Canned Air; chew 3 Breathetastic™ Premium Canned Air;
This should cost roughly 2.249.997 meat
Adventure yield should be roughly 60-75
That's an average profit of -2.114.997
Including adventures you already have, you should profit -2.114.997 today
In total, you're filling up 0 fullness, 0 liver, and 15 spleen
Aside from that, thanks for the great script! Love it.
> get _docClocksThymeCocktailDrunk
true
> CONSUME VALUE 15000 ALL SIM
Your ideal diet: acquire 1 Doc Clock's thyme cocktail; acquire 1 Special Seasoning; closet put 1 Special Seasoning; acquire 1 plain calzone; acquire 1 whet stone; drink Doc Clock's thyme cocktail; closet take Special Seasoning; use whet stone; eat plain calzone;
This should cost roughly 278,553 meat
Adventure yield should be roughly 49-54
That's an average profit of 816,333
Including adventures you already have, you should profit 12,561,333 today
In total, you're filling up 2 fullness, 4 liver, and 0 spleen
Possibly consider having the "nightcap" flag, disallow CONSUME choosing spice melange as part of nightcap diet. Or if now that, then add a new flag that we can call that does not allow CONSUME to choose a spice melange.
These have some of the best per-fullness adventure gain, but it seems they're not being considered atm, presumably because they're once-per-ascension.
If nothing else, there should be an ASCEND flag akin to garbo that includes items like this.
They're not tradeable, so using them will have to just be a preference, rather than based on mall value.
Main targets:
The script won't run the error i'm getting is
Calling undefined user function: get_fites (CONSUME.ash, line 262) at evaluate_consumables (CONSUME.ash:262) at main (CONSUME.ash:1262
idk why its doing i'm trying this on latest build of kol witich is r20585.
Specifically the fullness -> drunkenness one, and the buff extender (once meat buffs are considered)
CONSUME script accounts for the 5 extra adventures even if the diet actions don't end up including milk of magnesium (eg. when you're eating on an extreme budget).
This leads to incorrect estimates of adventure gain. You can test it out by hand crafting a diet like so:
record Diet
actions => aggregate DietAction [int]
0 => record DietAction
it => sausage without a cause
sk => none
organ => 1
space => 10
tools => aggregate item [int]
mayo => none
cleanings => aggregate OrganCleaning [int]
shrug => none
1 => record DietAction
it => fusilli marrownarrow
sk => none
organ => 1
space => 5
tools => aggregate item [int]
mayo => none
cleanings => aggregate OrganCleaning [int]
shrug => none
counts => aggregate int [item]
fusilli marrownarrow => 1
sausage without a cause => 1
lastmayo => none
nightcap => false
When you print this diet out, it will say "Adventure yield should be roughly 71-74" whereas it should say "Adventure yield should be roughly 66-69".
The 5 extra adventures should only be included if the diet contains a 'milk of magnesium' action, not simply because the Diet contains DietActions of the stomach.
Probably also affects 'potion of the field gar' handling as well.
Maybe some day
When performing a command like CONSUME SIM VALUE 5400 NIGHTCAP
it successfully generates a set of instructions which will perform the correct overdrinking and nightcapping based on the presumed value per adventure. It takes advantage of having the Stooper familiar by switching to it and drinking a 1-drunkenness drink before drinking the nightcap. At the end though, it does not switch back to whatever familiar was being used. This is not necessarily a problem, but it introduces the need to manually switch back to my previous familiar (In this case a lefty holding a +adv off-hand item).
Currently, if the best spleen consumable is, for example, a size 10 blood-drive sticker, the diet will have one of those followed by the remaining 5 or however much spleen space filled up. Then it will clean out organs with sliders and pickle juice (if your valueOfAdventure is appropriate for that) and do the same.
It would be better to chew a blood-drive sticker, then eat two sliders, then chew another, then eat a slider and drink a pickle juice, then chew another, then drink two more pickle juice, chew another, and so on, only using non-blood-drive sticker spleenies once there's absolutely no other option.
When breaking the prism in shrunken path, 2 fullness becomes 20. This is commonly done to maximize turngen by consuming EPIC food such as * of Legend prior to prism break.
CONSUME casts Aug. 16th: Roller Coaster Day! to reduce fullness to 19, but it does nothing but waste an august spell
Expected experience:
Aug. 16th: Roller Coaster Day! is not cast if fullness is already greater than max.
That's pretty much it. Happened the first time I ran it :-)
Just another possible enhancement
Set up a variable for valueOfPvpFight or something along those lines, and consider such items. Special mention goes to shot of kardashian gin.
Prevent buying an item if the price goes up after the first purchase, and recalculate with the new price.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.