|
| 1 | +##### Changed from Vanilla: Extended to Jains in custom localization |
| 2 | +initiate_consolamentum_decision = { |
| 3 | + picture = { |
| 4 | + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" |
| 5 | + } |
| 6 | + decision_group_type = religious |
| 7 | + title = { |
| 8 | + first_valid = { |
| 9 | + triggered_desc = { |
| 10 | + trigger = { |
| 11 | + religion = religion:christianity_religion |
| 12 | + } |
| 13 | + desc = initiate_consolamentum_decision |
| 14 | + } |
| 15 | + triggered_desc = { |
| 16 | + trigger = { |
| 17 | + religion = religion:jainism_religion |
| 18 | + } |
| 19 | + desc = initiate_consolamentum_decision_sallekhana |
| 20 | + } |
| 21 | + desc = initiate_consolamentum_decision_alternate |
| 22 | + } |
| 23 | + } |
| 24 | + desc = { |
| 25 | + first_valid = { |
| 26 | + triggered_desc = { |
| 27 | + trigger = { |
| 28 | + religion = religion:christianity_religion |
| 29 | + } |
| 30 | + desc = initiate_consolamentum_decision_desc |
| 31 | + } |
| 32 | + triggered_desc = { |
| 33 | + trigger = { |
| 34 | + religion = religion:jainism_religion |
| 35 | + } |
| 36 | + desc = initiate_consolamentum_decision_desc_sallekhana |
| 37 | + } |
| 38 | + desc = initiate_consolamentum_decision_desc_alternate |
| 39 | + } |
| 40 | + } |
| 41 | + |
| 42 | + selection_tooltip = initiate_consolamentum_decision_tooltip |
| 43 | + |
| 44 | + is_shown = { |
| 45 | + OR = { |
| 46 | + rite = { |
| 47 | + rite_has_parameter = consolamentum_active |
| 48 | + } |
| 49 | + has_personal_tenet_flag = consolamentum_active |
| 50 | + } |
| 51 | + } |
| 52 | + |
| 53 | + is_valid = { |
| 54 | + OR = { |
| 55 | + age >= ritual_suicide_age |
| 56 | + custom_description = { |
| 57 | + text = decision_consolamentum_health |
| 58 | + health <= 1 |
| 59 | + } |
| 60 | + has_trait = incapable |
| 61 | + } |
| 62 | + } |
| 63 | + |
| 64 | + effect = { |
| 65 | + hidden_effect = { |
| 66 | + add_piety_level = 1 |
| 67 | + } |
| 68 | + if = { |
| 69 | + limit = { |
| 70 | + rite ?= { rite_has_parameter = tenet_sacrificial_ceremonies_blessed_passing } |
| 71 | + exists = primary_heir |
| 72 | + } |
| 73 | + primary_heir = { |
| 74 | + add_piety = medium_piety_gain |
| 75 | + } |
| 76 | + } |
| 77 | + if = { |
| 78 | + limit = { |
| 79 | + has_personal_tenet_flag = tenet_sacrificial_ceremonies_blessed_passing_personal |
| 80 | + exists = primary_heir |
| 81 | + } |
| 82 | + primary_heir = { |
| 83 | + add_piety = monumental_piety_gain |
| 84 | + add_character_modifier = { |
| 85 | + modifier = pam_blessed_passing_modifier |
| 86 | + years = 10 |
| 87 | + } |
| 88 | + } |
| 89 | + } |
| 90 | + death = { death_reason = death_ritual_suicide } |
| 91 | + show_as_tooltip = { |
| 92 | + add_piety_level = 1 |
| 93 | + } |
| 94 | + } |
| 95 | + |
| 96 | + ai_check_interval_by_tier = { |
| 97 | + barony = 0 |
| 98 | + county = 60 |
| 99 | + duchy = 60 |
| 100 | + kingdom = 60 |
| 101 | + empire = 60 |
| 102 | + hegemony = 60 |
| 103 | + } |
| 104 | + |
| 105 | + ai_potential = { |
| 106 | + primary_heir ?= { |
| 107 | + dynasty = root.dynasty |
| 108 | + } |
| 109 | + is_at_war = no |
| 110 | + } |
| 111 | + |
| 112 | + ai_will_do = { |
| 113 | + base = 0 |
| 114 | + |
| 115 | + # 100% chance at 50 zeal |
| 116 | + ai_value_modifier = { |
| 117 | + ai_zeal = 2 |
| 118 | + } |
| 119 | + |
| 120 | + modifier = { |
| 121 | + add = 40 |
| 122 | + is_close_family_of = primary_heir |
| 123 | + } |
| 124 | + } |
| 125 | +} |
0 commit comments