init python:
    def mc_room_bed_func(x, y):
        if ((177*x >= 2*y + 156588) and (56*x <= 67599 - y) and (309*y >= 159779 - 16*x) and (306*y <= 320492 - 137*x)) or ((221*x >= 222*y + 53276) and (58*x <= 67*y + 35247) and (306*y >= 320492 - 137*x) and (151*y <= 465419 - 300*x)) or ((300*x >= 465419 - 151*y) and (120*x <= 193515 - 15*y) and (265*y >= 34405 + 92*x) and (401*y <= 446501 - 88*x)):
            return True
        return False

    def mc_room_bed_func1(x, y):
        if ((177*x >= 2*y + 156588) and (56*x <= 67599 - y) and (309*y >= 159779 - 16*x) and (306*y <= 320492 - 137*x)) or ((221*x >= 222*y + 53276) and (58*x <= 67*y + 35247) and (306*y >= 320492 - 137*x) and (151*y <= 465419 - 300*x)) or ((300*x >= 465419 - 151*y) and (120*x <= 193515 - 15*y) and (265*y >= 34405 + 92*x) and (401*y <= 446501 - 88*x)):
            return False
        return True

    def mc_room_bag_func(x, y):
        if (((67*y >= 65948 - 9*x) and (52*y <= 55*x - 25529) and (74*x >= 101424 - 6*y) and (138*x <= 206136 - 21*y)) or ((49*y >= 42442 - 4*x) and (212*y <= 35*x + 121580) and (50*x >= 109400 - 51*y) and (89*x <= 112*y + 47456)) or ((212*y >= 35*x + 121580) and (219*y <= 241899 - 27*x) and (138*x >= 206136 - 21*y) and (76*x <= 132074 - 14*y))):
            return True
        return False

    def mc_room_bag_func1(x, y):
        if (((67*y >= 65948 - 9*x) and (52*y <= 55*x - 25529) and (74*x >= 101424 - 6*y) and (138*x <= 206136 - 21*y)) or ((49*y >= 42442 - 4*x) and (212*y <= 35*x + 121580) and (50*x >= 109400 - 51*y) and (89*x <= 112*y + 47456)) or ((212*y >= 35*x + 121580) and (219*y <= 241899 - 27*x) and (138*x >= 206136 - 21*y) and (76*x <= 132074 - 14*y))):
            return False
        return True

