mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
headbands
This commit is contained in:
parent
85abea5814
commit
5cc54b34bd
17
assets/common/items/armor/misc/head/headband.ron
Normal file
17
assets/common/items/armor/misc/head/headband.ron
Normal file
@ -0,0 +1,17 @@
|
||||
ItemDef(
|
||||
name: "Headband",
|
||||
description: "yep.",
|
||||
kind: Armor((
|
||||
kind: Head("Headband"),
|
||||
stats: (
|
||||
protection: Normal(0.0),
|
||||
poise_resilience: Normal(0.0),
|
||||
energy_max: 0,
|
||||
energy_reward: 0.0,
|
||||
crit_power: 0.0,
|
||||
stealth: 0.0,
|
||||
),
|
||||
)),
|
||||
quality: Common,
|
||||
tags: [],
|
||||
)
|
BIN
assets/voxygen/voxel/armor/misc/head/headband/danari_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/danari_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/danari_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/danari_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/dwarf_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/dwarf_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/dwarf_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/dwarf_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/elf_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/elf_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/elf_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/elf_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/human_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/human_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/human_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/human_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/orc_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/orc_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/orc_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/orc_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/undead_f.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/undead_f.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/armor/misc/head/headband/undead_m.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/voxel/armor/misc/head/headband/undead_m.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -4,37 +4,85 @@
|
||||
color: None
|
||||
),
|
||||
map: {
|
||||
(Danari, "Exclamation"): (
|
||||
(Danari, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-10.0, -10.0, 20.0)),
|
||||
color: None
|
||||
),
|
||||
(Dwarf, "Exclamation"): (
|
||||
),//fix
|
||||
(Dwarf, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-13.0, -10.0, 18.0)),
|
||||
color: None
|
||||
),
|
||||
(Human, "Exclamation"): (
|
||||
),//fix
|
||||
(Human, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-12.0, -11.0, 18.0)),
|
||||
color: None
|
||||
),
|
||||
(Orc, "Exclamation"): (
|
||||
),//fix
|
||||
(Orc, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-11.0, -12.0, 18.0)),
|
||||
color: None
|
||||
),
|
||||
(Undead, "Exclamation"): (
|
||||
),//fix
|
||||
(Undead, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-14.0, -11.0, 18.0)),
|
||||
color: None
|
||||
),
|
||||
(Elf, "Exclamation"): (
|
||||
),//fix
|
||||
(Elf, Male, "Exclamation"): (
|
||||
vox_spec: ("armor.misc.head.exclamation", (-11.0, -11.0, 18.0)),
|
||||
color: None
|
||||
),
|
||||
(Human, "Witch"): (
|
||||
),//fix
|
||||
(Human, Female, "Witch"): (
|
||||
vox_spec: ("armor.witch.hat", (-4.0, -4.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Human, "Pirate"): (
|
||||
(Human, Female, "Pirate"): (
|
||||
vox_spec: ("armor.pirate.hat", (-2.0, -2.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Danari, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.danari_m", (4.0, 2.0, 7.0)),
|
||||
color: None
|
||||
),
|
||||
(Danari, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.danari_f", (4.0, 2.0, 7.0)),
|
||||
color: None
|
||||
),
|
||||
(Dwarf, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.dwarf_m", (2.0, 3.0, 6.0)),
|
||||
color: None
|
||||
),
|
||||
(Dwarf, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.dwarf_f", (2.0, 3.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Human, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.human_m", (2.0, 2.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Human, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.human_f", (4.0, 2.0, 7.0)),
|
||||
color: None
|
||||
),
|
||||
(Orc, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.orc_m", (4.0, 3.0, 7.0)),
|
||||
color: None
|
||||
),
|
||||
(Orc, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.orc_f", (3.0, 1.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Undead, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.undead_m", (0.0, 2.0, 7.0)),
|
||||
color: Some((44, 74, 109))
|
||||
),
|
||||
(Undead, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.undead_f", (0.0, 2.0, 6.0)),
|
||||
color: None
|
||||
),
|
||||
(Elf, Male, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.elf_m", (3.0, 2.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
(Elf, Female, "Headband"): (
|
||||
vox_spec: ("armor.misc.head.headband.elf_f", (3.0, 2.0, 5.0)),
|
||||
color: None
|
||||
),
|
||||
}
|
||||
))
|
||||
|
@ -359,7 +359,7 @@ struct HumArmorLanternSpec(ArmorVoxSpecMap<String, ArmorVoxSpec>);
|
||||
#[derive(Deserialize)]
|
||||
struct HumArmorGliderSpec(ArmorVoxSpecMap<String, ArmorVoxSpec>);
|
||||
#[derive(Deserialize)]
|
||||
struct HumArmorHeadSpec(ArmorVoxSpecMap<(Species, String), ArmorVoxSpec>);
|
||||
struct HumArmorHeadSpec(ArmorVoxSpecMap<(Species, BodyType, String), ArmorVoxSpec>);
|
||||
#[derive(Deserialize)]
|
||||
struct HumArmorTabardSpec(ArmorVoxSpecMap<String, ArmorVoxSpec>);
|
||||
|
||||
@ -969,7 +969,11 @@ impl HumArmorLanternSpec {
|
||||
}
|
||||
impl HumArmorHeadSpec {
|
||||
fn load_head(&self, body: &Body, head: Option<&str>) -> Option<(Segment, Vec3<i32>)> {
|
||||
match self.0.map.get(&(body.species, head?.to_string())) {
|
||||
match self
|
||||
.0
|
||||
.map
|
||||
.get(&(body.species, body.body_type, head?.to_string()))
|
||||
{
|
||||
Some(spec) => Some((
|
||||
graceful_load_segment(&spec.vox_spec.0),
|
||||
Vec3::<f32>::from(spec.vox_spec.1).as_(),
|
||||
@ -981,6 +985,7 @@ impl HumArmorHeadSpec {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl HumArmorTabardSpec {
|
||||
/// FIXME: Either use this, or remove it.
|
||||
#[allow(dead_code)]
|
||||
|
Loading…
Reference in New Issue
Block a user