Skip to content

Commit

Permalink
Added era and technology
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiser-chris committed Aug 19, 2024
1 parent 939686c commit fd5ac4a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
45 changes: 45 additions & 0 deletions config/common/technology.cwt
Original file line number Diff line number Diff line change
@@ -1,8 +1,53 @@
types = {
type[technology] = {
path = "game/common/technology/technologies"
localisation = {
name = "$"
}
images = {
## primary
texture = texture
}
}
type[era] = {
path = "game/common/technology/eras"
}
}

era = {
### innovation cost to research technologies of this era
technology_cost = value_field
}

technology = {
### era of this technology
era = <era>

### technology icon
texture = filepath

### Category/Tab this technology is shown in
category = enum[technology_category]

## cardinality = 0..1
### can this technology be researched normally\nit can still be given using scripts
can_research = bool

## cardinality = 0..1
### optional list of required technologies to be able to research this technology
unlocking_technologies = {
## cardinality = 0..inf
<technology>
}

## cardinality = 0..1
### these modifiers are applied to the country if this technology is researched
modifier = single_alias_right[modifier_clause]

## cardinality = 0..1
### base AI weight, default 1.0
ai_weight = {
## cardinality = 0..1
value = value_field
}
}
6 changes: 6 additions & 0 deletions config/enums.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,10 @@ enums = {
most_productive
most_profitable
}

enum[technology_category] = {
production
military
society
}
}

0 comments on commit fd5ac4a

Please sign in to comment.