mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 14:07:51 +01:00
Merge pull request #156 from Abi79/master
Changed the number of changelings to 1 per 10 playas
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user