Feature: Add 121 strategy for 15-4 | 给15-4添加121策略 - #4946
Merged
Conversation
Owner
|
从原有的地图继承信息而不是维护两份 |
Contributor
Author
|
已更改 |
LmeSzinc
added a commit
that referenced
this pull request
Jul 17, 2025
* Fix: handle get items in research queue quit * Fix: missing interval * Opt: Awaken Favourite Ships Only (#4957) * Feature: Add 121 strategy for 15-4 | 给15-4添加121策略 (#4946) * Add 15-4 121 strategy * Assign a different CampaignMap::name so load_campaign can differentiate 15-4 and 15-4(121) * Fix campaign map name again to prevent unnecessary reloading * Inherit map * Fix: [ALAS] remove warnings from multiscreen devices * Fix: [ALAS] Worker might graceful exited after killing it cleaned up itself, so main thread can't delete it * Fix: [CN] PRIVATE_QUARTERS_INTERACT button (#4964) --------- Co-authored-by: sui_feng <115386623+sui-feng-cb@users.noreply.github.com> Co-authored-by: MetricVoid <21335640+Metric-Void@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some new tutorials use the 1-2-1 strategy for 15-4, consisting of an overpowered fleet that handles all enemies and Boss 1 and 3. The secondary fleet handles Boss 2 only.
Thanks to the slicing in the following lines, adding a suffix to the main campaign map file name does not interfere with the level name extraction. Therefore, it's possible to add a new, hypothetical level
15-4-121that executes the 1-2-1 strategy on 15-4.AzurLaneAutoScript/module/campaign/run.py
Lines 43 to 44 in cbba8f0
This PR allows the user to enter
15-4-121as the level name and run 121 strategy on 15-4.This is a sketchy and dirty patch, but cleaner than adding yet more parameters to the config just for 15-4 (and -3).
Tested in CN server clear mode and non-clear mode ONLY. Did not test CLEAR_ALL mode.
有些新的15图教程使用了121策略,用一个动力强劲的一队解决所有敌人以及Boss 1,3,而二队仅解决Boss2。
因为这段主线关卡名检索逻辑,在文件名后面加后缀不会影响关卡名的检测,也就是说可以定义一个虚拟的
15-4-121关卡,来在15-4图上跑121策略。AzurLaneAutoScript/module/campaign/run.py
Lines 43 to 44 in cbba8f0
这个PR能让用户在主线图中任务中使用
15-4-121作为关卡名称,使用121逻辑刷15-4。这个解决方法有点潦草,但感觉比在设置界面里加个专门为15-4(和-3)的选项要简洁一点。
仅在CN服务器测试过周回以及非周回模式,暂未测试全清模式。