on_startup = {
    events = {
        AFRREL.001  # Replace male Inna with female Inna
        AFRREL.015  # Fix barons' castes
        AFRREL.033  # Fix castes and braches of generated courtiers
    }
}

on_yearly_pulse = {
    events = {
        AFRREL.006  # Living Tan Garki
        AFRREL.008  # Sacred Tyeddo
        AFRREL.010  # Orphans of Numidia
        AFRREL.021  # Clean up Suffete trait
    }
}

on_five_year_pulse = {
    events = {
        AFRREL.020  # Apply Suffete trait
    }
}

on_new_holder = {
    events = {
        AFRREL.015  # Fix barons' castes
        AFRREL.020  # Apply Suffete trait
    }
}

on_new_holder_inheritance = {
    events = {
        AFRREL.015  # Fix barons' castes
    }
}

on_new_holder_usurpation = {
    events = {
        AFRREL.015  # Fix barons' castes
        AFRREL.023  # Inheritance of Suffete trait
    }
}

on_death = {
    events = {
        AFRREL.022  # Inheritance of Suffete trait
        AFRREL.089  # Clean up Hawan Sallah flags
    }
}

on_employer_change = {
    events = {
        AFRREL.032  # Fix castes of generated courtiers
        AFRREL.100  # Give liege's branch to generated courtiers
    }
}

on_released_from_prison = {
    events = {
        AFRREL.046  # Releasing the Bida sacrifice ends the event chain
    }
}

on_war_started = {
    events = {
        AFRREL.091  # Cancel Hawan Sallah
    }
}

on_become_imprisoned_any_reason = {
    events = {
        AFRREL.090  # Cancel Hawan Sallah
    }
}