Skip to content
Extraits de code Groupes Projets
Valider d6ee8396 rédigé par Adrien NUNES's avatar Adrien NUNES
Parcourir les fichiers

Quick fix

parent b12c7d18
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -35,17 +35,17 @@ class CommandInfoCovid{ ...@@ -35,17 +35,17 @@ class CommandInfoCovid{
getRandomSituation(){ getRandomSituation(){
const situation = this.situations[Math.floor(Math.random()*this.situations.length)]; const situation = this.situations[Math.floor(Math.random()*this.situations.length)];
return replaceRandomIntString(situation, 1, 24); return this.replaceRandomIntString(situation, 1, 24);
} }
getRandomAction(){ getRandomAction(){
const action = this.actions[Math.floor(Math.random()*this.actions.length)]; const action = this.actions[Math.floor(Math.random()*this.actions.length)];
return replaceRandomIntString(replaceSmallRandomIntString(action), 1, 24); return this.replaceRandomIntString(replaceSmallRandomIntString(action), 1, 24);
} }
getRandomTemps(){ getRandomTemps(){
const temps = this.temps[Math.floor(Math.random()*this.temps.length)]; const temps = this.temps[Math.floor(Math.random()*this.temps.length)];
return replaceRandomIntString(temps, 2, 24); return this.replaceRandomIntString(temps, 2, 24);
} }
getRandomConnecteur(){ getRandomConnecteur(){
...@@ -62,8 +62,8 @@ class CommandInfoCovid{ ...@@ -62,8 +62,8 @@ class CommandInfoCovid{
getRandomOptionalPart(getRandomPart){ getRandomOptionalPart(getRandomPart){
const connecteur = this.getRandomConnecteur(); const connecteur = this.getRandomConnecteur();
const part = getRandomPart(); const part = this.getRandomPart();
const amplificateur = getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : ''; const amplificateur = this.getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : '';
return `${connecteur} ${part}${amplificateur}`; return `${connecteur} ${part}${amplificateur}`;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter