Mountable airships

This commit is contained in:
Joshua Barretto 2021-03-12 17:08:40 +00:00
parent 069f259315
commit 64cc97ad59
2 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,7 @@ impl Body {
pub fn can_fly(&self) -> Option<f32> {
match self {
Body::BirdMedium(_) | Body::Dragon(_) | Body::BirdSmall(_) => Some(1.0),
Body::Ship(ship::Body::DefaultAirship) => Some(1.5),
Body::Ship(ship::Body::DefaultAirship) => Some(1.0),
_ => None,
}
}

View File

@ -220,6 +220,7 @@ impl StateExt for State {
.with(comp::Energy::new(ship.into(), level))
.with(comp::Health::new(ship.into(), level))
.with(comp::Stats::new("Airship".to_string()))
.with(comp::MountState::Unmounted)
.with(comp::Buffs::default())
.with(comp::Combo::default())
.with(comp::Agent::with_destination())