This commit is contained in:
2026-03-21 21:51:29 +00:00
parent f52c8ab18c
commit dcdfb375f0
+1 -1
View File
@@ -124,7 +124,7 @@ impl PersonalInventory {
pub fn can_accept(&self, item_weight: u32) -> bool {
self.slots.len() < self.max_slots as usize
&& self.current_weight + item_weight <= self.max_carry_weight()
&& self.current_weight.saturating_add(item_weight) <= self.max_carry_weight()
}
pub fn is_full(&self) -> bool {