17,376
edits
(Retrieve fully-generated attack descriptions) |
(Fix for item names sometimes containing underscores) |
||
Line 231: | Line 231: | ||
// Add namespace to ID if it isn't already | // Add namespace to ID if it isn't already | ||
dataNode[key] = this.getNamespacedID(ns, dataNode[key]); | dataNode[key] = this.getNamespacedID(ns, dataNode[key]); | ||
break; | |||
case 'name': | |||
// Some items have underscores in their names, replace with spaces | |||
if (categoryName == 'items') { | |||
dataNode[key] = dataNode[key].replaceAll('_', ' '); | |||
} | |||
break; | break; | ||
} | } | ||
Line 405: | Line 411: | ||
case 'itemSynergies': | case 'itemSynergies': | ||
case 'itemUpgrades': | case 'itemUpgrades': | ||
case 'itmMonsters': | |||
case 'items': | case 'items': | ||
case 'lore': | case 'lore': |