Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fixes #7: rounding level bonus up and not down
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Damm committed Feb 29, 2016
1 parent f0705bd commit 48120c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js-dev/services/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ define([
var gear = values[0],
userData = values[1],
attributes = {},
levelBonus = Math.floor((userData.stats.lvl - 1) / 2);
levelBonus = Math.ceil((userData.stats.lvl - 1) / 2);

// base stats
ng.forEach(attributesToUse, function (name) {
Expand Down

0 comments on commit 48120c3

Please sign in to comment.