Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Added support for upgrade levels functions #4

Merged
merged 2 commits into from Apr 27, 2015
Merged

Added support for upgrade levels functions #4

merged 2 commits into from Apr 27, 2015

Conversation

rahatarmanahmed
Copy link
Contributor

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) ?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'_' 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants