From 6ef78b4ed6d3bc38c99ccaf4fd398dee2b088b0b Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sun, 3 May 2020 14:26:40 -0300 Subject: [PATCH] drop armour with stats --- src/entity/item/armor.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/entity/item/armor.rs b/src/entity/item/armor.rs index d37bce0..62ae2df 100644 --- a/src/entity/item/armor.rs +++ b/src/entity/item/armor.rs @@ -200,8 +200,9 @@ impl Armor { pub fn as_bytes(&self) -> [u8; 16] { let mut result = [0; 16]; result[0..3].copy_from_slice(&self.armor.value()); - // TODO: other attrs - + result[5] = self.slots; + result[6] = self.dfp; + result[8] = self.evp; result } }