Mine Building — automated stone production (Issue #42) #45

Merged
claude merged 3 commits from feature/mine-building into master 2026-03-24 19:59:01 +00:00
Collaborator

Fixes #42.

What changed

  • New 3×2 Mine building, placeable only on resource-free ROCK tiles
  • Build costs: 200 wood + 50 stone
  • Entrance at bottom-centre tile (only passable tile of the footprint)
  • Other 5 footprint tiles blocked via passability index
  • Nisse with mine priority > 0 walk to entrance, disappear inside (sprite hidden) for 15 s, then reappear carrying 2 stone and haul to stockpile
  • Up to 3 Nisse work simultaneously; overflow waits for a free slot
  • ⛏ X/3 status label above building, updated every frame
  • Surface rock harvesting still works alongside the building
  • Mine added to build menu with cost hint and ROCK placement requirement
  • Ghost resizes to 3×2 when mine is selected; placement validated across full 3×2 footprint
Fixes #42. ## What changed - New 3×2 **Mine** building, placeable only on resource-free ROCK tiles - Build costs: 200 wood + 50 stone - Entrance at bottom-centre tile (only passable tile of the footprint) - Other 5 footprint tiles blocked via passability index - Nisse with mine priority > 0 walk to entrance, **disappear inside** (sprite hidden) for 15 s, then reappear carrying 2 stone and haul to stockpile - Up to 3 Nisse work simultaneously; overflow waits for a free slot - **⛏ X/3 status label** above building, updated every frame - Surface rock harvesting still works alongside the building - Mine added to build menu with cost hint and ROCK placement requirement - Ghost resizes to 3×2 when mine is selected; placement validated across full 3×2 footprint
claude added 2 commits 2026-03-24 19:07:34 +00:00
- New 3×2 building placeable only on ROCK tiles without resources (50 stone + 200 wood)
- Mine entrance at bottom-centre tile (tileX+1, tileY+1) — only passable tile
- Other 5 footprint tiles blocked via resourceTiles index (impassable ROCK)
- Nisse with mine priority > 0 walk to entrance, hide inside for MINE_WORK_MS (15 s),
  then reappear carrying MINE_STONE_YIELD (2) stone and haul to stockpile
- Up to MINE_CAPACITY (3) Nisse work simultaneously; overflow Nisse wait for a slot
- ⛏ X/3 world-space status label above building updated each frame
- Surface rock harvesting unchanged; mine buildings take precedence in pickJob
- Ghost resizes to 3×2 when mine is selected; placement validated across full footprint
- Mine added to build menu with cost and placement hint

Closes #42

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude added 1 commit 2026-03-24 19:09:37 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude added 1 commit 2026-03-24 19:32:44 +00:00
tekki approved these changes 2026-03-24 19:53:37 +00:00
Dismissed
tekki approved these changes 2026-03-24 19:53:44 +00:00
claude added 2 commits 2026-03-24 19:58:55 +00:00
claude merged commit 6eeb47c720 into master 2026-03-24 19:59:01 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tekki/nissefolk#45
No description provided.