4,660
edits
m (Updated to fix headers sometimes not being present) |
m (Fixed combat areas being doubled) |
||
Line 24: | Line 24: | ||
obj.arr.forEach(item => { | obj.arr.forEach(item => { | ||
if (!returnEquipmentTemplate || item.validSlots !== undefined) | if (!returnEquipmentTemplate || item.validSlots !== undefined) | ||
results.push(wikiIcon(item, obj.iconType, obj.extras || '')) | results.push(wikiIcon(item, obj.iconType, obj.extras || '')); | ||
}); | }); | ||
} | } | ||
Line 39: | Line 39: | ||
pushResults({arr: game.items.food.filter(x => search(x)), header: '===Food===', iconType: 'ItemIcon'}); | pushResults({arr: game.items.food.filter(x => search(x)), header: '===Food===', iconType: 'ItemIcon'}); | ||
pushResults({arr: game.monsters.filter(x => search(x)), header: '===Combat===', iconType: 'MonsterIcon'}); | pushResults({arr: game.monsters.filter(x => search(x)), header: '===Combat===', iconType: 'MonsterIcon'}); | ||
pushResults({arr: [ | pushResults({arr: [...game.combatAreas.allObjects, ...game.slayerAreas.allObjects, ...game.dungeons.allObjects].filter(x => search(x)), header: '===Combat===', iconType: 'ZoneIcon'}); | ||
pushResults({arr: [...game.standardSpells.allObjects, ...game.ancientSpells.allObjects, ...game.archaicSpells.allObjects, ...game.curseSpells.allObjects, ...game.auroraSpells.allObjects].filter(x => search(x)), header: '===Spells===', iconType: 'SpellIcon'}); | pushResults({arr: [...game.standardSpells.allObjects, ...game.ancientSpells.allObjects, ...game.archaicSpells.allObjects, ...game.curseSpells.allObjects, ...game.auroraSpells.allObjects].filter(x => search(x)), header: '===Spells===', iconType: 'SpellIcon'}); | ||
pushResults({arr: game.shop.purchases.filter(x => search(x)), header: '===Purchases===', iconType: 'UpgradeIcon'}); | pushResults({arr: game.shop.purchases.filter(x => search(x)), header: '===Purchases===', iconType: 'UpgradeIcon'}); |