diff --git a/src/data/JsonParser.java b/src/data/JsonParser.java index 846136e..5b62333 100644 --- a/src/data/JsonParser.java +++ b/src/data/JsonParser.java @@ -150,9 +150,7 @@ public static List getSpells() throws FileNotFoundException, JSONException (String) spellHashMap.get("targetType") ); - } catch (Exception e) { - e.printStackTrace(); - } + } catch (Exception e) {} spell.setTargetType(targetType); List buffs = (List) spellHashMap.get("effect"); for(Object buffObject : buffs) { diff --git a/src/data/spell.json b/src/data/spell.json index f5eae1e..67781b1 100644 --- a/src/data/spell.json +++ b/src/data/spell.json @@ -74,7 +74,7 @@ "name": "Fireball", "price": 600, "manaPoint": 3, - "targetType": {}, + "targetType": "", "effect": [] }, { @@ -95,7 +95,7 @@ "name": "Poison Lake", "price": 900, "manaPoint": 5, - "targetType": {}, + "targetType": "", "effect": [] }, {