Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
fix getGemType
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEliasen committed Nov 17, 2016
1 parent 431b42f commit 0359261
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/app.js
Expand Up @@ -6,7 +6,7 @@
* (https://creativecommons.org/licenses/by-nc/3.0/)
* @Date: 2016-04-07 20:53:22
* @Last Modified by: SirMrE
* @Last Modified time: 2016-11-17 12:19:33
* @Last Modified time: 2016-11-17 12:50:29
*/

/* global BDOdatabase, BDOcalculator */
Expand Down Expand Up @@ -36,8 +36,8 @@

// little hacky, I know.
function getGemType (item, slot) {
var gemName = BDOcalculator.gear.helmet.gems[slot].gem_name,
itemGems = Object.keys(BDOdatabase.gems.helmet),
var gemName = BDOcalculator.gear[item].gems[slot].gem_name,
itemGems = Object.keys(BDOdatabase.gems[item]),
allGems = Object.keys(BDOdatabase.gems.all);

if (gemName && allGems.indexOf(gemName) !== -1) {
Expand Down

0 comments on commit 0359261

Please sign in to comment.