@@ -27,6 +27,58 @@ module Starcraft2
2727 'tw.battle.net' => 'fea'
2828 }
2929
30+ # The armory uses spritemaps that are sequentially named and have a fixed
31+ # 6x6 grid. We'll simply use the portrait names, left to right, top to
32+ # bottom.
33+ #
34+ # Note: I couldn't identify the exact names of some of these and instead of
35+ # guessing, I didn't name them. Some appear in multiple files too, which
36+ # is odd.
37+ #
38+ # I decided th pad the arrays even if there are no images to make various
39+ # helping functionality (e.g. retrieving position for a name) easier.
40+ # I've also kept them in 6x6 here for better overview.
41+ PORTRAITS = [
42+ # http://eu.battle.net/sc2/static/local-common/images/sc2/portraits/0-75.jpg?v42
43+ [ 'Kachinsky' , 'Cade' , 'Thatcher' , 'Hall' , 'Tiger Marine' , 'Panda Marine' ,
44+ 'General Warfield' , 'Jim Raynor' , 'Arcturus Mengsk' , 'Sarah Kerrigan' , 'Kate Lockwell' , 'Rory Swann' ,
45+ 'Egon Stetmann' , 'Hill' , 'Adjutant' , 'Dr. Ariel Hanson' , 'Gabriel Tosh' , 'Matt Horner' ,
46+ # Could not identify in order: Raynor in a Suit? Bullmarine? Nova?
47+ # Fiery Marine?
48+ 'Tychus Findlay' , 'Zeratul' , 'Valerian Mengsk' , 'Spectre' , '?' , '?' ,
49+ '?' , '?' , 'SCV' , 'Firebat' , 'Vulture' , 'Hellion' ,
50+ 'Medic' , 'Spartan Company' , 'Wraith' , 'Diamondback' , 'Probe' , 'Scout' ] ,
51+
52+ # http://eu.battle.net/sc2/static/local-common/images/sc2/portraits/1-75.jpg?v42
53+ # Special Rewards - couldn't identify most of these.
54+ [ '?' , '?' , '?' , '?' , '?' , 'PanTerran Marine' ,
55+ '?' , '?' , '?' , '?' , '' , '' ,
56+ '' , '' , '' , '' , '' , '' ,
57+ '' , '' , '' , '' , '' , '' ,
58+ '' , '' , '' , '' , '' , '' ,
59+ '' , '' , '' , '' , '' , '' ] ,
60+
61+ # http://eu.battle.net/sc2/static/local-common/images/sc2/portraits/2-75.jpg?v42
62+ [ 'Ghost' , 'Thor' , 'Battlecruiser' , 'Nova' , 'Zealot' , 'Stalker' ,
63+ 'Phoenix' , 'Immortal' , 'Void Ray' , 'Colossus' , 'Carrier' , 'Tassadar' ,
64+ 'Reaper' , 'Sentry' , 'Overseer' , 'Viking' , 'High Templar' , 'Mutalisk' ,
65+ # Unidentified: Bird? Dog? Robot?
66+ 'Banshee' , 'Hybrid Destroyer' , 'Dark Voice' , '?' , '?' , '?' ,
67+ # Unidentified: Worgen? Goblin? Chef?
68+ 'Orian' , 'Wolf Marine' , 'Murloc Marine' , '?' , '?' , 'Zealot Chef' ,
69+ # Unidentified: KISS Marine? Dragon Marine? Dragon? Another Raynor?
70+ 'Stank' , 'Ornatus' , '?' , '?' , '?' , '?' ] ,
71+
72+ # http://eu.battle.net/sc2/static/local-common/images/sc2/portraits/3-75.jpg?v42
73+ [ 'Urun' , 'Nyon' , 'Executor' , 'Mohandar' , 'Selendis' , 'Artanis' ,
74+ 'Drone' , 'Infested Colonist' , 'Infested Marine' , 'Corruptor' , 'Aberration' , 'Broodlord' ,
75+ 'Overmind' , 'Leviathan' , 'Overlord' , 'Hydralisk Marine' , "Zer'atai Dark Templar" , 'Goliath' ,
76+ # Unidentified: Satan Marine?
77+ 'Lenassa Dark Templar' , 'Mira Han' , 'Archon' , 'Hybrid Reaver' , 'Predator' , '?' ,
78+ 'Zergling' , 'Roach' , 'Baneling' , 'Hydralisk' , 'Queen' , 'Infestor' ,
79+ 'Ultralisk' , 'Queen of Blades' , 'Marine' , 'Marauder' , 'Medivac' , 'Siege Tank' ]
80+ ]
81+
3082 # This is a convenience method that chains calls to ProfileScraper,
3183 # followed by a scrape of each league returned in the `leagues` array
3284 # in the profile_data. The end result is a fully scraped profile with
0 commit comments