1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00

Add: TeamIndex

This commit is contained in:
hgjazhgj
2023-05-07 09:17:14 +08:00
parent f6d52621fe
commit 59263237ab
13 changed files with 81 additions and 11 deletions

View File

@@ -57,6 +57,7 @@ class FgoAutoScript(AzurLaneAutoScript):
assert self.app.run(f"config stopOnDefeated {self.config.Limit_Defeated}")
assert self.app.run(f"config stopOnKizunaReisou {self.config.Limit_KizunaReisou}")
assert self.app.run(f"config stopOnSpecialDrop {self.config.Limit_SpecialDrop}")
assert self.app.run(f"teamup set index {self.config.Team_Index}")
assert self.app.run(f"main {self.config.Apple_AppleCount} {self.config.Apple_AppleKind}")
if self.config.Apple_EatOnce:
self.config.Apple_AppleCount = 0

View File

@@ -37,7 +37,7 @@ class FGOpy(HeadlessCliApplication):
if match is None:
logger.info(f"... {line}")
return
head, datetimems, level, module, content = match.groups()
head, datetime, level, module, content = match.groups()
getattr(logger, level.lower())(content)
if head:
@@ -54,8 +54,8 @@ class FGOpy(HeadlessCliApplication):
def run(self, cmd):
self.mutex.acquire()
self.feed(cmd)
while self.mutex.locked():
time.sleep(1)
with self.mutex:
pass
if self.last_error == "exited":
exit(not self.success)
return self.success

View File

@@ -126,6 +126,12 @@
"display": "hide"
}
},
"Team": {
"Index": {
"type": "input",
"value": 0
}
},
"Apple": {
"AppleKind": {
"type": "select",

View File

@@ -45,6 +45,10 @@ Interval:
Interval:
value: 07:00
Team:
Index:
value: 0
Apple:
AppleKind:
value: gold

View File

@@ -18,6 +18,7 @@ FpyHeartbeat:
FpyMain:
- Scheduler
- Team
- Apple
- Limit
- Interval

View File

@@ -34,6 +34,9 @@ class GeneratedConfig:
# Group `Interval`
Interval_Interval = '07:00'
# Group `Team`
Team_Index = 0
# Group `Apple`
Apple_AppleKind = 'gold' # gold, silver, bronze, copper, quartz
Apple_AppleCount = 0

View File

@@ -135,6 +135,16 @@
"help": "Interval.Interval.help"
}
},
"Team": {
"_info": {
"name": "Team._info.name",
"help": "Team._info.help"
},
"Index": {
"name": "Team.Index.name",
"help": "Team.Index.help"
}
},
"Apple": {
"_info": {
"name": "Apple._info.name",

View File

@@ -135,6 +135,16 @@
"help": "Interval.Interval.help"
}
},
"Team": {
"_info": {
"name": "Team._info.name",
"help": "Team._info.help"
},
"Index": {
"name": "Team.Index.name",
"help": "Team.Index.help"
}
},
"Apple": {
"_info": {
"name": "Apple._info.name",

View File

@@ -24,7 +24,7 @@
"Task": {
"Fpy": {
"name": "FGO-py设置",
"help": ""
"help": "需要FGO-py v11.2.0或更高"
},
"FpyHeartbeat": {
"name": "心跳",
@@ -135,6 +135,16 @@
"help": "HH:MM"
}
},
"Team": {
"_info": {
"name": "编队信息",
"help": "编队信息"
},
"Index": {
"name": "编队序号",
"help": "在「队伍编成」界面的位置由左至右1-100表示使用上一次的编队不进行切换"
}
},
"Apple": {
"_info": {
"name": "苹果",
@@ -155,7 +165,7 @@
},
"EatOnce": {
"name": "只吃一次",
"help": "一次调用之后将「苹果数量」清零,之后只是清空体力\n如果关闭则每次调用都会吃苹果"
"help": "一次调用之后将「苹果数量」清零,之后只是清空体力\n如果关闭此选项,则每次调用都会吃苹果"
},
"AppleTotal": {
"name": "苹果总量",

View File

@@ -135,6 +135,16 @@
"help": "Interval.Interval.help"
}
},
"Team": {
"_info": {
"name": "Team._info.name",
"help": "Team._info.help"
},
"Index": {
"name": "Team.Index.name",
"help": "Team.Index.help"
}
},
"Apple": {
"_info": {
"name": "Apple._info.name",