Improve side reaches, quick answers and Korean typed commands

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 02:11:27 +09:00
co-authored by Claude Opus 5.5
parent d72eb52f66
commit 3f392343bf
22 changed files with 630 additions and 120 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ def short(s):
if do == "receive" and w[1:] == ["hand"]:
return {"do": "receive", "object": None, "from_hand": True} # "take this from me": from the person's hand
if do == "receive":
out = {"do": "receive", "object": w[1] if len(w) > 1 and w[1] != "wait" else None}
col = w.pop(1) if len(w) > 2 and w[1] in steps.brain.COLOURS.values() else None # "receive red cup wait"
out = {"do": "receive", "object": w[1] if len(w) > 1 and w[1] != "wait" else None, **({"colour": col} if col else {})}
if "wait" in w:
out["wait_s"] = float(w[-1]) if w[-1] != "wait" else steps.WAIT_GIVE_S
return out