From 6410042e482634bfe1bee9fd148efaf6dee80dcc Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 3 Dec 2020 14:57:17 -0700 Subject: [PATCH] fix grind modification --- src/entity/item/weapon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/item/weapon.rs b/src/entity/item/weapon.rs index ba7090d..b26da45 100644 --- a/src/entity/item/weapon.rs +++ b/src/entity/item/weapon.rs @@ -1513,7 +1513,7 @@ impl Weapon { attr }); } - self.grind += grind; + self.grind = std::cmp::max(self.grind as i32 + grind, 0) as u8; self.tekked = true; }, _ => {}