From 8b87bd8d7b18b479273c5785e1b611a187111cff Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 2 Dec 2021 01:57:30 -0700 Subject: [PATCH] fix mag item data --- src/entity/item/mag.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entity/item/mag.rs b/src/entity/item/mag.rs index 4f36983..e75656e 100644 --- a/src/entity/item/mag.rs +++ b/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());