Calculate 3 strategies.

main
Nic0Nic0Nii 3 years ago
parent 9b745f8ebc
commit e7b1ee7d3c
  1. 52
      SigCrafter/src/sig/SigCraft.java
  2. 1
      SigCrafter/src/sig/skills/BasicTouch.java
  3. 1
      SigCrafter/src/sig/skills/StandardTouch.java

@ -125,6 +125,58 @@ public class SigCraft {
qualityCPRemaining = c1.craft_cp;
System.out.println("\tUsing standard rotation for Progress. Quality CP Available: "+qualityCPRemaining);
}
//Can we just straight up craft?
List<Skill> quality_rotation1 = new ArrayList<Skill>();
Craft c3 = new Craft(CONTROL,LEVEL,CP,BASE_PROGRESS,PROGRESS_GOAL,QUALITY_GOAL,GUARANTEED,DURABILITY,CRAFT_PROGRESS,CRAFT_QUALITY,DURABILITY,qualityCPRemaining,1,1,1,RECIPE_LEVEL,Status.NORMAL,BUFFLIST);
boolean combo=false;
while (c3.craft_quality<c3.quality_goal && c3.craft_durability>progressSteps*10) {
s = !combo?SKILLLIST.get("Basic Touch"):SKILLLIST.get("Standard Touch");
s.useSkill(c3);
quality_rotation1.add(s);
combo=!combo;
}
System.out.println("Raw Quality Rotation leaves "+c3.craft_cp+" CP, "+c3.craft_durability+" durability, "+(c3.quality_goal-c3.craft_quality)+" quality from the goal.");
//Add Inner Quiet
List<Skill> quality_rotation2 = new ArrayList<Skill>();
Craft c4 = new Craft(CONTROL,LEVEL,CP,BASE_PROGRESS,PROGRESS_GOAL,QUALITY_GOAL,GUARANTEED,DURABILITY,CRAFT_PROGRESS,CRAFT_QUALITY,DURABILITY,qualityCPRemaining,1,1,1,RECIPE_LEVEL,Status.NORMAL,BUFFLIST);
s = SKILLLIST.get("Inner Quiet");
s.useSkill(c4);
quality_rotation2.add(s);
combo=false;
while (c4.craft_quality<c4.quality_goal && c4.craft_durability>progressSteps*10) {
s = !combo?SKILLLIST.get("Basic Touch"):SKILLLIST.get("Standard Touch");
s.useSkill(c4);
quality_rotation2.add(s);
combo=!combo;
}
System.out.println("Raw Quality + Inner Quiet Rotation leaves "+c4.craft_cp+" CP, "+c4.craft_durability+" durability, "+(c4.quality_goal-c4.craft_quality)+" quality from the goal.");
//Add Innovation
List<Skill> quality_rotation3 = new ArrayList<Skill>();
Craft c5 = new Craft(CONTROL,LEVEL,CP,BASE_PROGRESS,PROGRESS_GOAL,QUALITY_GOAL,GUARANTEED,DURABILITY,CRAFT_PROGRESS,CRAFT_QUALITY,DURABILITY,qualityCPRemaining,1,1,1,RECIPE_LEVEL,Status.NORMAL,BUFFLIST);
List<Skill> current_rotation = quality_rotation3;
Craft current_craft = c5;
s = SKILLLIST.get("Inner Quiet");
s.useSkill(current_craft);
current_rotation.add(s);
s = SKILLLIST.get("Innovation");
s.useSkill(current_craft);
current_rotation.add(s);
combo=false;
while (current_craft.craft_quality<current_craft.quality_goal && current_craft.craft_durability>progressSteps*10) {
if (current_craft.BuffList.get("Innovation").stackCount==0) {
s = SKILLLIST.get("Innovation");
s.useSkill(current_craft);
current_rotation.add(s);
}
s = !combo?SKILLLIST.get("Basic Touch"):SKILLLIST.get("Standard Touch");
s.useSkill(current_craft);
current_rotation.add(s);
combo=!combo;
}
System.out.println("Raw Quality + Inner Quiet + Innovation Rotation leaves "+current_craft.craft_cp+" CP, "+current_craft.craft_durability+" durability, "+(current_craft.quality_goal-current_craft.craft_quality)+" quality from the goal.");
}
}

@ -14,6 +14,7 @@ public class BasicTouch extends Skill {
super.useSkill(c);
c.craft_quality += 1 * c.quality_mult * (0.37*c.control+32.6)*(1-0.05*Math.min(Math.max(c.recipe_level-c.level,0),5));
c.craft_durability -= 10 * c.durability_mult;
if (c.BuffList.get("Inner Quiet").stackCount>0) {c.BuffList.get("Inner Quiet").stackCount++;}
}
}

@ -19,6 +19,7 @@ public class StandardTouch extends Skill {
super.useSkill(c);
c.craft_quality += 1.25 * c.quality_mult * (0.37*c.control+32.6)*(1-0.05*Math.min(Math.max(c.recipe_level-c.level,0),5));
c.craft_durability -= 10 * c.durability_mult;
if (c.BuffList.get("Inner Quiet").stackCount>0) {c.BuffList.get("Inner Quiet").stackCount++;}
}
}

Loading…
Cancel
Save