storyteller 
The storyteller datum. He operates with the SSgamemode data to run events
Vars | |
| antag_divisor | The antag divisor, the higher it is the lower the antag cap gets. Basically means "for every antag_divisor crew, spawn 1 antag". |
|---|---|
| cost_variance | Percentual variance in cost of the purchased events. Effectively affects frequency of events |
| desc | Description of our storyteller. |
| disable_distribution | Whether the storyteller has the distributions disabled. Important for ghost storytellers |
| event_repetition_multiplier | This is the multiplier for repetition penalty in event weight. The lower the harsher it is |
| guarantees_roundstart_crewset | Whether the storyteller guaranteed a crewset roll (crew antag) on roundstart. (Still needs to pass pop check) |
| name | Name of our storyteller. |
| population_max | If defined, it will not be votable if exceeding the population |
| population_min | If defined, will need a minimum of population to be votable |
| roundstart_points_variance | Percentual variance in the budget of roundstart points. |
| starting_point_multipliers | Multipliers for starting points. // TODO - Rewrite into some variation |
| storyteller_type | Two tellers of the same intensity group can't run in 2 consecutive rounds |
| tag_multipliers | Multipliers of weight to apply for each tag of an event. |
| track_data | The datum containing track size data |
| votable | Whether people can vote for the storyteller |
| welcome_text | Text that the players will be greeted with when this storyteller is chosen. |
Procs | |
| add_points | Add points to all tracks while respecting the multipliers. |
| buy_event | Find and buy a valid event from a track. |
| calculate_weights | Calculates the weights of the events from a passed track. |
| find_and_buy_event_from_track | Find and buy a valid event from a track. |
| handle_tracks | Goes through every track of the gamemode and checks if it passes a threshold to buy an event, if does, buys one. |
Var Details
antag_divisor 
The antag divisor, the higher it is the lower the antag cap gets. Basically means "for every antag_divisor crew, spawn 1 antag".
cost_variance 
Percentual variance in cost of the purchased events. Effectively affects frequency of events
desc 
Description of our storyteller.
disable_distribution 
Whether the storyteller has the distributions disabled. Important for ghost storytellers
event_repetition_multiplier 
This is the multiplier for repetition penalty in event weight. The lower the harsher it is
guarantees_roundstart_crewset 
Whether the storyteller guaranteed a crewset roll (crew antag) on roundstart. (Still needs to pass pop check)
name 
Name of our storyteller.
population_max 
If defined, it will not be votable if exceeding the population
population_min 
If defined, will need a minimum of population to be votable
roundstart_points_variance 
Percentual variance in the budget of roundstart points.
starting_point_multipliers 
Multipliers for starting points. // TODO - Rewrite into some variation
storyteller_type 
Two tellers of the same intensity group can't run in 2 consecutive rounds
tag_multipliers 
Multipliers of weight to apply for each tag of an event.
track_data 
The datum containing track size data
votable 
Whether people can vote for the storyteller
welcome_text 
Text that the players will be greeted with when this storyteller is chosen.
Proc Details
add_points
Add points to all tracks while respecting the multipliers.
buy_event
Find and buy a valid event from a track.
calculate_weights
Calculates the weights of the events from a passed track.
find_and_buy_event_from_track
Find and buy a valid event from a track.
handle_tracks
Goes through every track of the gamemode and checks if it passes a threshold to buy an event, if does, buys one.
Additionally updates static ui data once it's done incase event track data has changed