How to distinguish HotS s2gs from WoL s2gs #103

Closed
dsjoerg opened this Issue Mar 7, 2013 · 1 comment

2 participants

@dsjoerg
Collaborator

I thought there was already an issue for this but I couldn't find it.

It will also be important for us to distinguish HotS s2gs from WoL s2gs. When computing stats for many purposes it will be important not to mix the two.

@GraylinKim
Owner

We can try a similar technique for summary files by using the localization sheets instead of the map dependencies:

dependencies = [sheet[1] for sheet in self.lang_sheets['enUS']]
if 'Swarm (Mod)' in dependencies:
    self.expansion = 'HotS'
elif 'Liberty (Mod)' in dependencies:
    self.expansion = 'WoL'
else:
    self.expansion = ''

I'll push this soon.

@GraylinKim GraylinKim closed this Mar 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment