X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/2575cdb41d7bcb96e2902876e959680a5c676a4a..765b3c57f081d3863ff59951a67da5874554db42:/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) {