Hello,
I'm making a video game were some objects can have 1 or several improvements that have effect their statistics.
I'm trying to calculate the statistics of my objects if 1 or several improvement are true (available for the player). If one improvement is true, then it's true for all the objects.
In my example attached, I have 3 different train that have different speed. You can put 2 speed improvement on them.
If one improvement is true, then the improvement value and the train value are added.
My problem is that I can check if one value is true and make the calculation, but I have no idea how to do it for a huge database. Any solution I can think of give me wrong results
Tanks For your help!
Bookmarks