﻿skonester_interaction_effect = {
    scope:recipient = {
        # Add incapable trait if not already present
        if = {
            limit = {
                NOT = { has_trait = incapable }
            }
            add_trait = incapable
        }
    }
    skonester_lobotomy_family_opinion_effect = {
        VICTIM = scope:recipient
        LOBOTOMIST = scope:puppet_or_actor
    }
}

# Close family and spouse of the victim resent whoever lobotomized them
# VICTIM = the lobotomized character, LOBOTOMIST = the character who ordered it
skonester_lobotomy_family_opinion_effect = {
    $VICTIM$ = {
        every_close_family_member = {
            limit = {
                NOT = { this = $LOBOTOMIST$ }
            }
            add_opinion = {
                target = $LOBOTOMIST$
                modifier = skonester_lobotomized_family_member
            }
        }
        if = {
            limit = {
                exists = primary_spouse
                NOT = { primary_spouse = $LOBOTOMIST$ }
            }
            primary_spouse = {
                add_opinion = {
                    target = $LOBOTOMIST$
                    modifier = skonester_lobotomized_family_member
                }
            }
        }
    }
}
