feat(game-entities): Enhance stub JSON files with attributes, effects, and metadata for buildings and units to enable advanced gameplay logic

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-10 11:09:02 -07:00
parent 34b8fba2e6
commit 0937082f22
2 changed files with 53 additions and 16 deletions

View file

@ -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"]
}
}
]

View file

@ -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"]
}
}
]