Offline progression not calculating Advanced Automation
I built a calculator for steamworks, and I was quite puzzled that I was receiving half of what I had projected to get every night. I did some verification that I was meeting my production breakpoints to get two cycles/year, then started digging into the code. My theory is that Advanced Automation is accounted for in calendar.OnNewSeason(), which is likely not being called in the redshift calculations.
Comments (6)
-
-
repo owner - changed status to resolved
Fix
#139Given that the log message says “You have regained N days of production” but actually only N/2 days (= N seconds) are regained, I don't think that the halved progression was intended If it is intended, then the log message must be fixed instead
→ <<cset b87fa003ee89>>
-
repo owner Merged in Ethaniel_Kavelaars/kittens-game/OFFLINE_PRODUCTION (pull request #433)
Fix
#139→ <<cset c817c73f3895>>
-
AAAAAAAHHH!!! I fixed all missing coefficients 2 except the most obvious one in game (but the less obvious one in code), namely resource production. =_= The fix (for the other coefficients) was so obvious that I didn't even bother to test, silly me. ===___=== (Don't worry, all my other commits were tested before being pushed.)
-
repo owner -
repo owner Merged in Ethaniel_Kavelaars/kittens-game/OFFLINE_PRODUCTION (pull request #450)
Fix
#139(again =_=)→ <<cset 065b89f3fd44>>
- Log in to comment
I think It's because in offline progression, only half resources are produced by design or bug:
this.game.rate * daysOffset
game.rate gives only second, while day is 2 seconds