Skip to content
Extraits de code Groupes Projets

test

Fusionnées Sylvain "Cloud" MARET a demandé de fusionner maret2016/Putsch:dev vers master
1 fichier
+ 3
1
Comparer les modifications
  • Côte à côte
  • En ligne
+ 3
1
@@ -459,7 +459,9 @@ class Boooob(ircbot.SingleServerIRCBot):
serv.privmsg("#lg_putsch", "J'appelle le cupidon... S'il existe !")
self.phase2trig = 0
if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1 and len(self.choix) == 0:
if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1:
while len(self.choix) > 2:
self.choix.pop()
self.choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) -1)))
self.choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) - 1))) # on crée une liste de deux choix
serv.privmsg(self.voleur, "Tu es le voleur, tes choix sont : " +
Chargement en cours