Skip to content

Commit

Permalink
2.2.6 econ modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
tboby committed Mar 30, 2019
1 parent ecac6af commit 9cea99c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/common/new/armies.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
types = {
type[army] = {
path = "game/common/armies"
subtype[buildable] = {
potential = {
## cardinality = 0..0
always = no
}
}
localisation = {
## required
Name = "$"
## required
Plural = "$_plural"
## required
Desc = "$_desc"
subtype[buildable] = {
## required
Plural = "$_plural"
}
}
}
}
Expand Down
36 changes: 36 additions & 0 deletions config/common/new/common_economic_templates.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ economic_category = {
trigger = {
alias_name[trigger] = alias_match_left[trigger]
}
modifier_types = {
## cardinality = 0..2
enum[economic_modifier_types]
}
}
## cardinality = 0..inf
triggered_cost_modifier = {
Expand All @@ -47,6 +51,11 @@ economic_category = {
}
## cardinality = 0..1
use_parent_icon = yes
modifier_types = {
## cardinality = 0..2
enum[economic_modifier_types]
}

}
## cardinality = 0..inf
triggered_upkeep_modifier = {
Expand All @@ -55,11 +64,26 @@ economic_category = {
trigger = {
alias_name[trigger] = alias_match_left[trigger]
}
modifier_types = {
## cardinality = 0..2
enum[economic_modifier_types]
}

}
## cardinality = 0..1
ai_use_parent_for_resources_upkeep = {
<resource>
}
## cardinality = 0..1
generate_mult_modifiers = {
## cardinality = 1..3
enum[economic_modifier_categories]
}
## cardinality = 0..1
generate_add_modifiers = {
## cardinality = 1..3
enum[economic_modifier_categories]
}
}


Expand Down Expand Up @@ -245,3 +269,15 @@ alias[triggered_desc:triggered_desc] = {
text = localisation
}


enums = {
enum[economic_modifier_categories] = {
produces
cost
upkeep
}
enum[economic_modifier_types] = {
mult
add
}
}

0 comments on commit 9cea99c

Please sign in to comment.