main name Main kind modificator demolish reset modify build_time_multi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
main = {
'name': 'Main',
'kind': ['modificator'],
'demolish': 'reset',
'modify': 'build_time_multiplicator',
'properties': {
'level 0': {
'live_points': 100,
'build_time_multiplicator': 1.0, # %
'cost': (0, 0, 0),
'build_time': 0,
},
'level 1': {
'live_points': 100,
'build_time_multiplicator': 1.0, # %
'cost': (100, 200, 200),
'build_time': 40,
},
'level 2': {
'live_points': 150,
'build_time_multiplicator': 0.95, # %
'cost': (200, 400, 500),
'build_time': 50,
},
}
}
barracks = {
'name': 'Barracks',
'kind': ['use_case_runner', 'modificator']
'demolish': 'destroy',
'use_case': 'make_battle_unit',
'modify': 'battle_unit_upper_limit',
'properties': {
'level 1': {
'live_points': 100,
'battle_unit_upper_limit': 10,
'cost': (100, 200, 200),
'build_time': 40,
},
'level 2': {
'live_points': 150,
'battle_unit_upper_limit': 20,
'cost': (200, 400, 500),
'build_time': 50,
'requires': ['main 2']
},
}
}