cameroncondry / cbc-kitten-scientists

Add-on for the wonderful incremental browser game: http://kittensgame.com/web/
MIT License
114 stars 94 forks source link

Fix a bug where the actual number of blueprints made by scientists and the number shown in the log do not match #300

Closed allinfourteen closed 3 years ago

allinfourteen commented 3 years ago

The input parameter type of the game.getResCraftRatio() function should be a string. In some calls of scientists, the parameter passed in is craft, which causes getResCraftRatio to return only the basic radio, that is, workshop, leader, etc. For the blueprint, the input parameter type is wrong so the CAD system radio is not added. However, it does not affect the final production quantity, only the number of records in the log.

cameroncondry commented 3 years ago

Nice catch and thank you for the addition!