Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getcolor() {
- var i,
- item = getUnit(101),
- colors = {
- "Saintly": "Dark Gold",
- "Holy": "Dark Gold",
- "Godly": "Dark Gold",
- "Visionary": "White",
- "Glowing": "Light Yellow",
- "Mnemonic": "Crystal Blue",
- "Psychic": "Light Gold",
- "Veteran's": "Light Gold",
- "of the Mammoth": "Crystal Red",
- "of Frost Shield": "Light Blue",
- "of Nova Shield": "Crystal Blue",
- "Faithful": "White",
- "Dragon's": "Crystal Blue",
- "of Spikes": "Orange",
- "of Razors": "Orange",
- "of Stability": "Dark Yellow",
- "of the Colosuss": "Crystal Red",
- "of Defiance": "Dark Red",
- "of the Titan": "Dark Gold",
- "Vulpine": "Crystal Blue",
- "Shimmering ": "Light Purple",
- "Rainbow": "Light Purple",
- "Scintillating": "Light Purple",
- "Prismatic": "Light Purple",
- "Warden's": "Light Gold",
- "Hawk Branded": "Light Gold",
- "Commander's": "Light Gold",
- "Priest's": "Crystal Green",
- "Caretaker's": "Light Gold",
- "Terrene": "Light Gold",
- "Feral": "Light Gold",
- "Hierophant's": "Crystal Green",
- "Resonant": "Light Gold",
- "Raging ": "Light Gold",
- "Veteran's": "Light Gold",
- "Berserker's": "Crystal Green",
- "Blighting": "Light Gold",
- "Noxious": "Light Gold",
- "Mojo": "Light Gold",
- "Necromancer's": "Crystal Green",
- "Sensei's": "Light Gold",
- "Bowyer's": "Light Gold",
- "Gymnastic": "Light Gold",
- "Spearmaiden's": "Light Gold",
- //"of Alacrity": "Dark Yellow", // on gloves, conflicts with weapons
- "of Wealth": "Light Gold",
- "of Fortune": "Light Gold",
- "Charged": "Light Gold",
- "Blazing": "Light Gold",
- "Freezing": "Light Gold",
- "Trickster's": "Light Gold",
- "Witch-hunter's": "Crystal Green",
- "Arch-Angel's": "Crystal Green",
- "Valkyrie's": "Crystal Green",
- "of Perfection": "Dark Gold",
- "of Regrowth": "Crystal Red",
- "of Atlas": "Dark Gold",
- "Massive": "Dark Gold",
- "Savage": "Dark Gold",
- "Merciless": "Dark Gold",
- "Ferocious": "Black",
- "Grinding": "White",
- "Cruel": "Black",
- "Gold": "Light Gold",
- "Platinum": "Light Gold",
- "Meteoric": "Light Gold",
- "Strange": "Light Gold",
- "Weird": "Light Gold",
- "Knight's": "Dark Gold",
- "Lord's": "Dark Gold",
- "Fool's": "White",
- "King's": "Dark Gold",
- "Master's": "Dark Gold",
- "Elysian": "Dark Gold",
- "Snowy": "Light Blue",
- "Shivering": "Light Blue",
- "Boreal": "Light Blue",
- "Hibernal": "Light Blue",
- "Fiery": "Dark Red",
- "Smoldering": "Dark Red",
- "Smoking": "Dark Red",
- "Flaming": "Dark Red",
- "Condensing": "Dark Red",
- "Static": "Light Yellow",
- "Glowing": "Light Yellow",
- "Buzzing": "Light Yellow",
- "Arcing": "Light Yellow",
- "Shocking": "Light Yellow",
- "Septic": "Dark Green",
- "Foul": "Dark Green",
- "Corrosive": "Dark Green",
- "Toxic": "Dark Green",
- "of Quickness": "Dark Yellow",
- "of the Glacier": "Dark Blue",
- "of Winter": "Dark Blue",
- "of Burning": "Dark Red",
- "of Incineration": "Dark Red",
- "of Thunder": "Dark Yellow",
- "of Storms": "Dark Yellow",
- "of Carnage": "Black",
- "of Slaughter": "Black",
- "of Performance": "Black",
- "of Transcendence": "Black",
- "of Pestilence": "Dark Green",
- "of Anthrax": "Dark Green",
- "of the Locust": "Crystal Red",
- "of the Lamprey": "Crystal Red",
- "of the Wraith": "Crystal Red",
- "of the Vampire": "Crystal Red",
- "of the Giant": "Dark Gold",
- "of Icebolt": "Light Blue",
- "of Nova": "Crystal Blue",
- "Screaming": "Orange",
- "Howling": "Orange",
- "Wailing": "Orange",
- "Sapphire": "Light Blue",
- "Ruby": "Light Red",
- "Amber": "Light Yellow",
- "Emerald": "Crystal Green",
- "of Wizardry": "Dark Gold"
- };
- for (i = 0; i < item.suffix.length; i += 1) {
- if (colors.hasOwnProperty(item.suffix[i])) {
- return colors[item.suffix[i]];
- }
- }
- for (i = 0; i < item.prefix.length; i += 1) {
- if (colors.hasOwnProperty(item.prefix[i])) {
- return colors[item.prefix[i]];
- }
- }
- return "none";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement