New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for upgrade levels functions #4

Merged
merged 2 commits into from Apr 27, 2015

Conversation

Projects
None yet
3 participants
@rahatarmanahmed
Contributor

rahatarmanahmed commented Apr 27, 2015

No description provided.

@@ -66,7 +66,10 @@ var gameState = function($q, UPGRADES, GainCalculator, localStorage, AnimatedFly
inc: function(key) {
var nextLevel = upgrades[key] || 0;
var cost = UPGRADES[key].levels[nextLevel].cost;
var cost = _.isFunction(UPGRADES[key].levels) ?

This comment has been minimized.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'_' is not defined.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'_' is not defined.

levels[nextLevel] = item.levels(nextLevel);
}
_.each(levels, (level, i) => {

This comment has been minimized.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'arrow function syntax (=>)' is only available in ES6 (use esnext option).
'_' is not defined.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'arrow function syntax (=>)' is only available in ES6 (use esnext option).
'_' is not defined.

@@ -22,7 +22,14 @@ var visibleUpgrades = function(GameState, UPGRADES, favico) {
if(!meetsAllReqs) { return; }
_.each(item.levels, (level, i) => {
var levels = item.levels;
if(_.isFunction(item.levels)) {

This comment has been minimized.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'_' is not defined.

@houndci-bot

houndci-bot Apr 27, 2015

Collaborator

'_' is not defined.

seiyria added a commit that referenced this pull request Apr 27, 2015

Merge pull request #4 from rahatarmanahmed/master
	Added support for upgrade levels functions

@seiyria seiyria merged commit 5f591df into seiyria:master Apr 27, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
hound 4 violations found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment