loathers / garbage-collector

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

simdiet & actual diet differ wildly #911

Closed Malibu-Stacey closed 2 years ago

Malibu-Stacey commented 2 years ago

output from garbo simdiet

===== FULL DIET =====
Planning to fight 70 embezzlers and run 582 adventures
3 (max 3) mojo filter value: 0 price: 20850
4 jar of fermented pickle juice value: 756000 price: 207992
1 (max 1) spice melange value: 0 price: 208874
3 extra-greasy slider helpers: Special Seasoning value: 594000 price: 181569
1 (max 1) synthetic dog hair pill value: 0 price: 250
1 (max 1) jumping horseradish(embezzler) helpers: Special Seasoning value: 87250 (additional value: 51250) price: 12176
4 splendid martini value: 192000 price: 36484
1 (max 1) dirt julep(embezzler) value: 65000 (additional value: 41000) price: 21750
1 (max 1) distention pill value: 0 price: 250
2 (max 11) jumping horseradish(barf) helpers: Special Seasoning value: 99500 (additional value: 13750) price: 24352
17 (max 17) Rethinking Candy(barf) value: 420750 (additional value: 24750) price: 0
1 (max 1) body spradium(overlap) value: 60195 (additional value: 60195.23539268062) price: 0
2 (max 2) Knob Goblin nasal spray(embezzler) value: 24600 (additional value: 12300) price: 300
24 transdermal smoke patch value: 360000 price: 80784
1 (max 1) abstraction: joy(embezzler) value: 25875 (additional value: 25875.14534687203) price: 7306
1 (max 1) Extrovermectin™ value: 198000 (additional value: 198000) price: 49000
1 (max 1) Extrovermectin™ value: 360000 (additional value: 360000) price: 49000
1 (max 1) cute mushroom(embezzler) value: 60937 (additional value: 12937.572673436014) price: 14007
1 (max 1) jumping horseradish(overlap) helpers: Special Seasoning value: 64750 (additional value: 28750) price: 12176
Assuming MPA of 6000, Total Cost 927120, Total Value 3368857.953412988, Net Value 2441737.953412988
Requests complete.

Actual diet when running garbo (no other options).

===== FULL DIET =====
Planning to fight 130 embezzlers and run 521 adventures
5 jar of fermented pickle juice value: 945000 price: 259990
3 (max 3) mojo filter value: 0 price: 20850
1 (max 1) spice melange value: 0 price: 208874
3 extra-greasy slider helpers: Special Seasoning value: 594000 price: 181569
1 (max 1) synthetic dog hair pill value: 0 price: 250
1 (max 1) jumping horseradish(overlap) helpers: Special Seasoning value: 72250 (additional value: 36250) price: 13975
1 (max 1) distention pill value: 0 price: 250
1 (max 10) jumping horseradish(barf) helpers: Special Seasoning value: 49750 (additional value: 13750) price: 13975
14 (max 14) Rethinking Candy(barf) value: 346500 (additional value: 24750) price: 0
2 (max 2) jumping horseradish(embezzler) helpers: Special Seasoning value: 174500 (additional value: 51250) price: 27950
1 (max 1) body spradium(embezzler) value: 77125 (additional value: 77125.14534687204) price: 0
1 (max 2) beggin' cologne(embezzler) value: 61500 (additional value: 61500) price: 49999
4 (max 4) Knob Goblin nasal spray(embezzler) value: 49200 (additional value: 12300) price: 600
1 (max 1) Rethinking Candy(overlap) value: 24750 (additional value: 24750) price: 0
2 (max 2) abstraction: joy(embezzler) value: 51750 (additional value: 25875.14534687203) price: 18260
15 Extrovermectin™ value: 1080000 (additional value: 72000) price: 735000
1 (max 1) Extrovermectin™ value: 198000 (additional value: 198000) price: 49000
1 (max 1) Extrovermectin™ value: 360000 (additional value: 360000) price: 49000
1 (max 1) Rethinking Candy(embezzler) value: 24750 (additional value: 24750) price: 0
Assuming MPA of 6000, Total Cost 1629542, Total Value 4109075.436040616, Net Value 2479533.436040616
Pantocyclus commented 2 years ago

The default valueOfInventory value is 1.8, while garbo sets it to 2.0 only after the simdiet code is executed. This means that simdiet uses valueOfInventory=1.8 when estimating the diet cost. For values between 1.0 and 2.0, mafia interpolates between autosell (1.0) and mall (2.0) prices. This means that items like extros whose autosell prices wildly differ from their mall prices (10 meat vs ~50k meat) would have their prices massively underestimated, leading to potentially large differences in the computed diet