File size: 1,017 Bytes
df97e9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- n052.py.orig	2026-11-08 21:58:53.786667565 -0500
+++ n052.py	2026-11-08 21:59:05.387046605 -0500
@@ -1,5 +1,7 @@
 """N052 expert: S -> A (read both pad deflections through the window) -> B -> take the lighter item -> put it on the delivery pad."""
 
+import os
+
 from magicsim.Collect.Command.memory_scripts.moves import (
     carry_onto,
     hand,
@@ -29,7 +31,7 @@
     # --- first cue-dependent choice: which item? (the pads are locked, both items stand at one height)
     ctx.decide("pick_lighter", ["weight_red", "weight_blue"], readings_m=readings, lighter=lighter)
     ctx.note(chosen=lighter)
-    yield from pick_top_down(ctx, f"item_{lighter}", also_ignore=("weigher",), square=True, label="take_item")
+    yield from pick_top_down(ctx, f"item_{lighter}", also_ignore=("weigher",), square=True, label="take_item", regrip=int(os.environ.get("MMB_N052_REGRIP", "0")))
 
     delivery = ctx.scene()["delivery"]
     pos = lambda: next(i["pos"] for i in ctx.scene()["items"] if i["color"] == lighter)