Skip to content

Commit b912536

Browse files
authored
Merge pull request #3034 from LmeSzinc/dev
Bug fix
2 parents 33696b1 + 46d07d1 commit b912536

File tree

6 files changed

+35
-8
lines changed

6 files changed

+35
-8
lines changed

campaign/event_20230817_cn/a1.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
MAP.camera_data_spawn_point = ['E5']
1010
MAP.map_data = """
1111
-- ME ++ ++ ++ -- ++ ++ ++ ME --
12-
ME -- -- Me -- ++ -- Me -- -- ME
13-
++ -- -- -- -- ++ -- -- -- ME ++
14-
++ -- MS __ -- MB -- __ MS -- --
12+
ME -- -- Me ++ ++ ++ Me -- -- ME
13+
++ -- -- -- ++ ++ ++ -- -- ME ++
14+
++ -- MS __ ++ MB ++ __ MS -- --
1515
-- ME -- -- SP -- SP -- -- ME --
1616
-- -- ME ++ -- Me -- Me ++ ++ --
1717
-- -- -- ME -- -- ME -- ++ ++ --

campaign/event_20230817_cn/c1.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
MAP.camera_data_spawn_point = ['E5']
1010
MAP.map_data = """
1111
-- ME ++ ++ ++ -- ++ ++ ++ ME --
12-
ME -- -- Me -- ++ -- Me -- -- ME
13-
++ -- -- -- -- ++ -- -- -- ME ++
14-
++ -- MS __ -- MB -- __ MS -- --
12+
ME -- -- Me ++ ++ ++ Me -- -- ME
13+
++ -- -- -- ++ ++ ++ -- -- ME ++
14+
++ -- MS __ ++ MB ++ __ MS -- --
1515
-- ME -- -- SP -- SP -- -- ME --
1616
-- -- ME ++ -- Me -- Me ++ ++ --
1717
-- -- -- ME -- -- ME -- ++ ++ --

module/base/filter.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,22 @@ def __init__(self, regex, attr, preset=()):
2020
self.filter = []
2121

2222
def load(self, string):
23+
"""
24+
Load a filter string, filters are connected with ">"
25+
26+
There are also tons of unicode characters similar to ">"
27+
> \u003E correct
28+
\uFF1E
29+
\uFE65
30+
\u203a
31+
˃ \u02c3
32+
\u1433
33+
\u276F
34+
"""
2335
string = str(string)
24-
self.filter_raw = [f.strip(' \t\r\n') for f in string.split('>')]
36+
string = re.sub(r'[ \t\r\n]', '', string)
37+
string = re.sub(r'[>﹥›˃ᐳ❯]', '>', string)
38+
self.filter_raw = string.split('>')
2539
self.filter = [self.parse_filter(f) for f in self.filter_raw]
2640

2741
def is_preset(self, filter):

module/map/fleet.py

+3
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ def _goto(self, location, expected=''):
363363

364364
# Cat attack animation
365365
if self.handle_map_cat_attack():
366+
# Already arrive, combat will appear later, but still need to wait siren moving
367+
arrive_timer.reset()
368+
arrive_unexpected_timer.reset()
366369
walk_timeout.reset()
367370
continue
368371

module/os/operation_siren.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,19 @@ def os_cross_month(self):
167167
continue
168168

169169
logger.hr('OpSi reset', level=3)
170-
logger.hr('OpSi clear daily', level=1)
171170

172171
def false_func(*args, **kwargs):
173172
return False
174173

175174
self.is_in_opsi_explore = false_func
176175
self.config.task_switched = false_func
176+
177+
logger.hr('OpSi clear daily', level=1)
178+
self.config.override(
179+
OpsiGeneral_DoRandomMapEvent=True,
180+
OpsiFleet_Fleet=self.config.cross_get('OpsiDaily.OpsiFleet.Fleet'),
181+
OpsiFleet_Submarine=False,
182+
)
177183
count = 0
178184
empty_trial = 0
179185
while 1:
@@ -302,6 +308,7 @@ def os_meowfficer_farming(self):
302308
self.config.override(
303309
OpsiGeneral_DoRandomMapEvent=True,
304310
OpsiGeneral_AkashiShopFilter='ActionPoint',
311+
OpsiFleet_Submarine=False,
305312
)
306313
cd = self.nearest_task_cooling_down
307314
logger.attr('Task cooling down', cd)

module/template/assets.py

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
TEMPLATE_SIREN_CApurple = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_CApurple.gif', 'en': './assets/en/template/TEMPLATE_SIREN_CApurple.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_CApurple.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_CApurple.gif'})
6464
TEMPLATE_SIREN_Carabiniere = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Carabiniere.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Carabiniere.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Carabiniere.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Carabiniere.gif'})
6565
TEMPLATE_SIREN_CAred = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_CAred.gif', 'en': './assets/en/template/TEMPLATE_SIREN_CAred.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_CAred.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_CAred.gif'})
66+
TEMPLATE_SIREN_Champagne = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Champagne.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Champagne.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Champagne.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Champagne.gif'})
6667
TEMPLATE_SIREN_ChihayaKisaragi = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ChihayaKisaragi.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ChihayaKisaragi.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ChihayaKisaragi.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ChihayaKisaragi.gif'})
6768
TEMPLATE_SIREN_Chitose = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Chitose.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Chitose.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Chitose.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Chitose.gif'})
6869
TEMPLATE_SIREN_Chiyoda = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Chiyoda.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Chiyoda.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Chiyoda.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Chiyoda.gif'})
@@ -84,10 +85,12 @@
8485
TEMPLATE_SIREN_Dewey = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Dewey.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Dewey.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Dewey.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Dewey.gif'})
8586
TEMPLATE_SIREN_DidoIdol = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_DidoIdol.gif', 'en': './assets/en/template/TEMPLATE_SIREN_DidoIdol.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_DidoIdol.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_DidoIdol.gif'})
8687
TEMPLATE_SIREN_Dilloy = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Dilloy.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Dilloy.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Dilloy.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Dilloy.gif'})
88+
TEMPLATE_SIREN_DogPink = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_DogPink.gif', 'en': './assets/en/template/TEMPLATE_SIREN_DogPink.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_DogPink.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_DogPink.gif'})
8789
TEMPLATE_SIREN_Dorsetshire = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Dorsetshire.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Dorsetshire.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Dorsetshire.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Dorsetshire.gif'})
8890
TEMPLATE_SIREN_DukeOfYork = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_DukeOfYork.gif', 'en': './assets/en/template/TEMPLATE_SIREN_DukeOfYork.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_DukeOfYork.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_DukeOfYork.gif'})
8991
TEMPLATE_SIREN_ELpurple = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_ELpurple.gif', 'en': './assets/en/template/TEMPLATE_SIREN_ELpurple.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_ELpurple.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_ELpurple.gif'})
9092
TEMPLATE_SIREN_Formidable = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Formidable.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Formidable.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Formidable.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Formidable.gif'})
93+
TEMPLATE_SIREN_Gascogne = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Gascogne.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Gascogne.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Gascogne.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Gascogne.gif'})
9194
TEMPLATE_SIREN_Gloucester = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Gloucester.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Gloucester.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Gloucester.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Gloucester.gif'})
9295
TEMPLATE_SIREN_Gneisenau = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_Gneisenau.gif', 'en': './assets/en/template/TEMPLATE_SIREN_Gneisenau.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_Gneisenau.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_Gneisenau.gif'})
9396
TEMPLATE_SIREN_GrafZeppelin = Template(file={'cn': './assets/cn/template/TEMPLATE_SIREN_GrafZeppelin.gif', 'en': './assets/en/template/TEMPLATE_SIREN_GrafZeppelin.gif', 'jp': './assets/jp/template/TEMPLATE_SIREN_GrafZeppelin.gif', 'tw': './assets/tw/template/TEMPLATE_SIREN_GrafZeppelin.gif'})

0 commit comments

Comments
 (0)