dofile("script/layouts/room5_defaults.lua")
dofile("script/shifts/shift5_5_animations.lua")

levelDesc.name = "Shift 5.5"
levelDesc.levelId = 55
levelDesc.musicMood = "1"
levelDesc.trigger =
{
	class = "TriggerSystem",
	triggers =
	{
		{ trigger = "spawn", delay=3000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND"} } },
		{ trigger = "spawn", delay=5000, special=true, hearts=2,  diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "YOGA"} } },
		{ trigger = "spawn", delay=13000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=5000, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=18000, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=5000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND", "YOGA"} } },
		{ trigger = "spawn", delay=28000, special=true, hearts=3, diseaseDesc = { class="Disease", steps={"STETHOSCOPE"} } },
		{ trigger = "spawn", delay=18000, hearts=3, diseaseDesc = { class="Disease", steps={"DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=18000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND", "YOGA"} } },
		{ trigger = "spawn", delay=7000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=6000, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "YOGA"} } },
		{ trigger = "spawn", delay=17000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=5000, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=5000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND"} } },
		{ trigger = "spawn", delay=23000, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "YOGA"} } },
		{ trigger = "spawn", delay=9000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=6000, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=27000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "STETHOSCOPE", "YOGA"} } },
		{ trigger = "spawn", delay=10000,  hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=7000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=12000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=19000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "YOGA"} } },
		{ trigger = "spawn", delay=6000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND"} } },
		{ trigger = "spawn", delay=19000, hearts=2, diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=9000, special=true,hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=12000, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "YOGA"} } },
		{ trigger = "spawn", delay=8000, special=true, hearts=2,  diseaseDesc = { class="Disease", steps={"STETHOSCOPE", "YOGA"} } },
		{ trigger = "spawn", delay=16000, special=true, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "DIAPER_PRACTICE"} } },
	}
}
levelDesc.patientList =
{
	p0 = { weight = 500,
		base = "preg",
	},
	p1 = { weight = 500,
		base = "preg2",
	},
	p2 = { weight = 500,
		base = "preg3",
	},
}

levelDesc.eventDesc =
{
	class="SpecialRoom5",
	eventBarText = "TEXT_EVENT_SPECIAL5",
	eventBarImage = "EVENTBAR_ICON_R5_S5:icons",
	eventScore=30,
}

function levelDesc:onInitialized()
	self:getSpriteExt("baby_front_filled").visible = false
	self:getSpriteExt("baby_back_filled").visible = false
    
	self:getObject("baby_bed_front").clickable = false
	self:getObject("baby_bed_back").clickable = false
	self:getObject("baby_table").clickable = false
end

function levelDesc:onShiftStartEnd()
 	self:fireTrigger("startEvent")
end
