/datum/random_fact

Vars | |
check_human | Whether this statistic can apply to humans |
---|---|
check_xeno | Whether this statistic can apply to xenos |
faction_filter | Any factions to filter for this statistic |
faction_filter_blacklist | Whether the faction_filter is a blacklist (otherwise whitelist) |
min_required | The min stat required to be noted |
prob_check_dead | The prob dead are checked for this statistic |
role_filter | Any roles to filter for this statistic |
role_filter_blacklist | Whether the role_filter is a blacklist (otherwise whitelist) |
statistic_name | The noun for this statistic in the announcement |
statistic_verb | The verb for this statistic in the announcement |
Procs | |
announce | Announces this random_fact to world if possible (returns TRUE if sent) |
check_death_ignored | Returns TRUE if the provided datum/entity/statistic/death is ignored via faction/role filters |
check_mob_ignored | Returns TRUE if the provided mob is ignored via faction/role filters |
death_grab_stat | Override this to specify what value on a death to get for this statistic |
find_death_to_report | Returns the /datum/entity/statistic/death for a random still connected player that has min_required for this stat |
find_living_to_report | Returns the /mob/living/carbon for a random still connected player that has min_required for this stat |
generate_announcement_message | Attempts to get a statistic to report on and returns the string of the message otherwise null if no one met requirements |
life_grab_stat | Override this to specify what value on a mob to get for this statistic |
Var Details
check_human

Whether this statistic can apply to humans
check_xeno

Whether this statistic can apply to xenos
faction_filter

Any factions to filter for this statistic
faction_filter_blacklist

Whether the faction_filter is a blacklist (otherwise whitelist)
min_required

The min stat required to be noted
prob_check_dead

The prob dead are checked for this statistic
role_filter

Any roles to filter for this statistic
role_filter_blacklist

Whether the role_filter is a blacklist (otherwise whitelist)
statistic_name

The noun for this statistic in the announcement
statistic_verb

The verb for this statistic in the announcement
Proc Details
announce
Announces this random_fact to world if possible (returns TRUE if sent)
check_death_ignored
Returns TRUE if the provided datum/entity/statistic/death is ignored via faction/role filters
check_mob_ignored
Returns TRUE if the provided mob is ignored via faction/role filters
death_grab_stat
Override this to specify what value on a death to get for this statistic
find_death_to_report
Returns the /datum/entity/statistic/death for a random still connected player that has min_required for this stat
find_living_to_report
Returns the /mob/living/carbon for a random still connected player that has min_required for this stat
generate_announcement_message
Attempts to get a statistic to report on and returns the string of the message otherwise null if no one met requirements
life_grab_stat
Override this to specify what value on a mob to get for this statistic