@MercyModx Glad to hear it and be of help. 🙂 Concerning any possible mod 60 issue...allow me to help you understand that process so things hopefully get cleared up for you.
Take any combination of minutes possible in your game and the following facts are true:
0 + 15 = 15; 15 mod 60 = 15
0 + 30 = 30; 30 mod 60 = 30
0 + 45 = 45; 45 mod 60 = 45
15 + 15 = 30; 30 mod 60 = 30
15 + 30 = 45; 45 mod 60 = 45
15 + 45 = 60; 60 mod 60 = 0
30 + 15 = 45; 45 mod 60 = 45
30 + 30 = 60; 60 mod 60 = 0
30 + 45 = 75; 75 mod 60 = 15
45 + 15 = 60; 60 mod 60 = 0
45 + 30 = 75; 75 mod 60 = 15
45 + 45 = 90; 90 mod 60 = 30
Notice the results always fall back to a 15 minute value of 0, 15, 30, or 45...all acceptable. If the sum isn't changed by the mod, then the hour hasn't passed...so don't add 1 to it. If the sum gets reduced by the mod, then an hour worth of minutes has disappeared and must be accounted for, so add one to the hour variable to account for it. Make sense? 🙂 (My handle isn't mathmaster74 for nothing. 😉)
Take any combination of minutes possible in your game and the following facts are true:
0 + 15 = 15; 15 mod 60 = 15
0 + 30 = 30; 30 mod 60 = 30
0 + 45 = 45; 45 mod 60 = 45
15 + 15 = 30; 30 mod 60 = 30
15 + 30 = 45; 45 mod 60 = 45
15 + 45 = 60; 60 mod 60 = 0
30 + 15 = 45; 45 mod 60 = 45
30 + 30 = 60; 60 mod 60 = 0
30 + 45 = 75; 75 mod 60 = 15
45 + 15 = 60; 60 mod 60 = 0
45 + 30 = 75; 75 mod 60 = 15
45 + 45 = 90; 90 mod 60 = 30
Notice the results always fall back to a 15 minute value of 0, 15, 30, or 45...all acceptable. If the sum isn't changed by the mod, then the hour hasn't passed...so don't add 1 to it. If the sum gets reduced by the mod, then an hour worth of minutes has disappeared and must be accounted for, so add one to the hour variable to account for it. Make sense? 🙂 (My handle isn't mathmaster74 for nothing. 😉)