mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add a few extra items to the inventory by default
This commit is contained in:
parent
e86e469b6d
commit
9d681eb028
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user