mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made agents cleverer
This commit is contained in:
@ -25,6 +25,7 @@ impl Alignment {
|
||||
// Never attacks
|
||||
pub fn passive_towards(self, other: Alignment) -> bool {
|
||||
match (self, other) {
|
||||
(Alignment::Enemy, Alignment::Enemy) => true,
|
||||
(Alignment::Owned(a), Alignment::Owned(b)) if a == b => true,
|
||||
_ => false,
|
||||
}
|
||||
|
Reference in New Issue
Block a user