Merge pull request #1 from brrr2/min_players_fix
Fix for invalid values of MIN_PLAYERS.
This commit is contained in:
commit
e82920b57d
@ -2346,15 +2346,16 @@ def start(cli, nick, chann_, rest):
|
||||
return
|
||||
|
||||
if len(villagers) < var.MIN_PLAYERS:
|
||||
cli.msg(chan, "{0}: {1} or more players are required to play.".format(nick, var.MIN_PLAYERS))
|
||||
cli.msg(chan, "{0}: \u0002{1}\u0002 or more players are required to play.".format(nick, var.MIN_PLAYERS))
|
||||
return
|
||||
|
||||
for pcount in range(len(villagers), 3, -1):
|
||||
for pcount in range(len(villagers), var.MIN_PLAYERS - 1, -1):
|
||||
addroles = var.ROLES_GUIDE.get(pcount)
|
||||
if addroles:
|
||||
break
|
||||
|
||||
|
||||
else:
|
||||
cli.msg(chan, "{0}: No game settings are defined for \u0002{1}\u0002 player games.".format(nick, len(villagers)))
|
||||
return
|
||||
|
||||
if var.ORIGINAL_SETTINGS: # Custom settings
|
||||
while True:
|
||||
|
Loading…
x
Reference in New Issue
Block a user