Browse Source

fix constants

Bastien Sevajol 6 years ago
parent
commit
b655c71a25
2 changed files with 5 additions and 3 deletions
  1. 1 1
      opencombat/const.py
  2. 4 2
      opencombat/simulation/base.py

+ 1 - 1
opencombat/const.py View File

10
 
10
 
11
 SIDE = 'SIDE'
11
 SIDE = 'SIDE'
12
 SIDE_ALLIES = 'SIDE_ALLIES'
12
 SIDE_ALLIES = 'SIDE_ALLIES'
13
-SIDE_AXIS = 'SIDE_ALLIES'
13
+SIDE_AXIS = 'SIDE_AXIS'
14
 
14
 
15
 COUNTRY = 'COUNTRY'
15
 COUNTRY = 'COUNTRY'
16
 COUNTRY_USSR = 'USSR'
16
 COUNTRY_USSR = 'USSR'

+ 4 - 2
opencombat/simulation/base.py View File

2
 from opencombat.const import COLLECTION_ALIVE
2
 from opencombat.const import COLLECTION_ALIVE
3
 from opencombat.const import COUNTRY_USSR
3
 from opencombat.const import COUNTRY_USSR
4
 from opencombat.const import FLAG_USSR
4
 from opencombat.const import FLAG_USSR
5
+from opencombat.const import FLAG_DE
5
 from opencombat.const import SIDE_ALLIES
6
 from opencombat.const import SIDE_ALLIES
7
+from opencombat.const import SIDE_AXIS
6
 from opencombat.const import COUNTRY_DE
8
 from opencombat.const import COUNTRY_DE
7
 from opencombat.const import USSR_COLOR
9
 from opencombat.const import USSR_COLOR
8
 from opencombat.const import DE_COLOR
10
 from opencombat.const import DE_COLOR
34
         elif country == COUNTRY_DE:
36
         elif country == COUNTRY_DE:
35
             return {
37
             return {
36
                 SELECTION_COLOR_RGB: DE_COLOR,
38
                 SELECTION_COLOR_RGB: DE_COLOR,
37
-                FLAG: FLAG_USSR,
38
-                SIDE: SIDE_ALLIES,
39
+                FLAG: FLAG_DE,
40
+                SIDE: SIDE_AXIS,
39
             }
41
             }
40
 
42
 
41
         raise NotImplementedError('Unknown country "{}"'.format(country))
43
         raise NotImplementedError('Unknown country "{}"'.format(country))