Skip to content

Commit

Permalink
Upd: add dd combination z20_or_z21
Browse files Browse the repository at this point in the history
  • Loading branch information
Air111 committed May 22, 2024
1 parent d208861 commit 234f75d
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 11 deletions.
Binary file added assets/cn/retire/TEMPLATE_Z20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cn/retire/TEMPLATE_Z21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/en/retire/TEMPLATE_Z20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/en/retire/TEMPLATE_Z21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/jp/retire/TEMPLATE_Z20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/jp/retire/TEMPLATE_Z21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tw/retire/TEMPLATE_Z20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tw/retire/TEMPLATE_Z21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions module/campaign/gems_farming.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DOCK_CHECK,
TEMPLATE_BOGUE, TEMPLATE_HERMES, TEMPLATE_LANGLEY, TEMPLATE_RANGER,
TEMPLATE_CASSIN_1, TEMPLATE_CASSIN_2, TEMPLATE_DOWNES_1, TEMPLATE_DOWNES_2,
TEMPLATE_AULICK, TEMPLATE_FOOTE
TEMPLATE_AULICK, TEMPLATE_FOOTE, TEMPLATE_Z20, TEMPLATE_Z21
)

from module.retire.dock import Dock
Expand Down Expand Up @@ -306,6 +306,11 @@ def get_templates(common_dd):
TEMPLATE_CASSIN_1, TEMPLATE_CASSIN_2,
TEMPLATE_DOWNES_1, TEMPLATE_DOWNES_2
]
elif common_dd == 'z20_or_z21':
return [
TEMPLATE_Z20,
TEMPLATE_Z21
]
else:
logger.error(f'Invalid CommonDD setting: {common_dd}')
raise ScriptError(f'Invalid CommonDD setting: {common_dd}')
Expand Down Expand Up @@ -349,7 +354,7 @@ def vanguard_change_execute(self):
self.ui_click(FLEET_ENTER,
appear_button=page_fleet.check_button, check_button=DOCK_CHECK, skip_first_screenshot=True)
self.dock_filter_set(
index='dd', rarity='common', faction='eagle', extra='can_limit_break')
index='dd', rarity='common', faction=['eagle', 'iron'], extra='can_limit_break')
self.dock_favourite_set(False)

