pep8
This commit is contained in:
parent
e03c32926e
commit
6e87f41dcc
@ -1,10 +1,23 @@
|
|||||||
{
|
{
|
||||||
"author" : ["Bobloy"],
|
"author": [
|
||||||
"bot_version" : [3,0,0],
|
"Bobloy"
|
||||||
|
],
|
||||||
|
"bot_version": [
|
||||||
|
3,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
"description": "Customizable Werewolf Game",
|
"description": "Customizable Werewolf Game",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"install_msg": "Thank you for installing Werewolf! Use [p]wwset to run inital setup",
|
"install_msg": "Thank you for installing Werewolf! Use [p]wwset to run inital setup",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"short": "Werewolf Game",
|
"short": "Werewolf Game",
|
||||||
"tags" : ["mafia", "werewolf", "party", "fun", "game", "bobloy"]
|
"tags": [
|
||||||
|
"mafia",
|
||||||
|
"werewolf",
|
||||||
|
"party",
|
||||||
|
"fun",
|
||||||
|
"game",
|
||||||
|
"bobloy"
|
||||||
|
]
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
from werewolf.role import Role
|
from werewolf.role import Role
|
||||||
|
|
||||||
class Seer(Role):
|
|
||||||
|
|
||||||
|
class Seer(Role):
|
||||||
rand_choice = False # Determines if it can be picked as a random role (False for unusually disruptive roles)
|
rand_choice = False # Determines if it can be picked as a random role (False for unusually disruptive roles)
|
||||||
category = [1, 2] # List of enrolled categories (listed above)
|
category = [1, 2] # List of enrolled categories (listed above)
|
||||||
alignment = 1 # 1: Town, 2: Werewolf, 3: Neutral
|
alignment = 1 # 1: Town, 2: Werewolf, 3: Neutral
|
||||||
@ -36,19 +36,19 @@ class Seer(Role):
|
|||||||
# """
|
# """
|
||||||
# See Game class for event guide
|
# See Game class for event guide
|
||||||
# """
|
# """
|
||||||
|
#
|
||||||
# await self.action_list[event][0](data)
|
# await self.action_list[event][0](data)
|
||||||
|
#
|
||||||
|
#
|
||||||
# async def assign_player(self, player):
|
# async def assign_player(self, player):
|
||||||
# """
|
# """
|
||||||
# Give this role a player
|
# Give this role a player
|
||||||
# Can be used after the game has started (Cult, Mason, other role swap)
|
# Can be used after the game has started (Cult, Mason, other role swap)
|
||||||
# """
|
# """
|
||||||
|
#
|
||||||
# player.role = self
|
# player.role = self
|
||||||
# self.player = player
|
# self.player = player
|
||||||
|
#
|
||||||
# async def get_alignment(self, source=None):
|
# async def get_alignment(self, source=None):
|
||||||
# """
|
# """
|
||||||
# Interaction for power access of team (Village, Werewolf, Other)
|
# Interaction for power access of team (Village, Werewolf, Other)
|
||||||
@ -79,19 +79,19 @@ class Seer(Role):
|
|||||||
|
|
||||||
# async def _at_game_start(self, data=None):
|
# async def _at_game_start(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_day_start(self, data=None):
|
# async def _at_day_start(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_voted(self, target=None):
|
# async def _at_voted(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_kill(self, target=None):
|
# async def _at_kill(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_hang(self, target=None):
|
# async def _at_hang(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_day_end(self):
|
# async def _at_day_end(self):
|
||||||
# pass
|
# pass
|
||||||
|
|
||||||
@ -99,7 +99,6 @@ class Seer(Role):
|
|||||||
await self.game.generate_targets(self.player.member)
|
await self.game.generate_targets(self.player.member)
|
||||||
await self.player.send_dm("{}\n**Pick a target to see tonight**\n")
|
await self.player.send_dm("{}\n**Pick a target to see tonight**\n")
|
||||||
|
|
||||||
|
|
||||||
async def _at_night_end(self, data=None):
|
async def _at_night_end(self, data=None):
|
||||||
target = await self.game.visit(self.see_target)
|
target = await self.game.visit(self.see_target)
|
||||||
|
|
||||||
@ -116,7 +115,7 @@ class Seer(Role):
|
|||||||
|
|
||||||
# async def _at_visit(self, data=None):
|
# async def _at_visit(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def kill(self, source):
|
# async def kill(self, source):
|
||||||
# """
|
# """
|
||||||
# Called when someone is trying to kill you!
|
# Called when someone is trying to kill you!
|
||||||
@ -124,7 +123,7 @@ class Seer(Role):
|
|||||||
# self.alive is now set to False, set to True to stay alive
|
# self.alive is now set to False, set to True to stay alive
|
||||||
# """
|
# """
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def visit(self, source):
|
# async def visit(self, source):
|
||||||
# """
|
# """
|
||||||
# Called whenever a night action targets you
|
# Called whenever a night action targets you
|
||||||
|
@ -4,7 +4,6 @@ from werewolf.votegroups.wolfvote import WolfVote
|
|||||||
|
|
||||||
|
|
||||||
class VanillaWerewolf(Role):
|
class VanillaWerewolf(Role):
|
||||||
|
|
||||||
rand_choice = True
|
rand_choice = True
|
||||||
category = [11, 15]
|
category = [11, 15]
|
||||||
alignment = 2 # 1: Town, 2: Werewolf, 3: Neutral
|
alignment = 2 # 1: Town, 2: Werewolf, 3: Neutral
|
||||||
@ -17,8 +16,6 @@ class VanillaWerewolf(Role):
|
|||||||
"Vote to kill players at night with `[p]ww vote <ID>`"
|
"Vote to kill players at night with `[p]ww vote <ID>`"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, game):
|
def __init__(self, game):
|
||||||
super().__init__(game)
|
super().__init__(game)
|
||||||
|
|
||||||
@ -85,7 +82,6 @@ class VanillaWerewolf(Role):
|
|||||||
|
|
||||||
await self.player.send_dm(self.game_start_message)
|
await self.player.send_dm(self.game_start_message)
|
||||||
|
|
||||||
|
|
||||||
# async def _at_day_start(self, data=None):
|
# async def _at_day_start(self, data=None):
|
||||||
# super()._at_day_start(data)
|
# super()._at_day_start(data)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from werewolf.role import Role
|
from werewolf.role import Role
|
||||||
|
|
||||||
class Villager(Role):
|
|
||||||
|
|
||||||
|
class Villager(Role):
|
||||||
rand_choice = False # Determines if it can be picked as a random role (False for unusually disruptive roles)
|
rand_choice = False # Determines if it can be picked as a random role (False for unusually disruptive roles)
|
||||||
category = [1] # List of enrolled categories (listed above)
|
category = [1] # List of enrolled categories (listed above)
|
||||||
alignment = 1 # 1: Town, 2: Werewolf, 3: Neutral
|
alignment = 1 # 1: Town, 2: Werewolf, 3: Neutral
|
||||||
@ -19,7 +19,7 @@ class Villager(Role):
|
|||||||
# self.player = None
|
# self.player = None
|
||||||
# self.blocked = False
|
# self.blocked = False
|
||||||
# self.properties = {} # Extra data for other roles (i.e. arsonist)
|
# self.properties = {} # Extra data for other roles (i.e. arsonist)
|
||||||
|
#
|
||||||
# self.action_list = [
|
# self.action_list = [
|
||||||
# (self._at_game_start, 0), # (Action, Priority)
|
# (self._at_game_start, 0), # (Action, Priority)
|
||||||
# (self._at_day_start, 0),
|
# (self._at_day_start, 0),
|
||||||
@ -36,19 +36,19 @@ class Villager(Role):
|
|||||||
# """
|
# """
|
||||||
# See Game class for event guide
|
# See Game class for event guide
|
||||||
# """
|
# """
|
||||||
|
#
|
||||||
# await self.action_list[event][0](data)
|
# await self.action_list[event][0](data)
|
||||||
|
#
|
||||||
|
#
|
||||||
# async def assign_player(self, player):
|
# async def assign_player(self, player):
|
||||||
# """
|
# """
|
||||||
# Give this role a player
|
# Give this role a player
|
||||||
# Can be used after the game has started (Cult, Mason, other role swap)
|
# Can be used after the game has started (Cult, Mason, other role swap)
|
||||||
# """
|
# """
|
||||||
|
#
|
||||||
# player.role = self
|
# player.role = self
|
||||||
# self.player = player
|
# self.player = player
|
||||||
|
#
|
||||||
# async def get_alignment(self, source=None):
|
# async def get_alignment(self, source=None):
|
||||||
# """
|
# """
|
||||||
# Interaction for power access of team (Village, Werewolf, Other)
|
# Interaction for power access of team (Village, Werewolf, Other)
|
||||||
@ -79,31 +79,31 @@ class Villager(Role):
|
|||||||
|
|
||||||
# async def _at_game_start(self, data=None):
|
# async def _at_game_start(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_day_start(self, data=None):
|
# async def _at_day_start(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_voted(self, target=None):
|
# async def _at_voted(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_kill(self, target=None):
|
# async def _at_kill(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_hang(self, target=None):
|
# async def _at_hang(self, target=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_day_end(self):
|
# async def _at_day_end(self):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_night_start(self):
|
# async def _at_night_start(self):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_night_end(self):
|
# async def _at_night_end(self):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def _at_visit(self, data=None):
|
# async def _at_visit(self, data=None):
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def kill(self, source):
|
# async def kill(self, source):
|
||||||
# """
|
# """
|
||||||
# Called when someone is trying to kill you!
|
# Called when someone is trying to kill you!
|
||||||
@ -111,14 +111,14 @@ class Villager(Role):
|
|||||||
# self.alive is now set to False, set to True to stay alive
|
# self.alive is now set to False, set to True to stay alive
|
||||||
# """
|
# """
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def visit(self, source):
|
# async def visit(self, source):
|
||||||
# """
|
# """
|
||||||
# Called whenever a night action targets you
|
# Called whenever a night action targets you
|
||||||
# Source is the player who visited you
|
# Source is the player who visited you
|
||||||
# """
|
# """
|
||||||
# pass
|
# pass
|
||||||
|
#
|
||||||
# async def choose(self, ctx, data):
|
# async def choose(self, ctx, data):
|
||||||
# """Handle night actions"""
|
# """Handle night actions"""
|
||||||
# pass
|
# pass
|
@ -38,6 +38,7 @@ class WolfVote(VoteGroup):
|
|||||||
]
|
]
|
||||||
|
|
||||||
# async def on_event(self, event, data):
|
# async def on_event(self, event, data):
|
||||||
|
|
||||||
# """
|
# """
|
||||||
# See Game class for event guide
|
# See Game class for event guide
|
||||||
# """
|
# """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user