diff --git a/SigCrafter/gitpod.yml b/SigCrafter/gitpod.yml new file mode 100644 index 0000000..e076324 --- /dev/null +++ b/SigCrafter/gitpod.yml @@ -0,0 +1,3 @@ +vscode: + extensions: + - redhat.java \ No newline at end of file diff --git a/SigCrafter/src/sig/SigCraft.java b/SigCrafter/src/sig/SigCraft.java index 828fbf6..24cce7a 100644 --- a/SigCrafter/src/sig/SigCraft.java +++ b/SigCrafter/src/sig/SigCraft.java @@ -84,14 +84,8 @@ public class SigCraft { List skills = new ArrayList(); skills.addAll(SKILLLIST); skills.removeIf((skill)->{return skill.lvReq>LEVEL;}); - for (Skill s : skills) { - Craft c = new Craft(CONTROL,LEVEL,CP,BASE_PROGRESS,PROGRESS_GOAL,QUALITY_GOAL,GUARANTEED,DURABILITY,CRAFT_PROGRESS,CRAFT_QUALITY,DURABILITY,CP,1,1,1,RECIPE_LEVEL,Status.NORMAL); - for (Buff b : BUFFLIST) { - c.BuffList.put(b.name,new Buff(b.name,b.stackCount)); - } - if (s.canBeUsed(c)) {s.useSkill(c);c.SkillList.add(s);} - if (c.craftSucceeded()) {SucceededCrafts.add(c);} - System.out.println(c); + Craft c = new Craft(CONTROL,LEVEL,CP,BASE_PROGRESS,PROGRESS_GOAL,QUALITY_GOAL,GUARANTEED,DURABILITY,CRAFT_PROGRESS,CRAFT_QUALITY,DURABILITY,CP,1,1,1,RECIPE_LEVEL,Status.NORMAL); + while (c.craft_progress