﻿on_pregnancy_mother = {
	on_actions = {
	        regula_on_pregnancy_mother
	}
}

# We run multitasker check here
# For baby gender/number, we delay the event to just before the birth, as set_pregnancy_gender is reset when the save is loaded
regula_on_pregnancy_mother = {
        events = {
                regula_bloodline.2021 # Check for Multitasker trigger.
                delay = { days = 219 }
                regula_change_birth_rate.1000 # Sets gender of newborns.
                regula_change_birth_rate.1001 # Make sure Blessed pregnancy actually gives female babies
                regula_bloodline.0023 # Applies Bun in the Oven bonus.
        }
}

on_pregnancy_ended_mother = {
	on_actions = {
	        regula_on_pregnancy_ended_mother
	}
}

regula_on_pregnancy_ended_mother = {
        events = {
                regula_change_birth_rate.2000 # Remove blessed pregnancy because no babby :(
        }
}