
Heir Selection
Pirate Elective
It is a type of Succession Law of a Pirate Republic in which the Ruler is chosen among one or more candidates by the crews.
Blocked from RulershipModifier Typecalc
MaimedTraitcalc
One-EyedTraitcalc
ScarredTraitcalcDefinitionin_game/common/heir_selections/republic.txt:554
556use_election = yes
557term_duration = 0
558max_possible_candidates = 3
561heir_is_allowed = {
}
563potential = {
564has_reform = government_reform:pirate_brethren_reform
}
567locked = {
568has_reform = government_reform:pirate_brethren_reform
}
570calc = {
571if = {
572limit = {
573exists = root
}
575add = {
576desc = "HEIR_SELECTION_DIP_DESC" • Score per Diplomatic Ability
577value = root.dip
}
579add = {
580desc = "HEIR_SELECTION_MIL_DESC" • Score per Military Ability
581value = root.mil
}
583add = {
584desc = "HEIR_SELECTION_OLDER_HEIR_DESC" • Score per years of age
}
587if = {
588limit = {
589is_admiral = yes
}
591desc = "HEIR_SELECTION_ADMIRAL_DESC" • Score for Admiral
592value = 100
}
594if = {
595limit = {
596has_trait_category = admiral
}
598desc = "HEIR_SELECTION_ADMIRAL_TRAIT_DESC" • Score for Admiral Trait
599value = 100
}
601if = {
603add = {
604desc = "HEIR_SELECTION_IS_UNSUITED_TO_RULE_DESC" • Is unsuited to Rule
605value = -1000
}
}
608if = {
610add = {
611desc = "HEIR_SELECTION_ONE_EYED_DESC" • Is One-Eyed
612value = 25
}
}
615if = {
617add = {
618desc = "HEIR_SELECTION_MAIMED_DESC" • Is Maimed
619value = 25
}
}
622if = {
624add = {
625desc = "HEIR_SELECTION_SCARRED_DESC" • Is Scarred
626value = 25
}
}
}
632if = {
633limit = {
634not = {
634exists = root
}
}
636add = {
637desc = "HEIR_SELECTION_DIP_DESC" • Score per Diplomatic Ability
638value = 1
}
640add = {
641desc = "HEIR_SELECTION_MIL_DESC" • Score per Military Ability
642value = 1
}
644add = {
645desc = "HEIR_SELECTION_OLDER_HEIR_DESC" • Score per years of age
646value = 1
}
648add = {
649desc = "HEIR_SELECTION_ADMIRAL_DESC" • Score for Admiral
650value = 100
}
652add = {
653desc = "HEIR_SELECTION_ADMIRAL_TRAIT_DESC" • Score for Admiral Trait
654value = 100
}
656add = {
657desc = "HEIR_SELECTION_ONE_EYED_DESC" • Is One-Eyed
658value = 25
}
660add = {
661desc = "HEIR_SELECTION_MAIMED_DESC" • Is Maimed
662value = 25
}
664add = {
665desc = "HEIR_SELECTION_SCARRED_DESC" • Is Scarred
666value = 25
}
}
}