Rate display for engineer crafting is not correct
Issue #176
resolved
STEPS TO REPRODUCE:
- Set up an engineer to do some crafting.
- Hover over the relevant resource quantity in the resource pane to see the rate it’s being produced at.
EXPECTED RESULTS: Displayed “Engineer: “ rate is correct.
ACTUAL RESULTS: The rate is off by a bit. That’s because getEffectEngineer
, when called with afterCraft == true
, multiplies by the craft ratio, but should be multiplying by (1 + craft ratio), just like actual crafting.
I created a proposed fix you can see at https://bitbucket.org/bzbarsky/kitten-game/commits/b1a82c5d4ad3a4f8c9378206a4db734670336cae?at=fix-engineer-rate but for some reason I can’t seem to be able to create a PR against this repository…
Comments (3)
-
-
reporter Ah, thank you for the hint! https://bitbucket.org/bloodrizer/kitten-game/pull-requests/584/fix-rate-display-for-engineer-crafting/diff created.
-
reporter - changed status to resolved
- Log in to comment
At first, I had a similar issue creating a PR. The trick is to ignore the "Create pull request" button in this repo. Go to your fork; create the PR from there, and it will work.