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

fix prod calculation for random output amounts with catalyst specified #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalenedrael
Copy link

@kalenedrael kalenedrael commented Aug 20, 2024

Productivity only applies to amounts above the catalyst amount. When the productivity bar fills, a set of outputs (random or not) is generated and the catalyst amount is subtracted from each output, with a minimum of 0 (no negative outputs). This fixes the calculation of the "proddable amount" - the effective amount of output that prod can apply to.

This behavior was tested using this mod. Compare with expected and actual results in this spreadsheet.

Fixes issue #88.

@ClaudeMetz
Copy link
Owner

Hello, appreciate the very nicely done pull request! I won't be able to merge it for a 1.1 release as this code has changed a lot for the internal 2.0 branch and merging it will be a mess. 1.1 releases are basically done as 2.0 is so close.

Would you be okay with revisiting this once 2.0 is out? It probably won't be too difficult to adapt it to the new stuff.

@kalenedrael
Copy link
Author

I can do that. Any chance I can get access to the 2.0 branch? I can wait otherwise.

@ClaudeMetz
Copy link
Owner

Unfortunately not, you can't make a private fork of a public repo for some stupid reason and setting up a separate one is a PITA.

@ClaudeMetz
Copy link
Owner

The code this touches changed quite a bit in my fluid temperatures branch. I'll have another look at this once that one is merged. Sorry for the delays.

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

Successfully merging this pull request may close these issues.

2 participants