Update Keys for nexusmods.com
This commit is contained in:
parent
ced0b5a10c
commit
df7084b438
|
@ -62,10 +62,9 @@ namespace Relativity
|
||||||
if (float.IsNaN(totalElapsedGTI)) totalElapsedGTI = 0;
|
if (float.IsNaN(totalElapsedGTI)) totalElapsedGTI = 0;
|
||||||
|
|
||||||
float players = playerTimeData.Count;
|
float players = playerTimeData.Count;
|
||||||
float paused = playerTimeData.Count(x => !x.Value.STP);
|
float active = playerTimeData.Count(x => x.Value.STP);
|
||||||
float timeSpeedFactor = 1f - paused / players;
|
|
||||||
|
|
||||||
totalElapsedGTI += Game1.gameTimeInterval * timeSpeedFactor;
|
totalElapsedGTI += Game1.gameTimeInterval * (active / players);
|
||||||
Game1.gameTimeInterval = 0;
|
Game1.gameTimeInterval = 0;
|
||||||
|
|
||||||
float averageGTI = playerTimeData.Sum(x => x.Value.GTI) / players;
|
float averageGTI = playerTimeData.Sum(x => x.Value.GTI) / players;
|
||||||
|
|
|
@ -6,5 +6,5 @@
|
||||||
"UniqueID": "AdroSlice.Relativity",
|
"UniqueID": "AdroSlice.Relativity",
|
||||||
"EntryDll": "Relativity.dll",
|
"EntryDll": "Relativity.dll",
|
||||||
"MinimumApiVersion": "3.0.0",
|
"MinimumApiVersion": "3.0.0",
|
||||||
"UpdateKeys": []
|
"UpdateKeys": [ "Nexus:13028" ]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user