alainbryden / bitburner-scripts

My own scripts for playing bitburner
MIT License
607 stars 272 forks source link

daemon.js: Switch from sleep to additionalMsec for Hack/Grow/Weaken #431

Open alainbryden opened 2 weeks ago

alainbryden commented 2 weeks ago

We can improve the reliability of H/G/W timings by using the new "additionalMsec" option for hack / grow / weaken commands.

In our case, this isn't quite trivial, since we have extended our scripts to support "looping mode", and in that case the timings are different from the initial "sleep" (which includes additional queue padding).

This might be a good opportunity to refactor our main batching setup to be more consistent and address many of the long term TODOs.