Don't copy var.ROLE_GUIDE in default
Since the base var.ROLE_GUIDE is default anyway, and copying it breaks custom roles trying to be entirely contained within their file
This commit is contained in:
parent
4667bf9987
commit
aaeb51b203
@ -134,7 +134,7 @@ class ChangedRolesMode(GameMode):
|
|||||||
@game_mode("default", minp = 4, maxp = 24, likelihood = 20)
|
@game_mode("default", minp = 4, maxp = 24, likelihood = 20)
|
||||||
class DefaultMode(GameMode):
|
class DefaultMode(GameMode):
|
||||||
"""Default game mode."""
|
"""Default game mode."""
|
||||||
def __init__(self, arg="", role_index=var.ROLE_INDEX, role_guide=var.ROLE_GUIDE.copy()):
|
def __init__(self, arg="", role_index=var.ROLE_INDEX, role_guide=var.ROLE_GUIDE):
|
||||||
# No extra settings, just an explicit way to revert to default settings
|
# No extra settings, just an explicit way to revert to default settings
|
||||||
super().__init__(arg)
|
super().__init__(arg)
|
||||||
self.ROLE_INDEX = role_index
|
self.ROLE_INDEX = role_index
|
||||||
|
Loading…
x
Reference in New Issue
Block a user