From 7fb30c3312bc86e1402475837ddb54c3ae4a1a9e Mon Sep 17 00:00:00 2001
From: Gregory ADAM <gregory.adam@etu.unistra.fr>
Date: Thu, 2 Apr 2020 11:56:05 +0200
Subject: [PATCH] Correction formule ajouter note

---
 psychorientation/psychorientation/eleve.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/psychorientation/psychorientation/eleve.cs b/psychorientation/psychorientation/eleve.cs
index 1f2d64c..10f13c2 100644
--- a/psychorientation/psychorientation/eleve.cs
+++ b/psychorientation/psychorientation/eleve.cs
@@ -143,7 +143,7 @@ namespace psychorientation
             {
                 if (note > note_convenable)
                 {
-                    effort += 0.25;
+                    effort += 0.25 * (1 - (competence * 0.1));
                 }
                 else
                 {
@@ -158,7 +158,7 @@ namespace psychorientation
                 }
                 else
                 {
-                    if(competence > 5)
+                    if (competence > 5)
                     {
                         effort += 1;
                     }
-- 
GitLab