From 3bf143993ed1802a9b00cd2b747fcdd10b266f9d Mon Sep 17 00:00:00 2001 From: tekki mariani Date: Tue, 24 Mar 2026 19:28:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20keep=20ROCK=20tile=20type=20afte?= =?UTF-8?q?r=20surface=20rock=20mining?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CHANGE_TILE ROCK→GRASS removed from the surface-rock harvest branch. Empty ROCK tiles are now passable (no resource on them) but remain ROCK, so the mine building can still be placed on harvested rock ground. Fixes #48 Co-Authored-By: Claude Sonnet 4.6 --- src/systems/VillagerSystem.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systems/VillagerSystem.ts b/src/systems/VillagerSystem.ts index f49cabd..dfd8eb2 100644 --- a/src/systems/VillagerSystem.ts +++ b/src/systems/VillagerSystem.ts @@ -296,7 +296,8 @@ export class VillagerSystem { const res = state.world.resources[job.targetId] if (res) { this.adapter.send({ type: 'VILLAGER_HARVEST_RESOURCE', villagerId: v.id, resourceId: job.targetId }) - this.adapter.send({ type: 'CHANGE_TILE', tileX: res.tileX, tileY: res.tileY, tile: TileType.GRASS }) + // ROCK tile stays ROCK after mining — empty rocky ground remains passable + // and valid for mine building placement. this.worldSystem.removeResourceTile(res.tileX, res.tileY) this.resourceSystem.removeResource(job.targetId) this.addLog(v.id, '✓ Mined rock (+2 stone)')