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. |
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. |
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. |
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.
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.
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.
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.