Merge branch 'snowram/eagle' into 'master'

eagle npc

See merge request veloren/veloren!839
This commit is contained in:
Justin Shipsey 2020-03-08 15:46:13 +00:00
commit 7c9f0a8416
20 changed files with 80 additions and 3 deletions

View File

@ -459,6 +459,10 @@
"peacock": {
"keyword": "peacock",
"generic": "Peacock"
},
"eagle": {
"keyword": "eagle",
"generic": "Eagle"
}
}
},

View File

@ -111,4 +111,32 @@
center: ("npc.peacock.female.tail"),
)
),
(Eagle, Male): (
head: (
offset: (-2.0, -2.0, -3.5),
center: ("npc.eagle.female.head"),
),
torso: (
offset: (-3.0, -4.5, -4.5),
center: ("npc.eagle.female.torso"),
),
tail: (
offset: (-2.0, -3.5, -3.5),
center: ("npc.eagle.female.tail"),
)
),
(Eagle, Female): (
head: (
offset: (-2.0, -2.0, -3.5),
center: ("npc.eagle.female.head"),
),
torso: (
offset: (-3.0, -4.5, -4.5),
center: ("npc.eagle.female.torso"),
),
tail: (
offset: (-2.0, -3.5, -3.5),
center: ("npc.eagle.female.tail"),
)
),
})

View File

@ -143,4 +143,40 @@
lateral: ("npc.peacock.female.leg_r"),
)
),
(Eagle, Male): (
wing_l: (
offset: (-1.0, -3.5, -13.0),
lateral: ("npc.eagle.male.wing_l"),
),
wing_r: (
offset: (-1.0, -3.5, -13.0),
lateral: ("npc.eagle.male.wing_r"),
),
foot_l: (
offset: (-1.5, 0.0, -8.0),
lateral: ("npc.eagle.male.leg_l"),
),
foot_r: (
offset: (-1.5, 0.0, -8.0),
lateral: ("npc.eagle.male.leg_r"),
)
),
(Eagle, Female): (
wing_l: (
offset: (-1.0, -3.5, -13.0),
lateral: ("npc.eagle.female.wing_l"),
),
wing_r: (
offset: (-1.0, -3.5, -13.0),
lateral: ("npc.eagle.female.wing_r"),
),
foot_l: (
offset: (-1.5, 0.0, -8.0),
lateral: ("npc.eagle.female.leg_l"),
),
foot_r: (
offset: (-1.5, 0.0, -8.0),
lateral: ("npc.eagle.female.leg_r"),
)
),
})

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -386,7 +386,7 @@
central: ("npc.lion.male.ears"),
),
tail: (
offset: (-0.5, -1.0, -8.0),
offset: (-0.5, -1.0, -1.0),
central: ("npc.lion.male.tail"),
),
),
@ -417,7 +417,7 @@
),
tail: (
offset: (-0.5, -1.0, -1.0),
central: ("npc.lion.male.tail"),
central: ("npc.lion.female.tail"),
),
),
(Tarasque, Male): (

View File

@ -31,6 +31,7 @@ pub enum Species {
Chicken = 1,
Goose = 2,
Peacock = 3,
Eagle = 4,
}
/// Data representing per-species generic data.
@ -42,6 +43,7 @@ pub struct AllSpecies<SpeciesMeta> {
pub chicken: SpeciesMeta,
pub goose: SpeciesMeta,
pub peacock: SpeciesMeta,
pub eagle: SpeciesMeta,
}
impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta> {
@ -54,15 +56,17 @@ impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta>
Species::Chicken => &self.chicken,
Species::Goose => &self.goose,
Species::Peacock => &self.peacock,
Species::Eagle => &self.eagle,
}
}
}
pub const ALL_SPECIES: [Species; 4] = [
pub const ALL_SPECIES: [Species; 5] = [
Species::Duck,
Species::Chicken,
Species::Goose,
Species::Peacock,
Species::Eagle,
];
impl<'a, SpeciesMeta: 'a> IntoIterator for &'a AllSpecies<SpeciesMeta> {

View File

@ -103,30 +103,35 @@ impl<'a> From<&'a comp::bird_medium::Body> for SkeletonAttr {
(Chicken, _) => (4.0, 3.0),
(Goose, _) => (5.0, 5.0),
(Peacock, _) => (4.0, 7.0),
(Eagle, _) => (3.5, 5.0),
},
chest: match (body.species, body.body_type) {
(Duck, _) => (0.0, 5.0),
(Chicken, _) => (0.0, 5.0),
(Goose, _) => (0.0, 8.0),
(Peacock, _) => (0.0, 10.0),
(Eagle, _) => (0.0, 8.0),
},
tail: match (body.species, body.body_type) {
(Duck, _) => (-3.0, 1.5),
(Chicken, _) => (-3.0, 1.5),
(Goose, _) => (-5.0, 3.0),
(Peacock, _) => (-5.5, 2.0),
(Eagle, _) => (-8.0, -4.0),
},
wing: match (body.species, body.body_type) {
(Duck, _) => (2.75, 0.0, 6.0),
(Chicken, _) => (2.75, 0.0, 6.0),
(Goose, _) => (3.75, -1.0, 9.0),
(Peacock, _) => (3.0, 0.0, 9.0),
(Eagle, _) => (3.0, -8.0, 5.0),
},
foot: match (body.species, body.body_type) {
(Duck, _) => (2.0, -1.5, 4.0),
(Chicken, _) => (2.0, -1.5, 4.0),
(Goose, _) => (2.0, -1.5, 7.0),
(Peacock, _) => (2.0, -2.5, 8.0),
(Eagle, _) => (2.0, -2.0, 8.0),
},
}
}