Fix the drift plan price table and purchase loop to include the deconfound arm
This commit is contained in:
parent
059c681c9e
commit
399147aa76
1 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ def cmd_plan() -> None:
|
|||
for c in ch:
|
||||
print(f" гл.{c['no']:<3d} {c['uid'][:8]} {len(c['source']):5d} знаков "
|
||||
f"{c['source'][:46].replace(chr(10), ' ')}")
|
||||
per = {"F3": 0.00107, "A": 0.00392, "D_": 0.00533}
|
||||
per = {"F3": 0.00107, "A": 0.00392, "A_law": 0.00378, "D_": 0.00533}
|
||||
tot = sum(per[a] * len(ch) for a in DRIFT_ARMS)
|
||||
print(f"\nармы: {', '.join(DRIFT_ARMS)} · ожидаемая цена ${tot:.4f} из потолка ${CEIL_DRIFT}")
|
||||
print(f"касса `dr-*` · уже потрачено ${LED_DRIFT.spent():.5f}")
|
||||
|
|
@ -138,7 +138,7 @@ def cmd_arms() -> None:
|
|||
if not ok:
|
||||
print(f" ⛔ гл.{c['no']}: годного черновика нет после 3 попыток")
|
||||
time.sleep(0.15)
|
||||
for arm in ("A", "D_"):
|
||||
for arm in ("A", "A_law", "D_"):
|
||||
for c in ch:
|
||||
u = dict(source=c["source"], uid=c["uid"], draft=own_draft(c["uid"]))
|
||||
if not u["draft"] and BO.ARMS[arm]["contract"] not in ("direct", "direct-reflow"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue