Skip to content
Binary file added assets/cn/equipment/EMPTY_SHIP_R.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/equipment/EQUIPMENT_CODE_CLEAR.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/equipment/EQUIPMENT_CODE_CONFIRM.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/equipment/EQUIPMENT_CODE_ENTER.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/equipment/EQUIPMENT_CODE_ENTRANCE.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/equipment/EQUIPMENT_CODE_EQUIP_0.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/equipment/EQUIPMENT_CODE_EQUIP_1.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/equipment/EQUIPMENT_CODE_EQUIP_2.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/equipment/EQUIPMENT_CODE_EQUIP_3.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/equipment/EQUIPMENT_CODE_EQUIP_4.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/equipment/EQUIPMENT_CODE_EQUIP_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/equipment/EQUIPMENT_CODE_EXPORT.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/equipment/EQUIPMENT_CODE_PAGE_CHECK.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/equipment/EQUIPMENT_CODE_TEXTBOX.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/equipment/FLEET_1_BACKLINE_1.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/equipment/FLEET_1_BACKLINE_3.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/equipment/FLEET_1_VANGUARD_1.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/equipment/FLEET_1_VANGUARD_3.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/equipment/FLEET_2_BACKLINE_1.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/equipment/FLEET_2_BACKLINE_3.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/equipment/FLEET_2_VANGUARD_1.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/equipment/FLEET_2_VANGUARD_3.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/DOCK_UNMOUNT.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/equipment/EMPTY_SHIP_R.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/equipment/EQUIPMENT_CODE_CLEAR.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_CONFIRM.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_ENTER.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_ENTRANCE.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_0.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_1.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_2.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_3.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_4.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EQUIP_5.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_EXPORT.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_PAGE_CHECK.png
Binary file added assets/en/equipment/EQUIPMENT_CODE_TEXTBOX.png
Binary file added assets/en/equipment/FLEET_1_BACKLINE_1.png
Binary file added assets/en/equipment/FLEET_1_BACKLINE_3.png
Binary file added assets/en/equipment/FLEET_1_VANGUARD_1.png
Binary file added assets/en/equipment/FLEET_1_VANGUARD_3.png
Binary file added assets/en/equipment/FLEET_2_BACKLINE_1.png
Binary file added assets/en/equipment/FLEET_2_BACKLINE_3.png
Binary file added assets/en/equipment/FLEET_2_VANGUARD_1.png
Binary file added assets/en/equipment/FLEET_2_VANGUARD_3.png
Binary file added assets/en/retire/DOCK_UNMOUNT.png
Binary file added assets/jp/equipment/EMPTY_SHIP_R.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_CLEAR.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_CONFIRM.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_ENTER.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_ENTRANCE.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_0.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_1.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_2.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_3.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_4.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EQUIP_5.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_EXPORT.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_PAGE_CHECK.png
Binary file added assets/jp/equipment/EQUIPMENT_CODE_TEXTBOX.png
Binary file added assets/jp/equipment/FLEET_1_BACKLINE_1.png
Binary file added assets/jp/equipment/FLEET_1_BACKLINE_3.png
Binary file added assets/jp/equipment/FLEET_1_VANGUARD_1.png
Binary file added assets/jp/equipment/FLEET_1_VANGUARD_3.png
Binary file added assets/jp/equipment/FLEET_2_BACKLINE_1.png
Binary file added assets/jp/equipment/FLEET_2_BACKLINE_3.png
Binary file added assets/jp/equipment/FLEET_2_VANGUARD_1.png
Binary file added assets/jp/equipment/FLEET_2_VANGUARD_3.png
Binary file added assets/jp/retire/DOCK_UNMOUNT.png
Binary file added assets/tw/equipment/EMPTY_SHIP_R.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_CLEAR.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_CONFIRM.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_ENTER.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_ENTRANCE.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_0.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_1.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_2.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_3.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_4.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EQUIP_5.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_EXPORT.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_PAGE_CHECK.png
Binary file added assets/tw/equipment/EQUIPMENT_CODE_TEXTBOX.png
Binary file added assets/tw/equipment/FLEET_1_BACKLINE_1.png
Binary file added assets/tw/equipment/FLEET_1_BACKLINE_3.png
Binary file added assets/tw/equipment/FLEET_1_VANGUARD_1.png
Binary file added assets/tw/equipment/FLEET_1_VANGUARD_3.png
Binary file added assets/tw/equipment/FLEET_2_BACKLINE_1.png
Binary file added assets/tw/equipment/FLEET_2_BACKLINE_3.png
Binary file added assets/tw/equipment/FLEET_2_VANGUARD_1.png
Binary file added assets/tw/equipment/FLEET_2_VANGUARD_3.png
Binary file added assets/tw/retire/DOCK_UNMOUNT.png
48 changes: 1 addition & 47 deletions campaign/campaign_hard/campaign_hard.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from module.base.timer import Timer
from module.campaign.campaign_base import CampaignBase
from module.exception import CampaignEnd
from module.hard.equipment import HardEquipment
from module.logger import logger
from module.map.assets import FLEET_PREPARATION, MAP_PREPARATION
from module.ui.assets import CAMPAIGN_CHECK
Expand All @@ -13,7 +12,7 @@ class Config:
ENABLE_HP_BALANCE = False


