Auto-grab asks before pocketing your own treasure
Walking off a square holding your own chest is the capture clause's favorite setup, so the end-turn caution now names it before the auto-grab preference takes it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015RCWSTnb1KYTPyL4GmhGnF
This commit is contained in:
co-authored by
Claude Fable 5
parent
7ee3c01e44
commit
7f82aa47e0
@@ -1045,6 +1045,13 @@
|
|||||||
here !== cellKey(me.home)) {
|
here !== cellKey(me.home)) {
|
||||||
reasons.push(`a treasure lies at your feet, un-grabbed`);
|
reasons.push(`a treasure lies at your feet, un-grabbed`);
|
||||||
}
|
}
|
||||||
|
// Auto-grab about to pocket your OWN chest: carrying it does not
|
||||||
|
// score and bares it to capture, so that walk-off asks first.
|
||||||
|
if (autoWillGrab && !me.carriedTreasureId && !view.turn.actionsEnded &&
|
||||||
|
!weakened && !view.gluedCells[here] && !safed && here !== cellKey(me.home) &&
|
||||||
|
treasuresHere[0]!.owner === view.you) {
|
||||||
|
reasons.push("your OWN treasure lies underfoot — ending the turn grabs it and carries it along");
|
||||||
|
}
|
||||||
// The draw picker is sticky: a 0 or 1 chosen turns ago quietly starves.
|
// The draw picker is sticky: a 0 or 1 chosen turns ago quietly starves.
|
||||||
const drawRoom = Math.min(2, room);
|
const drawRoom = Math.min(2, room);
|
||||||
if (drawCount < drawRoom) {
|
if (drawCount < drawRoom) {
|
||||||
|
|||||||
Reference in New Issue
Block a user