Skip to content
This repository has been archived by the owner. It is now read-only.

Added support for upgrade levels functions #4

Merged
merged 2 commits into from Apr 27, 2015

Conversation

@rahatarmanahmed
Copy link
Contributor

@rahatarmanahmed 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.

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.

@@ -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.

seiyria added a commit that referenced this pull request Apr 27, 2015
	Added support for upgrade levels functions
@seiyria seiyria merged commit 5f591df into seiyria:master Apr 27, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
hound 4 violations found.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.