Mountable airships

This commit is contained in:
Joshua Barretto 2021-03-12 17:08:40 +00:00 committed by Avi Weinstock
parent 09142d99b8
commit e59b68c262
2 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,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

@ -233,6 +233,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())