Anonymous

Module:Icons/Overrides: Difference between revisions

From Melvor Idle
Remove almost all extension overrides - Most images now available from game assets in PNG format
(Undo revision 79497 by Slash (talk))
Tag: Undo
(Remove almost all extension overrides - Most images now available from game assets in PNG format)
Line 5: Line 5:
local extOverrides = {
local extOverrides = {
["type"] = {
["type"] = {
["areaCategory"] = "svg",
["effect"] = "svg"
["skill"] = "svg",
["spellType"] = "svg",
["spell"] = "svg",
["damage"] = "svg",
["effect"] = "svg",
["curse"] = "svg", -- Some exceptions included by name below
["aurora"] = "svg",
["combatArea"] = "svg",
["dungeon"] = "svg", -- Some exceptions included by name below
["prayer"] = "svg",
["upgrade"] = "svg", -- Some exceptions included by name below
["tree"] = "svg",
["rock"] = "svg", -- Some exceptions included by name below
["thieving"] = "svg",
["constellation"] = "svg",
["building"] = "svg",
["resource"] = "svg",
["township"] = "svg"
},
},
["name"] = {
["name"] = {
-- General
-- General
["Combat"] = "svg",
["Guides"] = "svg",
["Mastery"] = "svg",
["Coins"] = "svg",
["Slayer Coins"] = "svg",
["Raid Coins"] = "svg",
["Abyssal Pieces"] = "svg",
["Abyssal Slayer Coins"] = "svg",
["TotH"] = "svg",
["TotH"] = "svg",
["Shop"] = "svg",
["Easter"] = "svg",
["Melvor Logo"] = "svg",
["Melvor Logo"] = "svg",
["Question"] = "svg",
["Timer"] = "svg",
["Hardcore"] = "svg",
["Chaos"] = "svg",
["Internal Suffering Speedrun"] = "svg",
["Hardcore Adventure Speedrun"] = "svg",
["Mastery Tokens"] = "gif",
["Mastery Tokens"] = "gif",
["Lesser Relics"] = "gif",
["Lesser Relics"] = "gif"
["Prat, the Serpent of Fire"] = "svg",
["Unholy Prayers"] = "svg",
["Museum"] = "svg",
["Abyssal Realm"] = "svg",
["Eternal Realm"] = "svg",
-- Items
["Amulet of Fishing"] = "svg",
["Lemon"] = "jpg",
["Lemons"] = "jpg",
["Lemonade"] = "jpg",
["Ancient Crossbow"] = "svg",
["Air Shard"] = "svg",
["Water Shard"] = "svg",
["Earth Shard"] = "svg",
["Fire Shard"] = "svg",
["Confetti Crossbow"] = "svg",
["Cloudburst Staff"] = "gif",
["Shockwave"] = "svg",
["Event Clue 1"] = "svg",
["Event Clue 2"] = "svg",
["Event Clue 3"] = "svg",
["Event Clue 4"] = "svg",
["Shadeveil Cape"] = "png",
-- Pets
["Cris"] = "svg",
["Cool Rock"] = "svg",
["Puff, the Baby Dragon"] = "svg",
["Bruce"] = "svg",
["Lil Ron"] = "svg",
["Leonardo"] = "svg",
["Golden Golbin"] = "svg",
["Ty"] = "svg",
["Ripper the Reindeer"] = "svg",
["Chick"] = "svg",
["Zarrah"] = "svg",
["Chio"] = "svg",
["Bouncing Bob"] = "svg",
["Rosey"] = "svg",
["Ayyden"] = "svg",
["Arctic Yeti"] = "svg",
["Mac"] = "svg",
["Jerry the Giraffe"] = "svg",
["Preston the Platypus"] = "svg",
["Quill"] = "svg",
["Gunter"] = "svg",
["Salem"] = "svg",
["Peri"] = "svg",
["Otto"] = "svg",
["Jelly Jim"] = "svg",
["Harley"] = "svg",
["Singe"] = "svg",
["Aquarias"] = "svg",
["Norman"] = "svg",
["Erran"] = "svg",
["Ren"] = "svg",
["Pablo"] = "svg",
["Sam"] = "svg",
["Tim the Wolf"] = "svg",
["Mark"] = "svg",
["Astro"] = "svg",
-- Curses & spells, included to override the type level override above
["Madness"] = "png",
["Torment"] = "png",
["Despair"] = "png",
-- Alt. Magic
["Rags to Riches III"] = "png",
-- Upgrades, included to override the type level override above
["Golbin Crate"] = "png",
["Corundum Axe"] = "png",
["Augite Axe"] = "png",
["Meteorite Axe"] = "png",
["Divine Axe"] = "png",
["Spruce Cooking Fire"] = "png",
["Elderwood Cooking Fire"] = "png",
["Carrion Cooking Fire"] = "png",
["Iridium Pot"] = "png",
["Palladium Pot"] = "png",
["Divine Pot"] = "png",
["Corundum Furnace"] = "png",
["Augite Furnace"] = "png",
["Divine Furnace"] = "png",
["Sign of the Stars"] = "png",
["Summoner's Altar"] = "png",
["Golden Shard"] = "png",
["Labyrinth Solution"] = "png",
["Linden Boat"] = "png",
["Golden Compass"] = "png",
["Ship Combat Overhaul"] = "png",
["Blessed Bone Offering"] = "png",
["Ship Crow's Nest Upgrade"] = "png",
["Extra Bank Tab"] = "png",
["Superior Cooking Pot"] = "png",
["Superior Cauldron"] = "png",
["Mithril Brush"] = "png",
["Mithril Shovel"] = "png",
["Mithril Sieve"] = "png",
["Mithril Trowel"] = "png",
["Ship Anchor Upgrade"] = "png",
["Ship Keel Upgrade"] = "png",
["Ship Mast Upgrade"] = "png",
["Ship Rudder Upgrade"] = "png",
["Ship Sails Upgrade"] = "png",
["Ship Hull Upgrade"] = "png",
["Adamant Brush"] = "png",
["Adamant Shovel"] = "png",
["Adamant Sieve"] = "png",
["Adamant Trowel"] = "png",
["Ancient Brush"] = "png",
["Ancient Shovel"] = "png",
["Ancient Sieve"] = "png",
["Ancient Trowel"] = "png",
["Crystal Brush"] = "png",
["Crystal Shovel"] = "png",
["Crystal Sieve"] = "png",
["Crystal Trowel"] = "png",
["Dark Steel Brush"] = "png",
["Dark Steel Shovel"] = "png",
["Dark Steel Sieve"] = "png",
["Dark Steel Trowel"] = "png",
["Dragon Brush"] = "png",
["Dragon Shovel"] = "png",
["Dragon Sieve"] = "png",
["Dragon Trowel"] = "png",
["Iron Brush"] = "png",
["Iron Shovel"] = "png",
["Iron Sieve"] = "png",
["Iron Trowel"] = "png",
["Relic Brush"] = "png",
["Relic Shovel"] = "png",
["Relic Sieve"] = "png",
["Relic Trowel"] = "png",
["Rune Brush"] = "png",
["Rune Shovel"] = "png",
["Rune Sieve"] = "png",
["Rune Trowel"] = "png",
["Steel Brush"] = "png",
["Steel Shovel"] = "png",
["Steel Sieve"] = "png",
["Steel Trowel"] = "png",
["Aranite Brush"] = "png",
["Aranite Shovel"] = "png",
["Aranite Sieve"] = "png",
["Aranite Trowel"] = "png",
["Travel Token"] = "png",
["Dig Site Token"] = "png",
["Summoner's Pack I"] = "png",
["Summoner's Pack II"] = "png",
["Summoner's Pack III"] = "png",
-- Marks (Summoning), included to override the type level override above
["Eagle"] = "png",
["Owl"] = "png",
["Beaver"] = "png",
["Fox"] = "png",
["Lightning Spirit"] = "png",
["Siren"] = "png",
["Spider"] = "png",
["Spectre"] = "png",
-- Dungeons, included to override the type level override above
["Golem Territory"] = "png",
["Cult Grounds"] = "png",
["Trickery Temple"] = "png",
["Underwater City"] = "png",
["Underwater Ruins"] = "png",
["Eye-conic Cave"] = "png",
["Mucky Cave"] = "png",
["Lost Temple"] = "png",
["Ritual Site"] = "png",
["Shipwreck Cove"] = "png",
["Depths of Woe"] = "png",
["Depths of Decay"] = "png",
["Depths of Fear"] = "png",
["Depths of Ruin"] = "png",
["Depths of Isolation"] = "png",
["Depths of Dissolve"] = "png",
["Depths of Resolve"] = "png",
["The Final Depth"] = "png",
-- Slayer areas
["Blighted Reach"] = "png",
["Crimson Forest"] = "png",
["Echo Mire"] = "png",
["Eldritch Chasm"] = "png",
["Fractured Spires"] = "png",
["Paranoia Pit"] = "png",
["Petrified Lair"] = "png",
["Tangled Grove"] = "png",
["Tendril Hollow"] = "png",
["Toxic Wastes"] = "png",
["Void Enclave"] = "png",
["Void Nexus"] = "png",
["Whispering Sea"] = "png",
["Withering Catacombs"] = "png"
}
}
}
}
Line 245: Line 20:
local typeExtOverrides = {
local typeExtOverrides = {
-- Example: ["item"] = { ["Chicken"] = "png" }
-- Example: ["item"] = { ["Chicken"] = "png" }
["areaCategory"] = {
["Abyssal Combat Areas"] = "png"
},
["building"] = {
["Abyssal Combat Lab"] = "png",
["Abyssal Enhancer"] = "png",
["Abyssal Gateway"] = "png",
["Abyssal Harvester I"] = "png",
["Abyssal Harvester II"] = "png",
["Abyssal Harvester III"] = "png",
["Abyssal Research Lab"] = "png",
["Arcane Altar"] = "png",
["Armourer I"] = "png",
["Armourer II"] = "png",
["Armourer III"] = "png",
["Armourer IV"] = "png",
["Bonfire"] = "png",
["Divine Sanctuary"] = "png",
["Empowered Altar"] = "png",
["Enchanted Tower"] = "png",
["Ethereal Altar"] = "png",
["Ethereal Sanctuary"] = "png",
["Fire Pit"] = "png",
["Obsidian Blaster"] = "png",
["Obsidian Mines"] = "png",
["Obsidian Quarry"] = "png",
["Obsidian Walls"] = "png",
["Reinforced Carpenter I"] = "png",
["Reinforced Carpenter II"] = "png",
["Reinforced Carpenter III"] = "png",
["Runestone Combiner"] = "png",
["Runestone Crafter"] = "png",
["Runestone Merger"] = "png",
["Sanctuary"] = "png",
["Slayer Research Lab"] = "png",
["Statue of Xon"] = "png",
["Stone Walls"] = "png",
["Void Sanctuary"] = "png",
["Voidfire Beacon"] = "png",
["Weaponsmith I"] = "png",
["Weaponsmith II"] = "png",
["Weaponsmith III"] = "png",
["Weaponsmith IV"] = "png",
["Wooden Walls"] = "png"
},
["combatArea"] = {
-- Combat areas
["Abyssal Farmlands"] = "png",
["Blighted Marsh"] = "png",
["Dark Descent"] = "png",
["Dreaded Crossing"] = "png",
["Eldritch Domain"] = "png",
["Fractured Plains"] = "png",
["Lightless Cave"] = "png",
["Murmuring Forest"] = "png",
["Smoggy Plain"] = "png",
["Void Conflux"] = "png",
["Whisperwind Cove"] = "png",
["Withering Bastion"] = "png",
["Stronghold of the Undead"] = "png",
["Stronghold of Magic"] = "png",
["Stronghold of Dragons"] = "png",
["Stronghold of the Gods"] = "png",
["Stronghold of Blight"] = "png",
["Stronghold of Fear"] = "png",
["Stronghold of Nightmares"] = "png",
["Stronghold of the Overlords"] = "png",
["Depths of Woe"] = "png",
["Depths of Decay"] = "png",
["Depths of Fear"] = "png",
["Depths of Ruin"] = "png",
["Depths of Isolation"] = "png",
["Depths of Dissolve"] = "png",
["Depths of Resolve"] = "png",
["The Final Depth"] = "png"
},
["constellation"] = {
["Corrupted Dhorn"] = "png",
["Corrupted Deedree"] = "png",
["Corrupted Iridan"] = "png",
["Corrupted Ameria"] = "png",
["Corrupted Terra"] = "png",
["Corrupted Vale"] = "png",
["Corrupted Syllia"] = "png",
["Corrupted Arachi"] = "png",
["Corrupted Ko"] = "png",
["Corrupted Tellus"] = "png",
["Corrupted Hyden"] = "png",
["Corrupted Qimican"] = "png",
["Celestis"] = "png"
},
["dungeon"] = {
["Into the Abyss"] = "png",
["The Abyssal Approach"] = "png"
},
["abyssDepth"] = {
["Depths of Woe"] = "png",
["Depths of Decay"] = "png",
["Depths of Fear"] = "png",
["Depths of Ruin"] = "png",
["Depths of Isolation"] = "png",
["Depths of Dissolve"] = "png",
["Depths of Resolve"] = "png",
["The Final Depth"] = "png"
},
["item"] = {
-- These familiars also exist as type mark, where the image is of PNG format
["Golbin Thief"] = "svg",
["Occultist"] = "svg",
["Wolf"] = "svg",
["Ent"] = "svg",
["Mole"] = "svg",
["Octopus"] = "svg",
["Minotaur"] = "svg",
["Centaur"] = "svg",
["Witch"] = "svg",
["Pig"] = "svg",
["Crow"] = "svg",
["Leprechaun"] = "svg",
["Cyclops"] = "svg",
["Yak"] = "svg",
["Unicorn"] = "svg",
["Dragon"] = "svg",
["Monkey"] = "svg",
["Salamander"] = "svg",
["Bear"] = "svg",
["Devil"] = "svg"
},
["monster"] = {
["Merman"] = "svg",
["Shipwreck Beast"] = "svg",
["Treacherous Jellyfish"] = "svg",
["Merman Guard"] = "svg",
["Ghost Mercenary"] = "svg",
["Mermaid Archer"] = "svg",
["Cult Member"] = "svg",
["Cursed Pirate Captain"] = "svg",
["Fake Door"] = "svg",
["Possessed Barrel"] = "svg",
["Lich"] = "svg",
["Earth Golem (AoD)"] = "svg",
["Magic Golem"] = "svg",
["Magic Mirror"] = "svg",
["Poison Bloater"] = "svg",
["Cult Imp"] = "svg",
["Cult Monster"] = "svg",
["Ghost Sailor"] = "svg",
["Granite Golem"] = "svg",
["Nagaia"] = "svg",
["Poison Leecher"] = "svg",
["Poison Roamer"] = "svg",
["Poison Slime"] = "svg",
["Ranged Golem"] = "svg",
["Soul Taker Witch"] = "svg",
["Lava Golem"] = "svg",
["Puppet Master"] = "svg"
},
["prayer"] = {
-- ItA prayers
["Annihilation"] = "png",
["Brutality"] = "png",
["Cruelty"] = "png",
["Deadshot"] = "png",
["Devastation"] = "png",
["Dispersion"] = "png",
["Dissipation"] = "png",
["Drain"] = "png",
["Elusion"] = "png",
["Endure"] = "png",
["Evisceration"] = "png",
["Ferocity"] = "png",
["Focused"] = "png",
["Instability"] = "png",
["Magic Shroud"] = "png",
["Melee Shroud"] = "png",
["Menace"] = "png",
["Meticulous"] = "png",
["Obliteration"] = "png",
["Opress"] = "png",
["Piercer"] = "png",
["Ranged Shroud"] = "png",
["Ravage"] = "png",
["Renewal"] = "png",
["Savagery"] = "png",
["Siphon"] = "png",
["Terrorize"] = "png",
["Tyranny"] = "png",
["Unrelenting"] = "png",
["Vanish"] = "png",
["Volatility"] = "png"
},
["resource"] = {
-- Abyssal Township resources
["Obsidian"] = "png",
["Runestone"] = "png",
["Voidfire Ash"] = "png",
["Armour & Weaponry"] = "png",
["Abyssal Stone"] = "png",
["Abyssal Pieces"] = "png"
},
["rock"] = {
["Rune Essence"] = "png",
["Pure Essence"] = "png",
["Onyx"] = "png",
["Oricha"] = "png",
["Cerulean"] = "png",
["Crystal"] = "png",
["Pure Crystal"] = "png",
["Abycite"] = "png",
["Abyssal Essence"] = "png",
["Abyssium Ore"] = "png",
["Azurian Outcrop"] = "png",
["Brumite Ore"] = "png",
["Echocite"] = "png",
["Eventide Ore"] = "png",
["Gloomite Ore"] = "png",
["Moonstone"] = "png",
["Mysticite"] = "png",
["Netherite Ore"] = "png",
["Nightopal"] = "png",
["Obsidian Outcrop"] = "png",
["Shadowpearl"] = "png",
["Stellarite"] = "png",
["Voidheart"] = "png",
["Witherite Ore"] = "png"
},
["skill"] = {
["Corruption"] = "png",
["Harvesting"] = "png"
},
["effect"] = {
["effect"] = {
["Wither"] = "png",
["Wither"] = "png",
Line 486: Line 31:
["Drowsy"] = "png",
["Drowsy"] = "png",
["Fear Immunity"] = "png",
["Fear Immunity"] = "png",
["Silence Immunity"] = "png",
["Silence Immunity"] = "png"
},
},
["spell"] = {
["item"] = {
-- Abyssal spells
["Lemon"] = "jpg",
["Abyssal Blast"] = "png",
["Lemons"] = "jpg",
["Abyssal Eruption"] = "png",
["Lemonade"] = "jpg",
["Abyssal Surge"] = "png",
["Cloudburst Staff"] = "gif"
["Abyssal Wave"] = "png",
["Black Hole"] = "png",
["Brume Blast"] = "png",
["Brume Eruption"] = "png",
["Brume Surge"] = "png",
["Brume Wave"] = "png",
["Consuming Grasp"] = "png",
["Gloom Blast"] = "png",
["Gloom Eruption"] = "png",
["Gloom Surge"] = "png",
["Gloom Wave"] = "png",
["Infinite Void"] = "png",
["Madness"] = "png",
["Madness (ItA)"] = "png",
["Nether Blast"] = "png",
["Nether Eruption"] = "png",
["Nether Surge"] = "png",
["Nether Wave"] = "png",
["Null Sphere"] = "png",
["Pandemonium"] = "png",
["Tendril Slam"] = "png",
["VoidfireVolley"] = "png",
["Wither Blast"] = "png",
["Wither Eruption"] = "png",
["Wither Surge"] = "png",
["Wither Wave"] = "png"
},
["spellType"] = {
["Abyssal"] = "png"
},
["thieving"] = {
-- Abyssal NPCs
["Blighted Dryad"] = "png",
["Blighted Treant"] = "png",
["Dark Shade"] = "png",
["Dark Shadowmancer"] = "png",
["Dark Wraithlurker"] = "png",
["Silent Keeper"] = "png",
["Silent Poltergeist"] = "png",
["Silent Wanderer"] = "png",
["Turned Farmer"] = "png",
["Turned Man"] = "png",
["Turned Woman"] = "png",
["Void Envoy"] = "png",
["Void Gazer"] = "png",
["Void Shambler"] = "png",
["Withering Gargoyle"] = "png",
["Withering Golem"] = "png"
},
["township"] = {
-- Seasons, which are PNG unlike most other Township images
["Spring"] = "png",
["Summer"] = "png",
["Fall"] = "png",
["Winter"] = "png",
["Nightfall"] = "png",
["Solar Eclipse"] = "png",
["Eternal Darkness"] = "png",
["Soul Storage"] = "png"
},
["tree"] = {
-- Abyssal trees
["Abyssia Tree"] = "png",
["Brumia Tree"] = "png",
["Crumbletain Tree"] = "png",
["Eldria Tree"] = "png",
["Gloomia Tree"] = "png",
["Nethia Tree"] = "png",
["Plagueroot Tree"] = "png",
["Riftwood Tree"] = "png",
["Shadebark Tree"] = "png",
["Starwood Tree"] = "png",
["Twisted Tree"] = "png",
["Voidia Tree"] = "png",
["Whisperwillow Tree"] = "png",
["Withia Tree"] = "png"
},
["upgrade"] = {
["Abyssium Axe Coating"] = "png",
["Brumite Axe Coating"] = "png",
["Gloomite Axe Coating"] = "png",
["Witherite Axe Coating"] = "png",
["Netherite Axe Coating"] = "png",
["Abyssium Fishing Rod Coating"] = "png",
["Brumite Fishing Rod Coating"] = "png",
["Gloomite Fishing Rod Coating"] = "png",
["Witherite Fishing Rod Coating"] = "png",
["Netherite Fishing Rod Coating"] = "png",
["Abyssium Pickaxe Coating"] = "png",
["Brumite Pickaxe Coating"] = "png",
["Gloomite Pickaxe Coating"] = "png",
["Witherite Pickaxe Coating"] = "png",
["Netherite Pickaxe Coating"] = "png",
["Abyssium Harvester"] = "png",
["Brumite Harvester"] = "png",
["Gloomite Harvester"] = "png",
["Witherite Harvester"] = "png",
["Netherite Harvester"] = "png"
}
}
}
}
Line 604: Line 51:
--When calling for an icon for Key, replace with image Value, and optionally override type also
--When calling for an icon for Key, replace with image Value, and optionally override type also
local imgOverrides = {
local imgOverrides = {
['Combat'] = {'Combat Areas', 'areaCategory'},
['Easter'] = {'Easter Egg', 'item'},
['Guides'] = {"A Tale of the Past, a future's prophecy", 'item'},
['Alt Magic'] = 'Magic',
['Alt Magic'] = 'Magic',
['Alt. Magic'] = 'Magic',
['Alt. Magic'] = 'Magic',