From 0752ca4dd3cb88fc683661c6e3959f699523cf56 Mon Sep 17 00:00:00 2001 From: idunnololz Date: Sun, 7 Dec 2014 20:03:40 -0800 Subject: [PATCH] Temp fix for new league champion skill data format --- app/src/main/java/com/ggstudios/lolcraft/Build.java | 1 + app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/ggstudios/lolcraft/Build.java b/app/src/main/java/com/ggstudios/lolcraft/Build.java index c6a0ec9..4402bde 100644 --- a/app/src/main/java/com/ggstudios/lolcraft/Build.java +++ b/app/src/main/java/com/ggstudios/lolcraft/Build.java @@ -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); diff --git a/app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java b/app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java index 8074b69..cee4745 100644 --- a/app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java +++ b/app/src/main/java/com/ggstudios/lolcraft/LibraryUtils.java @@ -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++) {