forked from lykoss/lykos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamemodes.py.example
More file actions
26 lines (21 loc) · 836 Bytes
/
gamemodes.py.example
File metadata and controls
26 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# To add new game modes, rename this file to 'gamemodes.py' then add them in
from src.gamemodes import (GameMode, game_mode, reset_roles)
import src.settings as var
from src.utilities import *
from src.messages import messages
from src import events
####################################################################
# DO NOT EDIT ANYTHING ABOVE THIS LINE, ADD CUSTOM GAMEMODES BELOW #
####################################################################
@game_mode("mymode", minp=4, maxp=24, likelihood=5)
class MyMode(GameMode):
"""Example mode. This doesn't do anything special yet."""
def __init__(self, arg=""):
super().__init__(arg)
# Put gamemode settings here
def startup(self):
# Register events here
pass
def teardown(self):
# Unregister events here
pass