namespace = qyv_child

# Monthly, hidden event; clears postpartum and (optionally) attempts pregnancy.
character_event = {
    id = qyv_child.0001
    hide_window = yes
    is_triggered_only = no

    trigger = {
        is_female = yes
        is_adult = yes
        is_alive = yes
        NOT = { is_pregnant = yes }
        has_spouse = yes
    }

    immediate = {
        # Remove the vanilla post-birth cooldown if present.
        if = {
            limit = { has_character_modifier = recently_gave_birth }
            remove_character_modifier = recently_gave_birth
        }

        # Nudge a pregnancy attempt with the spouse.
        # Tune the weight below (default 25% monthly).
        random_list = {
            25 = {
                if = {
                    limit = { exists = spouse }
                    add_pregnancy = {
                        father = spouse
                        chance_of_twins = 0.05
                    }
                }
            }
            75 = { }
        }
    }
}
