mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
made the alien player limit a config option
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -455,11 +455,11 @@
|
||||
src << browse(null, "window=latechoices") //closes late choices window
|
||||
src << browse(null, "window=playersetup") //closes the player setup window
|
||||
|
||||
#define MAX_ALIEN_PLAYER_PERCENT 20
|
||||
|
||||
//cael - this should probably be moved to ticker or somewhere, but it's fine here for now
|
||||
//limits the number of alien players in a game
|
||||
/proc/GetAvailableAlienPlayerSlots()
|
||||
if(!config.limitalienplayers)
|
||||
return 9999
|
||||
|
||||
var/num_players = 0
|
||||
|
||||
//check new players
|
||||
@@ -472,4 +472,4 @@
|
||||
if(H.ckey)
|
||||
num_players++
|
||||
|
||||
return round(num_players * (MAX_ALIEN_PLAYER_PERCENT / 100))
|
||||
return round(num_players * (config.alien_to_human_ratio / 100))
|
||||
|
||||
Reference in New Issue
Block a user