diff --git a/src/packet/messages.rs b/src/packet/messages.rs index 07273b5..1a27e7f 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -333,7 +333,10 @@ pub struct ComboStep3 { #[pso_message(0x46)] pub struct TargetsHit { - targets: u32, // thats a lot of targets! + num_of_targets: [u8; 4], // thats a lot of targets? + client2: u8, + target2: u8, + unknown2: [u8; 2], } #[pso_message(0x47)] @@ -341,14 +344,17 @@ pub struct PlayerTechCast { // this packet and packet 0x8D (PlayerTechStart) are technique: u8, unknown1: u8, tech_level: u8, + #[length_of(targets)] num_of_targets: u8, + #[length_is(num_of_targets)] + targets: Vec, } #[pso_message(0x48)] pub struct PlayerTechDone { // this packet gets sent once the tech is actually casted (ie: barta actually shoots out from your feet) technique: u8, unknown1: u8, - tech_level: u8, // tech level in packets is 0-based + tech_level: u8, // level - 1 unknown2: u8, }