Implement technology tree, research queue by least remaining work, and unit/building tech availability & obsolescence

This commit is contained in:
2026-11-09 20:28:53 +01:00
parent d4bd9f4711
commit d266715418
30 changed files with 1809 additions and 45 deletions
+16
View File
@@ -0,0 +1,16 @@
id: archer
name: Archer
category: militair
domain: land
health: 85
movement_speed: 2.0
cost: 60
labor_cost: 1200
attack_damage: 25
attack_range: 2
required_tech: "archery"
obsolete_tech: "machinery"
icon: images/units/slinger.png
actions:
- verplaatsen
- aanvallen
+5 -3
View File
@@ -6,7 +6,9 @@ health: 100
movement_speed: 2.0
cost: 50
labor_cost: 1000
build_charges: -1 # -1 voor oneindig doorwerken
required_tech: ""
obsolete_tech: ""
build_charges: -1 # -1 for infinite build charges
infinite_charges: true
icon: images/units/builder.png
actions:
@@ -14,5 +16,5 @@ actions:
- boerderij_bouwen
- build_road
action_speeds:
boerderij_bouwen: 10.0 # Duur in seconden die deze builder unit nodig heeft voor de actie boerderij_bouwen
build_road: 2 # Duur in ticks
boerderij_bouwen: 10.0
build_road: 2
+16
View File
@@ -0,0 +1,16 @@
id: crossbowman
name: Crossbowman
category: militair
domain: land
health: 110
movement_speed: 2.0
cost: 120
labor_cost: 2400
attack_damage: 42
attack_range: 2
required_tech: "machinery"
obsolete_tech: ""
icon: images/units/slinger.png
actions:
- verplaatsen
- aanvallen
+2
View File
@@ -8,6 +8,8 @@ cost: 60
labor_cost: 1500
attack_damage: 25
attack_range: 1
required_tech: "sailing"
obsolete_tech: ""
icon: images/units/galley.png
actions:
- verplaatsen
+16
View File
@@ -0,0 +1,16 @@
id: horseman
name: Horseman
category: militair
domain: land
health: 125
movement_speed: 4.0
cost: 85
labor_cost: 1700
attack_damage: 34
attack_range: 1
required_tech: "horseback_riding"
obsolete_tech: "stirrups"
icon: images/units/warrior.png
actions:
- verplaatsen
- aanvallen
+16
View File
@@ -0,0 +1,16 @@
id: knight
name: Knight
category: militair
domain: land
health: 180
movement_speed: 4.0
cost: 140
labor_cost: 2800
attack_damage: 52
attack_range: 1
required_tech: "stirrups"
obsolete_tech: ""
icon: images/units/warrior.png
actions:
- verplaatsen
- aanvallen
+16
View File
@@ -0,0 +1,16 @@
id: musketman
name: Musketman
category: militair
domain: land
health: 200
movement_speed: 2.0
cost: 160
labor_cost: 3200
attack_damage: 60
attack_range: 1
required_tech: "gunpowder"
obsolete_tech: ""
icon: images/units/warrior.png
actions:
- verplaatsen
- aanvallen
+2
View File
@@ -6,6 +6,8 @@ health: 100
movement_speed: 2.0
cost: 80
labor_cost: 2000
required_tech: ""
obsolete_tech: ""
icon: images/units/settler.png
actions:
- verplaatsen
+2
View File
@@ -8,6 +8,8 @@ cost: 35
labor_cost: 800
attack_damage: 15
attack_range: 2
required_tech: ""
obsolete_tech: "archery"
icon: images/units/slinger.png
actions:
- verplaatsen
+16
View File
@@ -0,0 +1,16 @@
id: spearman
name: Spearman
category: militair
domain: land
health: 120
movement_speed: 2.0
cost: 65
labor_cost: 1300
attack_damage: 28
attack_range: 1
required_tech: "bronze_working"
obsolete_tech: "gunpowder"
icon: images/units/warrior.png
actions:
- verplaatsen
- aanvallen
+16
View File
@@ -0,0 +1,16 @@
id: swordsman
name: Swordsman
category: militair
domain: land
health: 140
movement_speed: 2.0
cost: 90
labor_cost: 1800
attack_damage: 38
attack_range: 1
required_tech: "iron_working"
obsolete_tech: "gunpowder"
icon: images/units/warrior.png
actions:
- verplaatsen
- aanvallen
+2
View File
@@ -8,6 +8,8 @@ cost: 40
labor_cost: 1000
attack_damage: 20
attack_range: 1
required_tech: ""
obsolete_tech: "iron_working"
icon: images/units/warrior.png
actions:
- verplaatsen