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:
parent
93e842f9aa
commit
fb964e370a
@ -24,9 +24,6 @@ ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob
|
|||||||
OWNERS_ACCOUNTS = ("1owner_acc",)
|
OWNERS_ACCOUNTS = ("1owner_acc",)
|
||||||
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_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 = ""
|
ALT_CHANNELS = ""
|
||||||
|
|
||||||
ALLOWED_ALT_CHANNELS_COMMANDS = []
|
ALLOWED_ALT_CHANNELS_COMMANDS = []
|
||||||
|
@ -928,7 +928,7 @@ def join(cli, nick, chan, rest):
|
|||||||
if not match:
|
if not match:
|
||||||
return
|
return
|
||||||
gamemode = match
|
gamemode = match
|
||||||
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
|
if gamemode != "roles":
|
||||||
var.GAMEMODE_VOTES[nick] = gamemode
|
var.GAMEMODE_VOTES[nick] = gamemode
|
||||||
cli.msg(chan, "\u0002{0}\u0002 votes for the \u0002{1}\u0002 game mode.".format(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
|
return
|
||||||
gamemode = match
|
gamemode = match
|
||||||
|
|
||||||
if gamemode != "roles" and gamemode not in botconfig.DISABLED_GAMEMODES:
|
if gamemode != "roles":
|
||||||
var.GAMEMODE_VOTES[nick] = gamemode
|
var.GAMEMODE_VOTES[nick] = gamemode
|
||||||
cli.msg(chan, "\u0002{0}\u0002 votes for the \u0002{1}\u0002 game mode.".format(nick, gamemode))
|
cli.msg(chan, "\u0002{0}\u0002 votes for the \u0002{1}\u0002 game mode.".format(nick, gamemode))
|
||||||
else:
|
else:
|
||||||
@ -7219,7 +7219,7 @@ def game(cli, nick, chan, rest):
|
|||||||
def game_help(args=""):
|
def game_help(args=""):
|
||||||
return "Votes to make a specific game mode more likely. Available game mode setters: " +\
|
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)
|
", ".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
|
game.__doc__ = game_help
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user