mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add rock snapper mob
This commit is contained in:
parent
32ec72cc3a
commit
a3a55f5bb2
@ -585,6 +585,10 @@
|
||||
"tortoise": {
|
||||
"keyword": "tortoise",
|
||||
"generic": "Tortoise"
|
||||
},
|
||||
"rocksnapper": {
|
||||
"keyword": "rocksnapper",
|
||||
"generic": "Rock Snapper"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
assets/voxygen/voxel/npc/rocksnapper/female/chest.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/chest.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_bl.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_bl.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_br.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_br.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_fl.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_fl.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_fr.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/foot_fr.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/head_lower.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/head_lower.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/head_upper.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/head_upper.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/jaw.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/jaw.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/tail_front.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/tail_front.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/female/tail_rear.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/female/tail_rear.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/chest.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/chest.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_bl.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_bl.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_br.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_br.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_fl.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_fl.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_fr.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/foot_fr.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/head_lower.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/head_lower.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/head_upper.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/head_upper.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/jaw.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/jaw.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/tail_front.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/tail_front.vox
Normal file
Binary file not shown.
BIN
assets/voxygen/voxel/npc/rocksnapper/male/tail_rear.vox
Normal file
BIN
assets/voxygen/voxel/npc/rocksnapper/male/tail_rear.vox
Normal file
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.
@ -312,4 +312,56 @@
|
||||
central: ("npc.tortoise.female.tail_front"),
|
||||
),
|
||||
),
|
||||
(Rocksnapper, Male): (
|
||||
upper: (
|
||||
offset: (-3.5, -4.5, -3.0),
|
||||
central: ("npc.rocksnapper.male.head_upper"),
|
||||
),
|
||||
lower: (
|
||||
offset: (-3.5, -5.0, -3.5),
|
||||
central: ("npc.rocksnapper.male.head_lower"),
|
||||
),
|
||||
jaw: (
|
||||
offset: (-6.5, -6.0, -2.5),
|
||||
central: ("npc.rocksnapper.male.jaw"),
|
||||
),
|
||||
chest: (
|
||||
offset: (-15.5, -18.5, -13.5),
|
||||
central: ("npc.rocksnapper.male.chest"),
|
||||
),
|
||||
tail_rear: (
|
||||
offset: (-1.5, -11.0, -2.5),
|
||||
central: ("npc.rocksnapper.male.tail_rear"),
|
||||
),
|
||||
tail_front: (
|
||||
offset: (-2.5, -15.0, -4.5),
|
||||
central: ("npc.rocksnapper.male.tail_front"),
|
||||
),
|
||||
),
|
||||
(Rocksnapper, Female): (
|
||||
upper: (
|
||||
offset: (-3.5, -4.5, -3.0),
|
||||
central: ("npc.rocksnapper.female.head_upper"),
|
||||
),
|
||||
lower: (
|
||||
offset: (-3.5, -5.0, -3.5),
|
||||
central: ("npc.rocksnapper.female.head_lower"),
|
||||
),
|
||||
jaw: (
|
||||
offset: (-6.5, -6.0, -2.5),
|
||||
central: ("npc.rocksnapper.female.jaw"),
|
||||
),
|
||||
chest: (
|
||||
offset: (-15.5, -18.5, -13.5),
|
||||
central: ("npc.rocksnapper.female.chest"),
|
||||
),
|
||||
tail_rear: (
|
||||
offset: (-1.5, -11.0, -2.5),
|
||||
central: ("npc.rocksnapper.female.tail_rear"),
|
||||
),
|
||||
tail_front: (
|
||||
offset: (-2.5, -15.0, -4.5),
|
||||
central: ("npc.rocksnapper.female.tail_front"),
|
||||
),
|
||||
),
|
||||
})
|
||||
|
@ -215,4 +215,40 @@
|
||||
lateral: ("npc.tortoise.female.foot_br"),
|
||||
),
|
||||
),
|
||||
(Rocksnapper, Male): (
|
||||
front_left: (
|
||||
offset: (-6.0, -6.5, -10.0),
|
||||
lateral: ("npc.rocksnapper.male.foot_fl"),
|
||||
),
|
||||
front_right: (
|
||||
offset: (-6.0, -6.5, -10.0),
|
||||
lateral: ("npc.rocksnapper.male.foot_fr"),
|
||||
),
|
||||
back_left: (
|
||||
offset: (-5.5, -4.5, -9.0),
|
||||
lateral: ("npc.rocksnapper.male.foot_bl"),
|
||||
),
|
||||
back_right: (
|
||||
offset: (-5.5, -4.5, -9.0),
|
||||
lateral: ("npc.rocksnapper.male.foot_br"),
|
||||
),
|
||||
),
|
||||
(Rocksnapper, Female): (
|
||||
front_left: (
|
||||
offset: (-6.0, -6.5, -10.0),
|
||||
lateral: ("npc.rocksnapper.female.foot_fl"),
|
||||
),
|
||||
front_right: (
|
||||
offset: (-6.0, -6.5, -10.0),
|
||||
lateral: ("npc.rocksnapper.female.foot_fr"),
|
||||
),
|
||||
back_left: (
|
||||
offset: (-5.5, -4.5, -9.0),
|
||||
lateral: ("npc.rocksnapper.female.foot_bl"),
|
||||
),
|
||||
back_right: (
|
||||
offset: (-5.5, -4.5, -9.0),
|
||||
lateral: ("npc.rocksnapper.female.foot_br"),
|
||||
),
|
||||
),
|
||||
})
|
||||
|
@ -33,6 +33,7 @@ pub enum Species {
|
||||
Monitor = 3,
|
||||
Asp = 4,
|
||||
Tortoise = 5,
|
||||
Rocksnapper = 6,
|
||||
}
|
||||
|
||||
/// Data representing per-species generic data.
|
||||
@ -46,6 +47,7 @@ pub struct AllSpecies<SpeciesMeta> {
|
||||
pub monitor: SpeciesMeta,
|
||||
pub asp: SpeciesMeta,
|
||||
pub tortoise: SpeciesMeta,
|
||||
pub rocksnapper: SpeciesMeta,
|
||||
}
|
||||
|
||||
impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta> {
|
||||
@ -60,17 +62,19 @@ impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta>
|
||||
Species::Monitor => &self.monitor,
|
||||
Species::Asp => &self.asp,
|
||||
Species::Tortoise => &self.tortoise,
|
||||
Species::Rocksnapper => &self.rocksnapper,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub const ALL_SPECIES: [Species; 6] = [
|
||||
pub const ALL_SPECIES: [Species; 7] = [
|
||||
Species::Crocodile,
|
||||
Species::Alligator,
|
||||
Species::Salamander,
|
||||
Species::Monitor,
|
||||
Species::Asp,
|
||||
Species::Tortoise,
|
||||
Species::Rocksnapper,
|
||||
];
|
||||
|
||||
impl<'a, SpeciesMeta: 'a> IntoIterator for &'a AllSpecies<SpeciesMeta> {
|
||||
|
@ -133,6 +133,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (3.5, 2.0),
|
||||
(Asp, _) => (6.0, 5.5),
|
||||
(Tortoise, _) => (5.0, 1.0),
|
||||
(Rocksnapper, _) => (6.0, 0.5),
|
||||
},
|
||||
head_lower: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (8.0, 0.0),
|
||||
@ -141,6 +142,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (10.0, 3.0),
|
||||
(Asp, _) => (9.0, 2.5),
|
||||
(Tortoise, _) => (12.0, -3.5),
|
||||
(Rocksnapper, _) => (12.0, -9.0),
|
||||
},
|
||||
jaw: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (0.0, -3.0),
|
||||
@ -149,6 +151,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (0.0, -1.0),
|
||||
(Asp, _) => (1.0, -2.0),
|
||||
(Tortoise, _) => (0.5, -2.0),
|
||||
(Rocksnapper, _) => (0.5, -1.5),
|
||||
},
|
||||
chest: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (0.0, 5.0),
|
||||
@ -157,6 +160,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (0.0, 5.0),
|
||||
(Asp, _) => (0.0, 8.0),
|
||||
(Tortoise, _) => (0.0, 11.0),
|
||||
(Rocksnapper, _) => (0.0, 16.5),
|
||||
},
|
||||
tail_rear: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (-12.5, -1.0),
|
||||
@ -165,6 +169,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (-12.0, 0.0),
|
||||
(Asp, _) => (-14.0, -2.0),
|
||||
(Tortoise, _) => (-7.0, -1.5),
|
||||
(Rocksnapper, _) => (-14.5, -2.0),
|
||||
},
|
||||
tail_front: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (-6.0, 0.0),
|
||||
@ -173,6 +178,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (-6.5, 0.0),
|
||||
(Asp, _) => (-6.0, -2.0),
|
||||
(Tortoise, _) => (-13.5, -3.0),
|
||||
(Rocksnapper, _) => (-13.5, -6.5),
|
||||
},
|
||||
feet_f: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (6.0, 6.0, -1.0),
|
||||
@ -181,6 +187,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (6.0, 6.0, 0.0),
|
||||
(Asp, _) => (6.5, 6.0, -1.0),
|
||||
(Tortoise, _) => (8.5, 9.5, -3.0),
|
||||
(Rocksnapper, _) => (12.5, 10.0, -6.5),
|
||||
},
|
||||
feet_b: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (6.0, -6.0, -1.0),
|
||||
@ -189,6 +196,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (6.0, -6.0, 0.0),
|
||||
(Asp, _) => (6.5, -3.5, -1.0),
|
||||
(Tortoise, _) => (8.0, -8.5, -3.0),
|
||||
(Rocksnapper, _) => (12.0, -12.0, -7.5),
|
||||
},
|
||||
height: match (body.species, body.body_type) {
|
||||
(Crocodile, _) => (1.0),
|
||||
@ -197,6 +205,7 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
|
||||
(Monitor, _) => (1.0),
|
||||
(Asp, _) => (1.0),
|
||||
(Tortoise, _) => (1.0),
|
||||
(Rocksnapper, _) => (1.0),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user