X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/2575cdb41d7bcb96e2902876e959680a5c676a4a..7929fc95feddfabac28e38f35cd7a5a45b4731ce:/src/lib/file.creditos.php?ds=sidebyside diff --git a/src/lib/file.creditos.php b/src/lib/file.creditos.php index 4a9e923..d4d4cc1 100644 --- a/src/lib/file.creditos.php +++ b/src/lib/file.creditos.php @@ -57,12 +57,12 @@ function file_creditos_preguntar($user) * * @return Array con los nuevos valores de créditos. */ -function file_creditos_evaluar($user, $es_bonus = false, $bonus_cant = 5) +function file_creditos_evaluar($user, $rank, $es_bonus = false, $bonus_cant = 5) { if (!($row = file_creditos_get($user))) return false; list($fecha, $creditos, $bonus, $dias) = $row; $bonus2 = $bonus; - $creditos2 = $creditos; + $creditos2 = $creditos + $rank; if ($es_bonus) $bonus2++; if ($bonus2 >= $bonus_cant) {