You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fox-V3/werewolf/Role.py

74 lines
1.7 KiB

import asyncio
import discord
from datetime import datetime,timedelta
class Role:
"""
Base Role class for werewolf game
Category enrollment guide as follows:
Town:
1: Random, 2: Investigative, 3: Protective, 4: Government,
5: Killing, 6: Power
Mafia:
11: Random, 12: Deception, 15: Killing, 16: Support
Neutral:
21: Benign, 22: Evil, 23: Killing
"""
random_choice = True # Determines if it can be picked as a random
category = [0] # List of enrolled categories
priority = 0 # 0 is "No Action"
def __init__(self):
self.player = None
self.blocked = False
async def on_event(self, event):
"""
Action guide as follows:
_at_night_start
1. Detain actions (Jailer/Kidnapper)
2. Group discussions and Pick targets
_at_night_end
1. Self actions (Veteran)
2. Target switching and role blocks (bus driver, witch, escort)
3. Protection / Preempt actions (bodyguard/framer)
4. Non-disruptive actions (seer/silencer)
5. Disruptive actions (werewolf kill)
6. Role altering actions (Cult / Mason)
"""
async def assign_player(self, player):
"""
Give this role a player
"""
self.player = player
async def _at_game_start(self):
pass
async def _at_day_start(self):
pass
async def _at_vote(self):
pass
async def _at_kill(self):
pass
async def _at_day_end(self):
pass
async def _at_night_start(self):
pass
async def _at_night_end(self):
pass