Merge branch 'juliancoffee/animal_trainer_transfer' into 'master'

Transer Animal Trainers to lvl5 dungeons

See merge request veloren/veloren!2266
This commit is contained in:
Justin Shipsey 2021-05-07 14:13:10 +00:00
commit 395ac5c255

View File

@ -1007,6 +1007,36 @@ impl Floor {
},
3 => {
let mut entities = Vec::new();
entities.resize_with(6, || {
EntityInfo::at(tile_wcenter.map(|e| e as f32))
.with_body(comp::Body::QuadrupedLow(
comp::quadruped_low::Body::random_with(
dynamic_rng,
&comp::quadruped_low::Species::Hakulaq,
),
))
.with_name("Hakulaq".to_string())
.with_loot_drop(chosen.read().choose().to_item())
});
entities
},
4 => {
vec![
EntityInfo::at(tile_wcenter.map(|e| e as f32))
.with_body(comp::Body::BipedLarge(
comp::biped_large::Body::random_with(
dynamic_rng,
&comp::biped_large::Species::Dullahan,
),
))
.with_name("Dullahan Guard".to_string())
.with_loot_drop(chosen.read().choose().to_item()),
]
},
5 => {
let mut entities = Vec::new();
match dynamic_rng.gen_range(0..2) {
0 => {
entities.push(
EntityInfo::at(tile_wcenter.map(|e| e as f32))
.with_body(comp::Body::Humanoid(comp::humanoid::Body::random()))
@ -1039,23 +1069,8 @@ impl Floor {
.with_name("Tamed Darkhound".to_string())
.with_loot_drop(chosen.read().choose().to_item())
});
entities
},
4 => {
vec![
EntityInfo::at(tile_wcenter.map(|e| e as f32))
.with_body(comp::Body::BipedLarge(
comp::biped_large::Body::random_with(
dynamic_rng,
&comp::biped_large::Species::Dullahan,
),
))
.with_name("Dullahan Guard".to_string())
.with_loot_drop(chosen.read().choose().to_item()),
]
},
5 => {
let mut entities = Vec::new();
_ => {
entities.resize_with(10, || {
EntityInfo::at(tile_wcenter.map(|e| e as f32))
.with_body(comp::Body::BipedSmall(
@ -1065,11 +1080,15 @@ impl Floor {
),
))
.with_name("Cultist Husk".to_string())
.with_loot_drop(chosen.read().choose().to_item())
.with_loot_drop(
chosen.read().choose().to_item(),
)
.with_loadout_config(
loadout_builder::LoadoutConfig::Husk,
)
});
},
}
entities
},
_ => {