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