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

levelDesc.name = "Shift 5.3"
levelDesc.levelId = 53
levelDesc.musicMood = "3"
levelDesc.trigger =
{
	class = "TriggerSystem",
	triggers =
	{
		{ trigger = "object", delay=1000, name="baby_bed_back", type="DIAPER",  },
		{ trigger = "object", delay=8000, name="baby_bed_back", type="MILK",  },
		{ trigger = "object", delay=6000, name="baby_bed_front", type="DIAPER",  },
		{ trigger = "object", delay=50, name="baby_bed_back", type="DIAPER",  },
		{ trigger = "spawn", delay=1000, hearts=4, diseaseDesc = { class="Disease", steps={"ULTRASOUND"} } },
		{ trigger = "spawn", delay=5000, hearts=2, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=8000, hearts=3, diseaseDesc = { class="Disease", steps={"STETHOSCOPE"} } },
		{ trigger = "spawn", delay=15000, hearts=4, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "object", delay=1, name="baby_bed_back", type="MILK",  },
		{ trigger = "spawn", delay=15000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "object", delay=1, name="baby_bed_front", type="DIAPER",  },
		{ trigger = "spawn", delay=6000, hearts=3, diseaseDesc = { class="Disease", steps={"WEIGHING", "ULTRASOUND"} } },
		{ trigger = "spawn", delay=20000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "object", delay=1, name="baby_bed_back", type="BURP",  },
		{ trigger = "spawn", delay=1000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "spawn", delay=6000, hearts=3, diseaseDesc = { class="Disease", steps={"STETHOSCOPE"} } },
		{ trigger = "object", delay=1, name="baby_bed_front", type="DIAPER",  },
		{ trigger = "spawn", delay=15000, hearts=4, diseaseDesc = { class="Disease", steps={"ULTRASOUND"} } },
		{ trigger = "object", delay=1, name="baby_bed_back", type="MILK",  },
		{ trigger = "spawn", delay=3000, hearts=3, diseaseDesc = { class="Disease", steps={"DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=1000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "spawn", delay=15000, hearts=3, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=6000, hearts=3, diseaseDesc = { class="Disease", steps={"STETHOSCOPE"} } },
		{ trigger = "spawn", delay=8000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "object", delay=1, name="baby_bed_front", type="BURP",  },
		{ trigger = "spawn", delay=3000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "STETHOSCOPE", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=20000, hearts=3, diseaseDesc = { class="Disease", steps={"DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=1000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "spawn", delay=15000, hearts=3, diseaseDesc = { class="Disease", steps={"ULTRASOUND", "DIAPER_PRACTICE"} } },
		{ trigger = "spawn", delay=6000, hearts=3, diseaseDesc = { class="Disease", steps={"STETHOSCOPE"} } },
		{ trigger = "spawn", delay=8000, hearts=3, diseaseDesc = { class="Disease", steps={"YOGA"} } },
		{ trigger = "object", delay=1, name="baby_bed_front", type="BURP",  },
		{ trigger = "spawn", delay=3000, hearts=2, diseaseDesc = { class="Disease", steps={"WEIGHING", "STETHOSCOPE", "DIAPER_PRACTICE"} } },
	}
}
levelDesc.patientList =
{
	p0 = { weight = 500,
		base = "preg",
	},
	p1 = { weight = 500,
		base = "preg2",
	},
	p2 = { weight = 500,
		base = "preg3",
	},
}

levelDesc.eventDesc =
{
	class="QuestionsEvent",
	eventBarImage = "EVENTBAR_ICON_QUESTIONS:icons",
	roomID=5,
	actorPos = {x=800,y=650},
	numQuestions=4,
	alwaysCorrect=true,
	endTextId="TEXT_QUESTIONS_ROOM5_END",	
	nextQuestionTimer = 30000,
}

function levelDesc:onShiftStartEnd()
	self:fireTrigger("startEvent")
	level.event.actor = resident
end

function levelDesc:onTick(time)
    self:tick(time)
	self:randomSneeze(time)
end
