mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
killed player lifespan calculation
This commit is contained in:
parent
53ba117f23
commit
a685f71d6e
|
|
@ -29,8 +29,13 @@ object Support {
|
||||||
//setup
|
//setup
|
||||||
val historyList = history.toList
|
val historyList = history.toList
|
||||||
val withKills = victim.progress.kills.nonEmpty
|
val withKills = victim.progress.kills.nonEmpty
|
||||||
|
//TODO Issue #1259 - Use another method to capture time of death than current time ("kill shots" aren't working)
|
||||||
|
/*
|
||||||
val fullLifespan = (historyList.headOption, historyList.lastOption) match {
|
val fullLifespan = (historyList.headOption, historyList.lastOption) match {
|
||||||
case (Some(spawn), Some(death)) => death.time - spawn.time
|
case (Some(spawn), Some(death)) => death.time - spawn.time
|
||||||
|
*/
|
||||||
|
val fullLifespan = historyList.headOption match {
|
||||||
|
case Some(spawn) => System.currentTimeMillis() - spawn.time
|
||||||
case _ => 0L
|
case _ => 0L
|
||||||
}
|
}
|
||||||
val recordOfWornTimes = countTimeWhileExoSuitOrMounted(historyList)
|
val recordOfWornTimes = countTimeWhileExoSuitOrMounted(historyList)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue