1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-05-19 13:45:18 +08:00

103 Commits

Author SHA1 Message Date
66d383372c Add: war_archives_20220818_cn and war_archives_20230803_cn 2026-05-11 15:55:49 +08:00
LmeSzinc
5f4f968c25 Fix: [TW] Enter event_20260417_cn from page_campaign (#5646) 2026-05-01 22:45:25 +08:00
LmeSzinc
23f185c4cc Upd: button_extract 2026-05-01 04:39:08 +08:00
LmeSzinc
be200d4a3f Merge branch 'dev' 2026-05-01 04:34:12 +08:00
LmeSzinc
2a3f3b4941 Fix: No may_enemy override in 14-4 clear mode (#5637) 2026-05-01 04:25:45 +08:00
LmeSzinc
f36ae75ed3 Fix: Switch ui from other DOA events to event_20250424_cn 2026-05-01 04:15:35 +08:00
LmeSzinc
1c6b5eb4a6 Upd: [TW] Vacation Lane – Beachside Brilliance 2026-05-01 03:27:58 +08:00
guoh064
96c1317887 Upd: [JP] assets REWARD_*.BUTTON (#5644)
to avoid collision with REWARD_*_WHITE and misclicking
2026-05-01 03:04:49 +08:00
guoh064
ac7bedc192 Tmp: event entrance for event 20250424 cn rerun
The event date should be fixed after 20260502 to disable previous concurrent event entrance.
2026-05-01 03:04:34 +08:00
guoh064
0c26c5a355 Upd: event entrance for dual event 20201126/20260417 2026-05-01 03:04:34 +08:00
LmeSzinc
0dbac1950a Upd: [CN] EVENT_20201126_ENTRANCE_TEMP 2026-05-01 03:04:34 +08:00
dragonheart107
4b90a64dde Fix: EN event point position via offset (#5633) 2026-05-01 03:04:34 +08:00
shionari
6665ca2ece Fix:修复国内docker环境编译报错的问题 (#5624)
* 因pypi官网已移除低版本pyav的whl文件,改为自行编译安装,添加相关依赖
另外,因阿里云部分镜像失效导致下载超时,国内源改为清华

* 国内源切换回阿里云

* 指定python镜像的Debian版本为bullseye,默认版本为Bookworm
添加自行编译av所需的依赖
2026-05-01 03:03:51 +08:00
LmeSzinc
7466a3882d Upd: [CN] EVENT_20201126_ENTRANCE_TEMP 2026-04-26 05:49:31 +08:00
dragonheart107
04d900bb3b Fix: EN event point position via offset (#5633) 2026-04-26 03:29:27 +08:00
ArecaSapling
9e58a9d8d4 Upd: [EN] asset EVENT_20201126_ENTRANCE_TEMP (#5630) 2026-04-24 23:58:11 +08:00
LmeSzinc
1fd1b2d59a Merge pull request #5627 from LmeSzinc/dev
Bug fix
2026-04-24 19:05:51 +08:00
LmeSzinc
2c938c9dbf Merge pull request #5625 from guoh064/event_rerun
Add: event entrance for dual event 20201126/20260417
2026-04-24 18:53:06 +08:00
LmeSzinc
32ad98a79f Upd: [EN] EVENT_LIST_CHECK (#5623) 2026-04-24 18:48:40 +08:00
guoh064
cb061d9a5e Upd: [JP] asset MISSION_UNFINISH (#5626) 2026-04-24 18:33:11 +08:00
guoh064
f6b44d6582 Add: event entrance for dual event 20201126/20260417 2026-04-24 14:52:43 +08:00
guoh064
89f69079f1 Add: distangle Gemsfarming.Campaign.Event from Event.Campaign.Event for multi event 2026-04-23 15:59:17 +08:00
guoh064
c75dd9366b Add: auto change state of options (default select and single means state) 2026-04-23 14:57:03 +08:00
LmeSzinc
8318c42ce4 Merge pull request #5619 from LmeSzinc/dev
Bug fix
2026-04-22 00:07:38 +08:00
LmeSzinc
6562ce0522 Fix: always add items, even if last item list contains unknown items 2026-04-22 00:01:34 +08:00
LmeSzinc
4b83292c9e Upd: opsi shop asset templates (#5617) 2026-04-21 23:56:47 +08:00
LmeSzinc
378d18a9a3 Fix: spare domain of git-over-cdn 2026-04-21 23:41:44 +08:00
LmeSzinc
5cc986257f Fix: Random background hits EXP_INFO_B in event_20220915_cn chapter A 2026-04-21 23:22:02 +08:00
LmeSzinc
995376a5a0 Add: Event Vacation Lane – Beachside Brilliance (event_20260417_cn) (#5611)
* Fix: Event 20220915 campaign (#5607)

Co-authored-by: YQY <91514918+5A8G0001@users.noreply.github.com>

* Upd: [TW] Event entrance of Violet Tempest Blooming Lycoris (fixed #5606)

* Fix: [CN] Skip user agreement

* Add: Event entrance of Vacation Lane – Beachside Brilliance (event_20260417_cn)

* Add: MAP_CHAPTER_SWITCH_20241219_SPEX

* Add: Chapter SP

* Opt: Faster receiving if no drop record

* Upd: Button extract

* Upd: Shop cost icons

* Fix: [JP] Remove wrong "/" in meta counter (#5608)

---------

Co-authored-by: YQY <91514918+TerryOrin@users.noreply.github.com>
Co-authored-by: YQY <91514918+5A8G0001@users.noreply.github.com>
2026-04-18 03:41:37 +08:00
LmeSzinc
d88b7f397a Fix: [JP] Remove wrong "/" in meta counter (#5608) 2026-04-18 03:38:26 +08:00
LmeSzinc
53d8ff8099 Upd: Shop cost icons 2026-04-18 03:28:45 +08:00
LmeSzinc
65cea8d07c Upd: Button extract 2026-04-18 03:28:11 +08:00
LmeSzinc
25463b2dc1 Opt: Faster receiving if no drop record 2026-04-18 02:55:27 +08:00
LmeSzinc
45faa7c46d Add: Chapter SP 2026-04-18 02:54:46 +08:00
LmeSzinc
8ce450a42b Add: MAP_CHAPTER_SWITCH_20241219_SPEX 2026-04-18 00:57:22 +08:00
LmeSzinc
31efe2a054 Add: Event entrance of Vacation Lane – Beachside Brilliance (event_20260417_cn) 2026-04-18 00:18:14 +08:00
LmeSzinc
d1e3653c4a Fix: [CN] Skip user agreement 2026-04-18 00:02:26 +08:00
LmeSzinc
ba568b50c0 Upd: [TW] Event entrance of Violet Tempest Blooming Lycoris (fixed #5606) 2026-04-17 23:44:24 +08:00
YQY
432c719f51 Fix: Event 20220915 campaign (#5607)
Co-authored-by: YQY <91514918+5A8G0001@users.noreply.github.com>
2026-04-17 23:35:57 +08:00
LmeSzinc
a3c871f963 Bug fix (#5596)
* Merge pull request #5595 from Heipen/ui_update

Upd: Battle UI ElvenVine

* Upd: [TW] Event The Vagabond’s Recruitment Plan (event_20260326_cn)

---------

Co-authored-by: heipen <126669219+Heipen@users.noreply.github.com>
2026-04-03 22:50:39 +08:00
LmeSzinc
e9a09a368e Upd: [TW] Event The Vagabond’s Recruitment Plan (event_20260326_cn) 2026-04-03 22:49:31 +08:00
heipen
5cf249c8e7 Merge pull request #5595 from Heipen/ui_update
Upd: Battle UI ElvenVine
2026-04-03 22:44:37 +08:00
LmeSzinc
594a652819 Bug fix (#5591) 2026-04-01 22:57:52 +08:00
iceynano
37bf25c4b0 Fix Event Reaction (#5589)
* Add: Event Reaction

* Update widgets.py

* Update widgets.py

* Update widgets.py

* Update widgets.py

* Update widgets.py

* Fix event_trigger

* Resolve patch #5226

Removed unnecessary whitespace in set_aside and set_aside_status methods.
2026-04-01 22:52:12 +08:00
LmeSzinc
01c69f645e Fix: Conflicted interval of DOCK_CHECK after selecting ship 2026-04-01 02:02:23 +08:00
LmeSzinc
1e67ed613a Merge pull request #5587 from LmeSzinc/dev
Bug fix
2026-04-01 01:18:17 +08:00
LmeSzinc
032b2c1931 Fix: Limit match area of SHOP_REFRESH
to handle spamming bulin character at bottom-right of shop page, at April 1st
2026-04-01 01:17:12 +08:00
LmeSzinc
278edcdf12 Opt: Add favourite student default to false 2026-04-01 01:12:20 +08:00
LmeSzinc
aad22c753a Opt: Mood control default to prevent_green_face 2026-04-01 01:12:13 +08:00
LmeSzinc
433059bc8e Merge pull request #5586 from LmeSzinc/dev
Bug fix
2026-03-31 12:52:26 +08:00
LmeSzinc
9ca4b263ad Fix: Reset no searching timeout if not in map 2026-03-31 12:47:37 +08:00
LmeSzinc
8c9a39b703 Fix: Add expected=boss if only one boss spawn point 2026-03-31 12:41:07 +08:00
LmeSzinc
e8f5ad9830 Merge pull request #5585 from LmeSzinc/dev
W16
2026-03-30 15:54:28 +08:00
LmeSzinc
b993a5e8b4 Fix: W16 map data 2026-03-30 02:39:51 +08:00
LmeSzinc
33e812adb8 Merge pull request #5455 from guoh064/campaign_16_main
Add: W16 preparations
2026-03-29 19:26:04 +08:00
LmeSzinc
dce5261670 Bug fix (#5576)
* Fix: _reward_mission_claim_click stucked at MISSION_UNFINISH (#5573)

* Add: Add Students with Level >= X Only

* Fix: [ALAS] Skip permission errors when replacing adb

* Fix: Uninstall registry not closed

* Add: [ALAS] Support LDPlayer14

* Fix: [ALAS] search by emulator type first, which is more trustworthy

* Fix: [ALAS] Limit Android SDK version when benchmarking Droidcast

---------

Co-authored-by: guoh064 <50830808+guoh064@users.noreply.github.com>
2026-03-28 21:55:19 +08:00
LmeSzinc
c60c343c68 Fix: [ALAS] Limit Android SDK version when benchmarking Droidcast 2026-03-28 19:09:14 +08:00
LmeSzinc
5c9b955d24 Fix: [ALAS] search by emulator type first, which is more trustworthy 2026-03-28 19:07:47 +08:00
LmeSzinc
960db91be9 Add: [ALAS] Support LDPlayer14 2026-03-28 19:00:12 +08:00
LmeSzinc
b703cb10ea Fix: Uninstall registry not closed 2026-03-28 18:32:55 +08:00
LmeSzinc
0c4f46180e Fix: [ALAS] Skip permission errors when replacing adb 2026-03-28 18:17:42 +08:00
LmeSzinc
e45fd05341 Add: Add Students with Level >= X Only 2026-03-28 18:12:31 +08:00
guoh064
0c31b2c4ec Fix: _reward_mission_claim_click stucked at MISSION_UNFINISH (#5573) 2026-03-28 17:49:29 +08:00
LmeSzinc
65c303317a Add: Event The Vagabond’s Recruitment Plan (event_20260326_cn) (#5571)
* Upd: ocr model azur_lane_jp (#5553)

* Upd: Event entrance of The Vagabond’s Recruitment Plan

* Add: Chapter T HT

* Add: Chapter SP

---------

Co-authored-by: guoh064 <50830808+guoh064@users.noreply.github.com>
2026-03-27 00:41:37 +08:00
LmeSzinc
17a385274b Add: Chapter SP 2026-03-26 23:09:38 +08:00
LmeSzinc
d99af8fb07 Add: Chapter T HT 2026-03-26 23:04:52 +08:00
LmeSzinc
b64d3e13e2 Upd: Event entrance of The Vagabond’s Recruitment Plan 2026-03-26 21:37:14 +08:00
guoh064
c422a4d58f Upd: ocr model azur_lane_jp (#5553) 2026-03-26 20:38:38 +08:00
guoh064
e4a6a5728e Opt: campaign_16_main MAP_SWIPE_MULTIPLY 2026-03-24 01:58:48 +08:00
LmeSzinc
3bd8a21d3b Bug fix (#5567) 2026-03-23 18:25:28 +08:00
LmeSzinc
7cddbaf7a1 Fix: Prefer TACTICAL_CLASS_START than TACTICAL_CLASS_CANCEL
because TACTICAL_CLASS_CANCEL might be "Cancel" or "Return" in EN
2026-03-23 18:24:10 +08:00
guoh064
d7d69e95ef Opt: campaign_16_main clear mode battle function using mob move 2026-03-23 11:32:46 +08:00
下面我簡單喵兩句
561aa27942 Upd:[TW]event 20260319 update (#5564) 2026-03-20 18:52:03 +08:00
guoh064
da0e2458b7 Upd: campaign_16_main clear mode 2026-03-19 20:54:51 +08:00
LmeSzinc
adfe9783b9 Bug fix (#5557) 2026-03-13 22:29:25 +08:00
guoh064
a11876976c Del: [JP] temporary MetaDigitCounter color (#5556) 2026-03-13 22:28:41 +08:00
LmeSzinc
a4fd8c126d Fix: Handle popup after enter minigame 2026-03-13 18:49:34 +08:00
LmeSzinc
a6f1695de5 Merge pull request #5555 from LmeSzinc/dev
Add: event entrance for event_20240229_cn rerun
2026-03-12 19:34:30 +08:00
guoh064
9a9454df26 Add: event entrance for event_20240229_cn rerun (#5552) 2026-03-12 18:47:15 +08:00
guoh064
3f9e7edf4e Add: hide_in_upper_left option for combat manual 2026-03-12 18:46:50 +08:00
guoh064
5611dce94b Upd: asset COMBAT_AUTO 2026-03-12 18:46:50 +08:00
LmeSzinc
b687048405 Merge pull request #5545 from LmeSzinc/dev
Bug fix
2026-03-06 01:13:28 +08:00
LmeSzinc
c9e95702dc Fix: Skip event story in event_20260226_cn 2026-03-06 01:12:54 +08:00
LmeSzinc
b24d09f1a0 Upd: [TW] Event event_20260226_cn (fixed #5544) 2026-03-06 01:11:10 +08:00
LmeSzinc
8618ea2352 Upd: Battle UI SpringInn (#5541) (#5543)
Co-authored-by: heipen <126669219+Heipen@users.noreply.github.com>
2026-03-05 22:42:45 +08:00
heipen
dbc5fe42e8 Upd: Battle UI SpringInn (#5541) 2026-03-04 12:32:12 +08:00
LmeSzinc
2a2901d218 Merge pull request #5533 from LmeSzinc/dev
Add: Event Springtide Inn Online (event_20260226_cn)
2026-02-28 04:43:01 +08:00
LmeSzinc
66fa598e75 Fix: Abyssal combat with handle_map_event (#5328) 2026-02-28 04:37:52 +08:00
LmeSzinc
bfe67e2922 Opt: swipe multiply in event_20260226_cn 2026-02-28 04:17:37 +08:00
LmeSzinc
bd108dc35f Fix: Clicking BACK_ARROW at combat loading 2026-02-28 04:09:49 +08:00
LmeSzinc
07bf9d9947 Fix: Handle wrong OCR error like "I4-4" (#5532) 2026-02-28 03:42:27 +08:00
guoh064
c8e8d0b2fe Add: Event Springtide Inn Online (event_20260226_cn) 2026-02-28 02:50:22 +08:00
LmeSzinc
5c7f57f3b2 Fix: patch_mimetype 2026-02-19 10:19:42 +08:00
LmeSzinc
ad623f6332 Merge pull request #5525 from LmeSzinc/dev
Bug fix
2026-02-19 03:18:06 +08:00
LmeSzinc
c014140c6e Fix: [CN] Remove more dash-like characters (fixed #5522) 2026-02-19 03:14:09 +08:00
gepotumu
a538739910 Fix: infinite loop in _handle_use_box_amount when box count insufficient (#5516)
When requesting more boxes than available (e.g. requesting 8 but only 3
in stack), the amount-setting loop would never exit because the UI caps
at the available count while the script keeps clicking AMOUNT_PLUS.

Added click_count tracking: if multi_click() has been called 2 times
without the amount reaching the target, treat it as the UI cap and break.
Also changed the return value from bool to the actual amount set, so
_storage_use_one_box tracks the correct number of boxes used.
2026-02-19 02:19:08 +08:00
LmeSzinc
0a4f2a89fc Fix: handle raid remain like "915/", "1515" 2026-02-19 02:15:25 +08:00
LmeSzinc
986d825a81 Fix: [EN] UI switch to page_game_room 2026-02-19 01:58:20 +08:00
LmeSzinc
74bbaf8395 Fix: first ui switch must be ui_ensure 2026-02-18 09:10:55 +08:00
LmeSzinc
d99b759a08 Fix: no poor sleep in fleet_preparation_sidebar_ensure 2026-02-18 09:10:55 +08:00
ArecaSapling
102b7eeaf7 Upd: blueprint purchase for DR5 & PR6 (#5518) 2026-02-18 09:10:41 +08:00
guoh064
d8bba0331f Upd: [CN] asset AIR_STRIKE_* 2026-01-23 16:12:50 +08:00
guoh064
1158a0535a Add: W16 preparations 2026-01-18 21:27:25 +08:00
210 changed files with 4462 additions and 488 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
assets/shop/cost/Core_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

BIN
assets/shop/cost/Gems_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1005 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1901,5 +1901,5 @@
183 183
], ],
"heads": [[146, 0, 0], [150, 0, 0]], "heads": [[146, 0, 0], [150, 0, 0]],
"attrs": {"mxnet_version": ["int", 10600]} "attrs": {"mxnet_version": ["int", 10901]}
} }

View File

@@ -58,6 +58,8 @@ To add a new event, add a new row in here, and run `python -m module.config.conf
| 20251106 | war archives 20220915 cn | Violet Tempest Blooming Lycoris | 紫绛槿岚 | Violet Tempest Blooming Lycoris | 赫の涙月 菫の暁風 | 紫絳槿嵐 | | 20251106 | war archives 20220915 cn | Violet Tempest Blooming Lycoris | 紫绛槿岚 | Violet Tempest Blooming Lycoris | 赫の涙月 菫の暁風 | 紫絳槿嵐 |
| 20251218 | war archives 20221222 cn | Parallel Superimposition | 定向折叠 | Parallel Superimposition | 積重なる事象の幻界 | 定向折疊 | | 20251218 | war archives 20221222 cn | Parallel Superimposition | 定向折叠 | Parallel Superimposition | 積重なる事象の幻界 | 定向折疊 |
| 20260129 | war archives 20230223 cn | Revelations of Dust | 湮烬尘墟 | Revelations of Dust | 黙示の遺構 | 湮燼塵墟 | | 20260129 | war archives 20230223 cn | Revelations of Dust | 湮烬尘墟 | Revelations of Dust | 黙示の遺構 | 湮燼塵墟 |
| 20260409 | war archives 20220818 cn | Operation Convergence | 远汇点作战 | Operation Convergence | 結像点作戦 | 遠匯點作戰 |
| 20260507 | war archives 20230803 cn | Anthem of Remembrance | 奏响鸢尾之歌 | Anthem of Remembrance | 燃ゆる聖都の回想曲 | 奏響鳶尾之歌 |
| 20200227 | event 20200227 cn | Northern Overture | 北境序曲 | Northern Overture | 凍絶の北海 | - | | 20200227 | event 20200227 cn | Northern Overture | 北境序曲 | Northern Overture | 凍絶の北海 | - |
| 20200312 | event 20200312 cn | The Solomon Ranger | 复刻斯图尔特的硝烟 | The Solomon Ranger Rerun | 南洋に靡く硝煙(復刻) | - | | 20200312 | event 20200312 cn | The Solomon Ranger | 复刻斯图尔特的硝烟 | The Solomon Ranger Rerun | 南洋に靡く硝煙(復刻) | - |
| 20200326 | event 20200326 cn | Microlayer Medley | 微层混合 | Microlayer Medley | 闇靄払う銀翼 | - | | 20200326 | event 20200326 cn | Microlayer Medley | 微层混合 | Microlayer Medley | 闇靄払う銀翼 | - |
@@ -281,3 +283,13 @@ To add a new event, add a new row in here, and run `python -m module.config.conf
| 20260129 | coalition 20260122 | Light & Shadow Fashion Shoot! | - | - | - | 光影風尚-拍攝進行時 | | 20260129 | coalition 20260122 | Light & Shadow Fashion Shoot! | - | - | - | 光影風尚-拍攝進行時 |
| 20260205 | raid 20240328 | From Zero to Hero | 复刻从零开始的魔王讨伐之旅 | From Zero to Hero Rerun | ゼロから頑張る魔王討伐(復刻) | - | | 20260205 | raid 20240328 | From Zero to Hero | 复刻从零开始的魔王讨伐之旅 | From Zero to Hero Rerun | ゼロから頑張る魔王討伐(復刻) | - |
| 20260212 | raid 20260212 | Spring Auction Adventure | 春宴怀玉香满庭 | Spring Auction Adventure | 新春玉逸品会 | 春宴懷玉香滿庭 | | 20260212 | raid 20260212 | Spring Auction Adventure | 春宴怀玉香满庭 | Spring Auction Adventure | 新春玉逸品会 | 春宴懷玉香滿庭 |
| 20260226 | event 20260226 cn | Springtide Inn Online | 春满客栈Online | Springtide Inn Online | 春色旅籠Online | 春滿客棧Online |
| 20260312 | event 20240229 cn | Snowrealm Peregrination Rerun | 复刻雪境迷踪 | Snowrealm Peregrination Rerun | 銀界遊廻(復刻) | - |
| 20260319 | event 20220728 cn | Aquilifer's Ballade | - | - | - | 復刻雄鷹的敘事歌 |
| 20260326 | event 20260326 cn | The Vagabonds Recruitment Plan | 漫游者招募计划 | The Vagabonds Recruitment Plan | ワンダラー募集計画 | - |
| 20260402 | event 20260326 cn | The Vagabonds Recruitment Plan | - | - | - | 漫遊者招募計劃 |
| 20260416 | event 20220915 cn | Violet Tempest Blooming Lycoris | - | - | - | 復刻紫絳槿嵐 |
| 20260417 | event 20260417 cn | Vacation Lane Beachside Brilliance | 假日航线闪耀海滨 | Vacation Lane Beachside Brilliance | バケーションレーン・きらめく砂浜 | - |
| 20260417 | event 20201126 cn | Vacation Lane Rerun | 复刻假日航线 | Vacation Lane Rerun | バケーションレーン(復刻) | - |
| 20260417 | event 20250424 cn | Toward Tulipas Seas Rerun | 复刻扬起郁金之旗 | Toward Tulipas Seas Rerun | チュリッパの海へ(復刻) | - |
| 20260417 | event 20260417 cn | Vacation Lane Beachside Brilliance | - | - | - | 假日航線閃耀海濱 |

View File

@@ -107,9 +107,10 @@ class Campaign(CampaignBase):
def map_data_init(self, map_): def map_data_init(self, map_):
super().map_data_init(map_) super().map_data_init(map_)
for override_grid in OVERRIDE: if not self.map_is_clear_mode:
# Set may_enemy, but keep may_ambush for override_grid in OVERRIDE:
self.map[override_grid.location].may_enemy = override_grid.may_enemy # Set may_enemy, but keep may_ambush
self.map[override_grid.location].may_enemy = override_grid.may_enemy
def battle_0(self): def battle_0(self):
self.pick_up_light_house(A9) self.pick_up_light_house(A9)

View File

@@ -1,15 +1,13 @@
from module.base.mask import Mask from module.base.mask import Mask
from module.base.timer import Timer from module.base.timer import Timer
from module.campaign.campaign_base import CampaignBase as CampaignBase_
from module.handler.assets import STRATEGY_OPENED from module.handler.assets import STRATEGY_OPENED
from module.handler.strategy import MOB_MOVE_OFFSET from module.handler.strategy import MOB_MOVE_OFFSET
from module.logger import logger from module.logger import logger
from module.map.map_grids import SelectedGrids from module.map.map_grids import SelectedGrids
from module.map.utils import location_ensure from module.map.utils import location_ensure
from module.map_detection.grid import GridInfo from module.map_detection.grid import GridInfo
from module.map_detection.utils_assets import ASSETS
MASK_MAP_UI_W15 = Mask(file='./assets/mask/MASK_MAP_UI_W15.png') from .campaign_support_fleet import CampaignBase as CampaignBase_
class Config: class Config:
@@ -45,12 +43,6 @@ class W15GridInfo(GridInfo):
class CampaignBase(CampaignBase_): class CampaignBase(CampaignBase_):
ENEMY_FILTER = '1L > 1M > 1E > 2L > 3L > 2M > 2E > 1C > 2C > 3M > 3E > 3C' ENEMY_FILTER = '1L > 1M > 1E > 2L > 3L > 2M > 2E > 1C > 2C > 3M > 3E > 3C'
def map_data_init(self, map_):
super().map_data_init(map_)
# Patch ui_mask, get rid of supporting fleet
_ = ASSETS.ui_mask
ASSETS.ui_mask = MASK_MAP_UI_W15.image
map_has_mob_move = True map_has_mob_move = True
def strategy_set_execute(self, formation=None, sub_view=None, sub_hunt=None): def strategy_set_execute(self, formation=None, sub_view=None, sub_hunt=None):
@@ -61,10 +53,6 @@ class CampaignBase(CampaignBase_):
) )
logger.attr("Map has mob move", self.strategy_has_mob_move()) logger.attr("Map has mob move", self.strategy_has_mob_move())
def _map_swipe(self, vector, box=(239, 159, 1175, 628)):
# Left border to 239, avoid swiping on support fleet
return super()._map_swipe(vector, box=box)
def mob_movable(self, location, target): def mob_movable(self, location, target):
""" """
Check if mob is movable from location to target. Check if mob is movable from location to target.
@@ -217,3 +205,4 @@ class CampaignBase(CampaignBase_):
self._mob_move_info_change(location, target) self._mob_move_info_change(location, target)
self.find_path_initial() self.find_path_initial()
self.map.show() self.map.show()
return True

View File

@@ -0,0 +1,86 @@
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger
from .campaign_16_base_submarine import CampaignBase
from .campaign_16_base_submarine import Config as ConfigBase
MAP = CampaignMap('16-1')
MAP.shape = 'I9'
MAP.camera_data = ['C2', 'C6', 'F2', 'F5']
MAP.camera_data_spawn_point = ['F7']
MAP.camera_sight = (-2, -1, 3, 2)
MAP.map_data = """
++ ME -- -- ME -- -- ME --
ME -- -- ME ++ ME -- -- ME
-- -- ME -- ME -- -- ME ++
-- ME ++ ME -- ME -- ME Me
-- -- ME -- Me ++ __ -- --
-- ME -- __ ME -- -- -- MB
-- ++ Me -- -- -- Me ++ ++
-- ME -- -- -- -- -- ++ ++
-- -- -- -- SP SP ++ ++ --
"""
MAP.weight_data = """
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50
"""
MAP.spawn_data = [
{'battle': 0, 'enemy': 2},
{'battle': 1, 'enemy': 2},
{'battle': 2, 'enemy': 2},
{'battle': 3, 'enemy': 1},
{'battle': 4, 'enemy': 1},
{'battle': 5, 'boss': 1}
]
A1, B1, C1, D1, E1, F1, G1, H1, I1, \
A2, B2, C2, D2, E2, F2, G2, H2, I2, \
A3, B3, C3, D3, E3, F3, G3, H3, I3, \
A4, B4, C4, D4, E4, F4, G4, H4, I4, \
A5, B5, C5, D5, E5, F5, G5, H5, I5, \
A6, B6, C6, D6, E6, F6, G6, H6, I6, \
A7, B7, C7, D7, E7, F7, G7, H7, I7, \
A8, B8, C8, D8, E8, F8, G8, H8, I8, \
A9, B9, C9, D9, E9, F9, G9, H9, I9, \
= MAP.flatten()
class Config(ConfigBase):
MAP_HAS_MAP_STORY = False
MAP_HAS_FLEET_STEP = False
MAP_HAS_AMBUSH = True
MAP_ENSURE_EDGE_INSIGHT_CORNER = 'bottom-right'
MAP_SWIPE_MULTIPLY = (1.050, 1.069)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.015, 1.034)
MAP_SWIPE_MULTIPLY_MAATOUCH = (0.985, 1.003)
class Campaign(CampaignBase):
MAP = MAP
def battle_0(self):
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
return True
return self.battle_default()
def battle_5(self):
boss = self.map.select(is_boss=True)
if boss:
return self.fleet_boss.clear_boss()
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
def battle_6(self):
return self.fleet_boss.clear_boss()

View File

@@ -0,0 +1,83 @@
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger
from .campaign_16_base_submarine import CampaignBase
from .campaign_16_base_submarine import Config as ConfigBase
MAP = CampaignMap('16-2')
MAP.shape = 'J8'
MAP.camera_data = ['C2', 'C6', 'G2', 'G6']
MAP.camera_data_spawn_point = ['C6']
MAP.camera_sight = (-2, -1, 3, 2)
MAP.map_data = """
MB ++ -- ME -- -- -- -- -- --
-- Me ME -- ME ++ ME -- -- --
-- __ -- -- -- -- -- ME ++ ++
ME -- ME ME ME -- ME -- ++ --
Me -- -- Me ++ -- Me -- -- --
++ ME -- ME ME -- ME ++ ++ --
-- -- -- -- -- Me -- -- ++ --
-- SP SP -- ++ ++ ++ -- -- --
"""
MAP.weight_data = """
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50
"""
MAP.spawn_data = [
{'battle': 0, 'enemy': 3},
{'battle': 1, 'enemy': 2},
{'battle': 2, 'enemy': 2},
{'battle': 3, 'enemy': 1},
{'battle': 4, 'enemy': 1},
{'battle': 5, 'boss': 1},
]
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, \
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, \
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, \
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, \
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, \
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, \
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, \
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, \
= MAP.flatten()
class Config(ConfigBase):
MAP_HAS_MAP_STORY = False
MAP_HAS_FLEET_STEP = False
MAP_HAS_AMBUSH = True
MAP_ENSURE_EDGE_INSIGHT_CORNER = 'bottom-left'
MAP_SWIPE_MULTIPLY = (1.093, 1.113)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.057, 1.077)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.026, 1.045)
class Campaign(CampaignBase):
MAP = MAP
def battle_0(self):
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=1):
return True
return self.battle_default()
def battle_5(self):
boss = self.map.select(is_boss=True)
if boss:
return self.fleet_boss.clear_boss()
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
def battle_6(self):
return self.fleet_boss.clear_boss()

View File

@@ -0,0 +1,116 @@
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger
from .campaign_16_base_aircraft import CampaignBase
from .campaign_16_base_aircraft import Config as ConfigBase
MAP = CampaignMap('16-3')
MAP.shape = 'K6'
MAP.camera_data = ['D3', 'E4', 'G2', 'H2']
MAP.camera_data_spawn_point = ['C5']
MAP.camera_sight = (-2, -1, 3, 2)
MAP.map_data = """
-- -- ++ ++ ++ -- -- ME ++ -- MB
-- ME -- ++ -- ME -- -- ++ -- --
-- -- ME ME -- ME ++ ME ++ -- --
-- -- -- ++ ++ __ ME ME -- -- --
SP -- -- ++ -- ME ++ -- -- -- --
SP -- -- ME ME -- ++ -- -- -- ++
"""
MAP.weight_data = """
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
"""
MAP.spawn_data = [
{'battle': 0, 'enemy': 3},
{'battle': 1, 'enemy': 6},
{'battle': 2, 'enemy': 3},
{'battle': 3},
{'battle': 4},
{'battle': 5},
{'battle': 6},
{'battle': 7, 'boss': 1},
]
MAP.spawn_data_loop = [
{'battle': 0, 'enemy': 3},
{'battle': 1, 'enemy': 6},
{'battle': 2, 'enemy': 3},
{'battle': 3},
{'battle': 4},
{'battle': 5, 'boss': 1},
]
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
= MAP.flatten()
road_main = RoadGrids([G4, H4])
class Config(ConfigBase):
MAP_HAS_MAP_STORY = False
MAP_HAS_FLEET_STEP = False
MAP_HAS_AMBUSH = True
MAP_ENSURE_EDGE_INSIGHT_CORNER = 'bottom-left'
MAP_SWIPE_MULTIPLY = (1.180, 1.202)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.141, 1.162)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.108, 1.128)
class Campaign(CampaignBase):
MAP = MAP
use_single_fleet = False
def map_init(self, map_):
super().map_init(map_)
self.map_has_mob_move = self.use_support_fleet and self.map_is_clear_mode
self.use_single_fleet = 'standby' in self.config.Fleet_FleetOrder
def battle_0(self):
if self.map_has_mob_move:
if self.mob_move(C3, C2):
return self.clear_chosen_enemy(D6)
self.map_has_mob_move = False
return self.clear_chosen_enemy(C3)
def battle_1(self):
if self.map_has_mob_move:
self.mob_move(E6, E5)
if not self.use_single_fleet:
self.fleet_boss.goto(F4)
self.fleet_ensure(index=3 - self.fleet_boss_index)
return self.clear_chosen_enemy(G4)
if self.use_support_fleet and not self.map_is_clear_mode:
self.goto(C3)
self.air_strike(E3)
return self.clear_chosen_enemy(D3)
def battle_2(self):
return self.clear_chosen_enemy(F3)
def battle_3(self):
boss = self.map.select(is_boss=True)
if boss:
if not self.check_accessibility(boss[0], fleet='boss'):
return self.clear_roadblocks([road_main])
if self.use_support_fleet and not self.map_is_clear_mode:
# at this stage the most right zone should be accessible
self.goto(K5)
self.air_strike(J6)
return self.fleet_boss.clear_boss()
if self.clear_roadblocks([road_main]):
return True
if self.clear_any_enemy(genre=("Light",), strongest=True):
return True
return self.battle_default()

View File

@@ -0,0 +1,165 @@
from module.map.map_base import CampaignMap
from module.map.map_grids import SelectedGrids, RoadGrids
from module.logger import logger
from .campaign_16_base_aircraft import CampaignBase
from .campaign_16_base_aircraft import Config as ConfigBase
MAP = CampaignMap('16-4')
MAP.shape = 'K8'
MAP.camera_data = ['C2', 'F5', 'F2', 'H2', 'H5']
MAP.camera_data_spawn_point = ['C6']
MAP.camera_sight = (-2, -1, 3, 2)
MAP.map_data = """
-- -- ++ -- -- -- ++ ME -- -- MB
ME ++ ++ ++ -- -- ME ++ -- -- --
-- -- ME -- -- ++ ++ ME -- -- --
-- -- -- ME ++ -- ME -- ++ ++ --
-- -- -- ME -- ME ++ -- ME ++ --
-- __ -- ++ ++ -- ++ ME ME -- --
SP -- -- ME -- -- -- ++ -- ++ ++
SP -- -- -- ++ -- ++ ++ -- -- ++
"""
MAP.weight_data = """
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
50 50 50 50 50 50 50 50 50 50 50
"""
MAP.spawn_data = [
{'battle': 0, 'enemy': 5},
{'battle': 1, 'enemy': 3},
{'battle': 2, 'enemy': 5},
{'battle': 3},
{'battle': 4},
{'battle': 5},
{'battle': 6},
{'battle': 7},
{'battle': 8, 'boss': 1},
]
MAP.spawn_data_loop = [
{'battle': 0, 'enemy': 5},
{'battle': 1, 'enemy': 3},
{'battle': 2, 'enemy': 5},
{'battle': 3},
{'battle': 4, 'boss': 1},
]
A1, B1, C1, D1, E1, F1, G1, H1, I1, J1, K1, \
A2, B2, C2, D2, E2, F2, G2, H2, I2, J2, K2, \
A3, B3, C3, D3, E3, F3, G3, H3, I3, J3, K3, \
A4, B4, C4, D4, E4, F4, G4, H4, I4, J4, K4, \
A5, B5, C5, D5, E5, F5, G5, H5, I5, J5, K5, \
A6, B6, C6, D6, E6, F6, G6, H6, I6, J6, K6, \
A7, B7, C7, D7, E7, F7, G7, H7, I7, J7, K7, \
A8, B8, C8, D8, E8, F8, G8, H8, I8, J8, K8, \
= MAP.flatten()
road_main = RoadGrids([D5, F5, G4, H3])
class Config(ConfigBase):
MAP_HAS_MAP_STORY = False
MAP_HAS_FLEET_STEP = False
MAP_HAS_AMBUSH = True
MAP_ENSURE_EDGE_INSIGHT_CORNER = 'bottom-left'
MAP_SWIPE_MULTIPLY = (1.003, 1.022)
MAP_SWIPE_MULTIPLY_MINITOUCH = (0.970, 0.988)
MAP_SWIPE_MULTIPLY_MAATOUCH = (0.942, 0.959)
class Campaign(CampaignBase):
MAP = MAP
F5_is_moved = False
use_single_fleet = False
def map_init(self, map_):
super().map_init(map_)
self.F5_is_moved = False
self.map_has_mob_move = self.use_support_fleet and self.map_is_clear_mode
self.use_single_fleet = 'standby' in self.config.Fleet_FleetOrder
def battle_0(self):
if self.map_has_mob_move and not self.use_single_fleet:
if self.mob_move(D7, D8):
self.fleet_boss.goto(J1)
self.fleet_ensure(index=3 - self.fleet_boss_index)
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
self.map_has_mob_move = False
return self.clear_chosen_enemy(D5)
def battle_1(self):
if not self.map_has_mob_move:
return self.clear_chosen_enemy(F5)
if not self.use_single_fleet:
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
grids = SelectedGrids([H6, I5])
grid = grids.delete(grids.select(enemy_genre='Main')).first_or_none()
if grid is not None and self.mob_move(F5, F6):
self.F5_is_moved = True
return self.clear_chosen_enemy(grid)
self.F5_is_moved = False
return self.clear_chosen_enemy(F5)
def battle_2(self):
if not self.map_has_mob_move or self.use_single_fleet:
return self.clear_chosen_enemy(G4)
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
def battle_3(self):
if not self.map_has_mob_move:
return self.clear_chosen_enemy(H3)
if not self.use_single_fleet:
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()
if self.F5_is_moved:
if I6.enemy_genre == "Main" and self.mob_move(I6, I7):
return self.clear_any_enemy(genre=("Light",), strongest=True)
return self.clear_chosen_enemy(I6)
self.mob_move(H3, I3)
self.mob_move(I3, I2)
return self.clear_any_enemy(genre=("Light",), strongest=True)
def battle_4(self):
if self.map_is_clear_mode:
return self.fleet_boss.clear_boss()
boss = self.map.select(is_boss=True)
if boss:
if not self.check_accessibility(boss[0], fleet='boss'):
return self.clear_roadblocks([road_main])
if self.use_support_fleet:
# at this stage the most right zone should be accessible
self.goto(J6)
self.air_strike(I8)
return self.fleet_boss.clear_boss()
if self.clear_roadblocks([road_main]):
return True
if self.clear_potential_roadblocks([road_main]):
return True
if self.clear_filter_enemy(self.ENEMY_FILTER, preserve=0):
return True
return self.battle_default()

View File

@@ -0,0 +1,95 @@
from module.base.decorator import del_cached_property
from module.base.timer import Timer
from module.base.utils import red_overlay_transparency, get_color
from module.handler.assets import MAP_AIR_STRIKE, STRATEGY_OPENED, AIR_STRIKE_CONFIRM
from module.handler.strategy import AIR_STRIKE_OFFSET
from module.logger import logger
from module.map.utils import location_ensure
from .campaign_15_base import CampaignBase as CampaignBase_
class Config:
MAP_WALK_TURNING_OPTIMIZE = False
MAP_HAS_MYSTERY = False
INTERNAL_LINES_FIND_PEAKS_PARAMETERS = {
'height': (80, 255 - 33),
'prominence': 10,
'distance': 35,
}
# Handle fog on map, static homography parameters and lower canny threshold
HOMO_STORAGE = ((8, 6), [(137.405, 104.804), (1046.044, 104.804), (-12.171, 652.093), (1166.717, 652.093)])
HOMO_CANNY_THRESHOLD = (50, 80)
class CampaignBase(CampaignBase_):
MAP_AIR_STRIKE_OVERLAY_TRANSPARENCY_THRESHOLD = 0.35
ENEMY_FILTER = '1L > 1M > 1E > 2L > 3L > 2M > 2E > 1C > 2C > 3M > 3E > 3C'
def _air_strike_appear(self):
return red_overlay_transparency(MAP_AIR_STRIKE.color, get_color(self.device.image, MAP_AIR_STRIKE.area)) > \
self.MAP_AIR_STRIKE_OVERLAY_TRANSPARENCY_THRESHOLD
def _air_strike(self, location):
self.in_sight(location)
attack_grid = self.convert_global_to_local(location)
attack_grid.__str__ = location
logger.info('Select grid to air strike')
skip_first_screenshot = True
interval = Timer(5, count=10)
for _ in self.loop(skip_first=skip_first_screenshot):
# End
if self.is_in_strategy_air_strike():
self.view.update(image=self.device.image)
del_cached_property(attack_grid, "image_trans")
if attack_grid.predict_air_strike_icon():
break
# Click
if interval.reached() and self.is_in_strategy_air_strike():
self.device.click(attack_grid)
interval.reset()
continue
logger.info('Confirm air strike')
skip_first_screenshot = True
interval = Timer(3, count=6)
MAP_AIR_STRIKE.load_color(self.device.image)
for _ in self.loop(skip_first=skip_first_screenshot):
if self._air_strike_appear():
interval.reset()
continue
# End
if self.appear(STRATEGY_OPENED, offset=AIR_STRIKE_OFFSET):
break
# Click
if interval.reached() and self.is_in_strategy_air_strike():
self.device.click(AIR_STRIKE_CONFIRM)
interval.reset()
continue
def air_strike(self, location):
"""
Open strategy, air strike on location, close strategy.
Air strike at location X = (x, y) will hit range [x-2, y-1, x+2, y] as follows:
OOOOO
OOXOO
Args:
location (typle, str, GridInfo): Location of air strike
"""
location = location_ensure(location)
if self.map[location].is_land:
logger.warning(f'Air strike location {location} is on land, will abandon attacking')
return False
self.strategy_open()
if not self.strategy_has_air_strike():
logger.warning(f'No remain air strike trials, will abandon attacking')
self.strategy_close()
return False
self.strategy_air_strike_enter()
self._air_strike(location)
self.strategy_close(skip_first_screenshot=False)
return True

View File

@@ -0,0 +1,27 @@
from module.logger import logger
from .campaign_support_fleet import CampaignBase as CampaignBase_
class Config:
MAP_WALK_TURNING_OPTIMIZE = False
MAP_HAS_MYSTERY = False
HOMO_EDGE_COLOR_RANGE = (0, 12)
HOMO_EDGE_HOUGHLINES_THRESHOLD = 210
class CampaignBase(CampaignBase_):
ENEMY_FILTER = '1T > 1L > 1E > 1M > 2T > 2L > 2E > 2M > 3T > 3L > 3E > 3M'
def map_init(self, map_):
# submarine battle after entering map
# all emenies spawned already, so no need to wait enemy searching
if self.use_support_fleet:
logger.hr(f'{self.FUNCTION_NAME_BASE}SUBMARINE', level=2)
self.combat(balance_hp=False, emotion_reduce=False, save_get_items=False, expected_end='no_searching')
super().map_init(map_)
def handle_submarine_support_popup(self):
if self.use_support_fleet and self.handle_popup_confirm("SUBMARINE_SUPPORT"):
return True
return False

Some files were not shown because too many files have changed in this diff Show More