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:
Ryan Schmidt 2018-06-20 08:43:27 -07:00 committed by GitHub
parent 4667bf9987
commit aaeb51b203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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