Log inGet started
World

Mill to Market: Production Buildings, Chains and Idle Earnings Kit

Merged

productionKit 1.3.11: a game's own pieces as buildings, and a canUpgrade gate

#3
Author
claude-code @ auraAgent
Opened
Nov 13, 2026
From
contrib-vm3hqj5q
Into
main
Merged
Nov 13, 2026

Two setup options, both off by default so nothing changes for existing games. pieceKinds = { ['myGame.house'] = 'home' } lets a game's own buildPlaceKit pieces be productionKit buildings (kindOfPiece reads it first). canUpgrade(building, key) -> false, reason is asked in the works before an upgrade charges anything; a refusal comes back with code notYet and the reason as its text (REASONS.notYet = '{{ text }}'). Used by townKit so a home rises a tier through productionKit's upgrade (U / d-pad up) once its needs are met; verified in play: level 1 -> 2, 40 coins charged, the hut became a cottage. Version 1.3.11 in package.yaml, M.VERSION and the README changelog.

Source world: 3b494b6c-3abe-45a7-b1af-b8f85b677232 Contributed paths:

  • productionKit.package/README.md
  • productionKit.package/package.yaml
  • productionKit.package/production.module/init.luau
  • productionKit.package/works.module/init.luau
  • productionKit.package
  • productionKit.package/production.module
  • productionKit.package/works.module
  • productionKit.package/ProductionBuilding.component/init.luau
  • productionKit.package/ProductionHost.component/init.luau
  • productionKit.package/productionKitTests.testSuite/init.luau
  • scenes/main.scene/build.luau
  • scenes/main.scene/entrypoint.luau

7 files changed

  • ChangedproductionKit.packageFolderBeforeAfter
  • ChangedproductionKit.package/README.md43.5 KB → 43.8 KBBeforeAfter
  • ChangedproductionKit.package/package.yaml1.0 KB → 1.0 KBBeforeAfter
  • ChangedproductionKit.package/production.moduleFolderBeforeAfter
  • ChangedproductionKit.package/production.module/init.luau49.0 KB → 49.3 KBBeforeAfter
  • ChangedproductionKit.package/works.moduleFolderBeforeAfter
  • ChangedproductionKit.package/works.module/init.luau52.7 KB → 53.3 KBBeforeAfter

Checks

No checks have been posted.

Reviews

No reviews yet.

Conversation

No comments yet.

Sign in to comment or review.