refactor(constant): Screaming camel MAX_LEVEL

This commit is contained in:
Sabe Jones
2015-11-18 15:14:47 -05:00
parent 31b68219d1
commit ed443b490a
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ api.i18n = i18n;
import * as statHelpers from './statHelpers'; import * as statHelpers from './statHelpers';
api.maxLevel = statHelpers.maxLevel; api.maxLevel = statHelpers.MAX_LEVEL;
api.capByLevel = statHelpers.capByLevel; api.capByLevel = statHelpers.capByLevel;
api.maxHealth = statHelpers.MAX_HEALTH; api.maxHealth = statHelpers.MAX_HEALTH;
api.tnl = statHelpers.toNextLevel; api.tnl = statHelpers.toNextLevel;

View File

@@ -4,11 +4,11 @@
------------------------------------------------------ ------------------------------------------------------
*/ */
export const maxLevel = 100; export const MAX_LEVEL = 100;
export function capByLevel (lvl) { export function capByLevel (lvl) {
if (lvl > maxLevel) { if (lvl > MAX_LEVEL) {
return maxLevel; return MAX_LEVEL;
} else { } else {
return lvl; return lvl;
} }