1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-19 23:33:33 +08:00

Opt: Extra emotion recover

This commit is contained in:
2024-09-19 10:21:12 +08:00
parent 3852a50dfc
commit 8516b51696
9 changed files with 223 additions and 16 deletions

View File

@@ -26,6 +26,7 @@ DIC_RECOVER_MAX = {
'dormitory_floor_2': 150,
}
OATH_RECOVER = 10
EXTRA_RECOVER = 10
class FleetEmotion:
@@ -87,6 +88,14 @@ class FleetEmotion:
"""
return getattr(self.config, f'Emotion_Fleet{self.fleet}Oath')
@property
def extra(self):
"""
Returns:
bool: If all ships have extra emotion recover.
"""
return getattr(self.config, f'Emotion_Fleet{self.fleet}Extra')
@property
def speed(self):
"""
@@ -96,6 +105,8 @@ class FleetEmotion:
speed = DIC_RECOVER[self.recover]
if self.oath:
speed += OATH_RECOVER
if self.extra:
speed += EXTRA_RECOVER
return speed // 10
@property