From 0937082f22572946455f80ef9d046c06254d29fd Mon Sep 17 00:00:00 2001 From: Claude Code Date: Fri, 10 Apr 2026 11:09:02 -0700 Subject: [PATCH] =?UTF-8?q?feat(game-entities):=20=E2=9C=A8=20Enhance=20st?= =?UTF-8?q?ub=20JSON=20files=20with=20attributes,=20effects,=20and=20metad?= =?UTF-8?q?ata=20for=20buildings=20and=20units=20to=20enable=20advanced=20?= =?UTF-8?q?gameplay=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../age-of-dwarves/data/buildings/stub.json | 24 +++++++--- .../games/age-of-dwarves/data/units/stub.json | 45 ++++++++++++++----- 2 files changed, 53 insertions(+), 16 deletions(-) diff --git a/public/games/age-of-dwarves/data/buildings/stub.json b/public/games/age-of-dwarves/data/buildings/stub.json index ee2e675a..37d88ae7 100644 --- a/public/games/age-of-dwarves/data/buildings/stub.json +++ b/public/games/age-of-dwarves/data/buildings/stub.json @@ -2,12 +2,26 @@ { "id": "granary", "name": "Granary", - "description": "Stores food surplus, reducing starvation risk", - "sprite": "sprites/buildings/granary.png", - "category": "infrastructure", + "description": "A cool, stone-lined vault that stores food surplus. Reduces starvation risk and accelerates growth.", + "placement": "city", + "category": "food", "school": null, + "cost": 40, + "upkeep": 1, + "tech_required": null, "race_required": null, - "cost": 60, - "upkeep": 1 + "wonder_type": null, + "mana_generated": null, + "tier": 1, + "effects": [ + { "type": "food", "value": 2 } + ], + "sprite": "sprites/buildings/granary.png", + "encyclopedia": { + "category": "civilization", + "entry_type": "building", + "detail_route": "/buildings/buildings", + "tags": ["food"] + } } ] diff --git a/public/games/age-of-dwarves/data/units/stub.json b/public/games/age-of-dwarves/data/units/stub.json index 9ad3b6ee..692d4e50 100644 --- a/public/games/age-of-dwarves/data/units/stub.json +++ b/public/games/age-of-dwarves/data/units/stub.json @@ -1,17 +1,40 @@ [ { - "id": "founder", - "name": "Founder", - "description": "Colonist who founds new cities", - "gender": { - "male": { "name": "Founder", "sprite": "sprites/units/founder_m.png" }, - "female": { "name": "Founder", "sprite": "sprites/units/founder_f.png" } - }, - "combat_type": "civilian", + "id": "settler", + "name": "Settler", + "description": "A colonist who founds new cities. Consumed upon founding.", + "unit_type": "support", "school": null, "domain": "land", - "keywords": [], - "sprite": "sprites/units/founder.png", - "race_required": null + "attributes": ["light", "biological"], + "attack_type": "none", + "hp": 40, + "attack": 0, + "defense": 4, + "ranged_attack": 0, + "range": 0, + "movement": 2, + "vision": 2, + "cost": 106, + "tech_required": null, + "upgradeable_from": null, + "race_required": null, + "faction": null, + "can_found_city": true, + "can_build_improvements": false, + "flags": [], + "mana_cost": null, + "sprite": "sprites/units/settler.png", + "gender": { + "male": { "name": "Settler", "sprite": "sprites/units/settler_m.png" }, + "female": { "name": "Settler", "sprite": "sprites/units/settler_f.png" } + }, + "maintenance": 5, + "encyclopedia": { + "category": "civilization", + "entry_type": "unit", + "detail_route": "/military/units", + "tags": ["land", "support", "civilian"] + } } ]