Acro: tuning the sleep times, added self.seconds_to_submit_step as another tunable

This commit is contained in:
Brian S. Stephan 2012-03-02 20:05:47 -06:00
parent 7e5d51f460
commit b08059df78
1 changed files with 5 additions and 3 deletions

View File

@ -56,8 +56,9 @@ class Acro(Module):
self.votes = dict() self.votes = dict()
# default options # default options
self.seconds_to_submit = 45 self.seconds_to_submit = 60
self.seconds_to_vote = 30 self.seconds_to_vote = 45
self.seconds_to_submit_step = 10
self.seconds_to_pause = 5 self.seconds_to_pause = 5
""" """
@ -171,7 +172,8 @@ class Acro(Module):
self.game.rounds.append(self.AcroRound()) self.game.rounds.append(self.AcroRound())
acro = self._generate_acro() acro = self._generate_acro()
self.game.rounds[-1].acro = 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, self.sendmsg(self.game.connection, self.game.channel,
"the round has started! your acronym is '{0:s}'. ".format(acro) + "the round has started! your acronym is '{0:s}'. ".format(acro) +