ship = self.get_common_rarity_dd()
Expand Down
3 changes: 2 additions & 1 deletion module/config/argument/args.json
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,8 @@
"option": [
"any",
"aulick_or_foote",
"cassin_or_downes"
"cassin_or_downes",
"z20_or_z21"
]
},
"CommissionLimit": {
Expand Down
2 changes: 1 addition & 1 deletion module/config/argument/argument.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ GemsFarming:
option: [ disabled, ship, ship_equip ]
CommonDD:
value: any
option: [ any, aulick_or_foote , cassin_or_downes ]
option: [ any, aulick_or_foote , cassin_or_downes, z20_or_z21 ]
CommissionLimit: true

# ==================== Event ====================
Expand Down
2 changes: 1 addition & 1 deletion module/config/config_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class GeneratedConfig:
GemsFarming_ChangeFlagship = 'ship' # ship, ship_equip
GemsFarming_CommonCV = 'any' # any, langley, bogue, ranger, hermes
GemsFarming_ChangeVanguard = 'ship' # disabled, ship, ship_equip
GemsFarming_CommonDD = 'any' # any, aulick_or_foote, cassin_or_downes
GemsFarming_CommonDD = 'any' # any, aulick_or_foote, cassin_or_downes, z20_or_z21
GemsFarming_CommissionLimit = True

# Group `EventGeneral`
Expand Down
3 changes: 2 additions & 1 deletion module/config/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,8 @@
"help": "",
"any": "any",
"aulick_or_foote": "aulick or foote",
"cassin_or_downes": "cassin or downes"
"cassin_or_downes": "cassin or downes",
"z20_or_z21": "z20 or z21"
},
"CommissionLimit": {
"name": "Prevent Too Many Urgent Commissions",
Expand Down
3 changes: 2 additions & 1 deletion module/config/i18n/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,8 @@
"help": "GemsFarming.CommonDD.help",
"any": "any",
"aulick_or_foote": "aulick or foote",
"cassin_or_downes": "cassin or downes"
"cassin_or_downes": "cassin or downes",
"z20_or_z21": "z20 or z21"
},
"CommissionLimit": {
"name": "GemsFarming.CommissionLimit.name",
Expand Down
5 changes: 3 additions & 2 deletions module/config/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@
},
"ChangeVanguard": {
"name": "更换前排",
"help": "当前排红脸时更换前排,选择不更换则会强制红脸出击\n换前排通过找一艘心情不低于10、等级100的白鹰白皮驱逐完成,所以尽量保证有足够多的驱逐。国服以外则为等级70的白鹰白船驱逐。\n\n换装备只会更换正在装备中的栏位,即使是白装也会更换。前排会更换全部5个装备。",
"help": "当前排红脸时更换前排,选择不更换则会强制红脸出击\n换前排通过找一艘心情不低于10、等级100的白鹰或铁血的白皮驱逐完成,所以尽量保证有足够多的驱逐。国服以外则为等级70的白鹰白船驱逐。\n\n换装备只会更换正在装备中的栏位,即使是白装也会更换。前排会更换全部5个装备。",
"disabled": "不更换",
"ship": "更换舰船",
"ship_equip": "更换舰船 + 装备"
Expand All @@ -1156,7 +1156,8 @@
"help": "",
"any": "任意",
"aulick_or_foote": "奥利克或富特",
"cassin_or_downes": "卡辛或唐斯"
"cassin_or_downes": "卡辛或唐斯",
"z20_or_z21": "z20或z21"
},
"CommissionLimit": {
"name": "防止紧急委托数量过多",
Expand Down
5 changes: 3 additions & 2 deletions module/config/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@
},
"ChangeVanguard": {
"name": "更換前排",
"help": "當前排紅臉時更換前排,選擇不更換則會強制紅臉出擊\n換前排通過找一艘心情不低於10、等級70的白鷹白船驅逐完成,所以盡量保證有足夠多的驅逐。國服則為等級100的白鷹白船驅逐。\n\n換裝備只會更換正在裝備中的欄位,即使是白裝也會更換。前排會更換全部5個裝備。",
"help": "當前排紅臉時更換前排,選擇不更換則會強制紅臉出擊\n換前排通過找一艘心情不低於10、等級70的白鷹或鐵血的白船驅逐完成,所以盡量保證有足夠多的驅逐。國服則為等級100的白鷹白船驅逐。\n\n換裝備只會更換正在裝備中的欄位,即使是白裝也會更換。前排會更換全部5個裝備。",
"disabled": "不更换",
"ship": "更換艦船",
"ship_equip": "更換艦船 + 裝備"
Expand All @@ -1156,7 +1156,8 @@
"help": "",
"any": "任意",
"aulick_or_foote": "奧利克或富特",
"cassin_or_downes": "卡辛或唐斯"
"cassin_or_downes": "卡辛或唐斯",
"z20_or_z21": "z20或z21"
},
"CommissionLimit": {
"name": "防止緊急委託數量過多",
Expand Down
2 changes: 2 additions & 0 deletions module/retire/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@
TEMPLATE_IN_EVENT_FLEET = Template(file={'cn': './assets/cn/retire/TEMPLATE_IN_EVENT_FLEET.png', 'en': './assets/cn/retire/TEMPLATE_IN_EVENT_FLEET.png', 'jp': './assets/cn/retire/TEMPLATE_IN_EVENT_FLEET.png', 'tw': './assets/cn/retire/TEMPLATE_IN_EVENT_FLEET.png'})
TEMPLATE_LANGLEY = Template(file={'cn': './assets/cn/retire/TEMPLATE_LANGLEY.png', 'en': './assets/en/retire/TEMPLATE_LANGLEY.png', 'jp': './assets/jp/retire/TEMPLATE_LANGLEY.png', 'tw': './assets/tw/retire/TEMPLATE_LANGLEY.png'})
TEMPLATE_RANGER = Template(file={'cn': './assets/cn/retire/TEMPLATE_RANGER.png', 'en': './assets/en/retire/TEMPLATE_RANGER.png', 'jp': './assets/jp/retire/TEMPLATE_RANGER.png', 'tw': './assets/tw/retire/TEMPLATE_RANGER.png'})
TEMPLATE_Z20 = Template(file={'cn': './assets/cn/retire/TEMPLATE_Z20.png', 'en': './assets/en/retire/TEMPLATE_Z20.png', 'jp': './assets/jp/retire/TEMPLATE_Z20.png', 'tw': './assets/tw/retire/TEMPLATE_Z20.png'})
TEMPLATE_Z21 = Template(file={'cn': './assets/cn/retire/TEMPLATE_Z21.png', 'en': './assets/en/retire/TEMPLATE_Z21.png', 'jp': './assets/jp/retire/TEMPLATE_Z21.png', 'tw': './assets/tw/retire/TEMPLATE_Z21.png'})

0 comments on commit 234f75d

Please sign in to comment.