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

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

levelDesc.eventDesc =
{
	class="FixEvent",
	eventScore = 25,
	eventBarText = "TEXT_EVENT_FIX5",
	eventBarImage = "EVENTBAR_ICON_R5_S4:icons",
	items = {
		{ obj="EVENT_FIX_FLUSTATION", activate="EVENT_FIX_FLUSTATION_RUNNING_2" },
	},
}

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

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