Skip to content

Commit

Permalink
Temp fix for new league champion skill data format
Browse files Browse the repository at this point in the history
  • Loading branch information
idunnololz committed Dec 8, 2014
1 parent 44a9781 commit 0752ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/ggstudios/lolcraft/Build.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public class Build {
// special keys...
statKeyToIndex.put("@special.BraumWArmor", STAT_NULL);
statKeyToIndex.put("@special.BraumWMR", STAT_NULL);
statKeyToIndex.put("@special.jaycew", STAT_NULL);

statKeyToIndex.put("@cooldownchampion", STAT_CD_MOD);
statKeyToIndex.put("@stacks", STAT_STACKS);
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ public static ChampionInfo completeChampionInfo(Context con, ChampionInfo info)
//DebugLog.d(TAG, "Data: " + champData.toString());
//DebugLog.d(TAG, "Data: " + skills.toString());

Skill[] skills = new Skill[5];
Skill[] skills = new Skill[skillsJson.length() + 1];

String[] keys = {"q", "w", "e", "r"};
String[] keys = {"q", "w", "e", "r", "", "", "", "", "", "", "", "", "", "", "",};

skills[0] = new ChampionInfo.Passive();
for (int i = 1; i < skills.length; i++) {
Expand Down

0 comments on commit 0752ca4

Please sign in to comment.