mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: Item_Calyx should not have ETA
This commit is contained in:
parent
b4f75165b1
commit
c2ec4beea6
@ -293,7 +293,7 @@ class StoredPlannerProxy(BaseModelWithFallback):
|
||||
"""
|
||||
Estimate remaining days to farm
|
||||
"""
|
||||
if not self.need_farm():
|
||||
if not self.can_daily_farm():
|
||||
return 0.
|
||||
if self.item.dungeon is None:
|
||||
return 0.
|
||||
@ -304,10 +304,9 @@ class StoredPlannerProxy(BaseModelWithFallback):
|
||||
cost = self.combat_cost
|
||||
drop = self.drop_equivalent_green
|
||||
|
||||
if self.item.is_ItemWeekly:
|
||||
weeks = math.ceil(remain / drop / 3)
|
||||
return weeks * 7
|
||||
else:
|
||||
# if self.item.is_ItemWeekly:
|
||||
# weeks = math.ceil(remain / drop / 3)
|
||||
# return weeks * 7
|
||||
stamina = math.ceil(remain / drop) * cost
|
||||
return round(stamina / 240, 1)
|
||||
|
||||
@ -534,6 +533,7 @@ class PlannerProgressParser:
|
||||
name = f'Item_{row.item.name}'
|
||||
dic = row.model_dump(exclude=SET_ROW_EXCLUDE)
|
||||
dic['item'] = row.item.name
|
||||
dic['time'] = str(row.time)
|
||||
data[name] = dic
|
||||
return data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user