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
cb8e3b9805
commit
9bc006dee1
@ -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…
Reference in New Issue
Block a user