4,683
edits
(Remove Item Charge items from Shop Purchases; Condensed Potions; Replaced Combat Effects with a manual list) |
(Add Fishing and Thieving areas; Add support for Earth Golem (AoD); Move skills back into "Others" category) |
||
Line 16: | Line 16: | ||
if (!returnEquipmentTemplate) { | if (!returnEquipmentTemplate) { | ||
extras = extras.replaceAll('${NAME}', `${item.name}`); | extras = extras.replaceAll('${NAME}', `${item.name}`); | ||
let name = item.id === 'melvorAoD:EarthGolem' ? 'Earth Golem (AoD)' : item.name; | |||
name = name.replace('Potion I', 'Potion'); | |||
let expIcon = `${item.namespace.includes('TotH') ? ' {{TotH}}' : item.namespace.includes('AoD') ? ' {{AoD}}' : item.namespace.includes('ItA') ? ' {{ItA}}' : ' {{Melvor}}'}`; | let expIcon = `${item.namespace.includes('TotH') ? ' {{TotH}}' : item.namespace.includes('AoD') ? ' {{AoD}}' : item.namespace.includes('ItA') ? ' {{ItA}}' : ' {{Melvor}}'}`; | ||
let iconTemplate = icon === 'Link' ? ` [[${extras}]]` : ` {{${icon}|${ | let iconTemplate = icon === 'Link' ? ` [[${extras}]]` : ` {{${icon}|${name}${extras}}}`; | ||
return `*${expIcon}${iconTemplate}${postText}`; | return `*${expIcon}${iconTemplate}${postText}`; | ||
} | } | ||
Line 48: | Line 50: | ||
pushResults(game.prayers.filter(x => search(x)), '\n== Prayers ==', 'PrayerIcon'); | pushResults(game.prayers.filter(x => search(x)), '\n== Prayers ==', 'PrayerIcon'); | ||
pushResults([...game.township.buildings.allObjects, ...game.township.seasons.allObjects, ...game.township.biomes.allObjects, ...game.township.resources.allObjects].filter(x => !['melvorF:GP', 'melvorItA:AP'].includes(x.id) && search(x)), '\n== Township ==', 'TownshipIcon'); | pushResults([...game.township.buildings.allObjects, ...game.township.seasons.allObjects, ...game.township.biomes.allObjects, ...game.township.resources.allObjects].filter(x => !['melvorF:GP', 'melvorItA:AP'].includes(x.id) && search(x)), '\n== Township ==', 'TownshipIcon'); | ||
pushResults(game. | pushResults(game.astrology.actions.filter(x => search(x)), '\n== Skill Actions ==', 'ConstellationIcon', '', ' (Constellation)'); | ||
pushResults(game. | pushResults(game.agility.actions.filter(x => search(x)), '\n== Skill Actions ==', 'AgilityIcon', '', ' (Agility Obstacle)'); | ||
pushResults(game. | pushResults(game.thieving.actions.filter(x => search(x)), '\n== Skill Actions ==', 'Icon', '|type=thieving', ' (Thieving NPC)'); | ||
pushResults(game.thieving. | pushResults(game.thieving.areas.filter(x => search(x)), '\n== Skill Actions ==', 'Link', 'Thieving#${NAME}|${NAME}', ' (Thieving Area)'); | ||
pushResults(game.fishing.areas.filter(x => search(x)), '\n== Skill Actions ==', 'Link', 'Fishing#${NAME}|${NAME}', ' (Fishing Area)'); | |||
pushResults(game.pets.filter(x => search(x)), '\n== Pets ==', 'PetIcon'); | pushResults(game.pets.filter(x => search(x)), '\n== Pets ==', 'PetIcon'); | ||
pushResults(game.combatEffects.allObjects.filter(x => ['Shadeveil', 'Ablaze', 'Affliction', 'Barrier Burn', 'Bleed', 'Burn', 'Deadly Poison', 'Eldritch Curse', 'Fear', 'Freeze', 'Frostburn', 'Laceration', 'Nulled', 'Poison', 'Shock', 'Silence', 'Sleep', 'Slow', 'Stun', 'Toxin', 'Voidburst', 'Wither'].includes(x.name) && search(x)), '\n== Combat Effects ==', 'EffectIcon'); | pushResults(game.combatEffects.allObjects.filter(x => ['Shadeveil', 'Ablaze', 'Affliction', 'Barrier Burn', 'Bleed', 'Burn', 'Deadly Poison', 'Eldritch Curse', 'Fear', 'Freeze', 'Frostburn', 'Laceration', 'Nulled', 'Poison', 'Shock', 'Silence', 'Sleep', 'Slow', 'Stun', 'Toxin', 'Voidburst', 'Wither'].includes(x.name) && search(x)), '\n== Combat Effects ==', 'EffectIcon'); | ||
pushResults(game.skills.filter(x => search(x)), '\n== Others ==', 'Skill'); | |||
pushResults(game.currencies.allObjects.filter(x => search(x)), '\n== Others ==', 'Icon'); | pushResults(game.currencies.allObjects.filter(x => search(x)), '\n== Others ==', 'Icon'); | ||
pushResults(game.gamemodes.allObjects.filter(x => !x.isEvent && x.id !== 'melvorD:Unset' && search(x)), '\n== Others ==', 'Icon'); | pushResults(game.gamemodes.allObjects.filter(x => !x.isEvent && x.id !== 'melvorD:Unset' && search(x)), '\n== Others ==', 'Icon'); |