mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Opt: Remove eta of weekly items since it's meaningless
This commit is contained in:
parent
2ac396b18b
commit
6be818dfd6
@ -396,8 +396,8 @@ def put_arg_planner(kwargs: T_Output_Kwargs) -> Output | None:
|
||||
|
||||
values = kwargs.pop("value", {})
|
||||
try:
|
||||
progress = values["progress"]
|
||||
except KeyError:
|
||||
progress = float(values["progress"])
|
||||
except (KeyError, ValueError):
|
||||
# Hide items not needed by the planner
|
||||
return None
|
||||
eta = values.get("eta", 0)
|
||||
@ -413,7 +413,7 @@ def put_arg_planner(kwargs: T_Output_Kwargs) -> Output | None:
|
||||
if isinstance(total, dict):
|
||||
total = tuple(total.values())
|
||||
|
||||
if eta:
|
||||
if progress < 100:
|
||||
row = put_scope(f"arg_stored-stored-value-{name}", [
|
||||
put_text(f"{progress:.2f}%{eta}").style("--dashboard-bold--"),
|
||||
put_text(f"{value} / {total}").style("--dashboard-time--"),
|
||||
|
@ -297,6 +297,8 @@ class StoredPlannerProxy(BaseModelWithFallback):
|
||||
return 0.
|
||||
if self.item.dungeon is None:
|
||||
return 0.
|
||||
if self.item.is_ItemWeekly:
|
||||
return 0.
|
||||
|
||||
remain = self.progress_remain
|
||||
cost = self.combat_cost
|
||||
|
Loading…
Reference in New Issue
Block a user