fix mag item data
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
jake 2021-12-02 01:57:30 -07:00
parent 82ef5ba2ea
commit 8b87bd8d7b

View File

@ -567,6 +567,7 @@ impl Mag {
pub fn as_bytes(&self) -> [u8; 16] {
let mut result = [0; 16];
result[0..3].copy_from_slice(&self.mag.value());
result[2] = self.level() as u8;
result[3] = self.photon_blast_value();
result[4..6].copy_from_slice(&self.def.to_le_bytes());
result[6..8].copy_from_slice(&self.pow.to_le_bytes());