new: new grateful status that can override sad/bored/lonely if units with a strong bond are nearby

This commit is contained in:
Simone Margaritelli
2019-10-23 18:19:43 +02:00
parent 277906a673
commit 36c3ea5bbc
8 changed files with 144 additions and 94 deletions

View File

@ -85,6 +85,11 @@ class Voice:
self._('{name} missed!').format(name=who),
self._('Missed!')])
def on_grateful(self):
return random.choice([
self._('Good friends are a blessing!'),
self._('I love my friends!')])
def on_lonely(self):
return random.choice([
self._('Nobody wants to play with me ...'),