﻿# Charmed Eyes
# Changes eyes based on charm status
regula_charmed_portrait = {
	usage = game
    selection_behavior = max
    priority = 10

    contubernalis_portrait = {
        dna_modifiers = {
            accessory = {
				mode = replace
				gene = eye_accessory
				template = regula_sclera_pink
                value = 1.0
			}
            color = {
                gene = eye_color
                mode = modify

                x = -1
                y = -1
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = contubernalis
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }

    mulsa_portrait = {
        dna_modifiers = {
            accessory = {
                mode = replace
                gene = eye_accessory
                template = regula_violet_eyes
                value = 1.0
            }
            color = {
                gene = eye_color
                mode = modify

                x = -1
                y = -1
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                has_trait = mulsa
            }
            modifier = {
                add = 100
                has_trait = tropaeum
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
        }
    }

    paelex_portrait = {
        dna_modifiers = {
            accessory = {
				mode = replace
				gene = eye_accessory
				template = regula_pink_eyes
                value = 1.0
			}
            color = {
                gene = eye_color
                mode = replace

                x = 1
                y = 0.01
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100
                is_regula_leader_devoted_trigger = yes
            }
            modifier = {
                add = -100
                has_game_rule = regula_portraits_compeditae_disabled
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_diplomacy_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_intrigue_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_learning_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_martial_trait
            }
            modifier = {
                add = -100
                has_character_flag = regula_goddess_stewardship_trait
            }
        }
    }
}
