removed warnings and item test values

This commit is contained in:
Pfauenauge90 2020-03-22 14:55:08 +01:00
parent 61e2a986f2
commit 662f5b1037
3 changed files with 4 additions and 57 deletions

View File

@ -277,62 +277,10 @@ impl Inventory {
impl Default for Inventory {
fn default() -> Inventory {
let mut inventory = Inventory {
slots: vec![None; 45],
slots: vec![None; 18],
};
inventory.push(assets::load_expect_cloned(
"common.items.armor.chest.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.belt.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.foot.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.hand.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.pants.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.shoulder.cloth_blue_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.chest.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.belt.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.foot.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.hand.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.pants.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.shoulder.cloth_green_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.chest.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.belt.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.foot.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.hand.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.pants.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned(
"common.items.armor.shoulder.cloth_purple_0",
));
inventory.push(assets::load_expect_cloned("common.items.cheese"));
inventory.push(assets::load_expect_cloned("common.items.apple"));
inventory
}
}

View File

@ -683,7 +683,7 @@ impl CharSelectionUi {
Mode::Create {
name,
body,
loadout,
loadout: _,
tool,
} => {
let mut to_select = false;

View File

@ -21,7 +21,6 @@ use common::{
ItemKind, Loadout,
},
figure::{DynaUnionizer, MatSegment, Material, Segment},
vol::SizedVol,
};
use dot_vox::DotVoxData;
use hashbrown::HashMap;