mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-12 06:55:10 +00:00
optional field spacing data (CCRIDER sample)
This commit is contained in:
parent
4c5e67ca89
commit
db8d3fc7ca
2 changed files with 5 additions and 4 deletions
|
|
@ -286,7 +286,8 @@ object DetailedCharacterData extends Marshallable[DetailedCharacterData] {
|
||||||
("stamina" | uint16L) ::
|
("stamina" | uint16L) ::
|
||||||
ignore(147) ::
|
ignore(147) ::
|
||||||
("certs" | listOfN(uint8L, uint8L)) ::
|
("certs" | listOfN(uint8L, uint8L)) ::
|
||||||
ignore(5) ::
|
optional(bool, uint32L) :: //ask about sample CCRIDER
|
||||||
|
ignore(4) ::
|
||||||
(("implants" | PacketHelpers.listOfNSized(numberOfImplantSlots(bep), implant_entry_codec)) >>:~ { implants =>
|
(("implants" | PacketHelpers.listOfNSized(numberOfImplantSlots(bep), implant_entry_codec)) >>:~ { implants =>
|
||||||
ignore(12) ::
|
ignore(12) ::
|
||||||
(("firstTimeEvent_length" | uint32L) >>:~ { len =>
|
(("firstTimeEvent_length" | uint32L) >>:~ { len =>
|
||||||
|
|
@ -306,7 +307,7 @@ object DetailedCharacterData extends Marshallable[DetailedCharacterData] {
|
||||||
}
|
}
|
||||||
).exmap[DetailedCharacterData] (
|
).exmap[DetailedCharacterData] (
|
||||||
{
|
{
|
||||||
case app :: bep :: cep :: _ :: hpmax :: hp :: _ :: armor :: _ :: u1 :: _ :: u2 :: u3 :: stamax :: stam :: _ :: certs :: _ :: implants :: _ :: _ :: fte0 :: fte1 :: _ :: tut0 :: tut1 :: _ :: inv :: drawn :: false :: HNil =>
|
case app :: bep :: cep :: _ :: hpmax :: hp :: _ :: armor :: _ :: u1 :: _ :: u2 :: u3 :: stamax :: stam :: _ :: certs :: _ :: _ :: implants :: _ :: _ :: fte0 :: fte1 :: _ :: tut0 :: tut1 :: _ :: inv :: drawn :: false :: HNil =>
|
||||||
//prepend the displaced first elements to their lists
|
//prepend the displaced first elements to their lists
|
||||||
val fteList : List[String] = if(fte0.isDefined) { fte0.get +: fte1 } else fte1
|
val fteList : List[String] = if(fte0.isDefined) { fte0.get +: fte1 } else fte1
|
||||||
val tutList : List[String] = if(tut0.isDefined) { tut0.get +: tut1 } else tut1
|
val tutList : List[String] = if(tut0.isDefined) { tut0.get +: tut1 } else tut1
|
||||||
|
|
@ -334,7 +335,7 @@ object DetailedCharacterData extends Marshallable[DetailedCharacterData] {
|
||||||
firstTutorial = Some(tutList.head)
|
firstTutorial = Some(tutList.head)
|
||||||
tutListCopy = tutList.tail
|
tutListCopy = tutList.tail
|
||||||
}
|
}
|
||||||
Attempt.successful(app :: bep :: cep :: () :: hpmax :: hp :: () :: armor :: () :: u1 :: () :: u2 :: u3 :: stamax :: stam :: () :: certs :: () :: implantList :: () :: fteList.size.toLong :: firstEvent :: fteListCopy :: tutList.size.toLong :: firstTutorial :: tutListCopy :: () :: inv :: drawn :: false :: HNil)
|
Attempt.successful(app :: bep :: cep :: () :: hpmax :: hp :: () :: armor :: () :: u1 :: () :: u2 :: u3 :: stamax :: stam :: () :: certs :: None :: () :: implantList :: () :: fteList.size.toLong :: firstEvent :: fteListCopy :: tutList.size.toLong :: firstTutorial :: tutListCopy :: () :: inv :: drawn :: false :: HNil)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue