Remove DISABLED_GAMEMODES

After a discussion in ##werewolf-dev, we've decided that if a majority
of the players wants a game mode, there's no reason not to allow it.
If a game mode is broken, it can be commented out in the code.
This commit is contained in:
nyuszika7h 2015-06-13 17:25:23 +02:00
parent 93e842f9aa
commit fb964e370a
2 changed files with 3 additions and 6 deletions

View File

@ -24,9 +24,6 @@ ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob
OWNERS_ACCOUNTS = ("1owner_acc",)
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
# Players can't vote for these game modes, but they can still be forced with !fgame.
DISABLED_GAMEMODES = []
ALT_CHANNELS = ""
ALLOWED_ALT_CHANNELS_COMMANDS = []

View File

@ -928,7 +928,7 @@ def join(cli, nick, chan, rest):
if not match:
return
gamemode = match
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
if gamemode != "roles":
var.GAMEMODE_VOTES[nick] = gamemode
cli.msg(chan, "\u0002{0}\u0002 votes for the \u0002{1}\u0002 game mode.".format(nick, gamemode))
@ -7210,7 +7210,7 @@ def game(cli, nick, chan, rest):
return
gamemode = match
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
if gamemode != "roles":
var.GAMEMODE_VOTES[nick] = gamemode
cli.msg(chan, "\u0002{0}\u0002 votes for the \u0002{1}\u0002 game mode.".format(nick, gamemode))
else:
@ -7219,7 +7219,7 @@ def game(cli, nick, chan, rest):
def game_help(args=""):
return "Votes to make a specific game mode more likely. Available game mode setters: " +\
", ".join("\u0002{0}\u0002".format(gamemode) if len(var.list_players()) in range(var.GAME_MODES[gamemode][1], var.GAME_MODES[gamemode][2]+1)
else gamemode for gamemode in var.GAME_MODES.keys() if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES)
else gamemode for gamemode in var.GAME_MODES.keys() if gamemode != "roles")
game.__doc__ = game_help