diff --git a/common/on_actions/01_idrinthimprovedfactions.txt b/common/on_actions/01_idrinthimprovedfactions.txt index f55b9f3..9557073 100644 --- a/common/on_actions/01_idrinthimprovedfactions.txt +++ b/common/on_actions/01_idrinthimprovedfactions.txt @@ -1,7 +1,8 @@ # No scope, like on_game_start on_monthly_pulse = { events = { - idrinthimprovedfactions.1 + idrinthimprovedfactions.60 + idrinthimprovedfactions.7 } } # Executes after a policy has been changed diff --git a/common/policies/01_idrinthimprovedfactions.txt b/common/policies/01_idrinthimprovedfactions.txt index 2d40d38..e1c5c46 100644 --- a/common/policies/01_idrinthimprovedfactions.txt +++ b/common/policies/01_idrinthimprovedfactions.txt @@ -8,6 +8,7 @@ idrinthimprovedfactions_config_policy = { valid = { always = yes } + policy_flags = { idrinthimprovedfactions_config_policy_none } } # ai generates negatives slower option = { @@ -15,6 +16,7 @@ idrinthimprovedfactions_config_policy = { valid = { always = yes } + policy_flags = { idrinthimprovedfactions_config_policy_generation } } # ai reduces negatives on a regular basis option = { @@ -22,6 +24,7 @@ idrinthimprovedfactions_config_policy = { valid = { always = yes } + policy_flags = { idrinthimprovedfactions_config_policy_base } } # ai reduces negatives on a regular basis and generates it slower option = { @@ -29,5 +32,6 @@ idrinthimprovedfactions_config_policy = { valid = { always = yes } + policy_flags = { idrinthimprovedfactions_config_policy_both } } } diff --git a/common/ship_sizes/01_idrinthimprovedfactions.txt b/common/ship_sizes/01_idrinthimprovedfactions.txt index 18ab2d7..af424ed 100644 --- a/common/ship_sizes/01_idrinthimprovedfactions.txt +++ b/common/ship_sizes/01_idrinthimprovedfactions.txt @@ -3,7 +3,7 @@ idrinthimprovedfactions_xenophile_corvette = { acceleration = 0.3 rotation_speed = 0.1 combat_max_speed = 2 - combat_rotation = 0.1 +# combat_rotation = 0.1 collision_radius = 2.0 formation_priority = 3 max_hitpoints = 400 @@ -34,7 +34,7 @@ idrinthimprovedfactions_materialist_corvette = { acceleration = 0.3 rotation_speed = 0.1 combat_max_speed = 2 - combat_rotation = 0.1 +# combat_rotation = 0.1 collision_radius = 2.0 formation_priority = 3 max_hitpoints = 400 @@ -65,7 +65,7 @@ idrinthimprovedfactions_egalitarian_corvette = { acceleration = 0.3 rotation_speed = 0.1 combat_max_speed = 2 - combat_rotation = 0.1 +# combat_rotation = 0.1 collision_radius = 2.0 formation_priority = 3 max_hitpoints = 400 @@ -96,7 +96,7 @@ idrinthimprovedfactions_militarist_corvette = { acceleration = 0.4 rotation_speed = 0.1 combat_max_speed = 2 - combat_rotation = 0.1 +# combat_rotation = 0.1 collision_radius = 2.0 formation_priority = 3 max_hitpoints = 400 diff --git a/events/01_idrinthimprovedfactions.txt b/events/01_idrinthimprovedfactions.txt index 5824b98..669067c 100644 --- a/events/01_idrinthimprovedfactions.txt +++ b/events/01_idrinthimprovedfactions.txt @@ -4,77 +4,70 @@ country_event = { id = idrinthimprovedfactions.1 hide_window = yes is_triggered_only = yes - mean_time_to_happen = { days = 15 } immediate = { - every_country = { - limit = { - exists = capital_scope - has_event_chain = idrinthimprovedfactions_influence_authoritarian + if = { + limit = { + is_ai = yes + has_global_flag = idrinthimprovedfactions_config_policy_base } + country_event = {id=idrinthimprovedfactions.4} + } + every_owned_pop = { if = { limit = { - is_ai = yes - has_global_flag = idrinthimprovedfactions_config_policy_base + pop_has_ethic = ethic_authoritarian + is_growing = no } - country_event = {id=idrinthimprovedfactions.4} + pop_event = {id=idrinthimprovedfactions.101} } - every_owned_pop = { - if = { - limit = { - pop_has_ethic = ethic_authoritarian - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.101} - } - if = { - limit = { - pop_has_ethic = ethic_egalitarian - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.102} + if = { + limit = { + pop_has_ethic = ethic_egalitarian + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_xenophobe - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.103} + pop_event = {id=idrinthimprovedfactions.102} + } + if = { + limit = { + pop_has_ethic = ethic_xenophobe + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_xenophile - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.104} + pop_event = {id=idrinthimprovedfactions.103} + } + if = { + limit = { + pop_has_ethic = ethic_xenophile + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_militarist - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.105} + pop_event = {id=idrinthimprovedfactions.104} + } + if = { + limit = { + pop_has_ethic = ethic_militarist + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_pacifist - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.106} + pop_event = {id=idrinthimprovedfactions.105} + } + if = { + limit = { + pop_has_ethic = ethic_pacifist + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_spiritualist - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.107} + pop_event = {id=idrinthimprovedfactions.106} + } + if = { + limit = { + pop_has_ethic = ethic_spiritualist + is_growing = no } - if = { - limit = { - pop_has_ethic = ethic_materialist - is_growing = no - } - pop_event = {id=idrinthimprovedfactions.108} + pop_event = {id=idrinthimprovedfactions.107} + } + if = { + limit = { + pop_has_ethic = ethic_materialist + is_growing = no } + pop_event = {id=idrinthimprovedfactions.108} } } } diff --git a/events/01_idrinthimprovedfactions_authoritarian.txt b/events/01_idrinthimprovedfactions_authoritarian.txt index c638ce2..abb3393 100644 --- a/events/01_idrinthimprovedfactions_authoritarian.txt +++ b/events/01_idrinthimprovedfactions_authoritarian.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_authoritarian counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_authoritarian counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_authoritarian counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_authoritarian + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_authoritarian + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10121 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10121 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10121 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10121 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10121 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10121 } + else = { + country_event = { id = idrinthimprovedfactions.10121 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_authoritarian + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_authoritarian + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_egalitarian.txt b/events/01_idrinthimprovedfactions_egalitarian.txt index 7f5bc84..11f3705 100644 --- a/events/01_idrinthimprovedfactions_egalitarian.txt +++ b/events/01_idrinthimprovedfactions_egalitarian.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_egalitarian counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_egalitarian counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_egalitarian counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_egalitarian + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_egalitarian + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10221 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10221 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10221 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10221 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10221 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10221 } + else = { + country_event = { id = idrinthimprovedfactions.10221 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_egalitarian + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_egalitarian + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_materialist.txt b/events/01_idrinthimprovedfactions_materialist.txt index 5492c97..aa24729 100644 --- a/events/01_idrinthimprovedfactions_materialist.txt +++ b/events/01_idrinthimprovedfactions_materialist.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_materialist counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_materialist counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_materialist counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_materialist + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_materialist + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10821 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10821 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10821 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10821 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10821 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10821 } + else = { + country_event = { id = idrinthimprovedfactions.10821 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_materialist + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_materialist + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_militarist.txt b/events/01_idrinthimprovedfactions_militarist.txt index 52afdfa..61718e9 100644 --- a/events/01_idrinthimprovedfactions_militarist.txt +++ b/events/01_idrinthimprovedfactions_militarist.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_militarist counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_militarist counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_militarist counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_militarist + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_militarist + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10521 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10521 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10521 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10521 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10521 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10521 } + else = { + country_event = { id = idrinthimprovedfactions.10521 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_militarist + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_militarist + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_pacifist.txt b/events/01_idrinthimprovedfactions_pacifist.txt index b356b78..80cc3d6 100644 --- a/events/01_idrinthimprovedfactions_pacifist.txt +++ b/events/01_idrinthimprovedfactions_pacifist.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_pacifist counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_pacifist counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_pacifist counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_pacifist + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_pacifist + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10621 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10621 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10621 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10621 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10621 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10621 } + else = { + country_event = { id = idrinthimprovedfactions.10621 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_pacifist + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_pacifist + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_spiritualist.txt b/events/01_idrinthimprovedfactions_spiritualist.txt index fc1ec03..2a9429e 100644 --- a/events/01_idrinthimprovedfactions_spiritualist.txt +++ b/events/01_idrinthimprovedfactions_spiritualist.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_spiritualist counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_spiritualist counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_spiritualist counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_spiritualist + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_spiritualist + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10721 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10721 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10721 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10721 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10721 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10721 } + else = { + country_event = { id = idrinthimprovedfactions.10721 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_spiritualist + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_spiritualist + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_xenophile.txt b/events/01_idrinthimprovedfactions_xenophile.txt index cea7058..886d4f3 100644 --- a/events/01_idrinthimprovedfactions_xenophile.txt +++ b/events/01_idrinthimprovedfactions_xenophile.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophile counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophile counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophile counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophile + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophile + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10421 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10421 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10421 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10421 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10421 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10421 } + else = { + country_event = { id = idrinthimprovedfactions.10421 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophile + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophile + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/01_idrinthimprovedfactions_xenophobe.txt b/events/01_idrinthimprovedfactions_xenophobe.txt index 4a9aa02..c218c2d 100644 --- a/events/01_idrinthimprovedfactions_xenophobe.txt +++ b/events/01_idrinthimprovedfactions_xenophobe.txt @@ -139,27 +139,41 @@ country_event = { hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophobe counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophobe counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_xenophobe counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophobe + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophobe + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -213,29 +227,29 @@ country_event = { country_event = { id = idrinthimprovedfactions.10321 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10321 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10321 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10321 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10321 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10321 } + else = { + country_event = { id = idrinthimprovedfactions.10321 } + } } } } @@ -266,7 +280,21 @@ country_event = { amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophobe + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_xenophobe + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } } \ No newline at end of file diff --git a/events/05_idrinthimprovedfactions.txt b/events/05_idrinthimprovedfactions.txt index c9be9d6..9ee7e5b 100644 --- a/events/05_idrinthimprovedfactions.txt +++ b/events/05_idrinthimprovedfactions.txt @@ -5,44 +5,30 @@ country_event = { hide_window = yes is_triggered_only = yes immediate = { - if = { - limit = { - last_changed_policy = idrinthimprovedfactions_config_policy - } if = { - limit = { - has_policy_flag = idrinthimprovedfactions_config_policy_none - } - remove_global_flag = idrinthimprovedfactions_config_policy_base - remove_global_flag = idrinthimprovedfactions_config_policy_generation - } - else = { - if = { limit = { - has_policy_flag = idrinthimprovedfactions_config_policy_base + last_changed_policy = idrinthimprovedfactions_config_policy } + remove_global_flag = idrinthimprovedfactions_config_policy_base remove_global_flag = idrinthimprovedfactions_config_policy_generation - set_global_flag = idrinthimprovedfactions_config_policy_base - } - else = { if = { - limit = { - has_policy_flag = idrinthimprovedfactions_config_policy_generation - } - remove_global_flag = idrinthimprovedfactions_config_policy_base - set_global_flag = idrinthimprovedfactions_config_policy_generation - } - else = { - if = { limit = { - has_policy_flag = idrinthimprovedfactions_config_policy_both + OR = { + has_policy_flag = idrinthimprovedfactions_config_policy_base + has_policy_flag = idrinthimprovedfactions_config_policy_both + } } set_global_flag = idrinthimprovedfactions_config_policy_base + } + if = { + limit = { + OR = { + has_policy_flag = idrinthimprovedfactions_config_policy_generation + has_policy_flag = idrinthimprovedfactions_config_policy_both + } + } set_global_flag = idrinthimprovedfactions_config_policy_generation - } } - } } - } } } diff --git a/events/06_idrinthimprovedfactions.txt b/events/06_idrinthimprovedfactions.txt index b828c0e..2ebc001 100644 --- a/events/06_idrinthimprovedfactions.txt +++ b/events/06_idrinthimprovedfactions.txt @@ -5,14 +5,17 @@ event = { hide_window = yes is_triggered_only = yes immediate = { - every_country = { - limit = { - is_ai = no - NOT = { has_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer } + if = { + limit = { NOT = { has_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer } } + every_country = { + limit = { + is_ai = no + NOT = { has_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer } + } + set_country_flag = idrinthimprovedfactions_markedfirstplayer + set_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer + } } - set_country_flag = idrinthimprovedfactions_markedfirstplayer - set_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer - } } } country_event = { @@ -20,14 +23,10 @@ country_event = { hide_window = yes is_triggered_only = yes immediate = { - if = { - limit = { has_country_flag = idrinthimprovedfactions_markedfirstplayer } - remove_country_flag = idrinthimprovedfactions_markedfirstplayer - remove_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer - event = { - id = idrinthimprovedfactions.60 - days = 15 + if = { + limit = { has_country_flag = idrinthimprovedfactions_markedfirstplayer } + remove_country_flag = idrinthimprovedfactions_markedfirstplayer + remove_global_flag = idrinthimprovedfactions_hasmarkedfirstplayer } - } } } diff --git a/events/07_idrinthimprovedfactions.txt b/events/07_idrinthimprovedfactions.txt new file mode 100644 index 0000000..918dbe8 --- /dev/null +++ b/events/07_idrinthimprovedfactions.txt @@ -0,0 +1,19 @@ +namespace = idrinthimprovedfactions + +event = { + id = idrinthimprovedfactions.7 + hide_window = yes + is_triggered_only = yes + immediate = { + every_country = { + limit = { + exists = capital_scope + has_event_chain = idrinthimprovedfactions_influence_authoritarian + } + country_event = { + id = idrinthimprovedfactions.1 + days = 15 + } + } + } +} diff --git a/events/generator.php b/events/generator.php index bc5b937..0e9bf81 100644 --- a/events/generator.php +++ b/events/generator.php @@ -152,27 +152,41 @@ hide_window = yes immediate = { random_list = { - 2 = { + 3 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_{$ethic} counter = idrinthimprovedfactions_positive amount = 1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_{$ethic} counter = idrinthimprovedfactions_negative amount = -1 } } - 1 = { + 2 = { add_event_chain_counter = { event_chain = idrinthimprovedfactions_influence_{$ethic} counter = idrinthimprovedfactions_positive amount = 2 } } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_{$ethic} + counter = idrinthimprovedfactions_negative + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_{$ethic} + counter = idrinthimprovedfactions_positive + amount = 3 + } + } 16 = { } } } @@ -226,29 +240,29 @@ country_event = { id = idrinthimprovedfactions.10{$pos1}21 } } } - } - else = { - if = { - limit = { is_difficulty = 1 } - random_list = { - 2 = {} - 48 = { - country_event = { id = idrinthimprovedfactions.10{$pos1}21 } - } - } - } else = { - random_list = { - 4 = {} - 46 = { - country_event = { id = idrinthimprovedfactions.10{$pos1}21 } + if = { + limit = { is_difficulty = 1 } + random_list = { + 2 = {} + 48 = { + country_event = { id = idrinthimprovedfactions.10{$pos1}21 } + } + } + else = { + random_list = { + 4 = {} + 46 = { + country_event = { id = idrinthimprovedfactions.10{$pos1}21 } + } + } } } } } - } - else = { - country_event = { id = idrinthimprovedfactions.10{$pos1}21 } + else = { + country_event = { id = idrinthimprovedfactions.10{$pos1}21 } + } } } } @@ -279,7 +293,21 @@ amount = 2 } } - 9 = { } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_{$ethic} + counter = idrinthimprovedfactions_positive + amount = -2 + } + } + 1 = { + add_event_chain_counter = { + event_chain = idrinthimprovedfactions_influence_{$ethic} + counter = idrinthimprovedfactions_negative + amount = 3 + } + } + 10 = { } } } }"; diff --git a/localisation/english/idrinthimprovedfactions_l_english.yml b/localisation/english/idrinthimprovedfactions_l_english.yml index b137b28..104ec88 100644 --- a/localisation/english/idrinthimprovedfactions_l_english.yml +++ b/localisation/english/idrinthimprovedfactions_l_english.yml @@ -169,3 +169,17 @@ idrinthimprovedfactions_unhappy_spiritualist_planet_1_desc:0 "You angered this faction leading to unrest in your empire." idrinthimprovedfactions_unhappy_materialist_planet_1:0 "Materialist Faction drawbacks" idrinthimprovedfactions_unhappy_materialist_planet_1_desc:0 "You angered this faction leading to unrest in your empire." + policy_idrinthimprovedfactions_config_policy:0 "Configure IIF" + policy_idrinthimprovedfactions_config_policy_desc:0 "Configure Idrinth Improved Factions AI-Adjustments" + idrinthimprovedfactions_config_policy_none:0 "None" + idrinthimprovedfactions_config_policy_none_desc:0 "The AI has no benefits relatively to the player." + idrinthimprovedfactions_config_policy_generation:0 "Reduced Unhappy Pops" + idrinthimprovedfactions_config_policy_generation_desc:0 "The AI will generate less negative points than the player from each pop." + idrinthimprovedfactions_config_policy_base:0 "Reduced Unhappy Base" + idrinthimprovedfactions_config_policy_base_desc:0 "The AI will reduce their negative counters by a static value." + idrinthimprovedfactions_config_policy_both:0 "Reduced Unhappy Base and Pops" + idrinthimprovedfactions_config_policy_both_desc:0 "The AI will generate less negative points than the player from each pop and reduce their negative value by a static value." + idrinthimprovedfactions_config_policy_none_name:0 "None" + idrinthimprovedfactions_config_policy_generation_name:0 "Reduced Unhappy Pops" + idrinthimprovedfactions_config_policy_base_name:0 "Reduced Unhappy Base" + idrinthimprovedfactions_config_policy_both_name:0 "Reduced Unhappy Base and Pops"