Professional Documents
Culture Documents
Module Rpym
Module Rpym
Module Rpym
class Halloween2022Module(Module):
id="halloween_2022"
subscribe_on_events=["time_update", "change_location"]
def is_halloween(self):
curr_date = time_lib.strftime("%d-%m")
return curr_date in ["30-10", "31-10", "1-11"]
def on_init(self):
Quests.addQuest(Quest.from_json("halloween_2022/quest.json"))