Skip to content

Commit 150db9a

Browse files
committed
lots fun
1 parent 4551408 commit 150db9a

File tree

2 files changed

+67
-4
lines changed

2 files changed

+67
-4
lines changed

app/assets/javascripts/angular/helpers/sc2.js

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,65 @@ Sc2 = {
119119
'nydusworm': [100,100,0,0,'zerg'],
120120
'swarmhost': [200,100,3,0,'zerg'],
121121
'viper': [100,200,3,0,'zerg'],
122+
},
123+
'LotV': {
124+
'zealot': [100,0,2,0,'protoss'],
125+
'sentry': [50,100,2,0,'protoss'],
126+
'stalker': [125,50,2,0,'protoss'],
127+
'hightemplar': [50,150,2,0,'protoss'],
128+
'darktemplar': [125,125,2,0,'protoss'],
129+
'immortal': [250,100,4,0,'protoss'],
130+
'colossus': [300,200,6,0,'protoss'],
131+
'archon': [175,275,4,0,'protoss'],
132+
'observer': [25,75,1,0,'protoss'],
133+
'warpprism': [200,0,2,0,'protoss'],
134+
'phoenix': [150,100,2,0,'protoss'],
135+
'voidray': [250,150,3,0,'protoss'],
136+
'carrier': [350,250,6,0,'protoss'],
137+
'interceptor': [25,0,0,0,'protoss'],
138+
'mothership': [400,400,8,0,'protoss'],
139+
'photoncannon': [150,0,0,0,'protoss'],
140+
'oracle': [150,150,3,0,'protoss'],
141+
'tempest': [300,200,4,0,'protoss'],
142+
'mothershipcore': [100,100,2,0,'protoss'],
143+
'disruptor': [150,150,3,0,'protoss'],
144+
'adept': [100,25,2,0,'protoss'],
145+
'marine': [50,0,1,0,'terran'],
146+
'marauder': [100,25,2,0,'terran'],
147+
'reaper': [50,50,1,0,'terran'],
148+
'ghost': [200,100,2,0,'terran'],
149+
'hellion': [100,0,2,0,'terran'],
150+
'siegetank': [150,125,3,0,'terran'],
151+
'thor': [300,200,6,0,'terran'],
152+
'viking': [150,75,2,0,'terran'],
153+
'medivac': [100,100,2,0,'terran'],
154+
'banshee': [150,100,3,0,'terran'],
155+
'raven': [100,200,2,0,'terran'],
156+
'battlecruiser': [400,300,6,0,'terran'],
157+
'planetaryfortress': [150,150,0,0,'terran'],
158+
'missileturret': [100,0,0,0,'terran'],
159+
'widowmine': [75,25,2,0,'terran'],
160+
'cyclone': [150,150,3,0,'terran'],
161+
'liberator': [150,150,3,0,'terran'],
162+
'queen': [150,0,2,0,'zerg'],
163+
'zergling': [25,0,0.5,0,'zerg'],
164+
'baneling': [50,25,0.5,0,'zerg'],
165+
'roach': [75,25,2,0,'zerg'],
166+
'overseer': [50,50,0,0,'zerg'],
167+
'hydralisk': [100,50,2,0,'zerg'],
168+
'spinecrawler': [100,0,0,0,'zerg'],
169+
'sporecrawler': [75,0,0,0,'zerg'],
170+
'mutalisk': [100,100,2,0,'zerg'],
171+
'corruptor': [150,100,2,0,'zerg'],
172+
'broodlord': [150,150,4,0,'zerg'],
173+
'infestor': [100,150,2,0,'zerg'],
174+
'infestedterran': [0,0,0,0,'zerg'],
175+
'ultralisk': [300,200,6,0,'zerg'],
176+
'nydusworm': [100,100,0,0,'zerg'],
177+
'swarmhost': [200,100,3,0,'zerg'],
178+
'viper': [100,200,3,0,'zerg'],
179+
'lurker': [150,150,3,0,'zerg'],
180+
'ravager': [100,100,3,0,'zerg'],
122181
}
123182
},
124183

@@ -221,5 +280,5 @@ Sc2.armyInfo = function(expansion_tag, unitname, infonum) {
221280
}
222281

223282
Sc2.isArmyUnit = function(unitname) {
224-
return (unitname in Sc2.armyUnits['HotS']);
283+
return (unitname in Sc2.armyUnits['LotV']);
225284
}

app/assets/javascripts/angular/resources/match.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@ gg.factory('Match', ['$ggResource', '$compile', 'Matchnote', function($ggResourc
180180
var Match = $ggResource('http://' + gg.settings.api_host + '/api/v1/matches');
181181

182182
Object.defineProperty(Match.prototype, 'expansion_tag', {
183-
get: function() {
184-
return this.expansion == 0 ? 'WoL' : 'HotS';
185-
}
183+
get: function() {
184+
switch (this.expansion) {
185+
case 0: return 'WoL';
186+
case 1: return 'HotS';
187+
case 2: return 'LotV';
188+
}
189+
}
186190
});
187191

188192

0 commit comments

Comments
 (0)