mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Fix: Stop dorm feed if not having enough food
This commit is contained in:
parent
d587191d05
commit
23cd6563cf
@ -165,7 +165,8 @@ class RewardDorm(UI):
|
||||
for index in FOOD_FILTER.apply(food):
|
||||
selected = food[index]
|
||||
if selected.amount > 0 and fill > selected.feed:
|
||||
self._dorm_feed_click(button=FOOD[index, 0], count=fill // selected.feed)
|
||||
count = min(fill // selected.feed, selected.amount)
|
||||
self._dorm_feed_click(button=FOOD[index, 0], count=count)
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user