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{
getRandomSituation(){
const situation = this.situations[Math.floor(Math.random()*this.situations.length)];
return replaceRandomIntString(situation, 1, 24);
return this.replaceRandomIntString(situation, 1, 24);
}
getRandomAction(){
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(){
const temps = this.temps[Math.floor(Math.random()*this.temps.length)];
return replaceRandomIntString(temps, 2, 24);
return this.replaceRandomIntString(temps, 2, 24);
}
getRandomConnecteur(){
......@@ -62,8 +62,8 @@ class CommandInfoCovid{
getRandomOptionalPart(getRandomPart){
const connecteur = this.getRandomConnecteur();
const part = getRandomPart();
const amplificateur = getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : '';
const part = this.getRandomPart();
const amplificateur = this.getRandomInt(0,2) ? ` ${this.getRandomAmplificateur()}` : '';
return `${connecteur} ${part}${amplificateur}`;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter