WTS/game/scripts/rooms/main_room/objects/desk.rpy
LoafyLemon db86910a8e Seed Randomisation, Map, Refactoring, Bug Fixes
* Added seeded randomisation w/ cache
* Updated help menu hotkeys section
* Decoupled map from the desk (New map artwork to be added)
* Removed old desk menu
* Removed old desk images
* Removed/Fixed door_randomobj and map_randomobj causing pickling issues
2024-04-27 00:41:38 +01:00

89 lines
2.9 KiB
Plaintext

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
label paperwork:
if letter_work_report in mailbox.get_letters():
gen "(I need to get paid first.)" ("base", xpos="far_left", ypos="head")
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
nar "You do some paperwork."
call paperwork_progress_chapter
if not states.env.daytime and (states.env.day % 7 == 0):
call paperwork_progress_chapter("The Full moon makes you feel vastly more productive.\n", bonus=2)
if not states.env.daytime and (states.env.day % 7 == 3):
call paperwork_progress_chapter("The half moon makes you feel more productive.\n")
call gen_chibi("sit_behind_desk")
if states.env.daytime:
jump night_start
else:
jump day_start
label paperwork_report_check:
# Check if a report was completed
if states.paperwork_chapters >= 4:
nar "You've completed a report."
$ states.paperwork_chapters = 0
$ states.paperwork_reports += 1
$ states.paperwork_reports_times += 1
return
label paperwork_progress_chapter(message="", bonus=1):
$ states.paperwork_chapters += bonus
call notes
if states.paperwork_chapters == 1:
"[message]You finished one chapter so far."
else:
"[message]You finished {number=states.paperwork_chapters} chapters so far."
call paperwork_report_check
return
screen gui_tooltip(img=None, xx=335, yy=210):
add img xpos xx ypos yy
zorder 3