###############################################
# Order of the Sacred Magdalene
# Nicknames
#
# Grace is the society currency.
# These use CK2 society-currency threshold triggers.
###############################################

###############################################
# 1. The Rose of Magdalene
# Broad model-member reputation.
###############################################

nick_ggsm_the_rose_of_magdalene = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2
        has_society_currency_minor_trigger = yes

        NOT = { trait = excommunicated }

        OR = {
            trait = kind
            trait = charitable
            trait = zealous
            trait = theologian
            trait = erudite
            trait = fair
            trait = bombshell
        }
    }

    chance = {
        factor = 10

        modifier = {
            factor = 1.5
            has_society_currency_medium_trigger = yes
        }
        modifier = {
            factor = 1.5
            society_rank >= 3
        }
        modifier = {
            factor = 1.5
            trait = kind
        }
        modifier = {
            factor = 1.5
            trait = charitable
        }
    }
}


###############################################
# 2. The Open-Handed
# Mercy, generosity, and charity.
###############################################

nick_ggsm_the_open_handed = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2
        has_society_currency_minor_trigger = yes

        trait = charitable

        OR = {
            trait = kind
            trait = humble
            trait = diligent
        }
    }

    chance = {
        factor = 6

        modifier = {
            factor = 2
            trait = kind
        }
        modifier = {
            factor = 1.5
            trait = humble
        }
        modifier = {
            factor = 2
            has_society_currency_medium_trigger = yes
        }
        modifier = {
            factor = 1.5
            society_rank >= 3
        }
    }
}


###############################################
# 3. The Many-Loved
# Sexual reputation and long experience.
#
# Christianity Mod's prostitution traits are used
# as the durable career/reputation controls.
###############################################

nick_ggsm_the_many_loved = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2

        NOR = {
            trait = chaste
            trait = celibate
        }

        OR = {
            trait = experienced_whore
            trait = exclusive_whore
        }
    }

    chance = {
        factor = 8

        modifier = {
            factor = 2
            trait = exclusive_whore
        }
        modifier = {
            factor = 1.5
            trait = nymphomaniac
        }
        modifier = {
            factor = 1.5
            trait = seductress
        }
        modifier = {
            factor = 1.5
            has_society_currency_medium_trigger = yes
        }
    }
}


###############################################
# 4. The Unashamed
# Open acceptance of the Order's sexual vocation.
###############################################

nick_ggsm_the_unashamed = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2
        has_character_flag = ggsm_sacred_prostitute
        has_society_currency_minor_trigger = yes

        NOR = {
            trait = chaste
            trait = celibate
        }

        OR = {
            trait = exhibitionist
            trait = nymphomaniac
            trait = lustful
        }
    }

    chance = {
        factor = 7

        modifier = {
            factor = 2
            trait = exhibitionist
        }
        modifier = {
            factor = 2
            trait = nymphomaniac
        }
        modifier = {
            factor = 1.5
            trait = lustful
        }
        modifier = {
            factor = 1.5
            has_society_currency_medium_trigger = yes
        }
    }
}


###############################################
# 5. The Scarlet Penitent
# Devotion and discipline among lower/middle ranks.
###############################################

nick_ggsm_the_scarlet_penitent = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 1
        NOT = { society_rank >= 4 }
        has_society_currency_minor_trigger = yes

        OR = {
            trait = humble
            trait = zealous
            trait = patient
            trait = diligent
            trait = theologian
            trait = erudite
        }
    }

    chance = {
        factor = 6

        modifier = {
            factor = 1.5
            trait = humble
        }
        modifier = {
            factor = 1.5
            trait = zealous
        }
        modifier = {
            factor = 1.5
            trait = patient
        }
        modifier = {
            factor = 1.5
            trait = diligent
        }
        modifier = {
            factor = 2
            has_society_currency_medium_trigger = yes
        }
    }
}


###############################################
# 6. The Beloved of Magdalene
# Social warmth and affection within the Order.
###############################################

nick_ggsm_the_beloved_of_magdalene = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2
        has_society_currency_medium_trigger = yes
        diplomacy = 12

        OR = {
            trait = kind
            trait = charitable
            trait = gregarious
        }
    }

    chance = {
        factor = 5

        modifier = {
            factor = 2
            trait = kind
        }
        modifier = {
            factor = 1.5
            trait = charitable
        }
        modifier = {
            factor = 1.5
            trait = gregarious
        }
        modifier = {
            factor = 1.5
            diplomacy = 16
        }
        modifier = {
            factor = 1.5
            society_rank >= 3
        }
    }
}


###############################################
# 7. The Bride of Mercy
# Senior devotional and erotic vocation.
###############################################

nick_ggsm_the_bride_of_mercy = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 3
        has_society_currency_medium_trigger = yes
        has_character_flag = ggsm_sacred_prostitute

        OR = {
            trait = zealous
            trait = theologian
            trait = erudite
            trait = scholar
        }

        OR = {
            trait = lustful
            trait = nymphomaniac
            trait = seductress
        }
    }

    chance = {
        factor = 5

        modifier = {
            factor = 2
            trait = zealous
        }
        modifier = {
            factor = 1.5
            trait = theologian
        }
        modifier = {
            factor = 1.5
            trait = erudite
        }
        modifier = {
            factor = 1.5
            trait = nymphomaniac
        }
        modifier = {
            factor = 2
            has_society_currency_major_trigger = yes
        }
    }
}


###############################################
# 8. The Daughter of Magdalene
# Loyal, established service.
###############################################

nick_ggsm_the_daughter_of_magdalene = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 2
        has_society_currency_medium_trigger = yes

        NOT = {
            has_character_flag = betrayed_ggsm_order_sacred_magdalene
        }

        OR = {
            trait = diligent
            trait = patient
            trait = humble
            trait = zealous
        }
    }

    chance = {
        factor = 5

        modifier = {
            factor = 1.5
            trait = diligent
        }
        modifier = {
            factor = 1.5
            trait = patient
        }
        modifier = {
            factor = 1.5
            trait = humble
        }
        modifier = {
            factor = 1.5
            society_rank >= 3
        }
        modifier = {
            factor = 2
            has_society_currency_major_trigger = yes
        }
    }
}


###############################################
# 9. The Keeper of Mercy
# Learned and pastoral senior member.
###############################################

nick_ggsm_the_keeper_of_mercy = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 3
        has_society_currency_medium_trigger = yes
        learning = 12

        OR = {
            trait = kind
            trait = charitable
        }

        OR = {
            trait = theologian
            trait = erudite
            trait = scholar
        }
    }

    chance = {
        factor = 5

        modifier = {
            factor = 2
            trait = charitable
        }
        modifier = {
            factor = 1.5
            trait = kind
        }
        modifier = {
            factor = 1.5
            trait = theologian
        }
        modifier = {
            factor = 1.5
            trait = erudite
        }
        modifier = {
            factor = 1.5
            learning = 16
        }
        modifier = {
            factor = 2
            has_society_currency_major_trigger = yes
        }
    }
}


###############################################
# 10. The Rose-Crowned
# Rank 4 public prestige and beauty.
###############################################

nick_ggsm_the_rose_crowned = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 4
        has_society_currency_major_trigger = yes
        diplomacy = 14

        NOT = { trait = excommunicated }

        OR = {
            trait = fair
            trait = bombshell
        }

        OR = {
            trait = seductress
            trait = exhibitionist
            trait = nymphomaniac
            trait = lustful
        }
    }

    chance = {
        factor = 8

        modifier = {
            factor = 1.5
            trait = bombshell
        }
        modifier = {
            factor = 1.5
            trait = fair
        }
        modifier = {
            factor = 1.5
            trait = seductress
        }
        modifier = {
            factor = 1.5
            diplomacy = 18
        }
    }
}


###############################################
# 11. The Magdalene
# Highest and rarest Order reputation.
###############################################

nick_ggsm_the_magdalene = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 4
        has_society_currency_major_trigger = yes
        has_character_flag = ggsm_sacred_prostitute

        NOT = { trait = excommunicated }
        NOT = {
            has_character_flag = betrayed_ggsm_order_sacred_magdalene
        }

        OR = {
            trait = kind
            trait = charitable
        }

        OR = {
            trait = zealous
            trait = theologian
            trait = erudite
        }

        OR = {
            trait = experienced_whore
            trait = exclusive_whore
        }
    }

    chance = {
        factor = 3

        modifier = {
            factor = 2
            trait = exclusive_whore
        }
        modifier = {
            factor = 1.5
            trait = kind
        }
        modifier = {
            factor = 1.5
            trait = charitable
        }
        modifier = {
            factor = 1.5
            trait = zealous
        }
        modifier = {
            factor = 1.5
            trait = theologian
        }
    }
}


###############################################
# 12. The Living Rose
# Fertility, beauty, sexuality, and Grace.
###############################################

nick_ggsm_the_living_rose = {
    allow = {
        society_member_of = ggsm_order_sacred_magdalene
        society_rank >= 3
        has_society_currency_medium_trigger = yes

        trait = fertile

        OR = {
            trait = fair
            trait = bombshell
        }

        OR = {
            trait = lustful
            trait = nymphomaniac
            trait = exhibitionist
        }

        OR = {
            trait = kind
            trait = charitable
            trait = zealous
        }
    }

    chance = {
        factor = 6

        modifier = {
            factor = 1.5
            trait = bombshell
        }
        modifier = {
            factor = 1.5
            trait = nymphomaniac
        }
        modifier = {
            factor = 1.5
            trait = exhibitionist
        }
        modifier = {
            factor = 1.5
            trait = charitable
        }
        modifier = {
            factor = 2
            has_society_currency_major_trigger = yes
        }
    }
}