image mc_room_empty = ConditionSwitch("daytime == 1 or daytime == 2","images/rooms/1_mc_room.jpg",
"daytime == 3 or daytime == 4","images/rooms/2_mc_room.jpg",
"daytime == 5 or daytime == 6","images/rooms/3_mc_room.jpg",
"daytime == 7 or daytime == 8","images/rooms/4_mc_room.jpg")
image rest1 = ConditionSwitch("daytime == 1 or daytime == 2","images/rest/1_rest1.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest1.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest1.jpg",
"daytime == 7 or daytime == 8","images/rest/4_rest1.jpg")
image rest2 = ConditionSwitch("daytime == 1 or daytime == 2","images/rest/1_rest2.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest2.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest2.jpg",
"daytime == 7 or daytime == 8","images/rest/4_rest2.jpg")
image rest3 = ConditionSwitch("daytime == 1 or daytime == 2","images/rest/1_rest3.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest3.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest3.jpg",
"daytime == 7 or daytime == 8","images/rest/4_rest3.jpg")
image rest4 = ConditionSwitch("daytime == 1 or daytime == 2","images/rest/1_rest4.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest4.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest4.jpg",
"daytime == 7 or daytime == 8","images/rest/4_rest4.jpg")
image rest5 = ConditionSwitch("daytime == 1 or daytime == 2","images/rest/1_rest5.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest5.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest5.jpg",
"daytime == 7 or daytime == 8","images/rest/4_rest5.jpg")
image rest6 = ConditionSwitch("daytime == 2","images/rest/1_rest6.jpg",
"daytime == 3 or daytime == 4","images/rest/2_rest6.jpg",
"daytime == 5 or daytime == 6","images/rest/3_rest6.jpg",
"daytime >= 7","images/rest/4_rest6.jpg")
image sleep1 = ConditionSwitch("daytime == 1 or daytime == 2","images/sleep/1sleep1.jpg",
"daytime == 3 or daytime == 4","images/sleep/2sleep1.jpg",
"daytime == 5 or daytime == 6","images/sleep/3sleep1.jpg",
"daytime == 7 or daytime == 8","images/sleep/4sleep1.jpg")
image sleep2 = ConditionSwitch("daytime == 1 or daytime == 2","images/sleep/1sleep2.jpg",
"daytime == 3 or daytime == 4","images/sleep/2sleep2.jpg",
"daytime == 5 or daytime == 6","images/sleep/3sleep2.jpg",
"daytime == 7 or daytime == 8","images/sleep/4sleep2.jpg")
image sleep3 = ConditionSwitch("daytime == 1 or daytime == 2","images/sleep/1sleep3.jpg",
"daytime == 3 or daytime == 4","images/sleep/2sleep3.jpg",
"daytime == 5 or daytime == 6","images/sleep/3sleep3.jpg",
"daytime == 7 or daytime == 8","images/sleep/4sleep3.jpg")
image sleep4 = ConditionSwitch("daytime == 1 or daytime == 2","images/sleep/1sleep4.jpg",
"daytime == 3 or daytime == 4","images/sleep/2sleep4.jpg",
"daytime == 5 or daytime == 6","images/sleep/3sleep4.jpg",
"daytime == 7 or daytime == 8","images/sleep/4sleep4.jpg")
image sleep5 = "images/sleep/sleep5.jpg"
image sleep6 = "images/sleep/sleep6.jpg"
image sleep7 = "images/sleep/sleep7.jpg"
image sleep8 = "images/sleep/sleep8.jpg"
image eye_top = "images/interface/eye_top.png"
image eye_bottom = "images/interface/eye_bottom.png"
image mc_tv_1 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/mc/1_mc_tv1.jpg",
"daytime == 3 or daytime == 4","images/needs/mc/2_mc_tv1.jpg",
"daytime == 5 or daytime == 6","images/needs/mc/3_mc_tv1.jpg")
image mc_tv_2 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/mc/1_mc_tv2.jpg",
"daytime == 3 or daytime == 4","images/needs/mc/2_mc_tv2.jpg",
"daytime == 5 or daytime == 6","images/needs/mc/3_mc_tv2.jpg")
image mc_tv_3 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/mc/1_mc_tv3.jpg",
"daytime == 3 or daytime == 4","images/needs/mc/2_mc_tv3.jpg",
"daytime == 5 or daytime == 6","images/needs/mc/3_mc_tv3.jpg")
image mc_tv_4 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/mc/1_mc_tv4.jpg",
"daytime == 3 or daytime == 4","images/needs/mc/2_mc_tv4.jpg",
"daytime == 5 or daytime == 6","images/needs/mc/3_mc_tv4.jpg")
image mc_tv_5 = ConditionSwitch("daytime == 1 or daytime == 2","images/needs/mc/1_mc_tv5.jpg",
"daytime == 3 or daytime == 4","images/needs/mc/2_mc_tv5.jpg",
"daytime == 5 or daytime == 6","images/needs/mc/3_mc_tv5.jpg")
image mc_tv_6_1 = "images/needs/mc/1_mc_tv6.jpg"
image mc_tv_6_2 = "images/needs/mc/2_mc_tv6.jpg"
image mc_tv_6_3 = "images/needs/mc/3_mc_tv6.jpg"
image mc_bag_0 = "images/events/2mc_bag0.jpg"
image mc_bag_1 = "images/events/2mc_bag1.jpg"
image mc_bag_2 = "images/events/2mc_bag2.jpg"
image mc_bag_3 = "images/events/2mc_bag3.jpg"
image mc_bag_4 = "images/events/2mc_bag4.jpg"
image mc_bag_5 = "images/events/2mc_bag5.jpg"
image mc_bag_6 = "images/events/2mc_bag6.jpg"
image mc_bag_7 = "images/events/2mc_bag7.jpg"
image mc_bag_8 = "images/events/2mc_bag8.jpg"
image mc_bag_9 = "images/events/2mc_bag9.jpg"
image mc_bag_10 = "images/events/2mc_bag10.jpg"
image black = "images/black_1.png"

