SPLURT Station 13 - Modules - TypesVar Details - Proc Details

station_trait

Base class of station traits. These are used to influence rounds in one way or the other by influencing the levers of the station.

Vars

blacklistWhat traits are incompatible with this one?
can_revertWhether or not this trait can be reverted by an admin
forceWhether this trait is always enabled; generally used for debugging
lobby_buttonsLobby buttons controlled by this trait
nameName of the trait
report_messageWhat message to show in the centcom report?
show_in_reportDoes this trait show in the centcom report?
sign_up_buttonIf set to true we'll show a button on the lobby to notify people about this trait
trait_flagsExtra flags for station traits such as it being abstract
trait_processesWhether or not this trait uses process()
trait_to_giveWhat code-trait does this station trait give? gives none if null
trait_typeThe type of this trait. Used to classify how this trait influences the station
weightChance relative to other traits of its type to be picked

Procs

can_display_lobby_buttonReturn TRUE if we want to show a lobby button, by default we assume we don't want it after the round begins
destroy_lobby_buttonsRemove all of our active lobby buttons
get_reporttype of info the centcom report has on this trait, if any.
on_lobby_button_clickCalled when our lobby button is clicked on
on_lobby_button_destroyedDon't hold references to deleted buttons
on_lobby_button_update_iconCalled when our lobby button tries to update its appearance
on_round_startProc ran when round starts. Use this for roundstart effects. By default we clean up our buttons here.
revertWill attempt to revert the station trait, used by admins.
setup_lobby_buttonApply any additional handling we need to our lobby button

Var Details

blacklist

What traits are incompatible with this one?

can_revert

Whether or not this trait can be reverted by an admin

force

Whether this trait is always enabled; generally used for debugging

lobby_buttons

Lobby buttons controlled by this trait

name

Name of the trait

report_message

What message to show in the centcom report?

show_in_report

Does this trait show in the centcom report?

sign_up_button

If set to true we'll show a button on the lobby to notify people about this trait

trait_flags

Extra flags for station traits such as it being abstract

trait_processes

Whether or not this trait uses process()

trait_to_give

What code-trait does this station trait give? gives none if null

trait_type

The type of this trait. Used to classify how this trait influences the station

weight

Chance relative to other traits of its type to be picked

Proc Details

can_display_lobby_button

Return TRUE if we want to show a lobby button, by default we assume we don't want it after the round begins

destroy_lobby_buttons

Remove all of our active lobby buttons

get_report

type of info the centcom report has on this trait, if any.

on_lobby_button_click

Called when our lobby button is clicked on

on_lobby_button_destroyed

Don't hold references to deleted buttons

on_lobby_button_update_icon

Called when our lobby button tries to update its appearance

on_round_start

Proc ran when round starts. Use this for roundstart effects. By default we clean up our buttons here.

revert

Will attempt to revert the station trait, used by admins.

setup_lobby_button

Apply any additional handling we need to our lobby button