Make research tree vertically scrollable

This commit is contained in:
Loïc Wisniewski 2026-08-13 16:25:41 +02:00
commit 13492a52e2
6 changed files with 70 additions and 13 deletions

View file

@ -157,7 +157,7 @@ const SKILL_TREE: Array = [
},
{
"id": "coordination", "name": "Coordination", "cost": 20, "requires": "shipyards",
"x": 0.82, "unlocks": BUILDING_COMMAND_CENTER,
"x": 0.50, "unlocks": BUILDING_COMMAND_CENTER,
"desc": "Build command centers, where the fleet formation is arranged.",
},
{
@ -167,12 +167,12 @@ const SKILL_TREE: Array = [
},
{
"id": "vessel_science", "name": "Vessel Science", "cost": 35, "requires": "shipyards",
"x": 0.62, "unlocks": BUILDING_SHIP_LAB,
"x": 0.82, "unlocks": BUILDING_SHIP_LAB,
"desc": "Build ship labs, where each vessel type is upgraded and new ones unlocked.",
},
{
"id": "freight_yards", "name": "Freight Yards", "cost": 80, "requires": "freight",
"x": 0.05, "hub_bonus": 1,
"x": 0.18, "hub_bonus": 1,
"desc": "Permanent: +1 transporter stationed at every hub, including ones already built.",
},
{
@ -182,12 +182,12 @@ const SKILL_TREE: Array = [
},
{
"id": "squadron", "name": "Squadron Doctrine", "cost": 70, "requires": "wing",
"x": 0.65, "fleet_bonus": 1,
"x": 0.50, "fleet_bonus": 1,
"desc": "Permanent: +1 vessel in the fleet.",
},
{
"id": "armada", "name": "Armada Doctrine", "cost": 150, "requires": "squadron",
"x": 0.3, "fleet_bonus": 1,
"x": 0.50, "fleet_bonus": 1,
"desc": "Permanent: +1 vessel in the fleet.",
},
]