screen mc_room_screen:
    modal True
    zorder 10
    null width 1920 height 1080
    button:
        hovered Show("mc_room_bed_screen")
        focus_mask mc_room_bed_func
        action NullAction()
    if persons[find_person("Rosie")].checkpoints[6] == 1 and persons[find_person("Rosie")].checkpoints[7] != 1:
        button:
            hovered Show("mc_room_bag_screen")
            focus_mask mc_room_bag_func
            action NullAction()

screen mc_room_bed_screen:
    zorder 11
    button:
        focus_mask mc_room_bed_func
        action [Hide("mc_room_bed_screen"),Jump("mc_room_bed_action")]
    button:
        hovered Hide("mc_room_bed_screen")
        focus_mask mc_room_bed_func1
        action NullAction()
    if (daytime == 3 or daytime == 4) and persons[find_person("Rosie")].checkpoints[7] == 1:
        add "images/props/2mc_room_bed_nobag.png"
    else:
        add ConditionSwitch("daytime == 1 or daytime == 2","images/props/1mc_room_bed.png",
        "daytime == 3 or daytime == 4","images/props/2mc_room_bed.png",
        "daytime == 5 or daytime == 6","images/props/3mc_room_bed.png",
        "daytime == 7 or daytime == 8","images/props/4mc_room_bed.png")

screen mc_room_bag_screen:
    zorder 12
    button:
        focus_mask mc_room_bag_func
        action [Hide("mc_room_bag_screen"),Jump("mc_room_bag_action")]
    button:
        hovered Hide("mc_room_bag_screen")
        focus_mask mc_room_bag_func1
        action NullAction()
    if persons[find_person("Rosie")].checkpoints[7] != 1:
        add ConditionSwitch("daytime == 1 or daytime == 2","images/events/1mc_bag_selected.png",
        "daytime == 3 or daytime == 4","images/events/2mc_bag_selected.png",
        "daytime == 5 or daytime == 6","images/events/3mc_bag_selected.png",
        "daytime == 7 or daytime == 8","images/events/4mc_bag_selected.png")

label rest:
    $ set_prev(position)
    scene rest1
    $ renpy.pause(1.0)
    scene rest2
    $ renpy.pause(1.0)
    scene rest3
    show eye_bottom:
        xalign .5 ypos 1080
        parallel:
            ease 1.0 ypos 0
    show eye_top:
        xalign .5 ypos -1080
        parallel:
            ease 1.0 ypos 0
    $ renpy.pause(1.0, hard = True)
    if persons[find_person("Rosie")].checkpoints[2] == 1 and persons[find_person("Rosie")].checkpoints[3] == 0:
        $ persons[find_person("Rosie")].checkpoints[3] = 1
        $ next_daytime()
    elif persons[find_person("Rosie")].checkpoints[2] == 1 and persons[find_person("Rosie")].checkpoints[3] == 1 and persons[find_person("Rosie")].checkpoints[4] == 0 and daytime == 1:
        $ next_daytime(1)
    elif persons[find_person("Rosie")].checkpoints[5] == 1 and persons[find_person("Rosie")].checkpoints[6] == 0:
        $ next_daytime(1)
    elif tlc == 0 and persons[find_person("Lucy")].checkpoints[0] == 1 and persons[find_person("Lucy")].checkpoints[1] == 0:
        $ next_daytime(1)
    elif daytime == 5 and persons[find_person("Rosie")].quest_event[5] == "any_rosie_movie":
        $ next_daytime(1)
    elif daytime == 3 and persons[find_person("Lucy")].checkpoints[22] == 1 and persons[find_person("Lucy")].checkpoints[23] == 0 and persons[find_person("Lucy")].checkpoints[24] == 0:
        $ next_daytime(1)
    elif daytime == 2 and persons[find_person("Lucy")].relationship[0] == 100 and persons[find_person("Lucy")].relationship[1] == 2 and persons[find_person("Lucy")].checkpoints[20] == 1 and persons[find_person("Lucy")].checkpoints[21] == 1 and persons[find_person("Lucy")].checkpoints[24] == 1 and persons[find_person("Lucy")].checkpoints[16] == 0 and daytime <= 3:
        $ next_daytime(1)
    elif daytime == 2 and persons[find_person("Lucy")].checkpoints[29] == 0 and persons[find_person("Rosie")].checkpoints[32] == 1:
        $ next_daytime(1)
    elif True:
        $ next_daytime()
    scene rest4
    $ play_bg_music()
    show eye_bottom:
        xalign .5
        parallel:
            ease 1.0 ypos 1080
    show eye_top:
        xalign .5
        parallel:
            ease 1.0 ypos -1080
    $ renpy.pause(1.25, hard = True)
    scene rest5
    $ renpy.pause(1.0)
    scene rest6
    $ renpy.pause(1.0)
    $ generate_event_maps()
    jump mc_room

