mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
new: face expression when a new unit is detected depends on the units bond level
This commit is contained in:
@ -55,6 +55,9 @@ class Peer(object):
|
||||
def first_encounter(self):
|
||||
return self.encounters == 1
|
||||
|
||||
def is_good_friend(self, config):
|
||||
return self.encounters >= config['personality']['bond_encounters_factor']
|
||||
|
||||
def face(self):
|
||||
return self.adv.get('face', faces.FRIEND)
|
||||
|
||||
|
Reference in New Issue
Block a user