Commit Graph

248 Commits

Author SHA1 Message Date
root 3dbf5b707b feat(client): add StocksPanel UI component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:55:47 +00:00
root 803e6c9b8c feat(client): add stockpile socket callbacks to SocketClient
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:55:44 +00:00
root 9f77a84d6f feat(server): add pickup system for NPC stockpile material retrieval
NPCs can now retrieve crafting materials from stockpiles instead of
always gathering raw resources. The industry system checks if a
stockpile has needed materials before falling back to gathering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:52:37 +00:00
root 60c6d7808d feat(server): emit stockpile log events from dropoffSystem
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:49:24 +00:00
root 188a915732 feat(server): wire StockpileLog into GameLoop and SocketServer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:48:23 +00:00
root 9194a56848 feat(server): add StockpileLog singleton for tracking stockpile activity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:47:35 +00:00
root 9e02cd973e feat(shared): add StockpileLogEntry type, pickup goal, and stockpile socket events
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:47:26 +00:00
root 35f3b4ea37 docs: add implementation plan for stocks panel, NPC tabs, and pickup mechanic
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:45:44 +00:00
root ca3e067e0b docs: add design for stocks panel, NPC tab rework, and pickup mechanic
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 02:42:27 +00:00
root d5ad7d5f7f feat(client): wire InventionsPanel into GameScene
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:46:21 +00:00
root e27f2381eb feat(client): add inventions tab with notification dot to LeftPanel
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:45:10 +00:00
root 6b932d12a7 feat(client): add InventionsPanel UI component
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:44:30 +00:00
root 01e6d9c526 feat(client): add invention event/history callbacks to SocketClient
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:43:38 +00:00
root 1271fc1d7f feat(server): emit invention-event and invention-history socket events
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:43:03 +00:00
root 3937b85ed6 feat(server): pass full invention data to timeline on registration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:41:53 +00:00
root 0ff4c24bd6 feat(server): extend InventionTimeline with full invention data and getSummaries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:41:11 +00:00
root f362619c5f feat(shared): add InventionSummary type and socket events
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:40:00 +00:00
root 827b38c2c7 docs: add inventions panel implementation plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:38:01 +00:00
root 89ae5d065b docs: add inventions panel design
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:35:51 +00:00
root 6d1f470ba5 docs: update completion status for Phases A-D.3
Mark all resource system phases (A, B, C, D.1-D.3) as complete in
the LLM integration roadmap and design docs. D.4 (structure
inspection) remains as future work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:15:02 +00:00
root c7bf7c9ef4 feat(client): add Phase D UI integration (D.1-D.3)
- D.1: Inventory display in NPC info panel (two-column grid below stats)
- D.2: Activity labels for gather/craft/build/dropoff goals
- D.3: Gold color for invention events in feed, lightbulb icon in history

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:13:15 +00:00
root 9e4d2583f5 docs: add Phase D UI integration design (D.1-D.3)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:11:43 +00:00
root ed7113a34c docs: add Phase A, B, C implementation plans
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 00:03:03 +00:00
root e127aea842 test(systems): add invention integration test for end-to-end lifecycle
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:58:26 +00:00
root 857c7bc899 feat(game): wire inventionSystem and inventionTimeline into game loop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:53:38 +00:00
root 6fc3fb75de feat(systems): add inventionSystem with LLM-driven eureka moments
Runs every 100 ticks, checks each NPC for a probability-based eureka
moment scaled by INT and CUR stats. On trigger, sends LLM request with
available materials context, parses/validates the response, registers
the new item + recipe, emits narration, and records a memory event.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:52:19 +00:00
root e5457b2446 feat(superlatives): add mostInventive superlative
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:49:40 +00:00
root 69a07248ce feat(shared): add 'invention' to MemoryEventType and NarrationEvent type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:48:50 +00:00
root 3480405185 feat(industry): add invention registration helper
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:48:10 +00:00
root d7fbe5f547 feat(industry): add LLM invention response parser
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:47:01 +00:00
root 57f3832b0b feat(industry): add invention validation pipeline
Validates LLM-generated invention JSON: checks inputs exist in
ItemRegistry, rejects name collisions (case-insensitive), validates
categories, and generates snake_case itemIds from names.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:46:06 +00:00
root b6a08c8bd8 feat(industry): add InventionTimeline singleton for tracking inventions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:44:44 +00:00
root 66247276cd feat(llm): add invention prompt template
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:43:56 +00:00
root b8e63ba96d feat(config): add invention tuning values to industryConfig
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:43:53 +00:00
root 878c6fe2b2 fix(industry): check toolRequired in findCraftable
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:33:58 +00:00
root 412e4dab7a docs: mark Phase B (crafting + building) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:31:13 +00:00
root 4e1ddf0e75 test(systems): add industry integration tests for gather/craft/build lifecycle
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:30:16 +00:00
root c7fd106011 feat(game): wire industrySystem, craftingSystem, buildingSystem, dropoffSystem into game loop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:27:57 +00:00
root 82324f7666 feat(systems): integrate craft/build/dropoff goals into brain and movement
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:27:03 +00:00
root e0e5c6615e feat(systems): add industrySystem with craft/build/gather decision tree
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:25:39 +00:00
root 9247a8c6e4 feat(systems): add dropoffSystem for stockpile item transfer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:25:38 +00:00
root 5aa42d829b feat(systems): add buildingSystem with structure progress tracking
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:22:58 +00:00
root 6140823c99 feat(systems): add craftingSystem with input consumption and output production
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:22:19 +00:00
root 4399a1cd34 feat(industry): add RecipeRegistry with seed recipes for tools and structures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:20:38 +00:00
root e532c85d6b feat(config): add crafting and building tuning values 2026-03-08 23:19:10 +00:00
root b019beff82 feat(shared): add craft, build, dropoff goal types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 23:19:05 +00:00
root dbe8ecd82e feat: Phase A — harvestable map + gathering system
Adds resource generation (water ponds, stone deposits, trees), NPC gathering
behavior driven by a new productivity need, inventory system, and client-side
stone tile rendering. 304 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:54:51 +00:00
root bfaa0ce6b8 docs: mark Phase A (harvestable map + gathering) as complete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:52:52 +00:00
root 2abcb7b1e1 feat(client): render stone terrain tiles as gray overlays
Stone tiles now display as gray rectangles with darker borders instead of
being hidden under the base grass layer. Also treats stone as a land tile
for water edge autotiling so water/stone boundaries render correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:52:10 +00:00
root 25d842e367 feat(systems): pause movement during gathering, wire gathering into game loop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:50:48 +00:00