mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Mountable airships
This commit is contained in:
parent
069f259315
commit
64cc97ad59
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user