Skip to content

Commit

Permalink
Fixup buildings, countries and goods
Browse files Browse the repository at this point in the history
  • Loading branch information
tbobyox committed Jun 6, 2019
1 parent 2132f43 commit afa497f
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 5 deletions.
9 changes: 7 additions & 2 deletions common/buildings.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,27 @@ building = {
subtype[factory] = {
type = factory
## cardinality = 0..1
on_completion = facotry
on_completion = factory

## cardinality = 0..1
completion_size = float

production_type = <production_types>
pop_build_factory = yes
advanced_factory = yes
## cadinality = 0..1
default_enabled = bool
}

max_level = int[0..255]

## cardinality = 0..1
cost = int

## cardinality = 1..inf
goods_cost = {
## cardinality = 0..10
<trade_good> = float
<goods> = float
}

time = int
Expand Down
2 changes: 1 addition & 1 deletion common/countries.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ country_file = {
name = localisation
start_date = date_field
end_date = date_field
ideology = enum[ideologies]
ideology = <ideology>
economic_policy = enum[economic_policies]
trade_policy = enum[trade_policies]
religious_policy = enum[religious_policies]
Expand Down
2 changes: 1 addition & 1 deletion common/goods.cwt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
types = {
type[goods] = {
path = "game/common/cultures"
path = "game/common"
path_file = "goods.txt"
skip_root_key = any
localisation = {
Expand Down
81 changes: 81 additions & 0 deletions common/issues.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,87 @@ types = {
}
}

enums = {
complex_enum[trade_policies] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
trade_policy = {
enum_name = {

}
}
}
}
}
complex_enum[economic_policies] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
economic_policy = {
enum_name = {

}
}
}
}
}
complex_enum[religious_policies] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
religious_policy = {
enum_name = {

}
}
}
}
}
complex_enum[state_capitalism] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
state_capitalism = {
enum_name = {

}
}
}
}
}
complex_enum[citizenship_policies] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
citizenship_policy = {
enum_name = {

}
}
}
}
}
complex_enum[war_policies] = {
path = "game/common/issues.txt"
start_from_root = yes
name = {
party_issues = {
war_policy = {
enum_name = {

}
}
}
}
}
}

policy = {
## cardinality = 5..10
<issue> = {
Expand Down
2 changes: 1 addition & 1 deletion triggers.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ alias[trigger:is_triggered_only] = bool
## scope = any
alias[trigger:major] = bool
## scope = any
alias[trigger:immediate] = = {
alias[trigger:immediate] = {
alias_name[effect] = alias_match_left[effect]
}
## scope = any
Expand Down

0 comments on commit afa497f

Please sign in to comment.