mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-07 08:02:49 +00:00
Normal revs that get borged will be unrev'd. Added a cooldown to the captains message system. Cleaned up the Coms computer slightly. Fixed a few runtimes. More blob work. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2207 316c924e-a436-60f5-8080-3fe189b3f50e
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
/datum/game_mode/traitor/changeling
|
|
name = "traitor+changeling"
|
|
config_tag = "traitorchan"
|
|
traitors_possible = 3 //hard limit on traitors if scaling is turned off
|
|
required_players = 20
|
|
required_enemies = 2
|
|
|
|
/datum/game_mode/traitor/changeling/announce()
|
|
world << "<B>The current game mode is - Traitor+Changeling!</B>"
|
|
world << "<B>There is an alien creature on the station along with some syndicate operatives out for their own gain! Do not let the changeling and the traitors succeed!</B>"
|
|
|
|
|
|
/datum/game_mode/traitor/changeling/pre_setup()
|
|
var/list/datum/mind/possible_changelings = get_players_for_role(BE_CHANGELING)
|
|
|
|
for(var/datum/mind/player in possible_changelings)
|
|
for(var/job in restricted_jobs)//Removing robots from the list
|
|
if(player.assigned_role == job)
|
|
possible_changelings -= player
|
|
|
|
if(possible_changelings.len>0)
|
|
var/datum/mind/changeling = pick(possible_changelings)
|
|
//possible_changelings-=changeling
|
|
changelings += changeling
|
|
modePlayer += changelings
|
|
return ..()
|
|
else
|
|
return 0
|
|
|
|
/datum/game_mode/traitor/changeling/post_setup()
|
|
for(var/datum/mind/changeling in changelings)
|
|
grant_changeling_powers(changeling.current)
|
|
changeling.special_role = "Changeling"
|
|
forge_changeling_objectives(changeling)
|
|
greet_changeling(changeling)
|
|
..()
|
|
return |