mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-12 23:14:42 +00:00
don't need vals
This commit is contained in:
parent
35bfab5768
commit
46b446048d
2 changed files with 3 additions and 12 deletions
|
|
@ -80,10 +80,7 @@ object DamageableMountable {
|
||||||
.flatMap { _.occupant }
|
.flatMap { _.occupant }
|
||||||
.collect { case player if player.isAlive =>
|
.collect { case player if player.isAlive =>
|
||||||
//make llu visible to others in zone if passenger is carrying one
|
//make llu visible to others in zone if passenger is carrying one
|
||||||
val zone = player.Zone
|
player.Zone.AvatarEvents ! AvatarServiceMessage(player.Name, AvatarAction.DropSpecialItem())
|
||||||
val events = zone.AvatarEvents
|
|
||||||
val nameChannel = player.Name
|
|
||||||
events ! AvatarServiceMessage(nameChannel, AvatarAction.DropSpecialItem())
|
|
||||||
//player.LogActivity(cause)
|
//player.LogActivity(cause)
|
||||||
player.Actor ! Player.Die(
|
player.Actor ! Player.Die(
|
||||||
DamageInteraction(interaction.resolution, SourceEntry(player), interaction.cause, interaction.hitPos)
|
DamageInteraction(interaction.resolution, SourceEntry(player), interaction.cause, interaction.hitPos)
|
||||||
|
|
|
||||||
|
|
@ -366,10 +366,7 @@ class PersistenceMonitor(
|
||||||
(inZone.Players.find(p => p.name == name), inZone.LivePlayers.find(p => p.Name == name)) match {
|
(inZone.Players.find(p => p.name == name), inZone.LivePlayers.find(p => p.Name == name)) match {
|
||||||
case (Some(avatar), Some(player)) if player.VehicleSeated.nonEmpty =>
|
case (Some(avatar), Some(player)) if player.VehicleSeated.nonEmpty =>
|
||||||
//in case the player is holding the llu and disconnects
|
//in case the player is holding the llu and disconnects
|
||||||
val zone = player.Zone
|
player.Zone.AvatarEvents ! AvatarServiceMessage(player.Name, AvatarAction.DropSpecialItem())
|
||||||
val events = zone.AvatarEvents
|
|
||||||
val nameChannel = player.Name
|
|
||||||
events ! AvatarServiceMessage(nameChannel, AvatarAction.DropSpecialItem())
|
|
||||||
//alive or dead in a vehicle
|
//alive or dead in a vehicle
|
||||||
//if the avatar is dead while in a vehicle, they haven't released yet
|
//if the avatar is dead while in a vehicle, they haven't released yet
|
||||||
AvatarActor.saveAvatarData(avatar)
|
AvatarActor.saveAvatarData(avatar)
|
||||||
|
|
@ -387,10 +384,7 @@ class PersistenceMonitor(
|
||||||
|
|
||||||
case (Some(avatar), Some(player)) =>
|
case (Some(avatar), Some(player)) =>
|
||||||
//in case the player is holding the llu and disconnects
|
//in case the player is holding the llu and disconnects
|
||||||
val zone = player.Zone
|
player.Zone.AvatarEvents ! AvatarServiceMessage(player.Name, AvatarAction.DropSpecialItem())
|
||||||
val events = zone.AvatarEvents
|
|
||||||
val nameChannel = player.Name
|
|
||||||
events ! AvatarServiceMessage(nameChannel, AvatarAction.DropSpecialItem())
|
|
||||||
//alive or dead, as standard Infantry
|
//alive or dead, as standard Infantry
|
||||||
AvatarActor.saveAvatarData(avatar)
|
AvatarActor.saveAvatarData(avatar)
|
||||||
AvatarActor.finalSavePlayerData(player)
|
AvatarActor.finalSavePlayerData(player)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue