Added mod.rs entries for truffler and Fungome

This commit is contained in:
tijnvdheuvel 2021-10-28 13:48:22 +00:00
parent 377afc410d
commit d4df012835

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,7 @@ 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::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,
@ -234,6 +237,7 @@ fn body_to_voice(body: &Body) -> Option<VoiceKind> {
_ => VoiceKind::Critter, _ => VoiceKind::Critter,
}, },
Body::QuadrupedMedium(body) => match body.species { Body::QuadrupedMedium(body) => match body.species {
quadruped_medium::Species::Truffler => VoiceKind::Truffler,
quadruped_medium::Species::Saber quadruped_medium::Species::Saber
| quadruped_medium::Species::Tiger | quadruped_medium::Species::Tiger
| quadruped_medium::Species::Lion | quadruped_medium::Species::Lion