mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-03-16 10:50:41 +00:00
mainly, the spacing
This commit is contained in:
parent
f454748c28
commit
2be0b875e0
2 changed files with 9 additions and 12 deletions
|
|
@ -145,10 +145,7 @@ object KillAssists {
|
|||
.orElse {
|
||||
limitHistoryToThisLife(history)
|
||||
.lastOption
|
||||
.collect { case dam: DamagingActivity
|
||||
if dam.data.adversarial.nonEmpty =>
|
||||
dam.data
|
||||
}
|
||||
.collect { case dam: DamagingActivity if dam.data.adversarial.nonEmpty => dam.data }
|
||||
.map { data => (data, data.adversarial.get.attacker) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,14 +56,14 @@ object ToDatabase {
|
|||
): Unit = {
|
||||
ctx.run(query[persistence.Assistactivity]
|
||||
.insert(
|
||||
_.killerId -> lift(avatarId),
|
||||
_.victimId -> lift(victimId),
|
||||
_.weaponId -> lift(weaponId),
|
||||
_.zoneId -> lift(zoneId),
|
||||
_.px -> lift((position.x * 1000).toInt),
|
||||
_.py -> lift((position.y * 1000).toInt),
|
||||
_.pz -> lift((position.z * 1000).toInt),
|
||||
_.exp -> lift(exp)
|
||||
_.killerId -> lift(avatarId),
|
||||
_.victimId -> lift(victimId),
|
||||
_.weaponId -> lift(weaponId),
|
||||
_.zoneId -> lift(zoneId),
|
||||
_.px -> lift((position.x * 1000).toInt),
|
||||
_.py -> lift((position.y * 1000).toInt),
|
||||
_.pz -> lift((position.z * 1000).toInt),
|
||||
_.exp -> lift(exp)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue