Add todo making glide an ability/item

This commit is contained in:
timokoesters 2019-08-25 21:14:10 +02:00
parent 98f8196a16
commit c278ac9927
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097

View File

@ -79,11 +79,11 @@ impl<'a> System<'a> for Sys {
.unwrap_or(controller.move_dir.into());
// Glide
// TODO: Check for glide ability/item
if controller.glide
&& !physics.on_ground
&& (character.action == Idle || character.action.is_wield())
&& character.movement == Jump
// TODO: Ask zesterer if we can remove this
&& body.is_humanoid()
{
character.movement = Glide;