killed player lifespan calculation

This commit is contained in:
ScrawnyRonnie 2025-01-30 12:11:13 -05:00
parent 53ba117f23
commit a685f71d6e

View file

@ -29,8 +29,13 @@ object Support {
//setup
val historyList = history.toList
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 {
case (Some(spawn), Some(death)) => death.time - spawn.time
*/
val fullLifespan = historyList.headOption match {
case Some(spawn) => System.currentTimeMillis() - spawn.time
case _ => 0L
}
val recordOfWornTimes = countTimeWhileExoSuitOrMounted(historyList)