small tweaks in !fgame
This commit is contained in:
parent
6460124b3f
commit
c4d6911954
@ -16,6 +16,8 @@ def connect_callback(cli):
|
|||||||
var.PHASE = "none"
|
var.PHASE = "none"
|
||||||
var.PLAYERS = []
|
var.PLAYERS = []
|
||||||
|
|
||||||
|
var.LAST_STATS = None
|
||||||
|
|
||||||
|
|
||||||
@cmd("join")
|
@cmd("join")
|
||||||
def join(cli, nick, chan, rest):
|
def join(cli, nick, chan, rest):
|
||||||
|
@ -114,7 +114,7 @@ def game_mode(name):
|
|||||||
|
|
||||||
CHANGEABLE_ROLES = { "seers" : INDEX_OF_ROLE["seer"],
|
CHANGEABLE_ROLES = { "seers" : INDEX_OF_ROLE["seer"],
|
||||||
"wolves" : INDEX_OF_ROLE["wolf"],
|
"wolves" : INDEX_OF_ROLE["wolf"],
|
||||||
"cursed villager" : INDEX_OF_ROLE["cursed villager"],
|
"cursed" : INDEX_OF_ROLE["cursed villager"],
|
||||||
"drunks" : INDEX_OF_ROLE["village drunk"],
|
"drunks" : INDEX_OF_ROLE["village drunk"],
|
||||||
"harlots" : INDEX_OF_ROLE["harlot"],
|
"harlots" : INDEX_OF_ROLE["harlot"],
|
||||||
"traitors" : INDEX_OF_ROLE["traitor"],
|
"traitors" : INDEX_OF_ROLE["traitor"],
|
||||||
@ -130,10 +130,11 @@ class Normal(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Example !game roles=wolves:1,seers:0
|
|
||||||
# TODO: implement game modes
|
# TODO: implement game modes
|
||||||
@game_mode("roles")
|
@game_mode("roles")
|
||||||
class ChangedRolesMode(object):
|
class ChangedRolesMode(object):
|
||||||
|
"""Example: !game roles=wolves:1,seers:0,angels:1"""
|
||||||
|
|
||||||
def __init__(self, arg):
|
def __init__(self, arg):
|
||||||
self.ROLES_GUIDE = ROLES_GUIDE.copy()
|
self.ROLES_GUIDE = ROLES_GUIDE.copy()
|
||||||
lx = list(ROLES_GUIDE[None])
|
lx = list(ROLES_GUIDE[None])
|
||||||
|
Loading…
Reference in New Issue
Block a user