mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 16:04:41 +00:00
commit
98e4d1d72f
6 changed files with 12 additions and 12 deletions
|
|
@ -1152,7 +1152,7 @@ class AvatarActor(
|
||||||
tool.GUID = PlanetSideGUID(gen.getAndIncrement)
|
tool.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
case Some(item: Equipment) =>
|
case Some(item: Equipment) =>
|
||||||
item.GUID = PlanetSideGUID(gen.getAndIncrement)
|
item.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
case None => ;
|
case _ => ;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
player.GUID = PlanetSideGUID(gen.getAndIncrement)
|
player.GUID = PlanetSideGUID(gen.getAndIncrement)
|
||||||
|
|
@ -1193,7 +1193,7 @@ class AvatarActor(
|
||||||
item.Invalidate()
|
item.Invalidate()
|
||||||
case Some(item: Equipment) =>
|
case Some(item: Equipment) =>
|
||||||
item.Invalidate()
|
item.Invalidate()
|
||||||
case None => ;
|
case _ => ;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
player.Invalidate()
|
player.Invalidate()
|
||||||
|
|
|
||||||
|
|
@ -3539,7 +3539,7 @@ class SessionActor extends Actor with MDCContextAware {
|
||||||
})
|
})
|
||||||
(
|
(
|
||||||
a,
|
a,
|
||||||
(continent.GUID(player.VehicleSeated) match {
|
continent.GUID(player.VehicleSeated) match {
|
||||||
case Some(vehicle : Vehicle) if vehicle.PassengerInSeat(player).isDefined =>
|
case Some(vehicle : Vehicle) if vehicle.PassengerInSeat(player).isDefined =>
|
||||||
b.partition {
|
b.partition {
|
||||||
_.GUID != vehicle.GUID
|
_.GUID != vehicle.GUID
|
||||||
|
|
@ -3552,7 +3552,7 @@ class SessionActor extends Actor with MDCContextAware {
|
||||||
//throw error since VehicleSeated didn't point to a vehicle?
|
//throw error since VehicleSeated didn't point to a vehicle?
|
||||||
player.VehicleSeated = None
|
player.VehicleSeated = None
|
||||||
(b, List.empty[Vehicle])
|
(b, List.empty[Vehicle])
|
||||||
})
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
val allActiveVehicles = vehicles ++ usedVehicle
|
val allActiveVehicles = vehicles ++ usedVehicle
|
||||||
|
|
@ -5525,7 +5525,7 @@ class SessionActor extends Actor with MDCContextAware {
|
||||||
log.warn(
|
log.warn(
|
||||||
s"DismountVehicleMsg: can not dismount from vehicle as driver while server has asserted control; please wait ..."
|
s"DismountVehicleMsg: can not dismount from vehicle as driver while server has asserted control; please wait ..."
|
||||||
)
|
)
|
||||||
case Some(seat_num: Int) =>
|
case Some(seat_num) =>
|
||||||
obj.Actor ! Mountable.TryDismount(player, seat_num)
|
obj.Actor ! Mountable.TryDismount(player, seat_num)
|
||||||
if (interstellarFerry.isDefined) {
|
if (interstellarFerry.isDefined) {
|
||||||
//short-circuit the temporary channel for transferring between zones, the player is no longer doing that
|
//short-circuit the temporary channel for transferring between zones, the player is no longer doing that
|
||||||
|
|
@ -5564,7 +5564,7 @@ class SessionActor extends Actor with MDCContextAware {
|
||||||
}) match {
|
}) match {
|
||||||
case (Some(obj: Mountable), Some(tplayer: Player)) =>
|
case (Some(obj: Mountable), Some(tplayer: Player)) =>
|
||||||
obj.PassengerInSeat(tplayer) match {
|
obj.PassengerInSeat(tplayer) match {
|
||||||
case Some(seat_num: Int) =>
|
case Some(seat_num) =>
|
||||||
obj.Actor ! Mountable.TryDismount(tplayer, seat_num)
|
obj.Actor ! Mountable.TryDismount(tplayer, seat_num)
|
||||||
case None =>
|
case None =>
|
||||||
dismountWarning(
|
dismountWarning(
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,8 @@ class BuildingActor(
|
||||||
|
|
||||||
def postStartBehaviour(): Behavior[Command] = {
|
def postStartBehaviour(): Behavior[Command] = {
|
||||||
(galaxyService, interstellarCluster) match {
|
(galaxyService, interstellarCluster) match {
|
||||||
case (Some(galaxyService), Some(interstellarCluster)) =>
|
case (Some(_galaxyService), Some(_interstellarCluster)) =>
|
||||||
buffer.unstashAll(active(galaxyService, interstellarCluster))
|
buffer.unstashAll(active(_galaxyService, _interstellarCluster))
|
||||||
case _ =>
|
case _ =>
|
||||||
Behaviors.same
|
Behaviors.same
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class MaxNumberSource(val max: Int) extends NumberSource {
|
||||||
case Some(key: Key) if allowRestrictions && key.policy != AvailabilityPolicy.Restricted =>
|
case Some(key: Key) if allowRestrictions && key.policy != AvailabilityPolicy.Restricted =>
|
||||||
key.policy = AvailabilityPolicy.Restricted
|
key.policy = AvailabilityPolicy.Restricted
|
||||||
Some(new LoanedKey(number, key))
|
Some(new LoanedKey(number, key))
|
||||||
case None =>
|
case _ =>
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -407,7 +407,7 @@ object ContainableBehavior {
|
||||||
item match {
|
item match {
|
||||||
case Some(_) if item.nonEmpty && source.Slot(slot).Equipment.isEmpty =>
|
case Some(_) if item.nonEmpty && source.Slot(slot).Equipment.isEmpty =>
|
||||||
(outSlot, item)
|
(outSlot, item)
|
||||||
case None =>
|
case _ =>
|
||||||
(None, None)
|
(None, None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -560,7 +560,7 @@ object ContainableBehavior {
|
||||||
(dest match {
|
(dest match {
|
||||||
case Some(slot) if ContainableBehavior.TestPutItemInSlot(destination, item, slot).contains(Nil) =>
|
case Some(slot) if ContainableBehavior.TestPutItemInSlot(destination, item, slot).contains(Nil) =>
|
||||||
ContainableBehavior.TryPutItemInSlot(destination, item, slot)
|
ContainableBehavior.TryPutItemInSlot(destination, item, slot)
|
||||||
case None => (false, None)
|
case _ => (false, None)
|
||||||
}) match {
|
}) match {
|
||||||
case (true, swapItem) =>
|
case (true, swapItem) =>
|
||||||
(dest, swapItem)
|
(dest, swapItem)
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ class InterstellarClusterService(context: ActorContext[InterstellarClusterServic
|
||||||
Random.shuffle(zone.findSpawns(faction, spawnGroups)).headOption match {
|
Random.shuffle(zone.findSpawns(faction, spawnGroups)).headOption match {
|
||||||
case Some((_, spawnPoints)) if spawnPoints.nonEmpty =>
|
case Some((_, spawnPoints)) if spawnPoints.nonEmpty =>
|
||||||
Some((zone, Random.shuffle(spawnPoints.toList).head))
|
Some((zone, Random.shuffle(spawnPoints.toList).head))
|
||||||
case None =>
|
case _ =>
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
case None =>
|
case None =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue