Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jmjpro/tg-galapago
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjpro committed Aug 24, 2013
2 parents a017d8f + 1068e78 commit 8bac046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ Level.MENU_BUTTON_Y = 600;
Level.BUTTON_WIDTH = 116;
Level.BUTTON_HEIGHT = 42;
Level.POWER_UP_SCORE =0;
Level.SUPER_FRIEND_SUFFIX = '-friend';

function Level(id) {
this.id = id;
Expand Down Expand Up @@ -844,7 +845,7 @@ Level.prototype.getSuperFriendByColorId = function(colorId) {
return sfIt.startsWith(colorId);
})[0];
sfImage = this.superFriendImages[sfType];
sf = new SuperFriend(sfImage, sfType.replace('_friend',''));
sf = new SuperFriend(sfImage, sfType.replace(Level.SUPER_FRIEND_SUFFIX,''));
return sf;
}; //Level.prototype.getCreatureByColorId

Expand Down

0 comments on commit 8bac046

Please sign in to comment.