Now possible to open and save game under different names.

This commit is contained in:
Khopa
2020-08-09 17:31:53 +02:00
parent 7354a34f1a
commit 23f4df766c
7 changed files with 62 additions and 25 deletions

View File

@@ -75,6 +75,7 @@ class Game:
self.__culling_points = self.compute_conflicts_position()
self.__frontlineData = []
self.__destroyed_units = []
self.savepath = ""
self.sanitize_sides()
@@ -242,6 +243,9 @@ class Game:
gplanner.plan_groundwar()
self.ground_planners[cp.id] = gplanner
# Autosave progress
persistency.autosave(self)
def _enemy_reinforcement(self):
"""
Compute and commision reinforcement for enemy bases