Merge pull request #156 from Abi79/master

Changed the number of changelings to 1 per 10 playas
This commit is contained in:
CIB
2011-12-27 05:07:16 -08:00
+2 -3
View File
@@ -32,8 +32,7 @@
waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds)
waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds)
changeling_min = 2 //lower bound on number of traitors, assuming there are this many players
changeling_max = 3 //upper bound on number of traitors
var/const/scaling_coeff = 10.0 //how many players per changeling
/datum/game_mode/changeling/announce()
world << "<B>The current game mode is - Changeling!</B>"
@@ -42,7 +41,7 @@
/datum/game_mode/changeling/pre_setup()
var/list/datum/mind/possible_changelings = get_players_for_role(BE_CHANGELING)
changeling_amount = rand(changeling_min, changeling_max)
changeling_amount = max(1, round( num_players() / scaling_coeff) + 1)
for(var/datum/mind/player in possible_changelings)
for(var/job in restricted_jobs)//Removing robots from the list