Tonks' Hangout Events

* Converted Tonks' hangout events into the new system, and cleaned up relevant code.
This commit is contained in:
LoafyLemon 2023-07-02 01:13:24 +01:00
parent 84760992a7
commit acf7f49819
5 changed files with 137 additions and 153 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,36 +1,20 @@
default nt_he_drink = event_class(
title = "Tonks Firewhisky", start_label = "tonks_hangout",
events = [
[
["nt_he_wine_intro"],
["nt_he_firewhisky_intro"],
["nt_he_firewhisky_E1"],
["nt_he_firewhisky_E2"],
["nt_he_firewhisky_E3"],
["nt_he_firewhisky_E4"]
]
],
iconset = [["star_empty", "star_pink"]] # You have to add icons at least for first tier, the rest will be copied over automatically.
)
default ton_ev_hangouts_wine_intro = Event(id="ton_ev_hangouts_wine_intro", label="nt_he_wine_intro", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default ton_ev_hangouts_firewhisky_intro = Event(id="ton_ev_hangouts_firewhisky_intro", label="nt_he_firewhisky_intro", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default ton_ev_hangouts_firewhisky_e1 = Event(id="ton_ev_hangouts_firewhisky_e1", label="nt_he_firewhisky_E1", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default ton_ev_hangouts_firewhisky_e2 = Event(id="ton_ev_hangouts_firewhisky_e2", label="nt_he_firewhisky_E2", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default ton_ev_hangouts_firewhisky_e3 = Event(id="ton_ev_hangouts_firewhisky_e3", label="nt_he_firewhisky_E3", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default ton_ev_hangouts_firewhisky_e4 = Event(id="ton_ev_hangouts_firewhisky_e4", label="nt_he_firewhisky_E4", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_drinking")
default nt_he_story = event_class(
title = "Tonks Stories", start_label = "tonks_hangout",
events = [
[
["nt_he_story_intro_E1"], # Intro
["nt_he_story_intro_E2"], # Moody
["nt_he_story_intro_E3"], # Brooms and flying carpets
["nt_he_story_intro_E4"], # Turning water into wine
["nt_he_story_intro_E5"], # Lots of paperwork
["nt_he_story_E6"], # Vampire story
["nt_he_story_intro_E7"], # Moody's teaching methods
["nt_he_story_E8"], # Werewold story
["nt_he_story_intro_E9"], # Illegal love potion
["nt_he_story_intro_E10"], # Dumb game mechanics
["nt_he_story_E11"], # Metamorphmagi
["nt_he_story_E12"] # Invisible clothing charm
]
],
iconset = [["star_empty", "star_pink"]] # You have to add icons at least for first tier, the rest will be copied over automatically.
)
default ton_ev_hangouts_story_e1 = Event(id="ton_ev_hangouts_story_e1", label="nt_he_story_intro_E1", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e2 = Event(id="ton_ev_hangouts_story_e2", label="nt_he_story_intro_E2", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e3 = Event(id="ton_ev_hangouts_story_e3", label="nt_he_story_intro_E3", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e4 = Event(id="ton_ev_hangouts_story_e4", label="nt_he_story_intro_E4", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e5 = Event(id="ton_ev_hangouts_story_e5", label="nt_he_story_intro_E5", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e6 = Event(id="ton_ev_hangouts_story_e6", label="nt_he_story_E6", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e7 = Event(id="ton_ev_hangouts_story_e7", label="nt_he_story_intro_E7", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e8 = Event(id="ton_ev_hangouts_story_e8", label="nt_he_story_E8", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e9 = Event(id="ton_ev_hangouts_story_e9", label="nt_he_story_intro_E9", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e10 = Event(id="ton_ev_hangouts_story_e10", label="nt_he_story_intro_E10", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e11 = Event(id="ton_ev_hangouts_story_e11", label="nt_he_story_E11", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")
default ton_ev_hangouts_story_e12 = Event(id="ton_ev_hangouts_story_e12", label="nt_he_story_E12", autoenqueue=True, autodequeue=False, repeat=False, queue="ton_eventqueue_hangouts_story")

View File

@ -39,14 +39,14 @@ label summon_tonks:
jump tonks_favor_menu
# Fireplace Chats
"-Let's hang-" (icon="interface/icons/small/toast.webp") if (wine_ITEM.owned > 0 and nt_he_drink.counter == 0) or (firewhisky_ITEM.owned > 0 and nt_he_drink.counter > 0):
"-Let's hang-" (icon="interface/icons/small/toast.webp") if (wine_ITEM.owned > 0 and not states.ton.ev.hangouts.wine_intro) or firewhisky_ITEM.owned > 0:
jump tonks_hangout
"-Let's hang-" (icon="interface/icons/small/toast.webp", style="disabled") if (firewhisky_ITEM.owned < 1 and nt_he_drink.counter > 0):
"-Let's hang-" (icon="interface/icons/small/toast.webp", style="disabled") if (firewhisky_ITEM.owned < 1 and states.ton.ev.hangouts.wine_intro):
gen "(I don't have any firewhisky...)" ("base", xpos="far_left", ypos="head")
jump tonks_requests
"-Let's hang-" (icon="interface/icons/small/toast.webp", style="disabled") if (wine_ITEM.owned < 1 and nt_he_drink.counter == 0):
"-Let's hang-" (icon="interface/icons/small/toast.webp", style="disabled") if (wine_ITEM.owned < 1 and not states.ton.ev.hangouts.wine_intro):
gen "(I don't have any wine...)" ("base", xpos="far_left", ypos="head")
jump tonks_requests

View File

@ -29,6 +29,7 @@ default states.ton.ev.hangouts.favors_e2 = False
default states.ton.ev.random_strip.complete = False
default states.ton.ev.oral_practice.completed_once = False
default states.ton.ev.hands_on_lessons.completed_once = False
default states.ton.ev.hangouts.wine_intro = False
default ton_level_up = None