Skip to content

Commit

Permalink
Minion Custum Maker added. Custum JSON finshed!
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Sharifi committed Jun 25, 2019
1 parent e8c3c36 commit 1e3b1b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/json/MinionMaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,11 @@ public static void main() {
6, -1, AttackMode.MELEE, null, true);
saveToFile(minion);
}

public static void custumMinion(String name, int cost, int manaCost, int hp,
int ap, int range, AttackMode attackMode, Spell spell){
Minion minion = new Minion(name, cost, manaCost, hp,
ap, range, attackMode, spell);
saveToFile(minion);
}
}

0 comments on commit 1e3b1b2

Please sign in to comment.