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

Custom Reagents MaxEnergy issue #339

Open
Shurutsue opened this issue Mar 31, 2024 · 0 comments
Open

Custom Reagents MaxEnergy issue #339

Shurutsue opened this issue Mar 31, 2024 · 0 comments

Comments

@Shurutsue
Copy link
Contributor

genes = genes.With(maxEnergy: (byte)Mathf.Clamp(genes.maxEnergy + usedAmount * Multiplier, 5f, 255f));

Due to the conversion to a byte (even though it actually is a float), it'll require a full unit of change. This was an oversight on my part when I made the pull-request, attempting to not differ too much from existing reagents, so unless a floating point value would hinder the UI (or otherwise something) this should likely be changed to allow more freedom.

Unless I forget, I'll make a pull request in a bit, referencing this issue, after testing to ensure it doesn't break with the Display of energy, or otherwise throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant