Daedalus Dock - Modules - TypesVar Details - Proc Details

antagonist_selector

Vars

antag_datumTypepath of the antagonist datum to hand out at round start
antag_flagThe antagonist flag to check player prefs for, for example ROLE_WIZARD
antag_flag_to_ban_checkIf a role is to be considered another for the purpose of banning.
antag_preferenceIf set, will check this preference instead of antag_flag.
candidatesMinds that may become an antagonist.
exclusive_rolesIf set, rule will only accept candidates from those roles. If on a roundstart ruleset, requires the player to have the correct antag pref enabled and any of the possible roles enabled.
protected_jobsA list of jobs that should not be this antagonist
required_jobsJobs required for this round type to function, k:v list of JOB_TITLE : NUM_JOB. list(list(cap=1),list(hos=1,sec=2)) translates to one captain OR one hos and two secmans
restricted_jobsA list of jobs cannot physically be this antagonist, typically AI and borgs.
selected_antagonistsMinds selected for antagonist
selected_mobsMobs selected for antagonist. Cleared out after the selection process.

Procs

decide_antagonistsSelects minds to become an antagonist.
give_antag_datumsSends out antagonist datums.
post_setupCalled by game_mode/proc/post_setup. Used for cleaning up random garbage.
select_antagonistAdd a mind to pre_setup_antags and perform any work on it.
trim_candidatesReturn a list of players that have our antag flag checked in prefs and are not banned, among other criteria.

Var Details

antag_datum

Typepath of the antagonist datum to hand out at round start

antag_flag

The antagonist flag to check player prefs for, for example ROLE_WIZARD

antag_flag_to_ban_check

If a role is to be considered another for the purpose of banning.

antag_preference

If set, will check this preference instead of antag_flag.

candidates

Minds that may become an antagonist.

exclusive_roles

If set, rule will only accept candidates from those roles. If on a roundstart ruleset, requires the player to have the correct antag pref enabled and any of the possible roles enabled.

protected_jobs

A list of jobs that should not be this antagonist

required_jobs

Jobs required for this round type to function, k:v list of JOB_TITLE : NUM_JOB. list(list(cap=1),list(hos=1,sec=2)) translates to one captain OR one hos and two secmans

restricted_jobs

A list of jobs cannot physically be this antagonist, typically AI and borgs.

selected_antagonists

Minds selected for antagonist

selected_mobs

Mobs selected for antagonist. Cleared out after the selection process.

Proc Details

decide_antagonists

Selects minds to become an antagonist.

give_antag_datums

Sends out antagonist datums.

post_setup

Called by game_mode/proc/post_setup. Used for cleaning up random garbage.

select_antagonist

Add a mind to pre_setup_antags and perform any work on it.

trim_candidates

Return a list of players that have our antag flag checked in prefs and are not banned, among other criteria.