2024-04-22 17:11:01 +00:00
|
|
|
label examine_desk:
|
|
|
|
if not states.gen.ev.intro.desk_examined:
|
|
|
|
$ states.gen.ev.intro.desk_examined = True
|
|
|
|
$ desk_OBJ.idle = "ch_gen sit_behind_desk"
|
|
|
|
$ desk_OBJ.action = Jump("examine_desk")
|
|
|
|
call bld
|
|
|
|
gen "A desk of some sort..." ("base", xpos="far_left", ypos="head")
|
|
|
|
gen "And a letter..." ("base", xpos="far_left", ypos="head")
|
|
|
|
gen "Mailed to a certain \"Albus Dumbledore\"." ("base", xpos="far_left", ypos="head")
|
|
|
|
|
|
|
|
menu:
|
|
|
|
gen "Should I open it?" ("base", xpos="far_left", ypos="head")
|
|
|
|
"-Read the letter-":
|
|
|
|
call bld
|
|
|
|
gen "Of course I will!" ("grin", xpos="far_left", ypos="head")
|
|
|
|
"-Leave it be-":
|
|
|
|
call bld
|
|
|
|
gen "Hell no!" ("angry", xpos="far_left", ypos="head")
|
|
|
|
gen "Of course I will read it!" ("grin", xpos="far_left", ypos="head")
|
|
|
|
|
|
|
|
# First letter from Hermione
|
|
|
|
$ desk_OBJ.foreground = None
|
|
|
|
$ letter_hg_1.open()
|
|
|
|
|
|
|
|
gen "*Ehm*........." ("base", xpos="far_left", ypos="head")
|
|
|
|
gen "What?" ("base", xpos="far_left", ypos="head")
|
|
|
|
gen "................................." ("base", xpos="far_left", ypos="head")
|
|
|
|
else:
|
|
|
|
gen "I've already checked the desk." ("base", xpos="far_left", ypos="head")
|
|
|
|
|
|
|
|
jump main_room_menu
|
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
label paperwork:
|
|
|
|
if letter_work_report in mailbox.get_letters():
|
2023-03-17 15:48:17 +00:00
|
|
|
gen "(I need to get paid first.)" ("base", xpos="far_left", ypos="head")
|
2022-05-16 23:48:22 +00:00
|
|
|
jump main_room_menu
|
|
|
|
|
|
|
|
call weather_sound
|
|
|
|
|
|
|
|
if not renpy.music.is_playing("weather"):
|
|
|
|
call music_block
|
|
|
|
else:
|
|
|
|
stop music fadeout 1.0
|
|
|
|
|
|
|
|
call gen_chibi("paperwork")
|
|
|
|
with d3
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "You do some paperwork."
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
call paperwork_progress_chapter
|
|
|
|
|
2024-04-25 19:14:25 +00:00
|
|
|
if not states.env.daytime and (states.env.day % 7 == 0):
|
2024-04-23 18:26:24 +00:00
|
|
|
call paperwork_progress_chapter("The Full moon makes you feel vastly more productive.\n", bonus=2)
|
|
|
|
|
2024-04-25 19:14:25 +00:00
|
|
|
if not states.env.daytime and (states.env.day % 7 == 3):
|
2024-04-23 18:26:24 +00:00
|
|
|
call paperwork_progress_chapter("The half moon makes you feel more productive.\n")
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
call gen_chibi("sit_behind_desk")
|
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
if states.env.daytime:
|
2022-05-16 23:48:22 +00:00
|
|
|
jump night_start
|
|
|
|
else:
|
|
|
|
jump day_start
|
|
|
|
|
|
|
|
label paperwork_report_check:
|
|
|
|
# Check if a report was completed
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.paperwork_chapters >= 4:
|
2023-03-11 19:43:02 +00:00
|
|
|
nar "You've completed a report."
|
2023-03-31 22:41:48 +00:00
|
|
|
$ states.paperwork_chapters = 0
|
|
|
|
$ states.paperwork_reports += 1
|
|
|
|
$ states.paperwork_reports_times += 1
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
return
|
|
|
|
|
2024-04-23 18:26:24 +00:00
|
|
|
label paperwork_progress_chapter(message="", bonus=1):
|
|
|
|
$ states.paperwork_chapters += bonus
|
2022-05-16 23:48:22 +00:00
|
|
|
call notes
|
|
|
|
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.paperwork_chapters == 1:
|
2023-03-17 15:48:17 +00:00
|
|
|
"[message]You finished one chapter so far."
|
2022-05-16 23:48:22 +00:00
|
|
|
else:
|
2023-03-31 22:41:48 +00:00
|
|
|
"[message]You finished {number=states.paperwork_chapters} chapters so far."
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
call paperwork_report_check
|
|
|
|
return
|
|
|
|
|
|
|
|
screen gui_tooltip(img=None, xx=335, yy=210):
|
|
|
|
add img xpos xx ypos yy
|
|
|
|
zorder 3
|