Skip to content

Allow shed actions from locked shed-access tiles in kaggriculture - #1392

Merged
bovard merged 1 commit into
masterfrom
kaggriculture-shed-ops-on-locked-tiles
Aug 6, 2026
Merged

Allow shed actions from locked shed-access tiles in kaggriculture#1392
bovard merged 1 commit into
masterfrom
kaggriculture-shed-ops-on-locked-tiles

Conversation

@bovard

@bovard bovard commented Aug 6, 2026

Copy link
Copy Markdown
Member

The four shed-access tiles are one per quadrant, and only NW starts unlocked, so three of them begin LOCKED. The LOCKED guard ran before PICKUP/DROP/PLACE, which meant a unit standing on one of those tiles could not use the shed it was standing next to -- including the first hire of each day, whose least-occupied spawn lands on (5,4).

Move those three ops above the guard. They only use the tile as a standing position; the shed is not a tile and is never locked. Every op that mutates the standing tile stays below the guard, so PLANT, BUILD_COOP, BUILD_PASTURE, DIG and the rest still no-op on locked ground and consume nothing.

PLACE spans both cases. Its animal branch requires a dict tile and a LOCKED tile is the string "LOCKED", so it cannot match there and falls through to the shed path; covered by test rather than changed.

Also correct two README lines that claimed all tile actions no-op on locked tiles.

The four shed-access tiles are one per quadrant, and only NW starts
unlocked, so three of them begin LOCKED. The LOCKED guard ran before
PICKUP/DROP/PLACE, which meant a unit standing on one of those tiles
could not use the shed it was standing next to -- including the first
hire of each day, whose least-occupied spawn lands on (5,4).

Move those three ops above the guard. They only use the tile as a
standing position; the shed is not a tile and is never locked. Every
op that mutates the standing tile stays below the guard, so PLANT,
BUILD_COOP, BUILD_PASTURE, DIG and the rest still no-op on locked
ground and consume nothing.

PLACE spans both cases. Its animal branch requires a dict tile and a
LOCKED tile is the string "LOCKED", so it cannot match there and falls
through to the shed path; covered by test rather than changed.

Also correct two README lines that claimed all tile actions no-op on
locked tiles.
@bovard
bovard requested a review from dominoweir August 6, 2026 16:17
@bovard
bovard merged commit 0528e46 into master Aug 6, 2026
9 of 10 checks passed
@bovard
bovard deleted the kaggriculture-shed-ops-on-locked-tiles branch August 6, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants