dofile("script/layouts/room3_defaults.lua")
dofile("script/shifts/shift3_5_animations.lua")

levelDesc.name = "Shift 3.5"
levelDesc.levelId = 35
levelDesc.musicMood = "3"
levelDesc.trigger =
{
	class = "TriggerSystem",
	triggers =
	{
		{ trigger = "spawn", delay=1, hearts=2, patient="p0", diseaseDesc = { class="Disease", steps={"TOILET", "BANDAID", "SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=3, patient="p5", diseaseDesc = { class="Disease", steps={"TOILET", "REMOVAL",} } },
		{ trigger = "spawn", delay=15000, hearts=2, diseaseDesc = { class="Disease", steps={"BANDAID", "SPATULA",} } },
		{ trigger = "spawn", delay=1000, hearts=2, patient="p3", diseaseDesc = { class="Disease", steps={"TOILET","SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=1, patient="p2", diseaseDesc = { class="Disease", steps={"TOILET", "GIVE_INJECTION", "SPATULA",} } },
		{ trigger = "spawn", delay=25000, hearts=2, patient="p4", diseaseDesc = { class="Disease", steps={"TOILET", "BANDAID", "REMOVAL"} } },
		{ trigger = "spawn", delay=1000, hearts=1, diseaseDesc = { class="Disease", steps={"GIVE_INJECTION", "SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=3, diseaseDesc = { class="Disease", steps={"SPATULA",} } },
		{ trigger = "spawn", delay=25000, hearts=3, diseaseDesc = { class="Disease", steps={"REMOVAL",} } },
		{ trigger = "spawn", delay=1000, hearts=1, diseaseDesc = { class="Disease", steps={"GIVE_INJECTION", "SPATULA",} } },
		{ trigger = "spawn", delay=1000, hearts=1, patient="p1", diseaseDesc = { class="Disease", steps={"TOILET", "BANDAID", "SPATULA",} } },
		{ trigger = "spawn", delay=25000, hearts=3, patient="p2", diseaseDesc = { class="Disease", steps={"TOILET", "REMOVAL"} } },
		{ trigger = "spawn", delay=1000, hearts=2, patient="p0", diseaseDesc = { class="Disease", steps={"TOILET", "GIVE_INJECTION"} } },
		{ trigger = "spawn", delay=15000, hearts=3, diseaseDesc = { class="Disease", steps={"BANDAID"} } },
		{ trigger = "spawn", delay=1000, hearts=2, patient="p5", diseaseDesc = { class="Disease", steps={"TOILET", "SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=1, patient="p1", diseaseDesc = { class="Disease", steps={"TOILET", "GIVE_INJECTION", "REMOVAL"} } },
		{ trigger = "spawn", delay=30000, hearts=1, patient="p3", diseaseDesc = { class="Disease", steps={"TOILET", "BANDAID", "SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=1, diseaseDesc = { class="Disease", steps={"GIVE_INJECTION", "SPATULA"} } },
		{ trigger = "spawn", delay=1000, hearts=1, diseaseDesc = { class="Disease", steps={"REMOVAL",} } },
		{ trigger = "spawn", delay=20000, hearts=1, patient="p2", diseaseDesc = { class="Disease", steps={"TOILET", "GIVE_INJECTION", "SPATULA"} } },
	},
}
levelDesc.patientList =
{
	p0 = { weight = 500,
		base = "boy",
	},
	p1 = { weight = 500,
		base = "boy2",
	},
	p2 = { weight = 500,
		base = "boy3",
	},
	p3 = { weight = 500,
		base = "girl",
	},
	p4 = { weight = 500,
		base = "girl2",
	},
	p5 = { weight = 500,
		base = "girl3",
	},
}

levelDesc.eventDesc =
{
	class="QuestionPopupEvent",
	eventBarImage = "EVENTBAR_ICON_QUESTIONS:icons",
	questionScore = 2,
	numQuestions=4,
}

function levelDesc:onShiftStartEnd()
	self:fireTrigger("startEvent")
	level.event.setActor(level.event, level:getObject("kid"))
end
