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:
FateJH 2017-09-16 02:04:34 -04:00
parent 99b019714b
commit ce8d61a4d3
3 changed files with 43 additions and 95 deletions

View file

@ -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)

View file

@ -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")
}