Mountable airships

This commit is contained in:
Joshua Barretto 2021-03-12 17:08:40 +00:00 committed by Avi Weinstock
parent db7d5a7771
commit 6dbf033c61
2 changed files with 2 additions and 1 deletions
common/src/states
server/src

@ -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,
}
}

@ -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())