chrisrabe / bitburner-automation

Automation scripts I use for my Bitburner gameplay videos.
125 stars 41 forks source link

Deadlock in Corporation Recruiter Script #16

Closed Mac2 closed 2 years ago

Mac2 commented 2 years ago

Hi,

https://github.com/chrisrabe/bitburner-automation/blob/cb85943b46a040f570b1721f6b2d06a325f36220/episodes/ep31/corp-recruiter.js#L98

If you have not enough funds in your corporation the script will enter the while loop, but the business.funds will never be updated. So you should use directly corp.getCorporation().funds instead.

Thanks for all the work and the interesting guidelines!

best, Mac

chrisrabe commented 2 years ago

That's a good catch 👍

chrisrabe commented 2 years ago

Implemented in #19