mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Opt: Delay OpsiShop
This commit is contained in:
@@ -1647,7 +1647,8 @@
|
|||||||
},
|
},
|
||||||
"OpsiShop": {
|
"OpsiShop": {
|
||||||
"PresetFilter": "max_benefit_meta",
|
"PresetFilter": "max_benefit_meta",
|
||||||
"CustomFilter": "LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator"
|
"CustomFilter": "LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator",
|
||||||
|
"DisableBeforeDate": 25
|
||||||
},
|
},
|
||||||
"Storage": {
|
"Storage": {
|
||||||
"Storage": {}
|
"Storage": {}
|
||||||
|
|||||||
@@ -8544,6 +8544,10 @@
|
|||||||
"CustomFilter": {
|
"CustomFilter": {
|
||||||
"type": "textarea",
|
"type": "textarea",
|
||||||
"value": "LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator"
|
"value": "LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator"
|
||||||
|
},
|
||||||
|
"DisableBeforeDate": {
|
||||||
|
"type": "input",
|
||||||
|
"value": 25
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Storage": {
|
"Storage": {
|
||||||
|
|||||||
@@ -709,6 +709,7 @@ OpsiShop:
|
|||||||
> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart
|
> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart
|
||||||
> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1
|
> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1
|
||||||
> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator
|
> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator
|
||||||
|
DisableBeforeDate: 25
|
||||||
OpsiVoucher:
|
OpsiVoucher:
|
||||||
Filter: |-
|
Filter: |-
|
||||||
LoggerAbyssal > LoggerObscure > Book > Coin > Fragment
|
LoggerAbyssal > LoggerObscure > Book > Coin > Fragment
|
||||||
|
|||||||
@@ -400,6 +400,7 @@ class GeneratedConfig:
|
|||||||
# Group `OpsiShop`
|
# Group `OpsiShop`
|
||||||
OpsiShop_PresetFilter = 'max_benefit_meta' # max_benefit, max_benefit_meta, no_meta, all, custom
|
OpsiShop_PresetFilter = 'max_benefit_meta' # max_benefit, max_benefit_meta, no_meta, all, custom
|
||||||
OpsiShop_CustomFilter = 'LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator'
|
OpsiShop_CustomFilter = 'LoggerAbyssalT6 > LoggerAbyssalT5 > LoggerObscure > LoggerAbyssalT4 > ActionPoint > PurpleCoins\n> GearDesignPlanT3 > PlateRandomT4 > DevelopmentMaterialT3 > GearDesignPlanT2 > GearPart\n> OrdnanceTestingReportT3 > OrdnanceTestingReportT2 > DevelopmentMaterialT2 > OrdnanceTestingReportT1\n> METARedBook > CrystallizedHeatResistantSteel > NanoceramicAlloy > NeuroplasticProstheticArm > SupercavitationGenerator'
|
||||||
|
OpsiShop_DisableBeforeDate = 25
|
||||||
|
|
||||||
# Group `OpsiVoucher`
|
# Group `OpsiVoucher`
|
||||||
OpsiVoucher_Filter = 'LoggerAbyssal > LoggerObscure > Book > Coin > Fragment'
|
OpsiVoucher_Filter = 'LoggerAbyssal > LoggerObscure > Book > Coin > Fragment'
|
||||||
|
|||||||
@@ -2367,6 +2367,10 @@
|
|||||||
"CustomFilter": {
|
"CustomFilter": {
|
||||||
"name": "Custom Research Priority",
|
"name": "Custom Research Priority",
|
||||||
"help": "To use your own filter, set \"OpSi Shop Filter Select\" to \"custom\". All options have been defined at <https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_en>"
|
"help": "To use your own filter, set \"OpSi Shop Filter Select\" to \"custom\". All options have been defined at <https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_en>"
|
||||||
|
},
|
||||||
|
"DisableBeforeDate": {
|
||||||
|
"name": "Don't Buy from OpSi Shop before Date X of Every Month",
|
||||||
|
"help": "Starting from the day after the specified date, buy OpSi shop once a day; saving as 0 implies unlimited date (purchase every day)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"OpsiVoucher": {
|
"OpsiVoucher": {
|
||||||
|
|||||||
@@ -2367,6 +2367,10 @@
|
|||||||
"CustomFilter": {
|
"CustomFilter": {
|
||||||
"name": "OpsiShop.CustomFilter.name",
|
"name": "OpsiShop.CustomFilter.name",
|
||||||
"help": "OpsiShop.CustomFilter.help"
|
"help": "OpsiShop.CustomFilter.help"
|
||||||
|
},
|
||||||
|
"DisableBeforeDate": {
|
||||||
|
"name": "OpsiShop.DisableBeforeDate.name",
|
||||||
|
"help": "OpsiShop.DisableBeforeDate.help"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"OpsiVoucher": {
|
"OpsiVoucher": {
|
||||||
|
|||||||
@@ -2367,6 +2367,10 @@
|
|||||||
"CustomFilter": {
|
"CustomFilter": {
|
||||||
"name": "自定义过滤器",
|
"name": "自定义过滤器",
|
||||||
"help": "使用自定义过滤器需将 \"港口商店过滤器\" 设置为 \"自定义\",并阅读 https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_cn"
|
"help": "使用自定义过滤器需将 \"港口商店过滤器\" 设置为 \"自定义\",并阅读 https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_cn"
|
||||||
|
},
|
||||||
|
"DisableBeforeDate": {
|
||||||
|
"name": "每月 X 号前,不购买大世界商店",
|
||||||
|
"help": "从指定日期的后一天开始,每天买一次大世界商店\n0 表示不限制,每天都购买"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"OpsiVoucher": {
|
"OpsiVoucher": {
|
||||||
|
|||||||
@@ -2367,6 +2367,10 @@
|
|||||||
"CustomFilter": {
|
"CustomFilter": {
|
||||||
"name": "自定義過濾器",
|
"name": "自定義過濾器",
|
||||||
"help": "使用自定義過濾器需將 \"港口商店過濾器\" 設定為 \"自定義\",並閱讀 https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_cn"
|
"help": "使用自定義過濾器需將 \"港口商店過濾器\" 設定為 \"自定義\",並閱讀 https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/filter_string_cn"
|
||||||
|
},
|
||||||
|
"DisableBeforeDate": {
|
||||||
|
"name": "每月 X 號前,不購買大世界商店",
|
||||||
|
"help": "從指定日期的後一天開始,每天買一次大世界商店\n0 表示不限制,每天都購買"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"OpsiVoucher": {
|
"OpsiVoucher": {
|
||||||
|
|||||||
@@ -245,6 +245,13 @@ class OperationSiren(OSMap):
|
|||||||
If not having enough yellow coins or purple coins, skip buying supplies in next port.
|
If not having enough yellow coins or purple coins, skip buying supplies in next port.
|
||||||
"""
|
"""
|
||||||
logger.hr('OS port daily', level=1)
|
logger.hr('OS port daily', level=1)
|
||||||
|
today = datetime.now().day
|
||||||
|
limit = self.config.OpsiShop_DisableBeforeDate
|
||||||
|
if today <= limit:
|
||||||
|
logger.info(f'Delay Opsi shop, today\'s date {today} <= limit {limit}')
|
||||||
|
self.config.task_delay(server_update=True)
|
||||||
|
self.config.task_stop()
|
||||||
|
|
||||||
if not self.zone.is_azur_port:
|
if not self.zone.is_azur_port:
|
||||||
self.globe_goto(self.zone_nearest_azur_port(self.zone))
|
self.globe_goto(self.zone_nearest_azur_port(self.zone))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user