events 
Vars | |
| control | list of all datum/round_event_control. Used for selecting events based on weight and occurrences. |
|---|---|
| currentrun | cache of currently running events, for lag checking. |
| events_by_name | assoc list of all datum/round_event_control, ordered by name. name => event |
| frequency_lower | The lower bound for how soon another random event can be scheduled. |
| frequency_upper | The upper bound for how soon another random event can be scheduled. |
| nonrunning_events_by_name | assoc list of all nonrunning event types, ordered by name. name => event typepath |
| running | list of all existing /datum/round_event currently being run. |
| scheduled | The next world.time that a naturally occurring random event can be selected. |
| wizardmode | Will wizard events be included in the event pool? |
Procs | |
| TriggerEvent | Does the last pre-flight checks for the passed event, and runs it if the event is ready. |
| resetFrequency | Sets the event frequency bounds back to their initial value. |
| setup_config | Takes the events config json and applies any var edits made there to their respective event. |
| spawnEvent | Selects a random event based on whether it can occur and its 'weight'(probability) |
| toggleWizardmode | Toggles whether or not wizard events will be in the event pool, and sends a notification to the admins. |
Var Details
control 
list of all datum/round_event_control. Used for selecting events based on weight and occurrences.
currentrun 
cache of currently running events, for lag checking.
events_by_name 
assoc list of all datum/round_event_control, ordered by name. name => event
frequency_lower 
The lower bound for how soon another random event can be scheduled.
frequency_upper 
The upper bound for how soon another random event can be scheduled.
nonrunning_events_by_name 
assoc list of all nonrunning event types, ordered by name. name => event typepath
running 
list of all existing /datum/round_event currently being run.
scheduled 
The next world.time that a naturally occurring random event can be selected.
wizardmode 
Will wizard events be included in the event pool?
Proc Details
TriggerEvent
Does the last pre-flight checks for the passed event, and runs it if the event is ready.
resetFrequency
Sets the event frequency bounds back to their initial value.
setup_config
Takes the events config json and applies any var edits made there to their respective event.
spawnEvent
Selects a random event based on whether it can occur and its 'weight'(probability)
Arguments:
- excluded_event - The event path we will be foregoing, if present.
toggleWizardmode
Toggles whether or not wizard events will be in the event pool, and sends a notification to the admins.