#### Veracity

##### Developer

Install it like this.

Code:

`svn checkout https://svn.code.sf.net/p/veracity0/code/vcon/`

It has a "main" function which will look up every food or booze and decide which are the most "profitable" for every size.

It assumes that an adventure will yield XXX amount of Meat. If you've been running VeracityMeatFarm, it will use the statistics that script collects. Otherwise, it uses valueOfAdventure.

First run in a session, it will do a mess-of-mall-searches.

Subsequent runs, mall_price() is cached by KoLmafia, so it's a lot faster.

Here is a sample (second) run:

Code:

```
[color=green]> vcon[/color]
Calculating expected profit for consumables, given Meat Per Adventure = 3883
ice-cold Sir Schlitz (100 cost; 3783 expected_profit) is better than none (0)
bloody beer (120 cost; 7646 expected_profit) is better than ice-cold Sir Schlitz (3783)
shot of orange schnapps (110 cost; 7656 expected_profit) is better than bloody beer (7646)
can of Swiller (170 cost; 11479 expected_profit) is better than shot of orange schnapps (7656)
distilled fortified wine (3950 cost; 17406 expected_profit) is better than can of Swiller (11479)
pumpkin beer (3000 cost; 18356 expected_profit) is better than distilled fortified wine (17406)
Ambitious Turkey (3990 cost; 19308 expected_profit) is better than pumpkin beer (18356)
iced plum wine (4555 cost; 20684 expected_profit) is better than Ambitious Turkey (19308)
reverse Tantalus (1220 cost; 22078 expected_profit) is better than iced plum wine (20684)
elemental caipiroska (828 cost; 22470 expected_profit) is better than reverse Tantalus (22078)
bottle of popskull (130 cost; 11519 expected_profit) is better than none (0)
bottle of Pinot Renoir (700 cost; 22598 expected_profit) is better than bottle of popskull (11519)
dusty bottle of Zinfandel (100 cost; 23198 expected_profit) is better than bottle of Pinot Renoir (22598)
dusty bottle of Marsala (120 cost; 27061 expected_profit) is better than dusty bottle of Zinfandel (23198)
Hodgman's blanket (19325 cost; 38920 expected_profit) is better than dusty bottle of Marsala (27061)
Vodka Matryoshka (2385 cost; 42269 expected_profit) is better than Hodgman's blanket (38920)
Tequiz Navidad (2199 cost; 42455 expected_profit) is better than Vodka Matryoshka (42269)
ice-cold fotie (100 cost; 11549 expected_profit) is better than none (0)
salty dog (245 cost; 21111 expected_profit) is better than ice-cold fotie (11549)
bloody mary (130 cost; 21226 expected_profit) is better than salty dog (21111)
extra-spicy bloody mary (272 cost; 28850 expected_profit) is better than bloody mary (21226)
white lightning (100 cost; 29022 expected_profit) is better than extra-spicy bloody mary (28850)
icy mushroom wine (13999 cost; 32597 expected_profit) is better than white lightning (29022)
stinky mushroom wine (10999 cost; 35597 expected_profit) is better than icy mushroom wine (32597)
pointy mushroom wine (1599 cost; 44997 expected_profit) is better than stinky mushroom wine (35597)
knob mushroom wine (1500 cost; 45096 expected_profit) is better than pointy mushroom wine (44997)
gloomy mushroom wine (6500 cost; 49803 expected_profit) is better than knob mushroom wine (45096)
crystal skeleton vodka (7850 cost; 54278 expected_profit) is better than gloomy mushroom wine (49803)
perfect cosmopolitan (3200 cost; 68635 expected_profit) is better than crystal skeleton vodka (54278)
roll in the hay (230 cost; 46366 expected_profit) is better than none (0)
Divine (2225 cost; 59903 expected_profit) is better than roll in the hay (46366)
Gordon Bennett (1100 cost; 61028 expected_profit) is better than Divine (59903)
tangarita (990 cost; 61138 expected_profit) is better than Gordon Bennett (61028)
Ice Island Long Tea (6700 cost; 70960 expected_profit) is better than tangarita (61138)
hacked gibson (6070 cost; 75473 expected_profit) is better than Ice Island Long Tea (70960)
Ye Olde Meade (184 cost; 58061 expected_profit) is better than none (0)
mulled berry wine (4801 cost; 72859 expected_profit) is better than Ye Olde Meade (58061)
ice stein (14890 cost; 31706 expected_profit) is better than none (0)
corpse on the beach (9200 cost; 72343 expected_profit) is better than ice stein (31706)
corpsetini (9090 cost; 72453 expected_profit) is better than corpse on the beach (72343)
Psychotic Train wine (1800 cost; 73918 expected_profit) is better than corpsetini (72453)
Bowl of Scorpions (450 cost; 20906 expected_profit) is better than none (0)
bucket of wine (9500 cost; 60394 expected_profit) is better than none (0)
hot buttered roll (100 cost; 3783 expected_profit) is better than none (0)
fortune cookie (38 cost; 3845 expected_profit) is better than hot buttered roll (3783)
chorizo taco (104 cost; 7662 expected_profit) is better than fortune cookie (3845)
asparagus stir-fry (689 cost; 10960 expected_profit) is better than chorizo taco (7662)
olive stir-fry (359 cost; 11290 expected_profit) is better than asparagus stir-fry (10960)
tofu stir-fry (210 cost; 11439 expected_profit) is better than olive stir-fry (11290)
gingerbread bugbear (100 cost; 11549 expected_profit) is better than tofu stir-fry (11439)
tasty tart (4585 cost; 16771 expected_profit) is better than gingerbread bugbear (11549)
Knob pasty (3474 cost; 17882 expected_profit) is better than tasty tart (16771)
snow crab (4975 cost; 18323 expected_profit) is better than Knob pasty (17882)
meteoreo (6370 cost; 18869 expected_profit) is better than snow crab (18323)
bowl of cottage cheese (100 cost; 7666 expected_profit) is better than none (0)
ghuol-ear kabob (104 cost; 13486 expected_profit) is better than bowl of cottage cheese (7666)
rat appendix kabob (102 cost; 13488 expected_profit) is better than ghuol-ear kabob (13486)
bat wing kabob (100 cost; 13490 expected_profit) is better than rat appendix kabob (13488)
White Citadel burger (174 cost; 19241 expected_profit) is better than bat wing kabob (13490)
Knob stir-fry (999 cost; 20357 expected_profit) is better than White Citadel burger (19241)
Knoll stir-fry (285 cost; 21071 expected_profit) is better than Knob stir-fry (20357)
pr0n stir-fry (800 cost; 24439 expected_profit) is better than Knoll stir-fry (21071)
tofurkey gravy (799 cost; 24440 expected_profit) is better than pr0n stir-fry (24439)
bat-shaped Crimboween cookie (3000 cost; 31947 expected_profit) is better than tofurkey gravy (24440)
blob-shaped Crimbo cookie (2400 cost; 32547 expected_profit) is better than bat-shaped Crimboween cookie (31947)
skeleton quiche (6998 cost; 35715 expected_profit) is better than blob-shaped Crimbo cookie (32547)
This Charming Flan (3745 cost; 38968 expected_profit) is better than skeleton quiche (35715)
bowl of maggots (3260 cost; 39453 expected_profit) is better than This Charming Flan (38968)
spicy noodles (199 cost; 34748 expected_profit) is better than none (0)
insanely spicy bean burrito (300 cost; 40471 expected_profit) is better than spicy noodles (34748)
insanely spicy enchanted bean burrito (690 cost; 43964 expected_profit) is better than insanely spicy bean burrito (40471)
can-shaped gelatinous cranberry sauce (1793 cost; 48686 expected_profit) is better than insanely spicy enchanted bean burrito (43964)
nutty organic salad (2400 cost; 50020 expected_profit) is better than can-shaped gelatinous cranberry sauce (48686)
super ka-bob (1900 cost; 50520 expected_profit) is better than nutty organic salad (50020)
pumpkin pie (15300 cost; 50711 expected_profit) is better than super ka-bob (50520)
ultrafondue (1500 cost; 54803 expected_profit) is better than pumpkin pie (50711)
whole roasted chicken (2800 cost; 55445 expected_profit) is better than ultrafondue (54803)
lihc eye pie (321 cost; 32684 expected_profit) is better than none (0)
Hell broth (1906 cost; 38865 expected_profit) is better than lihc eye pie (32684)
Boris's key lime pie (18999 cost; 39246 expected_profit) is better than Hell broth (38865)
Jarlsberg's key lime pie (16960 cost; 41285 expected_profit) is better than Boris's key lime pie (39246)
pr0n m4nic0tti (130 cost; 42583 expected_profit) is better than Jarlsberg's key lime pie (41285)
Hell ramen (2700 cost; 45837 expected_profit) is better than pr0n m4nic0tti (42583)
boring spaghetti (425 cost; 46171 expected_profit) is better than Hell ramen (45837)
spectral pickle (5998 cost; 83311 expected_profit) is better than boring spaghetti (46171)
fettucini Inconnu (1250 cost; 70585 expected_profit) is better than none (0)
hot hi mein (4546 cost; 94470 expected_profit) is better than fettucini Inconnu (70585)
stinky hi mein (4453 cost; 94563 expected_profit) is better than hot hi mein (94470)
spaghetti with Skullheads (5999 cost; 89134 expected_profit) is better than none (0)
gnocchetti di Nietzsche (1233 cost; 93900 expected_profit) is better than spaghetti with Skullheads (89134)
bowl of fishysoisse (4475 cost; 104249 expected_profit) is better than gnocchetti di Nietzsche (93900)
fleetwood mac 'n' cheese (985 cost; 117446 expected_profit) is better than bowl of fishysoisse (104249)
penguin focaccia bread (1499 cost; 80044 expected_profit) is better than none (0)
deluxe layer cake (3899 cost; 170836 expected_profit) is better than none (0)
sheet cake (1400 cost; 99558 expected_profit) is better than none (0)
pie man was not meant to eat (1795 cost; 580655 expected_profit) is better than none (0)
Churchill (12340 cost; 7075 expected_profit) is better than none (0)
Gnomish sagngria (2600 cost; 16815 expected_profit) is better than Churchill (7075)
Siberian sunrise (843 cost; 18572 expected_profit) is better than Gnomish sagngria (16815)
Bloody Nora (2600 cost; 20698 expected_profit) is better than Siberian sunrise (18572)
elemental caipiroska (828 cost; 22470 expected_profit) is better than Bloody Nora (20698)
Aye Aye, Captain (1500 cost; 23739 expected_profit) is better than none (0)
Chakra Libre (1150 cost; 24089 expected_profit) is better than Aye Aye, Captain (23739)
Drunken Neurologist (700 cost; 24539 expected_profit) is better than Chakra Libre (24089)
More Humanitini than Humanitini (495 cost; 24744 expected_profit) is better than Drunken Neurologist (24539)
Aura Libre (2999 cost; 30006 expected_profit) is better than More Humanitini than Humanitini (24744)
Crazymaker (2000 cost; 31005 expected_profit) is better than Aura Libre (30006)
Drunken Astrophysicist (1000 cost; 32005 expected_profit) is better than Crazymaker (31005)
Shot of the Living Dead (800 cost; 32205 expected_profit) is better than Drunken Astrophysicist (32005)
perfect cosmopolitan (3200 cost; 68635 expected_profit) is better than none (0)
******Best Food by Size******
food[1] is meteoreo (6370 cost per size) (18869 profit per size)
food[2] is bowl of maggots (1630 cost per size) (19726 profit per size)
food[3] is whole roasted chicken (933 cost per size) (18481 profit per size)
food[4] is spectral pickle (1499 cost per size) (20827 profit per size)
food[5] is stinky hi mein (890 cost per size) (18912 profit per size)
food[6] is fleetwood mac 'n' cheese (164 cost per size) (19574 profit per size)
food[7] is penguin focaccia bread (214 cost per size) (11434 profit per size)
food[10] is deluxe layer cake (389 cost per size) (17083 profit per size)
food[15] is sheet cake (93 cost per size) (6637 profit per size)
food[100] is pie man was not meant to eat (17 cost per size) (5806 profit per size)
******Best Booze by Size******
booze[1] is elemental caipiroska (828 cost per size) (22470 profit per size)
booze[2] is Tequiz Navidad (1099 cost per size) (21227 profit per size)
booze[3] is perfect cosmopolitan (1066 cost per size) (22878 profit per size)
booze[4] is hacked gibson (1517 cost per size) (18868 profit per size)
booze[5] is mulled berry wine (960 cost per size) (14571 profit per size)
booze[6] is Psychotic Train wine (300 cost per size) (12319 profit per size)
booze[8] is Bowl of Scorpions (56 cost per size) (2613 profit per size)
booze[10] is bucket of wine (950 cost per size) (6039 profit per size)
ROBORTENDER[1] is elemental caipiroska (828 cost per size) (22470 profit per size)
MEDIUM[2] is Shot of the Living Dead (400 cost per size) (16102 profit per size)
PERFECT[3] is perfect cosmopolitan (1066 cost per size) (22878 profit per size)
```

For now, it will obey autoBuyPriceLimit.

For now, it will not consider candy, since you may want those for Sweet Synthesis

I envision usage will be something like this:

Code:

```
while (I have fullness left)
look at all foods whose size is l<= my available fullness
eat as many of the "most profitable" food of any size as fullness allows
```