mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-25 06:49:07 +00:00
transferred control of dropping and collecting objects to the Continent scope; solve a bug that had to do with collecting dropped equipment
This commit is contained in:
parent
99b019714b
commit
ce8d61a4d3
3 changed files with 43 additions and 95 deletions
|
|
@ -51,7 +51,7 @@ object Continent {
|
|||
|
||||
final case class GetItemOnGround(player : Player, item_guid : PlanetSideGUID)
|
||||
|
||||
final case class GiveItemFromGround(player : Player, item : Equipment)
|
||||
final case class ItemFromGround(player : Player, item : Equipment)
|
||||
|
||||
def apply(zoneId : String, map : String) : Continent = {
|
||||
new Continent(zoneId, map)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ContinentActor(continent : Continent) extends Actor {
|
|||
case GetItemOnGround(player, item_guid) =>
|
||||
FindItemOnGround(item_guid) match {
|
||||
case Some(item) =>
|
||||
sender ! GiveItemFromGround(player, item)
|
||||
sender ! ItemFromGround(player, item)
|
||||
case None =>
|
||||
log.warn(s"item on ground $item_guid was requested by $player for pickup but was not found")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue