Significantly lower the number of possible gunners and assassins for the random game mode.

This commit is contained in:
Vgr E.Barry 2015-03-09 19:35:30 -04:00
parent 4c198029d8
commit de1c8a240f

View File

@ -705,8 +705,8 @@ class RandomMode(object):
self.ROLE_GUIDE.update({
"wolf" : [1 for i in self.ROLE_INDEX],
"amnesiac" : [i - 1 for i in self.ROLE_INDEX],
"gunner" : [random.randrange(math.ceil((i ** 1.4) / 4)) for i in self.ROLE_INDEX],
"assassin" : [random.randrange(math.ceil((i ** 1.4) / 8)) for i in self.ROLE_INDEX],
"gunner" : [random.randrange(int(i ** 1.2 / 4)) for i in self.ROLE_INDEX],
"assassin" : [random.randrange(int(i ** 1.2 / 8)) for i in self.ROLE_INDEX],
})
# Credits to Metacity for designing and current name