Skip to content

Commit

Permalink
Pre-trigger optimisation part two (#177)
Browse files Browse the repository at this point in the history
* Event pictures fixes

* More event pictures fixes

* More event pictures fixes

* A lot of minor optimisation

* More pre-trigger optimisation
  • Loading branch information
IhateTrains authored and xirsoi committed Aug 28, 2018
1 parent a178579 commit 7c8bec4
Show file tree
Hide file tree
Showing 12 changed files with 205 additions and 212 deletions.
14 changes: 6 additions & 8 deletions AncientReligions/events/ACR_hellenic_revival_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ character_event = {
min_age = 16
capable_only = yes
prisoner = no
has_dlc = "The Old Gods"

is_triggered_only = yes

trigger = {
has_dlc = "The Old Gods"

any_realm_province = {
title = c_byzantion
}
Expand Down Expand Up @@ -1100,9 +1099,10 @@ character_event = {
hide_window = yes

is_triggered_only = yes

religion = catholic

trigger = {
religion = catholic
controls_religion = yes # papas catholicos
489 = {
religion = hellenic_pagan
Expand Down Expand Up @@ -1260,10 +1260,9 @@ character_event = {
capable_only = yes
prisoner = no
only_men = yes
has_dlc = "The Old Gods"

trigger = {
has_dlc = "The Old Gods"

learning = 6
is_landed = no
NOT = {
Expand Down Expand Up @@ -1844,11 +1843,10 @@ character_event = {
only_rulers = yes
only_independent = yes
prisoner = no
has_dlc = "The Old Gods"
war = no

trigger = {
has_dlc = "The Old Gods"
war = no

completely_controls = c_monemvasia

NOT = { religion_group = pagan_group }
Expand Down
7 changes: 3 additions & 4 deletions AncientReligions/events/ACR_hellenic_vestales_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ character_event = {
mean_time_to_happen = {
days = 1
}

has_character_flag = flag_vestalis

trigger = {
has_character_flag = flag_vestalis
NOT = { has_minor_title = title_vestalis }
NOT = { has_minor_title = title_vestalis_maxima }
}
Expand All @@ -113,9 +114,7 @@ character_event = {

is_triggered_only = yes

trigger = {
has_character_flag = flag_vestalis
}
has_character_flag = flag_vestalis

immediate = {
clr_character_flag = flag_vestalis
Expand Down
13 changes: 5 additions & 8 deletions AncientReligions/events/ACR_holy_orders.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ character_event = {
max_age = 45
only_capable = yes
prisoner = no
has_dlc = "Sons of Abraham"

trigger = {
is_ruler = no
Expand All @@ -37,8 +38,6 @@ character_event = {
holy_order = no
}

has_dlc = "Sons of Abraham"

any_mercenary_band = {
is_title_active = THIS
holy_order = yes
Expand Down Expand Up @@ -240,10 +239,9 @@ character_event = {
hide_window = yes

only_playable = yes
has_dlc = "Sons of Abraham"

trigger = {
has_dlc = "Sons of Abraham"

is_potential_land_doner_trigger = yes
}

Expand Down Expand Up @@ -459,6 +457,8 @@ character_event = {

min_age = 16
only_playable = yes
has_dlc = "Sons of Abraham"
prisoner = no

trigger = {
any_mercenary_band = {
Expand All @@ -478,7 +478,6 @@ character_event = {
}
is_adult = yes
is_ruler = no
prisoner = no
NOT = { trait = incapable }
ROOT = {
NOT = {
Expand All @@ -488,8 +487,6 @@ character_event = {
}
}
}

has_dlc = "Sons of Abraham"
}

mean_time_to_happen = {
Expand Down Expand Up @@ -694,6 +691,7 @@ character_event = {

min_age = 16
only_playable = yes
has_dlc = "Sons of Abraham"

trigger = {
any_mercenary_band = {
Expand All @@ -716,7 +714,6 @@ character_event = {
}

any_demesne_province = { has_empty_holding = yes }
has_dlc = "Sons of Abraham"
}

mean_time_to_happen = {
Expand Down
Loading

0 comments on commit 7c8bec4

Please sign in to comment.