init python:
    def get_wash1_screen_func(x, y):
        if (((420*y >= 7*x + 206647) and (188*y <= 255*x - 253272) and (90*x >= 1*y + 128994) and (338*x <= 749155 - 231*y)) or ((61*y >= 167*x - 278550) and (292*y <= 253040 - 1*x) and (338*x >= 749155 - 231*y) and (x <= 1920))) and quick_menu_shown == False:
            return True
        return False

    def get_wash1_screen_func1(x, y):
        if (((420*y >= 7*x + 206647) and (188*y <= 255*x - 253272) and (90*x >= 1*y + 128994) and (338*x <= 749155 - 231*y)) or ((61*y >= 167*x - 278550) and (292*y <= 253040 - 1*x) and (338*x >= 749155 - 231*y) and (x <= 1920))) and quick_menu_shown == False:
            return False
        return True

    def get_toilet_screen_func(x, y):
        if (((187*y >= 108*x + 43612) and (74*y <= 44*x + 22534) and (111*x >= 43*y + 61403) and (47*x <= 105152 - 70*y)) or ((228*y >= 246*x - 99582) and (187*y <= 108*x + 43612) and (250*x >= 210098 - 4*y) and (112*x <= 150692 - 45*y)) or ((46*y >= 91*x - 74843) and (228*y <= 246*x - 99582) and (89*x >= 156373 - 178*y) and (244*x <= 4*y + 256052)) or ((64*y >= 40393 - 19*x) and (178*y <= 156373 - 89*x) and (93*x >= 100569 - 50*y) and (23*x <= 64*y - 619))) and quick_menu_shown == False:
            return True
        return False

    def get_toilet_screen_func1(x, y):
        if (((187*y >= 108*x + 43612) and (74*y <= 44*x + 22534) and (111*x >= 43*y + 61403) and (47*x <= 105152 - 70*y)) or ((228*y >= 246*x - 99582) and (187*y <= 108*x + 43612) and (250*x >= 210098 - 4*y) and (112*x <= 150692 - 45*y)) or ((46*y >= 91*x - 74843) and (228*y <= 246*x - 99582) and (89*x >= 156373 - 178*y) and (244*x <= 4*y + 256052)) or ((64*y >= 40393 - 19*x) and (178*y <= 156373 - 89*x) and (93*x >= 100569 - 50*y) and (23*x <= 64*y - 619))) and quick_menu_shown == False:
            return False
        return True

image toilet_empty = ConditionSwitch("daytime < 7","images/rooms/1_toilet.jpg",
"daytime == 7 or daytime == 8","images/rooms/2_toilet.jpg")
image wash1_1 = "images/needs/toilet/wash_toilet1.jpg"
image wash1_2 = "images/needs/toilet/wash_toilet2.jpg"
image wash1_3 = "images/needs/toilet/wash_toilet3.jpg"
image toilet_1 = ConditionSwitch("daytime < 7","images/needs/toilet/2_toilet1.jpg",
"daytime == 7 or daytime == 8","images/needs/toilet/4_toilet1.jpg")
image toilet_2 = ConditionSwitch("daytime < 7 and toilet >= 50","images/needs/toilet/2_toilet2.jpg",
"daytime < 7 and toilet < 50","images/needs/toilet/2_toilet2b.jpg",
"daytime > 6 and toilet >= 50","images/needs/toilet/4_toilet2.jpg",
"daytime > 6 and toilet < 50","images/needs/toilet/4_toilet2b.jpg")
image toilet_3_1 = "images/needs/toilet/2_toilet3.jpg"
image toilet_3_2 = "images/needs/toilet/4_toilet3.jpg"

screen toilet_screen:
    modal True
    zorder 10
    null width 1920 height 1080
    button:
        hovered Show("get_wash1_screen")
        focus_mask get_wash1_screen_func
        action NullAction()
    button:
        hovered Show("get_toilet_screen")
        focus_mask get_toilet_screen_func
        action NullAction()

