mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
* cleanup of _HELPERS/game.dm (#61859) some more cleanup, game.dm this time * cleanup of _HELPERS/game.dm * E * Update oneclickantag.dm Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
36 lines
1.1 KiB
Plaintext
Executable File
36 lines
1.1 KiB
Plaintext
Executable File
/datum/round_event_control/abductor
|
|
name = "Abductors"
|
|
typepath = /datum/round_event/ghost_role/abductor
|
|
weight = 0 //SKYRAT EDIT CHANGE
|
|
max_occurrences = 1
|
|
min_players = 20
|
|
dynamic_should_hijack = TRUE
|
|
|
|
/datum/round_event/ghost_role/abductor
|
|
minimum_required = 2
|
|
role_name = "abductor team"
|
|
fakeable = FALSE //Nothing to fake here
|
|
|
|
/datum/round_event/ghost_role/abductor/spawn_role()
|
|
var/list/mob/dead/observer/candidates = get_candidates(ROLE_ABDUCTOR, ROLE_ABDUCTOR)
|
|
|
|
if(candidates.len < 2)
|
|
return NOT_ENOUGH_PLAYERS
|
|
|
|
var/mob/living/carbon/human/agent = make_body(pick_n_take(candidates))
|
|
var/mob/living/carbon/human/scientist = make_body(pick_n_take(candidates))
|
|
|
|
var/datum/team/abductor_team/T = new
|
|
if(T.team_number > ABDUCTOR_MAX_TEAMS)
|
|
return MAP_ERROR
|
|
|
|
log_game("[key_name(scientist)] has been selected as [T.name] abductor scientist.")
|
|
log_game("[key_name(agent)] has been selected as [T.name] abductor agent.")
|
|
|
|
scientist.mind.add_antag_datum(/datum/antagonist/abductor/scientist, T)
|
|
agent.mind.add_antag_datum(/datum/antagonist/abductor/agent, T)
|
|
|
|
spawned_mobs += list(agent, scientist)
|
|
|
|
return SUCCESSFUL_SPAWN
|