mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Temporarily disable humanoid rtsim entities until their pathfinding is fixed
This commit is contained in:
parent
05e93c3518
commit
8f13750027
@ -34,19 +34,20 @@ impl Entity {
|
|||||||
pub fn get_body(&self) -> comp::Body {
|
pub fn get_body(&self) -> comp::Body {
|
||||||
match self.rng(PERM_GENUS).gen::<f32>() {
|
match self.rng(PERM_GENUS).gen::<f32>() {
|
||||||
// we want 5% airships, 45% birds, 50% humans
|
// we want 5% airships, 45% birds, 50% humans
|
||||||
x if x < 0.05 => comp::Body::Ship(comp::ship::Body::DefaultAirship),
|
// HUMANS TEMPORARILY DISABLED UNTIL PATHFINDING FIXED
|
||||||
x if x < 0.50 => {
|
x if x < 0.10 => comp::Body::Ship(comp::ship::Body::DefaultAirship),
|
||||||
|
_ => {
|
||||||
let species = *(&comp::bird_medium::ALL_SPECIES)
|
let species = *(&comp::bird_medium::ALL_SPECIES)
|
||||||
.choose(&mut self.rng(PERM_SPECIES))
|
.choose(&mut self.rng(PERM_SPECIES))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
comp::bird_medium::Body::random_with(&mut self.rng(PERM_BODY), &species).into()
|
comp::bird_medium::Body::random_with(&mut self.rng(PERM_BODY), &species).into()
|
||||||
},
|
},
|
||||||
_ => {
|
// _ => {
|
||||||
let species = *(&comp::humanoid::ALL_SPECIES)
|
// let species = *(&comp::humanoid::ALL_SPECIES)
|
||||||
.choose(&mut self.rng(PERM_SPECIES))
|
// .choose(&mut self.rng(PERM_SPECIES))
|
||||||
.unwrap();
|
// .unwrap();
|
||||||
comp::humanoid::Body::random_with(&mut self.rng(PERM_BODY), &species).into()
|
// comp::humanoid::Body::random_with(&mut self.rng(PERM_BODY), &species).into()
|
||||||
},
|
// },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ pub fn init(state: &mut State, #[cfg(feature = "worldgen")] world: &world::World
|
|||||||
#[cfg(not(feature = "worldgen"))]
|
#[cfg(not(feature = "worldgen"))]
|
||||||
let mut rtsim = RtSim::new(Vec2::new(40, 40));
|
let mut rtsim = RtSim::new(Vec2::new(40, 40));
|
||||||
|
|
||||||
for _ in 0..5000 {
|
for _ in 0..2500 {
|
||||||
let pos = rtsim
|
let pos = rtsim
|
||||||
.chunks
|
.chunks
|
||||||
.size()
|
.size()
|
||||||
|
Loading…
Reference in New Issue
Block a user