From 997c1e63ad418333eb9fab61a9d44791df5fd9ab Mon Sep 17 00:00:00 2001 From: cib Date: Sat, 2 Mar 2013 19:59:16 +0100 Subject: [PATCH] Fix for too many changelings. --- code/game/gamemodes/changeling/changeling.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/changeling/changeling.dm b/code/game/gamemodes/changeling/changeling.dm index da377f25131..6a3bbd19c82 100644 --- a/code/game/gamemodes/changeling/changeling.dm +++ b/code/game/gamemodes/changeling/changeling.dm @@ -10,7 +10,7 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" restricted_jobs = list("AI", "Cyborg") protected_jobs = list("Security Officer", "Warden", "Detective", "Head of Security", "Captain") required_players = 2 - required_players_secret = 5 + required_players_secret = 10 required_enemies = 1 recommended_enemies = 4 @@ -37,7 +37,7 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" var/const/waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds) var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds) - var/const/changeling_amount = 4 + var/changeling_amount = 4 /datum/game_mode/changeling/announce() world << "The current game mode is - Changeling!" @@ -55,6 +55,8 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" if(player.assigned_role == job) possible_changelings -= player + changeling_amount = 1 + round(num_players() / 10) + if(possible_changelings.len>0) for(var/i = 0, i < changeling_amount, i++) if(!possible_changelings.len) break