Skip to content

Commit

Permalink
making the new structure work
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Jul 21, 2017
1 parent 102c9ba commit 2d66ae4
Show file tree
Hide file tree
Showing 17 changed files with 572 additions and 304 deletions.
3 changes: 2 additions & 1 deletion common/on_actions/01_idrinthimprovedfactions.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions common/policies/01_idrinthimprovedfactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,30 @@ idrinthimprovedfactions_config_policy = {
valid = {
always = yes
}
policy_flags = { idrinthimprovedfactions_config_policy_none }
}
# ai generates negatives slower
option = {
name = "idrinthimprovedfactions_config_policy_generation"
valid = {
always = yes
}
policy_flags = { idrinthimprovedfactions_config_policy_generation }
}
# ai reduces negatives on a regular basis
option = {
name = "idrinthimprovedfactions_config_policy_base"
valid = {
always = yes
}
policy_flags = { idrinthimprovedfactions_config_policy_base }
}
# ai reduces negatives on a regular basis and generates it slower
option = {
name = "idrinthimprovedfactions_config_policy_both"
valid = {
always = yes
}
policy_flags = { idrinthimprovedfactions_config_policy_both }
}
}
8 changes: 4 additions & 4 deletions common/ship_sizes/01_idrinthimprovedfactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
109 changes: 51 additions & 58 deletions events/01_idrinthimprovedfactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
}
}
Expand Down
72 changes: 50 additions & 22 deletions events/01_idrinthimprovedfactions_authoritarian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { }
}
}
Expand Down Expand Up @@ -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 }
}
}
}
}
Expand Down Expand Up @@ -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 = { }
}
}
}
Loading

0 comments on commit 2d66ae4

Please sign in to comment.