Add a few extra items to the inventory by default

This commit is contained in:
Joshua Barretto 2019-08-01 09:13:34 +01:00
parent e86e469b6d
commit 9d681eb028

View File

@ -57,12 +57,12 @@ impl Inventory {
impl Default for Inventory {
fn default() -> Inventory {
let mut this = Inventory {
slots: vec![None; 8],
slots: vec![None; 24],
};
this.insert(Item::default());
this.insert(Item::default());
this.insert(Item::default());
for _ in 0..18 {
this.insert(Item::default());
}
this
}