animationsDesc = animationsDesc or {}
animationsDesc[2] = animationsDesc[2] or {}
animationsDesc[2].actors = animationsDesc[2].actors or {}
animationsDesc[2].actors[1] = "hero"
animationsDesc[2].actors[2] = "resident"
animationsDesc[2].class = "TasksAnimation"
animationsDesc[2].id = "preShift"
animationsDesc[2].idx = 2
animationsDesc[2].list = animationsDesc[2].list or {}
animationsDesc[2].list[2] = animationsDesc[2].list[2] or {}
animationsDesc[2].list[2].actor = "wait_table"
animationsDesc[2].list[2].class = "SetTask"
animationsDesc[2].list[2].values = "{visible=false}"
animationsDesc[2].list[3] = animationsDesc[2].list[3] or {}
animationsDesc[2].list[3].actor = "resident"
animationsDesc[2].list[3].class = "SetTask"
animationsDesc[2].list[3].values = "{walkSpeed=200}"
animationsDesc[2].list[4] = animationsDesc[2].list[4] or {}
animationsDesc[2].list[4].actor = "hero"
animationsDesc[2].list[4].class = "SetTask"
animationsDesc[2].list[4].values = "{walkSpeed=200}"
animationsDesc[2].list[5] = animationsDesc[2].list[5] or {}
animationsDesc[2].list[5].actor = "resident"
animationsDesc[2].list[5].class = "SetPositionTask"
animationsDesc[2].list[5].pos = animationsDesc[2].list[5].pos or {}
animationsDesc[2].list[5].pos.x = 736
animationsDesc[2].list[5].pos.y = 410
animationsDesc[2].list[6] = animationsDesc[2].list[6] or {}
animationsDesc[2].list[6].class = "Task"
animationsDesc[2].list[6].duration = 2000
animationsDesc[2].list[7] = animationsDesc[2].list[7] or {}
animationsDesc[2].list[7].actor = "hero"
animationsDesc[2].list[7].class = "SetPositionTask"
animationsDesc[2].list[7].pos = animationsDesc[2].list[7].pos or {}
animationsDesc[2].list[7].pos.x = 633
animationsDesc[2].list[7].pos.y = 410
animationsDesc[2].list[8] = animationsDesc[2].list[8] or {}
animationsDesc[2].list[8].actor = "hero"
animationsDesc[2].list[8].animation = "ASK_QUESTION"
animationsDesc[2].list[8].class = "PlayAnimationTask"
animationsDesc[2].list[8].cycles = 1
animationsDesc[2].list[8].frameTime = 150
animationsDesc[2].list[8].whenFinished = "stay"
animationsDesc[2].list[9] = animationsDesc[2].list[9] or {}
animationsDesc[2].list[9].class = "StartStoryTask"
animationsDesc[2].list[10] = animationsDesc[2].list[10] or {}
animationsDesc[2].list[10].class = "FadeScreenTask"
animationsDesc[2].list[10].draw = "color"
animationsDesc[2].list[10].fadeDelay = 500
animationsDesc[2].list[10].fadeOut = 2000
animationsDesc[2].list[10].image = "ROOM5_BACKGROUND"
animationsDesc[2].list[10].wait = false
animationsDesc[2].list[11] = animationsDesc[2].list[11] or {}
animationsDesc[2].list[11].actor = "resident"
animationsDesc[2].list[11].animation = "CURIOUS_LEFT"
animationsDesc[2].list[11].class = "PlayAnimationTask"
animationsDesc[2].list[11].cycles = 1
animationsDesc[2].list[11].frameTime = 150
animationsDesc[2].list[11].whenFinished = "stay"
animationsDesc[2].list[12] = animationsDesc[2].list[12] or {}
animationsDesc[2].list[12].actor = "resident"
animationsDesc[2].list[12].class = "MessageTask"
animationsDesc[2].list[12].needsClick = true
animationsDesc[2].list[12].textId = "TEXT_R5_SH4_1"
animationsDesc[2].list[13] = animationsDesc[2].list[13] or {}
animationsDesc[2].list[13].actor = "hero"
animationsDesc[2].list[13].animation = "TALK"
animationsDesc[2].list[13].class = "PlayAnimationTask"
animationsDesc[2].list[13].cycles = 1
animationsDesc[2].list[13].frameTime = 150
animationsDesc[2].list[13].whenFinished = "stay"
animationsDesc[2].list[14] = animationsDesc[2].list[14] or {}
animationsDesc[2].list[14].actor = "hero"
animationsDesc[2].list[14].class = "MessageTask"
animationsDesc[2].list[14].needsClick = true
animationsDesc[2].list[14].textId = "TEXT_R5_SH4_2"
animationsDesc[2].list[15] = animationsDesc[2].list[15] or {}
animationsDesc[2].list[15].actor = "resident"
animationsDesc[2].list[15].class = "WalkToTask"
animationsDesc[2].list[15].target = animationsDesc[2].list[15].target or {}
animationsDesc[2].list[15].target.x = 758
animationsDesc[2].list[15].target.y = 573
animationsDesc[2].list[16] = animationsDesc[2].list[16] or {}
animationsDesc[2].list[16].actor = "resident"
animationsDesc[2].list[16].animation = "IDLE_UP"
animationsDesc[2].list[16].class = "PlayAnimationTask"
animationsDesc[2].list[16].cycles = 1
animationsDesc[2].list[16].frameTime = 150
animationsDesc[2].list[16].whenFinished = "stay"
animationsDesc[2].list[18] = animationsDesc[2].list[18] or {}
animationsDesc[2].list[18].class = "EndStoryTask"
animationsDesc[2].list[19] = animationsDesc[2].list[19] or {}
animationsDesc[2].list[19].actor = "hero"
animationsDesc[2].list[19].class = "SetTask"
animationsDesc[2].list[19].values = "{walkSpeed=levelDesc.characterTypes.sarah.walkSpeed}"
animationsDesc[2].list[20] = animationsDesc[2].list[20] or {}
animationsDesc[2].list[20].actor = "resident"
animationsDesc[2].list[20].class = "SetTask"
animationsDesc[2].list[20].values = "{walkSpeed=levelDesc.characterTypes.chance.walkSpeed}"
animationsDesc[2].musicMoodStart = "HAPPINESS"
animationsDesc[2].name = "Intro + event start (setup the flu station)"
animationsDesc[2].tree = animationsDesc[2].tree or {}
animationsDesc[2].tree[1] = 2
animationsDesc[2].tree[2] = 3
animationsDesc[2].tree[3] = 4
animationsDesc[2].tree[4] = 7
animationsDesc[2].tree[5] = 8
animationsDesc[2].tree[6] = 5
animationsDesc[2].tree[7] = animationsDesc[2].tree[7] or {}
animationsDesc[2].tree[7][1] = 9
animationsDesc[2].tree[7][2] = 10
animationsDesc[2].tree[8] = 16
animationsDesc[2].tree[9] = 6
animationsDesc[2].tree[10] = 11
animationsDesc[2].tree[11] = 12
animationsDesc[2].tree[12] = 13
animationsDesc[2].tree[13] = 14
animationsDesc[2].tree[14] = 19
animationsDesc[2].tree[15] = 20
animationsDesc[2].tree[16] = animationsDesc[2].tree[16] or {}
animationsDesc[2].tree[16][2] = 18
animationsDesc[2].tree[16][3] = 15
animationsDesc[3] = animationsDesc[3] or {}
animationsDesc[3].actors = animationsDesc[3].actors or {}
animationsDesc[3].actors[1] = "hero"
animationsDesc[3].actors[2] = "resident"
animationsDesc[3].class = "TasksAnimation"
animationsDesc[3].id = "eventWon"
animationsDesc[3].idx = 3
animationsDesc[3].list = animationsDesc[3].list or {}
animationsDesc[3].list[2] = animationsDesc[3].list[2] or {}
animationsDesc[3].list[2].actor = "hero"
animationsDesc[3].list[2].animation = "SMILING_LEFT"
animationsDesc[3].list[2].class = "PlayAnimationTask"
animationsDesc[3].list[2].cycles = 1
animationsDesc[3].list[2].frameTime = 150
animationsDesc[3].list[2].whenFinished = "stay"
animationsDesc[3].list[3] = animationsDesc[3].list[3] or {}
animationsDesc[3].list[3].actor = "hero"
animationsDesc[3].list[3].class = "MessageTask"
animationsDesc[3].list[3].needsClick = true
animationsDesc[3].list[3].textId = "TEXT_R5_SH4_4"
animationsDesc[3].list[4] = animationsDesc[3].list[4] or {}
animationsDesc[3].list[4].class = "StartStoryTask"
animationsDesc[3].list[4].wait = true
animationsDesc[3].list[5] = animationsDesc[3].list[5] or {}
animationsDesc[3].list[5].actor = "resident"
animationsDesc[3].list[5].animation = "CURIOUS"
animationsDesc[3].list[5].class = "PlayAnimationTask"
animationsDesc[3].list[5].cycles = 1
animationsDesc[3].list[5].frameTime = 150
animationsDesc[3].list[5].whenFinished = "stay"
animationsDesc[3].list[6] = animationsDesc[3].list[6] or {}
animationsDesc[3].list[6].actor = "resident"
animationsDesc[3].list[6].class = "MessageTask"
animationsDesc[3].list[6].needsClick = true
animationsDesc[3].list[6].textId = "TEXT_R5_SH4_5"
animationsDesc[3].list[7] = animationsDesc[3].list[7] or {}
animationsDesc[3].list[7].class = "EndStoryTask"
animationsDesc[3].musicMoodStart = "HAPPINESS"
animationsDesc[3].name = "Event won"
animationsDesc[3].tree = animationsDesc[3].tree or {}
animationsDesc[3].tree[1] = 4
animationsDesc[3].tree[2] = 2
animationsDesc[3].tree[3] = 3
animationsDesc[3].tree[4] = 5
animationsDesc[3].tree[5] = 6
animationsDesc[3].tree[6] = 7
animationsDesc[4] = animationsDesc[4] or {}
animationsDesc[4].actors = animationsDesc[4].actors or {}
animationsDesc[4].actors[1] = "hero"
animationsDesc[4].actors[2] = "resident"
animationsDesc[4].class = "TasksAnimation"
animationsDesc[4].id = "eventLost"
animationsDesc[4].idx = 4
animationsDesc[4].list = animationsDesc[4].list or {}
animationsDesc[4].list[2] = animationsDesc[4].list[2] or {}
animationsDesc[4].list[2].actor = "hero"
animationsDesc[4].list[2].animation = "WORRIED_LEFT"
animationsDesc[4].list[2].class = "PlayAnimationTask"
animationsDesc[4].list[2].cycles = 1
animationsDesc[4].list[2].frameTime = 150
animationsDesc[4].list[2].whenFinished = "stay"
animationsDesc[4].list[3] = animationsDesc[4].list[3] or {}
animationsDesc[4].list[3].actor = "hero"
animationsDesc[4].list[3].class = "MessageTask"
animationsDesc[4].list[3].needsClick = true
animationsDesc[4].list[3].textId = "TEXT_R5_SH4_6"
animationsDesc[4].list[4] = animationsDesc[4].list[4] or {}
animationsDesc[4].list[4].class = "StartStoryTask"
animationsDesc[4].list[4].wait = true
animationsDesc[4].list[5] = animationsDesc[4].list[5] or {}
animationsDesc[4].list[5].actor = "resident"
animationsDesc[4].list[5].animation = "HAPPY_LEFT"
animationsDesc[4].list[5].class = "PlayAnimationTask"
animationsDesc[4].list[5].cycles = 1
animationsDesc[4].list[5].frameTime = 150
animationsDesc[4].list[5].whenFinished = "stay"
animationsDesc[4].list[6] = animationsDesc[4].list[6] or {}
animationsDesc[4].list[6].actor = "resident"
animationsDesc[4].list[6].class = "MessageTask"
animationsDesc[4].list[6].needsClick = true
animationsDesc[4].list[6].textId = "TEXT_R5_SH4_8"
animationsDesc[4].list[7] = animationsDesc[4].list[7] or {}
animationsDesc[4].list[7].class = "EndStoryTask"
animationsDesc[4].list[8] = animationsDesc[4].list[8] or {}
animationsDesc[4].list[8].actor = "hero"
animationsDesc[4].list[8].class = "WalkToTask"
animationsDesc[4].list[8].target = animationsDesc[4].list[8].target or {}
animationsDesc[4].list[8].target.x = 644
animationsDesc[4].list[8].target.y = 412
animationsDesc[4].list[9] = animationsDesc[4].list[9] or {}
animationsDesc[4].list[9].actor = "hero"
animationsDesc[4].list[9].animation = "WORRIED"
animationsDesc[4].list[9].class = "PlayAnimationTask"
animationsDesc[4].list[9].cycles = 1
animationsDesc[4].list[9].frameTime = 150
animationsDesc[4].list[9].whenFinished = "stay"
animationsDesc[4].list[10] = animationsDesc[4].list[10] or {}
animationsDesc[4].list[10].actor = "resident"
animationsDesc[4].list[10].class = "WalkToTask"
animationsDesc[4].list[10].target = animationsDesc[4].list[10].target or {}
animationsDesc[4].list[10].target.x = 740
animationsDesc[4].list[10].target.y = 412
animationsDesc[4].list[11] = animationsDesc[4].list[11] or {}
animationsDesc[4].list[11].actor = "resident"
animationsDesc[4].list[11].animation = "IDLE_UP"
animationsDesc[4].list[11].class = "PlayAnimationTask"
animationsDesc[4].list[11].cycles = 1
animationsDesc[4].list[11].frameTime = 150
animationsDesc[4].list[11].whenFinished = "stay"
animationsDesc[4].list[12] = animationsDesc[4].list[12] or {}
animationsDesc[4].list[12].class = "Task"
animationsDesc[4].list[12].duration = 1500
animationsDesc[4].list[13] = animationsDesc[4].list[13] or {}
animationsDesc[4].list[13].actor = "EVENT_FIX_FLUSTATION_RUNNING_2"
animationsDesc[4].list[13].class = "SetTask"
animationsDesc[4].list[13].values = "{visible=true}"
animationsDesc[4].list[14] = animationsDesc[4].list[14] or {}
animationsDesc[4].list[14].actor = "hero"
animationsDesc[4].list[14].animation = "SMILING"
animationsDesc[4].list[14].class = "PlayAnimationTask"
animationsDesc[4].list[14].cycles = 1
animationsDesc[4].list[14].frameTime = 150
animationsDesc[4].list[14].whenFinished = "stay"
animationsDesc[4].list[15] = animationsDesc[4].list[15] or {}
animationsDesc[4].list[15].actor = "hero"
animationsDesc[4].list[15].class = "MessageTask"
animationsDesc[4].list[15].needsClick = true
animationsDesc[4].list[15].textId = "TEXT_R5_SH4_7"
animationsDesc[4].list[16] = animationsDesc[4].list[16] or {}
animationsDesc[4].list[16].actor = "resident"
animationsDesc[4].list[16].animation = "CURIOUS_LEFT"
animationsDesc[4].list[16].class = "PlayAnimationTask"
animationsDesc[4].list[16].cycles = 1
animationsDesc[4].list[16].frameTime = 150
animationsDesc[4].list[16].whenFinished = "stay"
animationsDesc[4].list[17] = animationsDesc[4].list[17] or {}
animationsDesc[4].list[17].actor = "EVENT_FIX_FLUSTATION"
animationsDesc[4].list[17].class = "SetTask"
animationsDesc[4].list[17].values = "{visible=false}"
animationsDesc[4].list[18] = animationsDesc[4].list[18] or {}
animationsDesc[4].list[18].actor = "hero"
animationsDesc[4].list[18].class = "SetTask"
animationsDesc[4].list[18].values = "{walkSpeed=200}"
animationsDesc[4].musicMoodStart = "HAPPINESS"
animationsDesc[4].name = "Event lost"
animationsDesc[4].tree = animationsDesc[4].tree or {}
animationsDesc[4].tree[1] = 4
animationsDesc[4].tree[2] = 18
animationsDesc[4].tree[3] = 2
animationsDesc[4].tree[4] = 3
animationsDesc[4].tree[5] = animationsDesc[4].tree[5] or {}
animationsDesc[4].tree[5][1] = animationsDesc[4].tree[5][1] or {}
animationsDesc[4].tree[5][1][1] = 8
animationsDesc[4].tree[5][1][2] = 9
animationsDesc[4].tree[5][2] = animationsDesc[4].tree[5][2] or {}
animationsDesc[4].tree[5][2][1] = 10
animationsDesc[4].tree[5][2][2] = 11
animationsDesc[4].tree[6] = 12
animationsDesc[4].tree[7] = 17
animationsDesc[4].tree[8] = 13
animationsDesc[4].tree[9] = 5
animationsDesc[4].tree[10] = 14
animationsDesc[4].tree[11] = 15
animationsDesc[4].tree[12] = 16
animationsDesc[4].tree[13] = 6
animationsDesc[4].tree[14] = 7
animationsDesc[5] = animationsDesc[5] or {}
animationsDesc[5].actors = animationsDesc[5].actors or {}
animationsDesc[5].actors[1] = "hero"
animationsDesc[5].actors[2] = "resident"
animationsDesc[5].class = "TasksAnimation"
animationsDesc[5].id = "postShift"
animationsDesc[5].idx = 5
animationsDesc[5].list = animationsDesc[5].list or {}
animationsDesc[5].list[2] = animationsDesc[5].list[2] or {}
animationsDesc[5].list[2].class = "StartStoryTask"
animationsDesc[5].list[3] = animationsDesc[5].list[3] or {}
animationsDesc[5].list[3].actor = "hero"
animationsDesc[5].list[3].class = "SetTask"
animationsDesc[5].list[3].values = "{walkSpeed=200}"
animationsDesc[5].list[4] = animationsDesc[5].list[4] or {}
animationsDesc[5].list[4].actor = "resident"
animationsDesc[5].list[4].class = "SetTask"
animationsDesc[5].list[4].values = "{walkSpeed=200}"
animationsDesc[5].list[5] = animationsDesc[5].list[5] or {}
animationsDesc[5].list[5].actor = "resident"
animationsDesc[5].list[5].class = "WalkToTask"
animationsDesc[5].list[5].target = animationsDesc[5].list[5].target or {}
animationsDesc[5].list[5].target.x = 1168
animationsDesc[5].list[5].target.y = 687
animationsDesc[5].list[6] = animationsDesc[5].list[6] or {}
animationsDesc[5].list[6].actor = "hero"
animationsDesc[5].list[6].class = "WalkToTask"
animationsDesc[5].list[6].target = animationsDesc[5].list[6].target or {}
animationsDesc[5].list[6].target.x = 1168
animationsDesc[5].list[6].target.y = 687
animationsDesc[5].list[8] = animationsDesc[5].list[8] or {}
animationsDesc[5].list[8].class = "EndStoryTask"
animationsDesc[5].list[9] = animationsDesc[5].list[9] or {}
animationsDesc[5].list[9].class = "Task"
animationsDesc[5].list[9].duration = 1500
animationsDesc[5].musicMoodStart = "HAPPINESS"
animationsDesc[5].name = "Outro (post shift)"
animationsDesc[5].tree = animationsDesc[5].tree or {}
animationsDesc[5].tree[1] = 2
animationsDesc[5].tree[2] = 3
animationsDesc[5].tree[3] = 4
animationsDesc[5].tree[4] = animationsDesc[5].tree[4] or {}
animationsDesc[5].tree[4][1] = 5
animationsDesc[5].tree[5] = 9
animationsDesc[5].tree[6] = animationsDesc[5].tree[6] or {}
animationsDesc[5].tree[6][1] = 6
animationsDesc[5].tree[7] = 8
