diff --git a/common/src/main/scala/net/psforever/packet/game/ChangeShortcutBankMessage.scala b/common/src/main/scala/net/psforever/packet/game/ChangeShortcutBankMessage.scala index 99e3b6f5b..c2a097bba 100644 --- a/common/src/main/scala/net/psforever/packet/game/ChangeShortcutBankMessage.scala +++ b/common/src/main/scala/net/psforever/packet/game/ChangeShortcutBankMessage.scala @@ -11,14 +11,16 @@ import scodec.codecs._ * The hotbar contains eight slots for user shortcuts - medkits, implants, and text macros. * Next to the first slot are up and down arrow buttons with a number. * By progressing through the options available from the arrows, eight sets of eight shortcut slots are revealed. - * Which set is visible determines the effect of the activating the respective of eight binding keys (the Function keys) for the hotbar. - * Each set is called a "bank." + * Which set is visible determines the effect of the respective binding keys (the Function keys) for the hotbar. + * Each set is called a "bank," obviously.
+ *
+ * This packet coordinates the bank number both as an upstream and as a downstream packet. * @param player_guid the player * @param bank the shortcut bank (zero-indexed); * 0-7 are the valid banks */ final case class ChangeShortcutBankMessage(player_guid : PlanetSideGUID, - bank : Int) + bank : Int) extends PlanetSideGamePacket { type Packet = ChangeShortcutBankMessage def opcode = GamePacketOpcode.ChangeShortcutBankMessage @@ -28,6 +30,6 @@ final case class ChangeShortcutBankMessage(player_guid : PlanetSideGUID, object ChangeShortcutBankMessage extends Marshallable[ChangeShortcutBankMessage] { implicit val codec : Codec[ChangeShortcutBankMessage] = ( ("player_guid" | PlanetSideGUID.codec) :: - ("bank" | uintL(4)) + ("bank" | uint4L) ).as[ChangeShortcutBankMessage] }