Skip to content

Commit

Permalink
Official Appointment Event
Browse files Browse the repository at this point in the history
- Roman Official Appointment Ceremony Events by Maneege modified
  • Loading branch information
alltheatreides committed Apr 30, 2021
1 parent a8efb5d commit 2d458ab
Show file tree
Hide file tree
Showing 7 changed files with 510 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -809,15 +809,15 @@ islamic_empire_fire_bureaucrat = {

## Settled Amir
modifier = {
add = 100
add = 200
scope:recipient = {
has_character_modifier = islamic_empire_settled_amir
}
}

## Entrenched Amir
modifier = {
add = 500
add = 1000
scope:recipient = {
has_character_modifier = islamic_empire_entrenched_amir
}
Expand Down
2 changes: 1 addition & 1 deletion common/defines/00_defines.txt
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ NCombat = {
WAR_ATTACKER_COMBAT_MAX_SCORE = 80 # The maximum amount of warscore gained from a single battle by the war attacker
WAR_DEFENDER_COMBAT_MAX_SCORE = 80 # The maximum amount of warscore gained from a single battle by the war attacker
MANEUVER_PHASE_DAYS = 3 # How many days should the maneuver phase last
LEVY_TOUGHNESS = 10 # How much toughness does each levy soldier have
LEVY_TOUGHNESS = 16 # How much toughness does each levy soldier have
LEVY_ATTACK = 10 # How much attack does each levy soldier have
DAMAGE_SCALING_FACTOR = 0.03 # Scaling factor for dealing damage in combat
BASE_RATIO_CASUALTIES_CONVERSION = 0.3 # How many of the soft casualties should be converted to hard casualties during the main phase
Expand Down
18 changes: 9 additions & 9 deletions common/flavorization/ave_maria_islam_flavorization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ duchy_islamic_empire_diwan_government = {
tier = duchy
priority = 300
governments = { islamic_empire_diwan_government }
# top_liege = no
top_liege = no
}
kingdom_islamic_empire_diwan_government = {
type = title
Expand Down Expand Up @@ -166,7 +166,7 @@ duke_islamic_empire_male = {
special = holder
tier = duchy
priority = 300
# top_liege = no
top_liege = yes
governments = { islamic_empire_government islamic_empire_amir_government islamic_empire_thugur_government }
}
duke_islamic_empire_female = {
Expand Down Expand Up @@ -220,7 +220,7 @@ duke_islamic_empire_diwan_government_male = {
gender = male
special = holder
tier = duchy
priority = 300
priority = 500
top_liege = no
governments = { islamic_empire_diwan_government }
}
Expand All @@ -229,8 +229,8 @@ duke_islamic_empire_diwan_government_female = {
gender = female
special = holder
tier = duchy
priority = 300
top_liege = no
priority = 500
#top_liege = no
governments = { islamic_empire_diwan_government }
}
king_islamic_empire_diwan_government_male = {
Expand All @@ -239,7 +239,7 @@ king_islamic_empire_diwan_government_male = {
special = holder
tier = kingdom
priority = 300
top_liege = no
#top_liege = no
governments = { islamic_empire_diwan_government }
}
king_islamic_empire_diwan_government_female = {
Expand All @@ -248,7 +248,7 @@ king_islamic_empire_diwan_government_female = {
special = holder
tier = kingdom
priority = 300
top_liege = no
#top_liege = no
governments = { islamic_empire_diwan_government }
}

Expand All @@ -257,7 +257,7 @@ k_fatimid_dawa_holder_name = {
gender = male
special = holder
tier = kingdom
priority = 300
top_liege = no
priority = 500
#top_liege = no
titles = { k_fatimid_dawa }
}
14 changes: 9 additions & 5 deletions common/governments/00_government_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ theocracy_government = {
trigger_if = {
limit = {
NOR = {
faith = faith:catholic
faith = faith:orthodox
# faith = faith:catholic
# faith = faith:orthodox
religion = religion:christianity_religion
religion = religion:islam_religion
}
}
NOT = {
Expand All @@ -75,8 +77,10 @@ theocracy_government = {
trigger_if = {
limit = {
OR = {
faith = faith:catholic
faith = faith:orthodox
# faith = faith:catholic
# faith = faith:orthodox
religion = religion:christianity_religion
religion = religion:islam_religion
}
}
OR = {
Expand All @@ -85,7 +89,7 @@ theocracy_government = {
}
any_held_title = { this = title:k_orthodox }
any_held_title = { this = title:k_papal_state }

any_held_title = { this = title:k_fatimid_dawa }
}

}
Expand Down
40 changes: 34 additions & 6 deletions common/on_action/title_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,18 +344,46 @@ on_title_gain = {
# }

## Starting the terms of office event chain - removed
## Triggering the appointment events
root = {
remove_character_modifier = roman_administration_emperor_favourite
}

scope:previous_holder = {
if = {
limit = {
is_alive = yes
has_character_modifier = roman_administration_emperor_favourite
}
remove_character_modifier = roman_administration_high_official_salary
remove_character_modifier = roman_administration_emperor_favourite
}
## Saving root scope as new_holder for the events
save_scope_as = new_holder
## triggering the event for the liege, the new holder (the event to previous holder is triggered in the liege event for scope saving purposes)
liege = {
trigger_event = { id = ave_maria_roman_administration_officials_nomination_events.0001 }
}
if = {
limit = {
scope:new_holder.primary_title >= tier_duchy
}
trigger_event = {
id = ave_maria_roman_administration_officials_nomination_events.0005
# days = 1
}
}

}

if = {
limit = {
exists = scope:previous_holder
}
scope:previous_holder = {
if = {
limit = {
is_alive = yes
}
remove_character_modifier = roman_administration_high_official_salary
}
}
}


if = {
limit = {
Expand Down
Loading

0 comments on commit 2d458ab

Please sign in to comment.