Skip to content

Commit

Permalink
Désactivation chuchotements jusqu'à nouvel ordre
Browse files Browse the repository at this point in the history
  • Loading branch information
Tailszefox committed Mar 31, 2015
1 parent ffb8825 commit 63e1192
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions loup.py
Expand Up @@ -564,7 +564,8 @@ def verifierSuffisant(self, serv, nbAppels):
self.minSv = len(self.joueurs)/3

self.connection.mode(self.chanJeu, "+m")
self.debutVotesChuchotement(serv)
self.partieVaCommencer(serv)
#self.debutVotesChuchotement(serv)

# Vote pour le chuchotement
def debutVotesChuchotement(self, serv):
Expand Down Expand Up @@ -593,15 +594,17 @@ def voteChuchotement(self, joueur, message):

#Donne quelques instructions avant le lancement de la partie
def partieVaCommencer(self, serv):
if(self.statut != "voteChuchotement"):
return
#if(self.statut != "voteChuchotement"):
# return

if(self.oui >= self.non):
self.whisper = True
else:
self.whisper = False
#if(self.oui >= self.non):
# self.whisper = True
#else:
# self.whisper = False

self.debug(str(self.oui) + " " + str(self.non) + " " + str(self.whisper))
#self.debug(str(self.oui) + " " + str(self.non) + " " + str(self.whisper))

self.whisper = False

self.envoyer(self.chanJeu, "PARTIE_VA_COMMENCER")
serv.execute_delayed(3, self.envoyer, [self.chanJeu, "VA_ENVOYER_ROLES"])
Expand Down Expand Up @@ -1587,7 +1590,7 @@ def verifierVotesMaire(self, serv):

self.maire = self.pseudos[joueurDesigne]
serv.execute_delayed(15, self.votesLapidation, [serv])

#Passe aux votes
def votesLapidation(self, serv):
#Si c'est le jour 2, on procède d'abord à l'élection du maire
Expand Down

0 comments on commit 63e1192

Please sign in to comment.