doomeer / factorio

Factorio Planner
MIT License
136 stars 39 forks source link

Corrected mining drill calculations #9

Closed DeCristoforis closed 7 years ago

DeCristoforis commented 7 years ago

Issue #8 I've tried to implement mining productivity formula from factorio's wiki. Here it is: Production rate = (Mining power - Mining hardness) * Mining speed / Mining time

So I've introduced two fields: power for so called "makers" and hardness for resources. And I've added special factor (maker.power -. resource.hardness) to maker_count calculations. By default power = 1, and hardness = 0. These defaults allow not to alter current behavior for furnaces and assemblers, because factor equals to 1. Specific power and hardness values was added for ores and drills in recipes.