Made pets healable

This commit is contained in:
Joshua Barretto
2020-07-06 21:18:30 +01:00
parent 55852f9bc7
commit 99a526f702
2 changed files with 16 additions and 6 deletions

View File

@ -40,6 +40,16 @@ impl Alignment {
_ => false,
}
}
// TODO: Remove this hack
pub fn is_friendly_to_players(&self) -> bool {
match self {
Alignment::Npc
| Alignment::Tame
| Alignment::Owned(_) => true,
_ => false,
}
}
}
impl Component for Alignment {