station_trait ![code/datums/station_traits/_station_trait.dm 5](git.png)
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 | |
abstract_type | Trait should not be instantiated in a round if its type matches this type |
---|---|
blacklist | What traits are incompatible with this one? |
can_revert | Whether or not this trait can be reverted by an admin |
cost | The cost of the trait, which is removed from the budget. |
dynamic_category | Which ruleset flags to allow dynamic to use. NONE to disregard |
dynamic_threat_id | The ID that we look for in dynamic.json. Not synced with 'name' because I can already see this go wrong |
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 |
threat_reduction | If ran during dynamic, do we reduce the total threat? Will be overridden by config if set |
trait_flags | Extra flags for station traits such as it being abstract, planetary or space only |
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 |
Procs | |
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_decal_color | Return a color for the decals, if any |
get_pulsar_message | Called when overriding a pulsar star command report message. |
get_report | Returns the type of info the centcom report has on this trait, if any. |
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. |
Var Details
abstract_type ![code/datums/station_traits/_station_trait.dm 41](git.png)
Trait should not be instantiated in a round if its type matches this type
blacklist ![code/datums/station_traits/_station_trait.dm 25](git.png)
What traits are incompatible with this one?
can_revert ![code/datums/station_traits/_station_trait.dm 29](git.png)
Whether or not this trait can be reverted by an admin
cost ![code/datums/station_traits/_station_trait.dm 15](git.png)
The cost of the trait, which is removed from the budget.
dynamic_category ![code/datums/station_traits/_station_trait.dm 39](git.png)
Which ruleset flags to allow dynamic to use. NONE to disregard
dynamic_threat_id ![code/datums/station_traits/_station_trait.dm 35](git.png)
The ID that we look for in dynamic.json. Not synced with 'name' because I can already see this go wrong
force ![code/datums/station_traits/_station_trait.dm 17](git.png)
Whether this trait is always enabled; generally used for debugging
lobby_buttons ![code/datums/station_traits/_station_trait.dm 33](git.png)
Lobby buttons controlled by this trait
name ![code/datums/station_traits/_station_trait.dm 7](git.png)
Name of the trait
report_message ![code/datums/station_traits/_station_trait.dm 21](git.png)
What message to show in the centcom report?
show_in_report ![code/datums/station_traits/_station_trait.dm 19](git.png)
Does this trait show in the centcom report?
sign_up_button ![code/datums/station_traits/_station_trait.dm 31](git.png)
If set to true we'll show a button on the lobby to notify people about this trait
threat_reduction ![code/datums/station_traits/_station_trait.dm 37](git.png)
If ran during dynamic, do we reduce the total threat? Will be overridden by config if set
trait_flags ![code/datums/station_traits/_station_trait.dm 27](git.png)
Extra flags for station traits such as it being abstract, planetary or space only
trait_processes ![code/datums/station_traits/_station_trait.dm 11](git.png)
Whether or not this trait uses process()
trait_to_give ![code/datums/station_traits/_station_trait.dm 23](git.png)
What code-trait does this station trait give? gives none if null
trait_type ![code/datums/station_traits/_station_trait.dm 9](git.png)
The type of this trait. Used to classify how this trait influences the station
weight ![code/datums/station_traits/_station_trait.dm 13](git.png)
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_decal_color
Return a color for the decals, if any
get_pulsar_message
Called when overriding a pulsar star command report message.
get_report
Returns the type of info the centcom report has on this trait, if any.
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.