screen get_wash1_screen:
    modal True
    zorder 11
    button:
        focus_mask get_wash1_screen_func
        action [Hide("get_wash1_screen"),Jump("get_wash1")]
    button:
        hovered Hide("get_wash1_screen")
        focus_mask get_wash1_screen_func1
        action NullAction()
    add ConditionSwitch("daytime < 7 ","images/props/2toilet_wash.png",
    "daytime > 6","images/props/4toilet_wash.png")

screen get_toilet_screen:
    modal True
    zorder 11
    button:
        focus_mask get_toilet_screen_func
        action [Hide("get_toilet_screen"),Jump("get_toilet")]
    button:
        hovered Hide("get_toilet_screen")
        focus_mask get_toilet_screen_func1
        action NullAction()
    add ConditionSwitch("daytime < 7 ","images/props/2toilet_toilet.png",
    "daytime > 6","images/props/4toilet_toilet.png")

label toilet:
    call my_refresh
    call sound_silience
    $ position = "toilet"
    $ 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 "toilet" in storyes.keys() and storyes["toilet"] == "toilet_lucy" and lts == 1:
        scene corridor2_empty
    elif True:
        scene toilet_empty
    if not check_pos():
        if ("toilet" in storyes.keys() and storyes["toilet"] in exceptions) or ("toilet" in place_events.keys() and place_events["toilet"]  in exceptions):
            call hide_interface
        elif True:
            call hide_bottom_menu
        if "toilet" in storyes.keys():
            $ renpy.jump(storyes["toilet"])
        if "toilet" in place_events.keys():
            $ renpy.jump(place_events["toilet"])
        $ prev = position
    call show_interface
    call screen toilet_screen
    jump toilet

label get_wash1:
    if daytime > 6:
        scene toilet_empty
        call hide_interface
        call adv_say (mc, txt0000003, 3)
        jump toilet
    call hide_interface
    menu:
        "Wash hands" if True:
            jump toilet_wash_hands
        "Back" if True:
            jump toilet
    jump mc_room_bed_action

label get_toilet:
    if daytime < 8:
        if toilet == 100:
            call adv_say (mc, txt0000004, 3)
            jump toilet
        call hide_interface
        menu:
            "Use the toilet" if True:
                jump toilet_toilet
            "Back" if True:
                jump toilet
        jump get_toilet
    elif True:
        call adv_say (mc, txt0000003, 3)
        jump toilet

label toilet_wash_hands:
    if freshness == 100:
        call adv_say (mc, txt0000004, 3)
    elif True:
        $ set_prev(position)
        scene wash1_1
        $ renpy.pause(1.0)
        scene wash1_2
        show img17:
            alpha 0.0
            parallel:
                pause .5
                linear .5 alpha 1.0
        $ renpy.pause(1.0, hard = True)
        scene wash1_3
        show img17:
            alpha 1.0
            parallel:
                linear .5 alpha 0.0
        call show_changes ("freshness", False)
        $ restore_freshness(20)
        $ renpy.pause(1.0, hard = True)
        $ next_daytime(force="freshness")
        call hide_changes
        $ generate_event_maps()
    jump toilet

label toilet_toilet:
    $ set_prev(position)
    scene toilet_1
    $ renpy.pause(1.0)
    scene toilet_2
    show img17:
        alpha 0.0
        parallel:
            pause .5
            linear .5 alpha 1.0
    $ renpy.pause(1.0, hard = True)
    if daytime < 7:
        scene toilet_3_1
    elif True:
        scene toilet_3_2
    show img17:
        alpha 1.0
        parallel:
            linear .5 alpha 0.0
    call show_changes ("toilet", True)
    $ toilet = 100
    $ renpy.pause(1.0, hard = True)
    $ next_daytime(force="toilet")
    $ toilet = 100
    call hide_changes
    $ generate_event_maps()
    jump toilet
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
