diff --git a/config/common/00_small_types_consolidated.cwt b/config/common/00_small_types_consolidated.cwt index 486f2028..f5db6546 100644 --- a/config/common/00_small_types_consolidated.cwt +++ b/config/common/00_small_types_consolidated.cwt @@ -8,6 +8,9 @@ types = { subtype[show_name] = { show_name = yes } + subtype[selectable] = { + selectable = yes + } } type[country_color] = { path = "game/common/colors" @@ -64,10 +67,10 @@ ambient_object = { subtype[!show_name] = { name = scalar } - ## cardinality = 0..1 - description = localisation - ## cardinality = 0..1 - tooltip = localisation + subtype[selectable] = { + description = localisation + tooltip = localisation + } entity = selectable = bool show_name = bool diff --git a/config/common/all_modifiers_consolidated.cwt b/config/common/all_modifiers_consolidated.cwt index 12711763..775964e4 100644 --- a/config/common/all_modifiers_consolidated.cwt +++ b/config/common/all_modifiers_consolidated.cwt @@ -8,10 +8,19 @@ types = { subtype[block_triggered] = { block_triggered = yes } - + localisation = { + ## required + Name = "$" + } + } type[static_modifier] = { path = "game/common/static_modifiers" + localisation = { + ## required + Name = "$" + Description = "$_desc" + } } type[planet_modifier] = { path = "game/common/planet_modifiers" @@ -87,7 +96,7 @@ opinion_modifier = { ##cardinality = 0..1 months = int } - + subtype[block_triggered] = { ### stops modifier from automatically triggering when trigger evaluates to true block_triggered = yes @@ -98,7 +107,7 @@ opinion_modifier = { ###For use with accumulative if the base is positive max = int[1...999] } - + subtype[triggered_opinion_modifier] = { ###root = country with the opinion, from = country it has the opinion of diff --git a/config/common/anomalies.cwt b/config/common/anomalies.cwt index c5561023..1827118f 100644 --- a/config/common/anomalies.cwt +++ b/config/common/anomalies.cwt @@ -2,6 +2,10 @@ types = { type[anomaly_category] = { path = "game/common/anomalies" + localisation = { + ## required + Name = "$" + } } } diff --git a/config/common/casus_belli_and_war_goals.cwt b/config/common/casus_belli_and_war_goals.cwt index 4adadb87..35d9ad2a 100644 --- a/config/common/casus_belli_and_war_goals.cwt +++ b/config/common/casus_belli_and_war_goals.cwt @@ -5,6 +5,12 @@ types = { } type[war_goal] = { path = "game/common/war_goals" + localisation = { + ## required + Name = "war_goal_$" + ## required + Desc = "war_goal_$_desc" + } } } diff --git a/config/common/diplo_phrases.cwt b/config/common/diplo_phrases.cwt index e19d33a3..5ce820b6 100644 --- a/config/common/diplo_phrases.cwt +++ b/config/common/diplo_phrases.cwt @@ -27,7 +27,7 @@ types = { diplo_phrase = { subtype[greetings] = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -42,7 +42,7 @@ diplo_phrase = { ## cardinality = 0..inf select = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -55,7 +55,7 @@ diplo_phrase = { ## cardinality = 0..inf consider = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -68,7 +68,7 @@ diplo_phrase = { ## cardinality = 0..inf propose = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -81,7 +81,7 @@ diplo_phrase = { ## cardinality = 0..inf accept = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -94,7 +94,7 @@ diplo_phrase = { ## cardinality = 0..inf refuse = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -107,7 +107,7 @@ diplo_phrase = { ## cardinality = 0..inf propose_vote = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -123,7 +123,7 @@ diplo_phrase = { ## cardinality = 0..inf propose = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -140,7 +140,7 @@ diplo_phrase = { ## cardinality = 0..inf accept = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 @@ -159,7 +159,7 @@ diplo_phrase = { subtype[declare_war] = { opinion = { ## cardinality = 0..inf - scalar = { + localisation = { ## replace_scope = { root = country this = country from = country } trigger = { alias_name[trigger] = alias_match_left[trigger] } ## cardinality = 0..1 diff --git a/config/common/edicts.cwt b/config/common/edicts.cwt index 384069fd..b88f067e 100644 --- a/config/common/edicts.cwt +++ b/config/common/edicts.cwt @@ -5,6 +5,13 @@ types = { subtype[edict_ambition] = { is_ambition = yes } + + localisation = { + ## required + Name = "edict_$" + ## required + Description = "edict_$_desc" + } } } diff --git a/config/common/ethics.cwt b/config/common/ethics.cwt index ea396322..06d3bdd7 100644 --- a/config/common/ethics.cwt +++ b/config/common/ethics.cwt @@ -1,89 +1,91 @@ types = { + ## type_key_filter <> ethic_categories type[ethos] = { path = "game/common/ethics" - - ## type_key_filter = ethic_categories - subtype[ethic_categories] = { - } - - subtype[actual_ethics] = { - category_value = int + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" } } + ## type_key_filter = ethic_categories + type[ethic_categories] = { + path = "game/common/ethics" + } } # TODO Confirm # TODO Document -ethos = { - subtype[ethic_categories] = { - ## cardinality = 0..100 - scalar = {} - } - subtype[actual_ethics] = { - cost = int - #theoretically this should link to the ethic categories, not sure how to do that though (or whether it is worth it) - category = scalar - category_value = int[0..4] +ethic_categories = { + ## cardinality = 0..100 + scalar = {} +} +ethos = { + cost = int - ## cardinality = 0..1 - ###Yes by default - use_for_pops = bool + #theoretically this should link to the ethic categories, not sure how to do that though (or whether it is worth it) + category = scalar + category_value = int[0..4] - ## cardinality = 0..1 - category_opposite = bool + ## cardinality = 0..1 + ###Yes by default + use_for_pops = bool - ## cardinality = 0..1 - regular_variant = + ## cardinality = 0..1 + category_opposite = bool - ## cardinality = 0..1 - fanatic_variant = + ## cardinality = 0..1 + regular_variant = - ## cardinality = 0..1 - ###always = yes by default - playable = { - alias_name[trigger] = alias_match_left[trigger] - } + ## cardinality = 0..1 + fanatic_variant = - ## replace_scope = { this = country root = country } - country_modifier = { - alias_name[modifier] = alias_match_left[modifier] - } + ## cardinality = 0..1 + ###always = yes by default + playable = { + alias_name[trigger] = alias_match_left[trigger] + } - tags = { - ## cardinality = 0..inf - localisation - } + ## replace_scope = { this = country root = country } + country_modifier = { + alias_name[modifier] = alias_match_left[modifier] + } - random_weight = { - value = int - alias_name[modifier_rule] = alias_match_left[modifier_rule] - } + tags = { + ## cardinality = 0..inf + localisation + } - ## cardinality = 0..100 - pop_attraction_tag = { - desc = localisation - ## replace_scope = { root = country this = country } - ###Scope = country - trigger = { - alias_name[trigger] = alias_match_left[trigger] - } - } + random_weight = { + value = int + alias_name[modifier_rule] = alias_match_left[modifier_rule] + } - ## cardinality = 0..1 - ###Root = country + ## cardinality = 0..100 + pop_attraction_tag = { + desc = localisation ## replace_scope = { root = country this = country } - country_attraction = { - value = float - alias_name[modifier_rule] = alias_match_left[modifier_rule] - } - ## cardinality = 0..1 - ###Root = pop, from = planet - ## replace_scope = { root = pop this = pop from = planet } - pop_attraction = { - value = float - alias_name[modifier_rule] = alias_match_left[modifier_rule] + ###Scope = country + trigger = { + alias_name[trigger] = alias_match_left[trigger] } } + + ## cardinality = 0..1 + ###Root = country + ## replace_scope = { root = country this = country } + country_attraction = { + value = float + alias_name[modifier_rule] = alias_match_left[modifier_rule] + } + ## cardinality = 0..1 + ###Root = pop, from = planet + ## replace_scope = { root = pop this = pop from = planet } + pop_attraction = { + value = float + alias_name[modifier_rule] = alias_match_left[modifier_rule] + } } \ No newline at end of file diff --git a/config/common/governments.cwt b/config/common/governments.cwt index 9fdb453b..263c5e03 100644 --- a/config/common/governments.cwt +++ b/config/common/governments.cwt @@ -5,9 +5,22 @@ types = { type[government] = { path = "game/common/governments" path_strict = yes + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + } } type[civic] = { path = "game/common/governments/civics" + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + } + } } diff --git a/config/common/megastructures.cwt b/config/common/megastructures.cwt index b1507d21..e5abe56f 100644 --- a/config/common/megastructures.cwt +++ b/config/common/megastructures.cwt @@ -1,6 +1,16 @@ types = { type[megastructure] = { path = "game/common/megastructures" + localisation = { + ## required + Name = "$" + ## required + Description = "$_DESC" + ## required + Details = "$_MEGASTRUCTURE_DETAILS" + ## required + "Delayed info" = "$_CONSTRUCTION_INFO_DELAYED" + } } } diff --git a/config/common/new/armies.cwt b/config/common/new/armies.cwt index 50524f67..9e157e74 100644 --- a/config/common/new/armies.cwt +++ b/config/common/new/armies.cwt @@ -2,6 +2,14 @@ types = { type[army] = { path = "game/common/armies" + localisation = { + ## required + Name = "$" + ## required + Plural = "$_plural" + ## required + Desc = "$_desc" + } } } diff --git a/config/common/new/buildings.cwt b/config/common/new/buildings.cwt index 616178af..e2ba99a2 100644 --- a/config/common/new/buildings.cwt +++ b/config/common/new/buildings.cwt @@ -2,6 +2,14 @@ types = { type[building] = { path = "game/common/buildings" + localisation = { + ## replace_scope = { root = army this = army } + ## required + Name = "$" + ## replace_scope = { root = army this = army } + ## required + Description = "$_desc" + } } } diff --git a/config/common/new/deposits_and_planetary_features.cwt b/config/common/new/deposits_and_planetary_features.cwt index 7019c38f..9a7c161f 100644 --- a/config/common/new/deposits_and_planetary_features.cwt +++ b/config/common/new/deposits_and_planetary_features.cwt @@ -3,14 +3,14 @@ types = { type[deposit] = { path = "game/common/deposits" path_strict = yes - + localisation = { subtype[colonisable] = { ## required Name = "$" } } - + #some guesswork here... subtype[colonisable] = { is_for_colonizeable = yes @@ -24,6 +24,12 @@ types = { subtype[null] = { is_null = yes } + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + } } type[deposit_category] = { path = "game/common/deposit_categories" diff --git a/config/common/new/resources.cwt b/config/common/new/resources.cwt index 1a8a5c48..7e85f6cb 100644 --- a/config/common/new/resources.cwt +++ b/config/common/new/resources.cwt @@ -9,6 +9,13 @@ types = { subtype[max] = { max = int } + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + } + } } @@ -46,7 +53,7 @@ resource = { #TBC # alias_name[modifier_rule] = alias_match_left[modifier_rule] } - + ## cardinality = 0..1 tooltip_decimals = int @@ -54,7 +61,7 @@ resource = { ai_wants = { base = int } - + subtype[max] = { ## cardinality = 0..1 fixed_max_amount = yes diff --git a/config/common/new/starbases_consolidated.cwt b/config/common/new/starbases_consolidated.cwt index 82e536c8..75ba6d1c 100644 --- a/config/common/new/starbases_consolidated.cwt +++ b/config/common/new/starbases_consolidated.cwt @@ -1,15 +1,31 @@ types = { type[starbase_building] = { path = "game/common/starbase_buildings" + localisation = { + ## required + Name = "sm_$" + ## required + Description = "sm_$_desc" + } } type[starbase_level] = { path = "game/common/starbase_levels" } type[starbase_module] = { path = "game/common/starbase_modules" + localisation = { + ## required + Name = "sm_$" + ## required + Description = "sm_$_desc" + } } type[starbase_type] = { path = "game/common/starbase_types" + localisation = { + ## required + Name = "$" + } } } diff --git a/config/common/personalities.cwt b/config/common/personalities.cwt index c5afbb02..657422bd 100644 --- a/config/common/personalities.cwt +++ b/config/common/personalities.cwt @@ -1,6 +1,12 @@ types = { type[ai_personality] = { path = "game/common/personalities" + localisation = { + ## required + Name = "personality_$" + ## required + Description = "personality_$_desc" + } } } diff --git a/config/common/planet_classes.cwt b/config/common/planet_classes.cwt index 57f8a820..42dbb42c 100644 --- a/config/common/planet_classes.cwt +++ b/config/common/planet_classes.cwt @@ -13,6 +13,25 @@ types = { ## cardinality = 0..1 colonizable = yes } + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + subtype[habitable_planet] = { + ## required + Tile = "$_tile" + ## required + "Tile description" = "$_tile_desc" + ## required + Habitibility = "$_habitability" + ## required + "Preference trait" = "trait_$_preference" + ## required + "Preference trait descrption" = "trait_$_preference_desc" + } + } + } ## type_key_filter = random_list type[planet_class_random_list] = { diff --git a/config/common/policies.cwt b/config/common/policies.cwt index b6e39b46..78434925 100644 --- a/config/common/policies.cwt +++ b/config/common/policies.cwt @@ -7,6 +7,12 @@ types = { subtype[policy_option] = { } + localisation = { + ## required + Name = "policy_$" + ## required + Description = "policy_$_desc" + } } } diff --git a/config/common/pop_faction.cwt b/config/common/pop_faction.cwt index 0aa8c87b..5cdb2d4d 100644 --- a/config/common/pop_faction.cwt +++ b/config/common/pop_faction.cwt @@ -1,6 +1,12 @@ types = { type[pop_faction] = { path = "game/common/pop_faction_types" + localisation = { + ## required + Name = "pft_$" + ## required + Description = "pft_$_desc" + } } } diff --git a/config/common/ship_sizes.cwt b/config/common/ship_sizes.cwt index 503cca21..68e97069 100644 --- a/config/common/ship_sizes.cwt +++ b/config/common/ship_sizes.cwt @@ -11,6 +11,12 @@ types = { subtype[starbase] = { class = shipclass_starbase } + localisation = { + ## required + Name = "$" + ## required + Plural = "$_plural" + } } } diff --git a/config/common/special_projects.cwt b/config/common/special_projects.cwt index 57cd6b1a..491c8b43 100644 --- a/config/common/special_projects.cwt +++ b/config/common/special_projects.cwt @@ -6,6 +6,12 @@ types = { subtype[cost] = { cost = int[1..9999999] } + localisation = { + ## required + Name = "$" + ## required + Description = "$_DESC" + } } } diff --git a/config/common/species_consolidated.cwt b/config/common/species_consolidated.cwt index 0c0f3d0f..ff276d76 100644 --- a/config/common/species_consolidated.cwt +++ b/config/common/species_consolidated.cwt @@ -1,12 +1,63 @@ types = { type[species_class] = { path = "game/common/species_classes" + subtype[playable] = { + ## cardinality = 0..1 + playable = { + ## cardinality = 0..1 + always = yes + } + } + localisation = { + subtype[playable] = { + ## required + Name = "$" + ## required + Description = "$_desc" + ## required + Plural = "$_plural" + ## required + Insult = "$_insult_01" + ## required + "Insult plural" = "$_insult_plural_01" + ## required + Compliment = "$_compliment_01" + ## required + "Compliment plural" = "$_compliment_plural_01" + ## required + Spawn = "$_spawn" + ## required + "Spawn plural" = "$_spawn_plural" + ## required + "Sound 01" = "$_sound_01" + ## required + "Sound 02" = "$_sound_02" + ## required + "Sound 03" = "$_sound_03" + ## required + "Sound 04" = "$_sound_04" + ## required + "Sound 05" = "$_sound_05" + ## required + Organ = "$_organ" + ## required + Mouth = "$_mouth" + } + } } type[species_archetype] = { path = "game/common/species_archetypes" } type[species_rights] = { path = "game/common/species_rights" + localisation = { + ## required + Name = "$" + ## required + Tooltip = "$_tooltip" + ## required + "Delayed tooltip" = "$_tooltip_delayed" + } } } diff --git a/config/common/traits.cwt b/config/common/traits.cwt index 73456304..4198a58c 100644 --- a/config/common/traits.cwt +++ b/config/common/traits.cwt @@ -18,6 +18,13 @@ types = { ## cardinality = 0..1 leader_trait = no } + + localisation = { + ## required + Name = "$" + ## required + Description = "$_desc" + } } } diff --git a/config/map/map.cwt b/config/map/map.cwt index ee9748ff..5204b2dc 100644 --- a/config/map/map.cwt +++ b/config/map/map.cwt @@ -72,7 +72,7 @@ alias[galaxy_shape:arms] = { } map_setup_scenerio = { - name = scalar + name = localisation ### priority decides in which order the scenarios are listed priority = int num_stars = int