loathers / garbage-collector

Script for farming meat (and garbage) in 2003 web RPG Kingdom of Loathing
25 stars 57 forks source link

[BUG] diet tabulation issue exposed due to aberrantly high yeast prices #1658

Open docrostov opened 1 year ago

docrostov commented 1 year ago

Describe the bug currently yeast of boris costs 8k in the mall. jumping horseradish costs 6.5k. to tabulate value:

NET_PROFIT = adv * voa + 1 * meat_per_fite * eff_dur - consumable_price
YEAST_PROFIT = 7 * 7250+ 1 * 250 * 30 - 8000 * 2 = 42,250
HORSERADISH PROFIT = 5.5 * 7250+ 1 * 250 * 50 - 6500 = 45,875

garbo should theoretically be using both, for embezzler/overlap turns, but for barf turns alone garbo should be snagging an extra horseradish. it isn't.

To Reproduce

  1. run garbo, but not nobarf
  2. check your diet
  3. check what it is using for barf turn gap-filler
  4. it is yeasty bread, not horseradish

Expected behavior given current prices, horseradish is clearly better until your VoA crests 9,000 due to the buff inequality and the wildly high price differential between the two. as far as i can tell, the core issue is that garbo is counting the price of special seasoning as a "must use" for horseradish and not counting it at all for boris bread. my guess is that this is a broader diet system issue that has to do with how special seasoning is calculated.

Session Log attached here: Captain_Scotch_20231016.txt

horrible-little-slime commented 1 year ago

This is reporting correct values for embezzler profits, so it is weird that it's making incorrect decisions later on.

I did a bunch of math and am not convinced seasoning is the problem. Giving seasoning to horseradish results in it winning by even more! Very odd stuff

docrostov commented 1 year ago

also, i don't think this matters (it just calcifies that the problem is consistent), but garbo also chose boris bread over horseradish for all pantsgiving diets consumed.