Merge branch 'tijnvdheuvel/newSFX' into 'master'

Merge "Tijnvdheuvel/new sfx" New Truffler & Fungome SFX

See merge request veloren/veloren!2977
This commit is contained in:
Joshua Barretto 2021-11-01 21:15:35 +00:00
commit 80c4e3de19
5 changed files with 26 additions and 0 deletions

View File

@ -979,6 +979,12 @@
], ],
threshold: 1.0, threshold: 1.0,
), ),
Utterance(Calm, Fungome): (
files: [
"voxygen.audio.sfx.utterance.fungome_calm1",
],
threshold: 1.0,
),
Utterance(Calm, Goat): ( Utterance(Calm, Goat): (
files: [ files: [
"voxygen.audio.sfx.utterance.goat_calm1", "voxygen.audio.sfx.utterance.goat_calm1",
@ -998,6 +1004,13 @@
], ],
threshold: 1.0, threshold: 1.0,
), ),
Utterance(Calm, Truffler): (
files: [
"voxygen.audio.sfx.utterance.truffler_calm1",
"voxygen.audio.sfx.utterance.truffler_calm2",
],
threshold: 1.0,
),
Utterance(Greeting, HumanMale): ( Utterance(Greeting, HumanMale): (
files: [ files: [
"voxygen.audio.sfx.utterance.humanmale_greeting1", "voxygen.audio.sfx.utterance.humanmale_greeting1",

BIN
assets/voxygen/audio/sfx/utterance/fungome_calm1.ogg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/audio/sfx/utterance/truffler_calm1.ogg (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/audio/sfx/utterance/truffler_calm2.ogg (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -212,6 +212,8 @@ pub enum VoiceKind {
Goat, Goat,
Mandragora, Mandragora,
Asp, Asp,
Fungome,
Truffler,
} }
fn body_to_voice(body: &Body) -> Option<VoiceKind> { fn body_to_voice(body: &Body) -> Option<VoiceKind> {
@ -227,6 +229,8 @@ fn body_to_voice(body: &Body) -> Option<VoiceKind> {
_ => return None, _ => return None,
}, },
Body::QuadrupedSmall(body) => match body.species { Body::QuadrupedSmall(body) => match body.species {
quadruped_small::Species::Truffler => VoiceKind::Truffler,
quadruped_small::Species::Fungome => VoiceKind::Fungome,
quadruped_small::Species::Sheep => VoiceKind::Sheep, quadruped_small::Species::Sheep => VoiceKind::Sheep,
quadruped_small::Species::Pig | quadruped_small::Species::Boar => VoiceKind::Pig, quadruped_small::Species::Pig | quadruped_small::Species::Boar => VoiceKind::Pig,
quadruped_small::Species::Cat => VoiceKind::Cat, quadruped_small::Species::Cat => VoiceKind::Cat,