summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-10-12 08:01:49 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-10-12 08:01:49 +0200
commit82364853cab5583831360c8a00c705dd90dda24a (patch)
treeee3088e6c36cebff8865c13f42a001f92c94ec62
parent1fe28870a0c26606e78abd2fed964e35194519cf (diff)
downloadorm-82364853cab5583831360c8a00c705dd90dda24a.tar.gz
orm-82364853cab5583831360c8a00c705dd90dda24a.zip
revert "remove debug code" - I need thatrelease/2.19.0
This reverts commit 1fe28870a0c26606e78abd2fed964e35194519cf.
-rw-r--r--mappings.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/mappings.js b/mappings.js
index b1f3a3e..e5a3f31 100644
--- a/mappings.js
+++ b/mappings.js
@@ -13,8 +13,12 @@ module.exports = {
map: mappings,
// TODO wtf?
isItem: (str) => str.indexOf("Item") != -1,
- isAbility: (str) => str.indexOf("Item") == -1 &&
- (str.indexOf("Ability") == -1 ||
- str.indexOf("ABILITY") != -1),
+ isAbility: (str) => {
+ if ( str.indexOf("Item") == -1 &&
+ (str.indexOf("Ability") != -1 ||
+ str.indexOf("ABILITY") != -1) ) {
+ if (!mappings.has(str)) console.error(str);
+ return true
+ } return false; },
isHero: (str) => str.indexOf("*") != -1 && str.indexOf("Item") == -1
};