Hello everybody.
I have a small idea, but to implement it I faced a problem.
I need to implement the calculation of extracted resources (only by mines with all other bonuses) (do not take into account: found in an expedition, brought by the fleet from other players or from another planet, obtained from the demolition of a building and the like).
For example: A player has built a level 25 metal mine, and I need to calculate how many resources he has mined per day in real time, taking into account that he can be attacked and destroyed by solar satellites, and without them he will not have enough energy and thus the mining of resources will decrease.
I have a small idea, but to implement it I faced a problem.
I need to implement the calculation of extracted resources (only by mines with all other bonuses) (do not take into account: found in an expedition, brought by the fleet from other players or from another planet, obtained from the demolition of a building and the like).
For example: A player has built a level 25 metal mine, and I need to calculate how many resources he has mined per day in real time, taking into account that he can be attacked and destroyed by solar satellites, and without them he will not have enough energy and thus the mining of resources will decrease.