mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 07:55:07 +00:00
merge rebase hell
This commit is contained in:
parent
bb3c0f5d91
commit
89a7f180dd
11 changed files with 3 additions and 2 deletions
|
|
@ -77,6 +77,7 @@ import net.psforever.services.vehicle.{VehicleAction, VehicleResponse, VehicleSe
|
||||||
import net.psforever.services.{InterstellarClusterService, RemoverActor, Service, ServiceManager}
|
import net.psforever.services.{InterstellarClusterService, RemoverActor, Service, ServiceManager}
|
||||||
import net.psforever.types._
|
import net.psforever.types._
|
||||||
import net.psforever.util.{Config, DefinitionUtil}
|
import net.psforever.util.{Config, DefinitionUtil}
|
||||||
|
import net.psforever.zones.Zones
|
||||||
|
|
||||||
object SessionActor {
|
object SessionActor {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -929,7 +929,7 @@ class PlayerControl(player: Player, avatarActor: typed.ActorRef[AvatarActor.Comm
|
||||||
}
|
}
|
||||||
|
|
||||||
def UpdateAuraEffect(target: AuraEffectBehavior.Target) : Unit = {
|
def UpdateAuraEffect(target: AuraEffectBehavior.Target) : Unit = {
|
||||||
import services.avatar.{AvatarAction, AvatarServiceMessage}
|
import net.psforever.services.avatar.{AvatarAction, AvatarServiceMessage}
|
||||||
val zone = target.Zone
|
val zone = target.Zone
|
||||||
val value = target.Aura.foldLeft(0)(_ + PlayerControl.auraEffectToAttributeValue(_))
|
val value = target.Aura.foldLeft(0)(_ + PlayerControl.auraEffectToAttributeValue(_))
|
||||||
zone.AvatarEvents ! AvatarServiceMessage(zone.id, AvatarAction.PlanetsideAttributeToAll(target.GUID, 54, value))
|
zone.AvatarEvents ! AvatarServiceMessage(zone.id, AvatarAction.PlanetsideAttributeToAll(target.GUID, 54, value))
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
// Copyright (c) 2020 PSForever
|
// Copyright (c) 2020 PSForever
|
||||||
package game
|
package game
|
||||||
|
|
||||||
import org.specs2.mutable._
|
|
||||||
import net.psforever.packet._
|
import net.psforever.packet._
|
||||||
import net.psforever.packet.game._
|
import net.psforever.packet.game._
|
||||||
import net.psforever.types.PlanetSideGUID
|
import net.psforever.types.PlanetSideGUID
|
||||||
|
import org.specs2.mutable._
|
||||||
import scodec.bits._
|
import scodec.bits._
|
||||||
|
|
||||||
class AggravatedDamageMessageTest extends Specification {
|
class AggravatedDamageMessageTest extends Specification {
|
||||||
Loading…
Add table
Add a link
Reference in a new issue