added the opponent name in the history filename

This commit is contained in:
Faraphel 2023-03-09 15:14:49 +01:00
parent e3a67eff6a
commit 19af7f454c

View file

@ -228,8 +228,9 @@ class Game(BaseGame):
@property @property
def history_path(self): def history_path(self):
return path_history / ( return path_history / (
datetime.now().strftime("%Y-%m-%d_%H-%M-%S") + datetime.now().strftime("%Y-%m-%d %H-%M-%S") +
self.get_save_suffix() + self.get_save_suffix() +
f" - Contre {self.name_enemy}" +
".bn-history" ".bn-history"
) )