Acro: tuning the sleep times, added self.seconds_to_submit_step as another tunable
This commit is contained in:
parent
7e5d51f460
commit
b08059df78
@ -56,8 +56,9 @@ class Acro(Module):
|
||||
self.votes = dict()
|
||||
|
||||
# default options
|
||||
self.seconds_to_submit = 45
|
||||
self.seconds_to_vote = 30
|
||||
self.seconds_to_submit = 60
|
||||
self.seconds_to_vote = 45
|
||||
self.seconds_to_submit_step = 10
|
||||
self.seconds_to_pause = 5
|
||||
|
||||
"""
|
||||
@ -171,7 +172,8 @@ class Acro(Module):
|
||||
self.game.rounds.append(self.AcroRound())
|
||||
acro = self._generate_acro()
|
||||
self.game.rounds[-1].acro = acro
|
||||
sleep_time = self.game.rounds[-1].seconds_to_submit + (5*(len(acro)-3))
|
||||
sleep_time = self.game.rounds[-1].seconds_to_submit +
|
||||
(self.seconds_to_submit_step * (len(acro)-3))
|
||||
|
||||
self.sendmsg(self.game.connection, self.game.channel,
|
||||
"the round has started! your acronym is '{0:s}'. ".format(acro) +
|
||||
|
Loading…
Reference in New Issue
Block a user