Skip to content

Commit b1648cd

Browse files
committed
lotv
1 parent 8e8e04b commit b1648cd

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

lib/esdb/match.rb

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,29 @@ def userdelete(user_id)
4444
end
4545

4646
def expansion_tag
47-
expansion == 0 ? 'WoL' : 'HotS'
47+
case expansion
48+
when 0
49+
return 'WoL'
50+
when 1
51+
return 'HotS'
52+
when 2
53+
return 'LotV'
54+
else
55+
return '????'
56+
end
4857
end
4958

5059
def expansion_long
51-
expansion == 1 ? 'Heart of the Swarm' : 'Wings of Liberty'
60+
case expansion
61+
when 0
62+
return 'Wings of Liberty'
63+
when 1
64+
return 'Heart of the Swarm'
65+
when 2
66+
return 'Legacy of the Void'
67+
else
68+
return 'Unrecognized Expansion'
69+
end
5270
end
5371
end
5472
end

0 commit comments

Comments
 (0)