label sleep:
    if tlc == 0 and persons[find_person("Lucy")].checkpoints[0] == 1 and persons[find_person("Lucy")].checkpoints[1] == 0:
        call adv_say (mc, txt0000539, 1)
        call adv_say (mc, txt0000540, 2)
        jump mc_room
    $ set_prev("sleep")
    scene sleep1
    $ renpy.pause(1.0)
    scene sleep2
    $ renpy.pause(1.0)
    scene sleep3
    $ renpy.pause(1.0)
    scene sleep4
    show eye_bottom:
        xalign .5 ypos 1080
        parallel:
            ease 1.0 ypos 0
    show eye_top:
        xalign .5 ypos -1080
        parallel:
            ease 1.0 ypos 0
    $ renpy.pause(1.0, hard = True)
    if persons[find_person("Rosie")].checkpoints[2] == 1 and persons[find_person("Rosie")].checkpoints[3] == 1 and persons[find_person("Rosie")].checkpoints[4] == 0 and daytime == 1:
        $ next_daytime(1)
    elif persons[find_person("Rosie")].checkpoints[2] == 1 and persons[find_person("Rosie")].checkpoints[3] == 0:
        $ persons[find_person("Rosie")].checkpoints[3] = 1
        $ next_daytime(8-daytime+1,True)
    elif persons[find_person("Rosie")].checkpoints[5] == 1 and persons[find_person("Rosie")].checkpoints[6] == 0:
        $ next_daytime(1)
    elif daytime < 4 and persons[find_person("Lucy")].checkpoints[22] == 1 and persons[find_person("Lucy")].checkpoints[23] == 0 and persons[find_person("Lucy")].checkpoints[24] == 0:
        $ next_daytime(4-daytime)
    elif daytime <= 2 and persons[find_person("Lucy")].relationship[0] == 100 and persons[find_person("Lucy")].relationship[1] == 2 and persons[find_person("Lucy")].checkpoints[20] == 1 and persons[find_person("Lucy")].checkpoints[21] == 1 and persons[find_person("Lucy")].checkpoints[24] == 1 and persons[find_person("Lucy")].checkpoints[16] == 0 and daytime <= 3:
        $ next_daytime(3-daytime)
    elif daytime == 2 and persons[find_person("Rosie")].checkpoints[32] == 1 and persons[find_person("Lucy")].checkpoints[29] == 0:
        $ persons[find_person("Lucy")].set_quest_event("any_lucy_sick",[3,4,5,6,7,8])
        $ next_daytime(1)
    elif True:
        $ next_daytime(8-daytime+1,True)
    scene sleep5
    show eye_bottom:
        xalign .5
        parallel:
            ease 1.0 ypos 1080
    show eye_top:
        xalign .5
        parallel:
            ease 1.0 ypos -1080
    $ renpy.pause(1.25, hard = True)
    scene sleep6
    $ renpy.pause(1.0)
    scene sleep7
    $ renpy.pause(1.0)
    scene sleep8
    $ renpy.pause(1.0)
    $ first = True
    $ generate_event_maps()
    jump mc_room

