Events/transition_day_end

From Werewolf Wiki
Jump to navigation Jump to search

The transition_day_end event is called after all night events have been processed (kills, etc.) but before daytime variables are reset. It can be used to inject an additional phase in between night and day.

Event callback

def on_transition_day_end(event: Event, cli: IRCClient, var: module) -> None
  • prevent_default has no effect for this event
  • event: The event object
  • cli: The IRC connection
  • var: Reference to the src.settings module

Event data

{
    "begin_day": func(cli: IRCClient) -> None
}

The begin_day function can be overridden to inject an additional phase between night and day. Ensure to keep around the original begin_day as a reference so that day can be started after said custom phase completes.