Browse Source

fix mag item data

pull/80/head
jake 3 years ago
parent
commit
8b87bd8d7b
  1. 1
      src/entity/item/mag.rs

1
src/entity/item/mag.rs

@ -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());

Loading…
Cancel
Save