diff --git a/common/src/main/scala/net/psforever/packet/game/LootItemMessage.scala b/common/src/main/scala/net/psforever/packet/game/LootItemMessage.scala index 97b35d9db..77fc545b2 100644 --- a/common/src/main/scala/net/psforever/packet/game/LootItemMessage.scala +++ b/common/src/main/scala/net/psforever/packet/game/LootItemMessage.scala @@ -6,13 +6,20 @@ import scodec.Codec import scodec.codecs._ /** - * na + * Dispatched by the client when the user right-clicks on a piece of `Equipment` + * in an inventory that is not his own backpack + * in an attempt to quick-swap that `Equipment` into his inventory. + * Examples of this "other" inventory include: corpses, lockers, and vehicle trunks.
+ *
+ * Compared to `MoveItemMessage`, the source location where `item` currently resides is not provided. + * Additionally, while the over-all destination is provided, the specific insertion point of the destination is not. + * @see `MoveItemMessage` * @param item_guid the item being taken - * @param target_guid what is taking the item; - * in general, usually the player who is doing the taking + * @param destination_guid where the item will be placed; + * generally, the player is taking the item */ final case class LootItemMessage(item_guid : PlanetSideGUID, - target_guid : PlanetSideGUID + destination_guid : PlanetSideGUID ) extends PlanetSideGamePacket { type Packet = LootItemMessage def opcode = GamePacketOpcode.LootItemMessage @@ -22,6 +29,6 @@ final case class LootItemMessage(item_guid : PlanetSideGUID, object LootItemMessage extends Marshallable[LootItemMessage] { implicit val codec : Codec[LootItemMessage] = ( ("item_guid" | PlanetSideGUID.codec) :: - ("target_guid" | PlanetSideGUID.codec) + ("destination_guid" | PlanetSideGUID.codec) ).as[LootItemMessage] } \ No newline at end of file