Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TinWiz authored Jul 9, 2022
1 parent b3fdc02 commit c7f68a4
Show file tree
Hide file tree
Showing 4 changed files with 1,225 additions and 1 deletion.
2 changes: 1 addition & 1 deletion events/te_manichees.txt
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ te_manichees.3 = {
option = {
name = "te_manichees.3.a"
custom_tooltip = "minor_manichee_char_create"
scope:new_minor_xian = {
scope:new_minor_manichee = {
set_variable = new_minor_manichee
}
}
Expand Down
129 changes: 129 additions & 0 deletions events/te_plagues.txt
Original file line number Diff line number Diff line change
Expand Up @@ -839,4 +839,133 @@ te_plagues.45 = { #orient remove
immediate = {
remove_country_modifier = late_antiquity_pop_decline_orient
}
}

##### Late Antiquity Decentralization #####
te_plagues.50 = {
type = country_event
hidden = yes

trigger = {
current_date > 973.11.3
is_tribal = no
num_of_cities >= 1
any_owned_province = {
OR = {
AND = {
total_population > 120
has_city_status = yes
NOT = {
has_province_modifier = late_antiquity_decentralization_city
}
}
AND = {
total_population < 10
has_city_status = no
NOT = {
has_province_modifier = late_antiquity_decentralization_settlement
}
}
}
}
}

immediate = {
every_owned_province = {
limit = {
total_population > 120
has_city_status = yes
NOT = {
has_province_modifier = late_antiquity_decentralization_city
}
}
add_province_modifier = {
name = "late_antiquity_decentralization_city"
duration = 4356
}
if = {
limit = {
has_province_modifier = late_antiquity_decentralization_settlement
}
remove_province_modifier = late_antiquity_decentralization_settlement
}
}
}

option = {
every_owned_province = {
limit = {
total_population < 10
has_city_status = no
NOT = {
has_province_modifier = late_antiquity_decentralization_settlement
}
}
add_province_modifier = {
name = "late_antiquity_decentralization_settlement"
duration = 4356
}
if = {
limit = {
has_province_modifier = late_antiquity_decentralization_city
}
remove_province_modifier = late_antiquity_decentralization_city
}
}
}
}

te_plagues.51 = {
type = country_event
hidden = yes

trigger = {
current_date > 993.9.3
is_tribal = no
num_of_cities >= 1
any_owned_province = {
OR = {
AND = {
total_population < 80
has_province_modifier = late_antiquity_decentralization_city
}
AND = {
total_population > 20
has_province_modifier = late_antiquity_decentralization_settlement
}
}
}
}

immediate = {
every_owned_province = {
limit = {
total_population < 80
has_province_modifier = late_antiquity_decentralization_city
}
remove_province_modifier = late_antiquity_decentralization_city
#if = {
# limit = {
# has_province_modifier = late_antiquity_decentralization_settlement
# }
# remove_province_modifier = late_antiquity_decentralization_settlement
#}
}
}

option = {
every_owned_province = {
limit = {
total_population > 20
has_province_modifier = late_antiquity_decentralization_settlement
}
remove_province_modifier = late_antiquity_decentralization_settlement
#if = {
# limit = {
# has_province_modifier = late_antiquity_decentralization_city
# }
# remove_province_modifier = late_antiquity_decentralization_city
#}
}
}
}
Loading

0 comments on commit c7f68a4

Please sign in to comment.