From 1e3b1b2922989b8ef1d92ed32c4ff73560f6800f Mon Sep 17 00:00:00 2001 From: M-Sharifi Date: Tue, 25 Jun 2019 16:17:45 +0430 Subject: [PATCH] Minion Custum Maker added. Custum JSON finshed! --- src/json/MinionMaker.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/json/MinionMaker.java b/src/json/MinionMaker.java index 6d5821b..6613b31 100644 --- a/src/json/MinionMaker.java +++ b/src/json/MinionMaker.java @@ -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); + } }