mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Upd: close onsen emotion recovery after the event is ended
This commit is contained in:
@@ -26,7 +26,7 @@ DIC_RECOVER_MAX = {
|
||||
'dormitory_floor_2': 150,
|
||||
}
|
||||
OATH_RECOVER = 10
|
||||
EXTRA_RECOVER = 10
|
||||
ONSEN_RECOVER = 10
|
||||
|
||||
|
||||
class FleetEmotion:
|
||||
@@ -89,12 +89,12 @@ class FleetEmotion:
|
||||
return getattr(self.config, f'Emotion_Fleet{self.fleet}Oath')
|
||||
|
||||
@property
|
||||
def extra(self):
|
||||
def onsen(self):
|
||||
"""
|
||||
Returns:
|
||||
bool: If all ships have extra emotion recover.
|
||||
bool: If all ships onsen.
|
||||
"""
|
||||
return getattr(self.config, f'Emotion_Fleet{self.fleet}Extra')
|
||||
return getattr(self.config, f'Emotion_Fleet{self.fleet}Onsen')
|
||||
|
||||
@property
|
||||
def speed(self):
|
||||
@@ -105,8 +105,8 @@ class FleetEmotion:
|
||||
speed = DIC_RECOVER[self.recover]
|
||||
if self.oath:
|
||||
speed += OATH_RECOVER
|
||||
if self.extra:
|
||||
speed += EXTRA_RECOVER
|
||||
if self.onsen:
|
||||
speed += ONSEN_RECOVER
|
||||
return speed // 10
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user