label mc_room:
    call my_refresh
    call sound_silience
    $ position = "mc_room"
    $ city_active = False
    $ house_active = False
    $ play_bg_music()
    $ gal_update()
    if "any" in storyes.keys():
        $ renpy.jump(storyes["any"])
    if "any" in place_events:
        $ renpy.jump(place_events["any"])
    if persons[find_person("Rosie")].checkpoints[7] == 1:
        scene mc_bag_0
    elif True:
        scene mc_room_empty
    if prev == "sleep":
        if day_of_week == 1 or day_of_week == 5 or day_of_week == 7 or persons[find_person("Rosie")].relationship[0] == 100:
            call morning_event
    if "mcroom" in storyes.keys():
        $ renpy.jump(storyes["mcroom"])
    if "mcroom" in place_events.keys():
        $ renpy.jump(place_events["mcroom"])
    if not check_pos():
        if ("mc_room" in storyes.keys() and storyes["mc_room"] in exceptions) or ("mc_room" in place_events.keys() and place_events["mc_room"]  in exceptions):
            call hide_interface
        elif True:
            call hide_bottom_menu
        $ prev = position
    call show_interface
    call screen mc_room_screen
    jump mc_room

label mc_room_bed_action:

    if (daytime == 3 or daytime == 4) and persons[find_person("Rosie")].checkpoints[7] == 1:
        call adv_say (None, txt0000386, 3)
        jump mc_room
    call hide_interface
    menu:
        "Take a nap" if daytime < 7:
            jump rest
        "Watch TV" if daytime < 7:
            jump mc_room_watch_tv
        "Sleep until morning" if daytime < 7 and persons[find_person("Rosie")].checkpoints[27] == 0:
            jump sleep
        "Sleep" if daytime > 6:
            jump sleep
        "Back" if True:
            jump mc_room
    jump mc_room_bed_action

label mc_room_watch_tv:
    if leisure == 100:
        call adv_say (mc, txt0000004)
    elif True:
        $ set_prev(position)
        scene mc_tv_1
        $ renpy.pause(1.0)
        scene mc_tv_2
        $ renpy.pause(1.0)
        scene mc_tv_3
        $ renpy.pause(1.0)
        scene mc_tv_4
        show img17:
            alpha 0.0
            parallel:
                pause .5
                linear .5 alpha 1.0
        $ renpy.pause(1.5, hard = True)
        scene mc_tv_5
        show img17:
            alpha 1.0
            parallel:
                linear .5 alpha 0.0
        call show_changes ("leisure", True)
        $ restore_leisure(100)
        $ renpy.pause(1.5, hard = True)
        if daytime == 1 or daytime == 2:
            scene mc_tv_6_1
        elif daytime == 3 or daytime == 4:
            scene mc_tv_6_2
        elif daytime == 5 or daytime == 6:
            scene mc_tv_6_3
        $ renpy.pause(.5)
        $ next_daytime(force="leisure")
        call hide_changes
        $ generate_event_maps()
    jump mc_room

label mc_room_bag_action:
    if mcill == 1:
        call adv_say (mc, txt0001484, 3)
        jump mc_room
    if daytime != 3 and daytime != 4:
        call adv_say (None, txt0000384, 3)
        jump mc_room
    if (food + freshness + leisure + toilet) / 4 < 100/11*8:
        call adv_say (mc, txt0000071, 3)
        jump mc_room
    call hide_interface
    menu:
        "Go to the gym with Rosie {color=[bac]}{size=50}+{/size}{/color}" if persons[find_person("Rosie")].relationship[1] <= 4:
            jump to_gym
        "Go to the gym with Rosie" if persons[find_person("Rosie")].relationship[1] > 4:
            jump to_gym
        "Back" if True:
            jump mc_room
    jump mc_room_bag_action

label to_gym:
    scene mc_bag_1
    show img17:
        alpha 0.0
        parallel:
            pause .5
            linear .5 alpha 1.0
    $ renpy.pause(1.5, hard = True)
    scene mc_bag_2
    show img17:
        alpha 1.0
        parallel:
            linear .5 alpha 0.0
    $ renpy.pause(1.5,hard=True)
    scene mc_bag_3
    $ renpy.pause(1.0)
    scene rest6
    $ renpy.pause(1.0)
    scene mc_bag_0
    call adv_say (mc, txt0000385, 3)
    $ persons[find_person("Rosie")].checkpoints[7] = 1
    if rosie_loop == 0:
        $ storyes = {}
        $ storyes["corridor2"] = "corridor2_to_gym"
    jump mc_room
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