class Campaign(CampaignBase, HardEquipment):
class Campaign(CampaignBase):
# def run(self):
# logger.hr(self.ENTRANCE, level=2)
# self.enter_map(self.ENTRANCE, mode='hard')
Expand All @@ -36,9 +35,6 @@ class Campaign(CampaignBase, HardEquipment):
# except CampaignEnd:
# logger.hr('Campaign end')

# def fleet_preparation(self):
# self.equipment_take_on()

def _expected_end(self, expected):
return 'in_stage'

Expand All @@ -60,45 +56,3 @@ def clear_boss(self):
self.clear_potential_boss()

return False

def equipment_take_off_when_finished(self):
if self.config.FLEET_HARD_EQUIPMENT is None:
return False
if not self.equipment_has_take_on:
return False

logger.info('equipment_take_off_when_finished')
campaign_timer = Timer(2)
map_timer = Timer(1)
fleet_timer = Timer(1)

while 1:
self.device.screenshot()

# Enter campaign
if campaign_timer.reached() and self.is_in_stage():
self.device.click(self.ENTRANCE)
campaign_timer.reset()
continue

# Map preparation
if map_timer.reached() and self.appear(MAP_PREPARATION, offset=(20, 20)):
self.device.click(MAP_PREPARATION)
map_timer.reset()
campaign_timer.reset()
continue

# Fleet preparation
if fleet_timer.reached() and self.appear(FLEET_PREPARATION, offset=(20, 50)):
self.equipment_take_off()
self.ui_back(check_button=CAMPAIGN_CHECK, appear_button=FLEET_PREPARATION)
break

# Retire
if self.handle_retirement():
continue

# Emotion
pass

return True
24 changes: 24 additions & 0 deletions config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,16 @@
"ServerUpdate": "00:00"
},
"GemsFarming": {
"ChangeFlagship": "ship",
"CommonCV": "any",
"ChangeVanguard": "ship",
"CommonDD": "any",
"CommissionLimit": true
},
"EquipmentCode": {
"ExportToConfig": true,
"Config": "DD: null\nbogue: null\nhermes: null\nlangley: null\nranger: null"
},
"Campaign": {
"Name": "12-4",
"Event": "campaign_main",
Expand Down Expand Up @@ -343,6 +348,25 @@
"Fleet2Step": 2,
"FleetOrder": "fleet1_all_fleet2_standby"
},
"Emotion": {
"Mode": "calculate_ignore",
"Fleet1Value": 119,
"Fleet1Record": "2020-01-01 00:00:00",
"Fleet1Control": "prevent_red_face",
"Fleet1Recover": "not_in_dormitory",
"Fleet1Oath": false,
"Fleet2Value": 119,
"Fleet2Record": "2020-01-01 00:00:00",
"Fleet2Control": "prevent_red_face",
"Fleet2Recover": "not_in_dormitory",
"Fleet2Oath": false
},
"Submarine": {
"Fleet": 0,
"Mode": "do_not_use",
"AutoSearchMode": "sub_standby",
"DistanceToBoss": "use_open_ocean_support"
},
"Storage": {
"Storage": {}
}
Expand Down
Loading