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 cb8e3b9805
commit 9bc006dee1

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
}