Skip to content

Commit

Permalink
delete printStackTrace in spell loading catch
Browse files Browse the repository at this point in the history
  • Loading branch information
alishirmohammadi committed May 7, 2019
1 parent 1e8e1cd commit a21e224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/data/JsonParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ public static List<Card> getSpells() throws FileNotFoundException, JSONException
(String)
spellHashMap.get("targetType")
);
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {}
spell.setTargetType(targetType);
List<Object> buffs = (List<Object>) spellHashMap.get("effect");
for(Object buffObject : buffs) {
Expand Down
4 changes: 2 additions & 2 deletions src/data/spell.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"name": "Fireball",
"price": 600,
"manaPoint": 3,
"targetType": {},
"targetType": "",
"effect": []
},
{
Expand All @@ -95,7 +95,7 @@
"name": "Poison Lake",
"price": 900,
"manaPoint": 5,
"targetType": {},
"targetType": "",
"effect": []
},
{
Expand Down

0 comments on commit a21e224

Please sign in to comment.