Skip to content

Commit 03aa114

Browse files
authored
Merge pull request #726 from Marlyza/win-dev
+1 pv sur la formule de calcul du rattrapage de pv max
2 parents ca070ea + 4547df5 commit 03aa114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fonctions_sql/f_passe_niveau.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ begin
118118
gain_pv := gain_pv + 1;
119119
pv_max_theorique := cast((2 * v_con + (v_niveau_actu - 1) * (v_con + 12) / 8) as integer);
120120
if pv_max_actuel + temp + 1 < pv_max_theorique then
121-
gain_pv := max(gain_pv, temp);
121+
gain_pv := max(gain_pv, temp+1);
122122
end if;
123123

124124
update perso

0 commit comments

Comments
 (0)