2022-05-16 23:48:22 +00:00
|
|
|
label day_start:
|
|
|
|
show screen blkfade
|
|
|
|
hide snape_main
|
|
|
|
hide genie_main
|
|
|
|
hide tonks_main
|
|
|
|
hide cho_main
|
|
|
|
hide hermione_main
|
|
|
|
hide astoria_main
|
|
|
|
hide susan_main
|
|
|
|
hide luna_main
|
|
|
|
with dissolve
|
|
|
|
|
2022-09-29 21:19:55 +00:00
|
|
|
python:
|
|
|
|
|
|
|
|
# Reset room objects
|
|
|
|
candleL_OBJ.foreground = None
|
|
|
|
candleR_OBJ.foreground = None
|
2023-03-31 22:41:48 +00:00
|
|
|
states.fireplace_started = False
|
2022-09-29 21:19:55 +00:00
|
|
|
fireplace_OBJ.foreground = None
|
2023-03-31 22:41:48 +00:00
|
|
|
states.bird_fed = False
|
|
|
|
states.bird_petted = False
|
2022-09-29 21:19:55 +00:00
|
|
|
phoenix_OBJ.foreground = None # Removes seeds image
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cupboard_rummaged = False
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Reset gift flags
|
2023-04-02 23:48:38 +00:00
|
|
|
states.ton.gifted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.gifted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.gifted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.gifted = False
|
|
|
|
states.ast.gifted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.gifted = False
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Reset chit-chat flags
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sna.chatted = False
|
|
|
|
states.ton.chatted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.chatted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.chatted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.chatted = False
|
|
|
|
states.ast.chatted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.chatted = False
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Tick Event timers
|
|
|
|
ss_event_pause = max(ss_event_pause-1, 0)
|
|
|
|
ss_summon_pause = max(ss_summon_pause-1, 0)
|
|
|
|
nt_event_pause = max(nt_event_pause-1, 0)
|
|
|
|
nt_summon_pause = max(nt_summon_pause-1, 0)
|
|
|
|
hg_event_pause = max(hg_event_pause-1, 0)
|
|
|
|
hg_summon_pause = max(hg_summon_pause-1, 0)
|
|
|
|
ll_event_pause = max(ll_event_pause-1, 0)
|
|
|
|
ll_summon_pause = max(ll_summon_pause-1, 0)
|
|
|
|
cc_event_pause = max(cc_event_pause-1, 0)
|
|
|
|
cc_summon_pause = max(cc_summon_pause-1, 0)
|
|
|
|
ag_event_pause = max(ag_event_pause-1, 0)
|
|
|
|
ag_summon_pause = max(ag_summon_pause-1, 0)
|
|
|
|
sb_event_pause = max(sb_event_pause-1, 0)
|
|
|
|
sb_summon_pause = max(sb_summon_pause-1, 0)
|
|
|
|
|
|
|
|
# Reset busy flags (Based on current tick)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sna.busy = True # bool(ss_summon_pause)
|
|
|
|
states.ton.busy = bool(nt_summon_pause)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.busy = bool(hg_summon_pause)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.busy = bool(ll_summon_pause)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.busy = bool(cc_summon_pause)
|
|
|
|
states.ast.busy = bool(ag_summon_pause)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.busy = bool(sb_summon_pause)
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Improve Mood
|
|
|
|
if game.difficulty == 1: # Easy difficulty
|
|
|
|
val = 3
|
|
|
|
elif game.difficulty == 2: # Normal difficulty
|
|
|
|
val = 2
|
|
|
|
elif game.difficulty == 3: # Hardcore difficulty
|
|
|
|
val = 1
|
|
|
|
|
2023-04-02 23:48:38 +00:00
|
|
|
states.ton.mood = max(states.ton.mood-val, 0)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.mood = max(states.her.mood-val, 0)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.mood = max(states.lun.mood-val, 0)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.mood = max(states.cho.mood-val, 0)
|
|
|
|
states.ast.mood = max(states.ast.mood-val, 0)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.mood = max(states.sus.mood-val, 0)
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Game flags
|
|
|
|
game.day += 1
|
|
|
|
game.weather = "random"
|
|
|
|
game.daytime = True
|
|
|
|
|
|
|
|
# Randomisers
|
|
|
|
random_gold = renpy.random.randint(8, 40)
|
2024-03-24 18:18:34 +00:00
|
|
|
map_randomobj.seed()
|
|
|
|
door_randomobj.seed()
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Send salary every 7th day
|
|
|
|
if game.day % 7 == 0:
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.paperwork_reports >= 1:
|
2022-09-29 21:19:55 +00:00
|
|
|
letter_work_report.send()
|
2023-04-03 00:30:15 +00:00
|
|
|
if not states.twi.ev.cardgame.first_random:
|
|
|
|
states.twi.ev.cardgame.interest = True
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Pass time
|
|
|
|
mailbox.tick()
|
|
|
|
eventqueue.tick()
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Update map locations
|
2023-11-15 23:49:14 +00:00
|
|
|
call set_all_map_locations
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Reset appearances and sprites
|
|
|
|
call update_luna
|
|
|
|
call update_astoria
|
|
|
|
call update_hermione
|
|
|
|
call update_susan
|
|
|
|
call update_cho
|
|
|
|
call update_tonks
|
|
|
|
call update_snape
|
|
|
|
call update_genie
|
|
|
|
|
2023-03-31 22:41:48 +00:00
|
|
|
call room(states.room, stop_sound=False, hide_screens=False)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Equip scheduled outfits
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.lun.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ luna.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.ast.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ astoria.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.her.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ hermione.equip_random_outfit()
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.sus.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ susan.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.cho.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ cho.equip_random_outfit()
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.ton.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ tonks.equip_random_outfit()
|
|
|
|
|
|
|
|
hide screen blkfade
|
|
|
|
hide screen bld1
|
|
|
|
hide screen blktone
|
|
|
|
with dissolve
|
|
|
|
|
|
|
|
# Points gains
|
|
|
|
call points_changes
|
|
|
|
call update_ui_points
|
|
|
|
|
|
|
|
$ renpy.force_autosave(True)
|
|
|
|
|
|
|
|
label day_resume:
|
|
|
|
|
|
|
|
# Start Quests
|
|
|
|
jump quests
|
|
|
|
|
2024-04-01 20:11:08 +00:00
|
|
|
# unreachable
|
2022-05-16 23:48:22 +00:00
|
|
|
$ renpy.choice_for_skipping()
|
|
|
|
|
|
|
|
call screen room_menu
|
|
|
|
|
|
|
|
label night_start:
|
|
|
|
|
|
|
|
show screen blkfade
|
|
|
|
hide snape_main
|
|
|
|
hide genie_main
|
|
|
|
hide tonks_main
|
|
|
|
hide cho_main
|
|
|
|
hide hermione_main
|
|
|
|
hide astoria_main
|
|
|
|
hide susan_main
|
|
|
|
hide luna_main
|
|
|
|
with dissolve
|
|
|
|
|
2022-09-29 21:19:55 +00:00
|
|
|
python:
|
|
|
|
|
|
|
|
# Reset room objects
|
|
|
|
if not candleL_OBJ.foreground:
|
|
|
|
candleL_OBJ.get_action()()
|
|
|
|
if not candleR_OBJ.foreground:
|
|
|
|
candleR_OBJ.get_action()()
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cupboard_rummaged = False
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Reset chit-chat flags
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sna.chatted = False
|
|
|
|
states.ton.chatted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.chatted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.chatted = False
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.chatted = False
|
|
|
|
states.ast.chatted = False
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.chatted = False
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Reset busy flags (Based on current tick)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sna.busy = bool(ss_summon_pause)
|
|
|
|
states.ton.busy = bool(nt_summon_pause)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.her.busy = bool(hg_summon_pause)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.lun.busy = bool(ll_summon_pause)
|
2023-03-31 22:41:48 +00:00
|
|
|
states.cho.busy = bool(cc_summon_pause)
|
|
|
|
states.ast.busy = bool(ag_summon_pause)
|
2023-04-02 23:48:38 +00:00
|
|
|
states.sus.busy = bool(sb_summon_pause)
|
2022-09-29 21:19:55 +00:00
|
|
|
|
|
|
|
# Game flags
|
|
|
|
game.weather = "random"
|
|
|
|
game.daytime = False
|
|
|
|
|
|
|
|
# Randomisers
|
|
|
|
random_gold = renpy.random.randint(8, 40)
|
2024-03-24 18:18:34 +00:00
|
|
|
map_randomobj.seed()
|
|
|
|
door_randomobj.seed()
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Update map locations
|
2023-11-15 23:49:14 +00:00
|
|
|
call set_all_map_locations
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Reset appearances and sprites
|
|
|
|
call update_luna
|
|
|
|
call update_astoria
|
|
|
|
call update_hermione
|
|
|
|
call update_susan
|
|
|
|
call update_cho
|
|
|
|
call update_tonks
|
|
|
|
call update_snape
|
|
|
|
call update_genie
|
|
|
|
|
2023-03-31 22:41:48 +00:00
|
|
|
call room(states.room, stop_sound=False, hide_screens=False)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Equip scheduled outfits
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.lun.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ luna.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.ast.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ astoria.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.her.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ hermione.equip_random_outfit()
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.sus.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ susan.equip_random_outfit()
|
2023-03-31 22:41:48 +00:00
|
|
|
if states.cho.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ cho.equip_random_outfit()
|
2023-04-02 23:48:38 +00:00
|
|
|
if states.ton.wardrobe_scheduling:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ tonks.equip_random_outfit()
|
|
|
|
|
|
|
|
hide screen blkfade
|
|
|
|
hide screen bld1
|
|
|
|
hide screen blktone
|
|
|
|
with dissolve
|
|
|
|
|
|
|
|
$ renpy.force_autosave(True)
|
|
|
|
|
|
|
|
label night_resume:
|
|
|
|
|
|
|
|
# Start Quests
|
|
|
|
jump quests
|
|
|
|
|
2024-04-01 20:11:08 +00:00
|
|
|
# unreachable
|
2022-05-16 23:48:22 +00:00
|
|
|
$ renpy.choice_for_skipping()
|
|
|
|
|
|
|
|
call screen room_menu
|