|
|
@ -184,7 +184,7 @@ pub struct Mag { |
|
|
|
pub synchro: u8,
|
|
|
|
pub iq: u8,
|
|
|
|
pub photon_blast: [Option<PhotonBlast>; 3],
|
|
|
|
// color
|
|
|
|
pub color: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -197,10 +197,10 @@ impl Mag { |
|
|
|
result[6..8].copy_from_slice(&self.pow.to_le_bytes());
|
|
|
|
result[8..10].copy_from_slice(&self.dex.to_le_bytes());
|
|
|
|
result[10..12].copy_from_slice(&self.mnd.to_le_bytes());
|
|
|
|
//result[12] = color
|
|
|
|
result[14] = self.photon_blast_count();
|
|
|
|
result[13] = self.iq;
|
|
|
|
result[12] = self.synchro;
|
|
|
|
result[13] = self.iq;
|
|
|
|
result[14] = self.photon_blast_count();
|
|
|
|
result[15] = self.color;
|
|
|
|
result
|
|
|
|
}
|
|
|
|
|
|
|
|