summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-10-12 08:00:55 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-10-12 08:00:55 +0200
commit1fe28870a0c26606e78abd2fed964e35194519cf (patch)
tree0c50de16ea7df199e1ecb86461e09fd0da05de41
parente4b17f02edfb52b9055dee754bb3b494dc4684bd (diff)
downloadorm-1fe28870a0c26606e78abd2fed964e35194519cf.tar.gz
orm-1fe28870a0c26606e78abd2fed964e35194519cf.zip
remove debug code
-rw-r--r--mappings.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/mappings.js b/mappings.js
index e5a3f31..b1f3a3e 100644
--- a/mappings.js
+++ b/mappings.js
@@ -13,12 +13,8 @@ module.exports = {
map: mappings,
// TODO wtf?
isItem: (str) => str.indexOf("Item") != -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; },
+ isAbility: (str) => str.indexOf("Item") == -1 &&
+ (str.indexOf("Ability") == -1 ||
+ str.indexOf("ABILITY") != -1),
isHero: (str) => str.indexOf("*") != -1 && str.indexOf("Item") == -1
};