randomized gradients and /playtime

This commit is contained in:
Super_
2020-07-15 00:23:26 -04:00
parent 067180d2cf
commit 114567a302
6 changed files with 128 additions and 6 deletions

View File

@ -119,6 +119,19 @@ public class ActivityLogEntry implements IConfig
ips.clear();
}
public int getTotalSecondsPlayed()
{
int result = 0;
for (String duration : durations)
{
String[] spl = duration.split(" ");
result += Integer.parseInt(spl[0]) * 60 * 60;
result += Integer.parseInt(spl[2]) * 60;
result += Integer.parseInt(spl[5]);
}
return result;
}
@Override
public boolean isValid()
{