alainbryden / bitburner-scripts

My own scripts for playing bitburner
MIT License
586 stars 263 forks source link

Use Gym to train stats (#107) update #303

Open Arthan-the-one opened 1 year ago

Arthan-the-one commented 1 year ago

-should now respect focus settings -calculates that training can finish before traveling to gym --(including backdoor discount) -code deduplication/refactoring -only attempt to travel if in wrong city -option no-gym to disable gym -split gym logic from crime logic, crime first -correct eta-calc on bitnodes with stat multipliers -use best gym available with current money, including travel expenses

Already in the original MR: -ETA for training -logic for price calculation -the training itself -travel to city of best gym

ToDo: -push karma to -52k if gangs are unlocked before using the gym - maybe make configurable/be intelligent about it, might take a lot of time -consider adding option to limit training money

fixes #107

alainbryden commented 1 year ago

Thanks for doing the heavy lifting. There are some potential side-effects and "configurability" issues I would like addressed. If there's anything you want to tackle, feel free, otherwise I'm happy to "take over" at any point to polish off the bits I feel are missing.

s0r3-glitch commented 1 year ago

I have been testing this over the past few days and have found that I have had a lot of problems when it comes to ascending. I keep getting errors about an unexpected money change right before buying everything for ascending causing the script to fail out and stop running completely. At one point during 4.3 (i think) I had the issue of it trying to spend 860b on rep well i had something like 2t in raw cash. Now I am not 100% sure that this problem is entirely due to the code in this PR but i figured I would bring it up here since its the code.