From 1fe28870a0c26606e78abd2fed964e35194519cf Mon Sep 17 00:00:00 2001 From: schneefux Date: Thu, 12 Oct 2017 08:00:55 +0200 Subject: remove debug code --- mappings.js | 10 +++------- 1 file 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 }; -- cgit v1.3.1