Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETSCRIPT: Add Experience gain to formula.gang #1134

Open
DominicDams opened this issue Mar 5, 2024 · 1 comment
Open

NETSCRIPT: Add Experience gain to formula.gang #1134

DominicDams opened this issue Mar 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DominicDams
Copy link

Description

When trying to automate gang activities I realized that there isn't currently an API for gainExperience that is exposed in Netscript. Adding an API for this should simply involve moving code over from https://github.com/bitburner-official/bitburner-src/blob/dev/src/Gang/GangMember.ts#L156-L193 to https://github.com/bitburner-official/bitburner-src/blob/dev/src/Gang/formulas/formulas.ts and then updating the documentation.

Ownership

I'd be happy to contribute a code change for this in a couple of days, just wanted to make sure it would be accepted before I bothered with it. If you don't think it's a worthwhile enhancement/has some unforeseen footgun let me know and I can drop this (I'll likely write the code on my end to calculate this in Netscript for the time being either way)

@d0sboots
Copy link
Collaborator

d0sboots commented Mar 5, 2024

I think having more formulas for Gang would be great! One tricky thing is that there might be some new objects that you need to introduce publicly to make such an API work.

@gmcew gmcew added the enhancement New feature or request label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants