My machines always explode instantly.
Maybe instead of heat += logic.heatGeneration * Math.pow(getWorkers(), 0.95); we can use something like heat += logic.heatGeneration / getProcessTime();.
This would also scale with the amount of workers, as the processtime depends on the amount of workers.
Another benefit is, that the heatGeneration member has a real meaning (the total amount of heat generated during that transformation) instead of being a random number.
Also the heat should be prevented from being < 0. Otherwise water in the watercooler freezes :D
For the balance I think the amount of heat generated by a transformation shouldn't be higher then the maximum heat of the machine. The goal shouldn't be an instant explosion if the player has not enough cooling, but a slowly increasing temperature, making the player aware that he should add more cooling, if he doesn't finally leading to an explosion after some time (should be at least some seconds to give the player time to react).
It might also be logical to increase the maximum heat the bigger a machine.
My machines always explode instantly.
Maybe instead of
heat += logic.heatGeneration * Math.pow(getWorkers(), 0.95);we can use something likeheat += logic.heatGeneration / getProcessTime();.This would also scale with the amount of workers, as the processtime depends on the amount of workers.
Another benefit is, that the heatGeneration member has a real meaning (the total amount of heat generated during that transformation) instead of being a random number.
Also the heat should be prevented from being < 0. Otherwise water in the watercooler freezes :D
For the balance I think the amount of heat generated by a transformation shouldn't be higher then the maximum heat of the machine. The goal shouldn't be an instant explosion if the player has not enough cooling, but a slowly increasing temperature, making the player aware that he should add more cooling, if he doesn't finally leading to an explosion after some time (should be at least some seconds to give the player time to react).
It might also be logical to increase the maximum heat the bigger a machine.