﻿# Generous Motherhood
# Two sides of the same moment between a woman with gm_nourishing_mother and someone who shares
# her bed (spouse, concubine, concubinist or lover). Either way the partner gets Nourishing Bosom
# (common/modifiers/gm_modifiers.txt) for a year, at the mother's level. Players only.

# The partner asks: shown to whoever does not have the trait
gm_feed_at_breast_interaction = {
	category = interaction_category_friendly
	icon = lover
	interface_priority = 30
	desc = gm_feed_at_breast_interaction_desc
	auto_accept = yes

	override_background = { reference = bedchamber }

	is_shown = {
		scope:actor = {
			NOT = { has_trait = gm_nourishing_mother }
			gm_can_feed_at_breast_trigger = { MOTHER = scope:recipient }
		}
	}

	is_valid_showing_failures_only = {
		scope:actor = { is_imprisoned = no }
		scope:recipient = { is_imprisoned = no }
		custom_tooltip = {
			text = gm_breast_interaction_same_place
			scope:actor = { location = scope:recipient.location }
		}
	}

	cooldown_against_recipient = { years = 1 }

	on_accept = {
		scope:actor = {
			gm_give_nourishing_bosom_effect = { MOTHER = scope:recipient }
		}
	}

	ai_potential = { always = no }
	ai_will_do = { base = 0 }
}

# The mother offers: shown to whoever has the trait
gm_nurse_at_breast_interaction = {
	category = interaction_category_friendly
	icon = lover
	interface_priority = 30
	desc = gm_nurse_at_breast_interaction_desc
	auto_accept = yes

	override_background = { reference = bedchamber }

	is_shown = {
		scope:actor = { has_trait = gm_nourishing_mother }
		scope:recipient = {
			gm_can_feed_at_breast_trigger = { MOTHER = scope:actor }
		}
	}

	is_valid_showing_failures_only = {
		scope:actor = { is_imprisoned = no }
		scope:recipient = { is_imprisoned = no }
		custom_tooltip = {
			text = gm_breast_interaction_same_place
			scope:actor = { location = scope:recipient.location }
		}
	}

	cooldown_against_recipient = { years = 1 }

	on_accept = {
		scope:recipient = {
			gm_give_nourishing_bosom_effect = { MOTHER = scope:actor }
		}
	}

	ai_potential = { always = no }
	ai_will_do = { base = 0 }
}
