Skip to content

Commit 7ff3e98

Browse files
authored
Merge pull request #2508 from LmeSzinc/dev
Bug fix
2 parents 00f2307 + 2147059 commit 7ff3e98

27 files changed

Lines changed: 425 additions & 106 deletions

campaign/campaign_sos/campaign_10_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'I6'
@@ -42,7 +42,7 @@
4242
= MAP.flatten()
4343

4444

45-
class Config:
45+
class Config(ConfigBase):
4646
# ===== Start of generated config =====
4747
MAP_HAS_MAP_STORY = False
4848
MAP_HAS_FLEET_STEP = False
@@ -80,4 +80,4 @@ def battle_5(self):
8080
return self.battle_default()
8181

8282
def battle_6(self):
83-
self.fleet_boss.clear_boss()
83+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_3_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H5'
@@ -36,7 +36,7 @@
3636
= MAP.flatten()
3737

3838

39-
class Config:
39+
class Config(ConfigBase):
4040
# ===== Start of generated config =====
4141
MAP_HAS_MAP_STORY = False
4242
MAP_HAS_FLEET_STEP = False
@@ -81,4 +81,4 @@ def battle_2(self):
8181
return self.battle_default()
8282

8383
def battle_3(self):
84-
self.fleet_boss.clear_boss()
84+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_4_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H7'
@@ -43,7 +43,7 @@
4343
= MAP.flatten()
4444

4545

46-
class Config:
46+
class Config(ConfigBase):
4747
# ===== Start of generated config =====
4848
MAP_HAS_MAP_STORY = False
4949
MAP_HAS_FLEET_STEP = False
@@ -91,4 +91,4 @@ def battle_3(self):
9191
return self.battle_default()
9292

9393
def battle_4(self):
94-
self.fleet_boss.clear_boss()
94+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_5_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H6'
@@ -40,7 +40,7 @@
4040
= MAP.flatten()
4141

4242

43-
class Config:
43+
class Config(ConfigBase):
4444
# ===== Start of generated config =====
4545
MAP_HAS_MAP_STORY = False
4646
MAP_HAS_FLEET_STEP = False
@@ -85,4 +85,4 @@ def battle_3(self):
8585
return self.battle_default()
8686

8787
def battle_4(self):
88-
self.fleet_boss.clear_boss()
88+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_6_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H6'
@@ -41,7 +41,7 @@
4141
= MAP.flatten()
4242

4343

44-
class Config:
44+
class Config(ConfigBase):
4545
# ===== Start of generated config =====
4646
MAP_HAS_MAP_STORY = False
4747
MAP_HAS_FLEET_STEP = False
@@ -73,4 +73,4 @@ def battle_4(self):
7373
return self.battle_default()
7474

7575
def battle_5(self):
76-
self.fleet_boss.clear_boss()
76+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_7_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H6'
@@ -41,7 +41,7 @@
4141
= MAP.flatten()
4242

4343

44-
class Config:
44+
class Config(ConfigBase):
4545
# ===== Start of generated config =====
4646
MAP_HAS_MAP_STORY = False
4747
MAP_HAS_FLEET_STEP = False
@@ -76,4 +76,4 @@ def battle_4(self):
7676
return self.battle_default()
7777

7878
def battle_5(self):
79-
self.fleet_boss.clear_boss()
79+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_8_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'H7'
@@ -43,7 +43,7 @@
4343
= MAP.flatten()
4444

4545

46-
class Config:
46+
class Config(ConfigBase):
4747
# ===== Start of generated config =====
4848
MAP_HAS_MAP_STORY = False
4949
MAP_HAS_FLEET_STEP = False
@@ -87,4 +87,4 @@ def battle_3(self):
8787
return self.battle_default()
8888

8989
def battle_4(self):
90-
self.fleet_boss.clear_boss()
90+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_9_5.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from module.map.map_base import CampaignMap
33
from module.map.map_grids import RoadGrids, SelectedGrids
44

5-
from .campaign_base import CampaignBase
5+
from .campaign_base import CampaignBase, ConfigBase
66

77
MAP = CampaignMap('SOS')
88
MAP.shape = 'I6'
@@ -41,7 +41,7 @@
4141
= MAP.flatten()
4242

4343

44-
class Config:
44+
class Config(ConfigBase):
4545
# ===== Start of generated config =====
4646
MAP_HAS_MAP_STORY = False
4747
MAP_HAS_FLEET_STEP = False
@@ -72,4 +72,4 @@ def battle_4(self):
7272
return self.battle_default()
7373

7474
def battle_5(self):
75-
self.fleet_boss.clear_boss()
75+
return self.fleet_boss.clear_boss()

campaign/campaign_sos/campaign_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
from module.template.assets import TEMPLATE_STAGE_SOS
66

77

8+
class ConfigBase:
9+
MAP_HAS_CLEAR_PERCENTAGE = False
10+
11+
812
class CampaignBase(CampaignBase_):
913
ENEMY_FILTER = '1T > 1L > 1E > 1M > 2T > 2L > 2E > 2M > 3T > 3L > 3E > 3M'
1014

deploy/AidLux/0.92/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ pyzmq==22.3.0
2626
onepush
2727
pydantic
2828
psutil==5.9.3
29-
av==10.0.0
29+
av==10.0.0
30+
uiautomator2cache==0.3.0.1

0 commit comments

Comments
 (0)