mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
killed player lifespan calculation
This commit is contained in:
parent
53ba117f23
commit
a685f71d6e
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue