From 64cc97ad594c3795f52bbcc5084be011786e4f51 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Fri, 12 Mar 2021 17:08:40 +0000 Subject: [PATCH] Mountable airships --- common/src/states/utils.rs | 2 +- server/src/state_ext.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/states/utils.rs b/common/src/states/utils.rs index 640620ac4b..7969f25914 100644 --- a/common/src/states/utils.rs +++ b/common/src/states/utils.rs @@ -171,7 +171,7 @@ impl Body { pub fn can_fly(&self) -> Option { 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, } } diff --git a/server/src/state_ext.rs b/server/src/state_ext.rs index 67a20432cb..8883d11408 100644 --- a/server/src/state_ext.rs +++ b/server/src/state_ext.rs @@ -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())