mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix
This commit is contained in:
parent
85f9f80024
commit
0fb5b73606
@ -369,39 +369,18 @@ impl CharSelectionUi {
|
|||||||
};
|
};
|
||||||
Some(loadout)
|
Some(loadout)
|
||||||
},
|
},
|
||||||
Mode::Create (characterdata) =>
|
Mode::Create { loadout, tool, .. } => {
|
||||||
let loadout = comp::Loadout {
|
loadout.active_item = tool.map(|tool| comp::ItemConfig {
|
||||||
active_item: characterdata
|
item: (*load_expect::<comp::Item>(tool)).clone(),
|
||||||
.as_ref()
|
ability1: None,
|
||||||
.and_then(|d| d.tool.as_ref())
|
ability2: None,
|
||||||
.map(|tool| comp::ItemConfig {
|
ability3: None,
|
||||||
item: (*load_expect::<comp::Item>(&tool)).clone(),
|
block_ability: None,
|
||||||
ability1: None,
|
dodge_ability: None,
|
||||||
ability2: None,
|
});
|
||||||
ability3: None,
|
Some(loadout.clone())
|
||||||
block_ability: None,
|
},
|
||||||
dodge_ability: None,
|
}
|
||||||
}),
|
|
||||||
second_item: None,
|
|
||||||
shoulder: None,
|
|
||||||
chest: None,
|
|
||||||
belt: None,
|
|
||||||
hand: None,
|
|
||||||
pants: Some(assets::load_expect_cloned(
|
|
||||||
"common.items.armor.starter.rugged_pants",
|
|
||||||
)),
|
|
||||||
foot: Some(assets::load_expect_cloned(
|
|
||||||
"common.items.armor.starter.sandals_0",
|
|
||||||
)),
|
|
||||||
back: None,
|
|
||||||
ring: None,
|
|
||||||
neck: None,
|
|
||||||
lantern: None,
|
|
||||||
head: None,
|
|
||||||
tabard: None,
|
|
||||||
};
|
|
||||||
Some(loadout)
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Split this into multiple modules or functions.
|
// TODO: Split this into multiple modules or functions.
|
||||||
|
Loading…
Reference in New Issue
Block a user