mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Station Traits * Update positive_traits.dm * Test * Revert "Test" This reverts commitc99e3e9db5. * Update sound.dm * Update code/datums/station_traits/positive_traits.dm Co-authored-by: Redmoogle <dakotamew@gmail.com> * Update code/__HELPERS/priority_announce.dm Co-authored-by: Redmoogle <dakotamew@gmail.com> * Update ai_laws.dm * Update traits.dm * Update neutral_traits.dm * Update negative_traits.dm * Negative bot trait * Update negative_traits.dm * Adds an admin log hpoefully * Update station.dm * Update station.dm * Update station.dm * Update station.dm * Update station.dm * Update station.dm * Update station.dm * Removes custom alert message for now * Update station.dm * Update game_mode.dm * Update extended.dm * Update game_mode.dm * Update dynamic.dm * Update dynamic.dm * Update extended.dm * Update game_mode.dm * Update dynamic.dm * Update game_mode.dm * Update dynamic.dm * Update extended.dm * Revert "Update extended.dm" This reverts commit2235319bb3. * Revert "Update dynamic.dm" This reverts commit6af1fbaf60. * Revert "Update game_mode.dm" This reverts commitdd84d504dc. * Try again * Update game_mode.dm * Let's test making them more common * Medbot update * Update negative_traits.dm * Update negative_traits.dm * tHNE great f * Update traits.dm * Update job.dm * Update negative_traits.dm Co-authored-by: Redmoogle <dakotamew@gmail.com>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
///Base class of station traits. These are used to influence rounds in one way or the other by influencing the levers of the station.
|
|
/datum/station_trait
|
|
///Name of the trait
|
|
var/name = "unnamed station trait"
|
|
///The type of this trait. Used to classify how this trait influences the station
|
|
var/trait_type = STATION_TRAIT_NEUTRAL
|
|
///Whether or not this trait uses process()
|
|
var/trait_processes = FALSE
|
|
///Chance relative to other traits of its type to be picked
|
|
var/weight = 10
|
|
///Does this trait show in the centcom report?
|
|
var/show_in_report = FALSE
|
|
///What message to show in the centcom report?
|
|
var/report_message
|
|
///What code-trait does this station trait give? gives none if null
|
|
var/trait_to_give
|
|
///What traits are incompatible with this one?
|
|
var/blacklist
|
|
|
|
|
|
/datum/station_trait/New()
|
|
. = ..()
|
|
SSticker.OnRoundstart(CALLBACK(src, .proc/on_round_start))
|
|
if(trait_processes)
|
|
START_PROCESSING(SSstation, src)
|
|
if(trait_to_give)
|
|
ADD_TRAIT(SSstation, trait_to_give, STATION_TRAIT)
|
|
|
|
///Proc ran when round starts. Use this for roundstart effects.
|
|
/datum/station_trait/proc/on_round_start()
|
|
return
|
|
|
|
///type of info the centcom report has on this trait, if any.
|
|
/datum/station_trait/proc/get_report()
|
|
return "[name] - [report_message]" |