Compare commits
4 Commits
1d5c39b9e5
...
ecf0014683
| Author | SHA1 | Date |
|---|---|---|
|
|
ecf0014683 | |
|
|
22b02b6495 | |
|
|
b2d23b331c | |
|
|
7e5c0e8e35 |
File diff suppressed because it is too large
Load Diff
|
|
@ -7,6 +7,7 @@ import satisfactory.items.Recipe;
|
|||
import satisfactory.items.SumResult;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
|
||||
import static satisfactory.Utils.*;
|
||||
|
|
@ -137,7 +138,33 @@ public class Test {
|
|||
*/
|
||||
//planFor("aluminumIngot", new Production(Database.AluminumIngot, 240));
|
||||
//planFor("fusedFrame", new Production(Database.FusedModularFrame, 1.5));
|
||||
planFor("p4", new Production(Database.AssemblyDirectorSystem,4), new Production(Database.MagneticFieldGenerator, 4), new Production(Database.ThermalPropulsionRocket, 1), new Production(Database.NuclearPasta, 1));
|
||||
/*planFor(
|
||||
"p4",
|
||||
new Production(Database.AssemblyDirectorSystem,4),
|
||||
new Production(Database.MagneticFieldGenerator, 4),
|
||||
new Production(Database.ThermalPropulsionRocket, 1),
|
||||
new Production(Database.NuclearPasta, 1)
|
||||
);
|
||||
planFor(
|
||||
"p4_nuclearPasta",
|
||||
new Production(Database.NuclearPasta, 1)
|
||||
);
|
||||
planFor(
|
||||
"p4_nuclearPasta_200copperpowder",
|
||||
new Production(Database.CopperPowder, 200)
|
||||
);
|
||||
planFor("turboFuel", new Production(Database.Turbofuel, 1));*/
|
||||
|
||||
// 1.0
|
||||
|
||||
//planFor("p1_1.0", new Production(Database.SmartPlating, 4));
|
||||
//planFor("2xmk2impure_mod_frame", new Production(Database.ModularFrame, 5));
|
||||
Optional<Recipe> castScrewOpt = Database.Screw.getRecipes().stream().filter(recipe -> "Cast Screw".equals(recipe.getName())).findFirst();
|
||||
Recipe castScrew = castScrewOpt.get();
|
||||
Database.Screw.setPreference(castScrew);
|
||||
//planFor("2xmk2impure_mod_frame_cast", new Production(Database.ModularFrame, 5));
|
||||
//planFor("p2_1.0_cast", new Production(Database.SmartPlating, 4), new Production(Database.VersatileFrameWork, 4), new Production(Database.AutomatedWiring, 0.25));
|
||||
planFor("p2_1.0_cast", new Production(Database.SmartPlating, 8), new Production(Database.VersatileFrameWork, 8), new Production(Database.AutomatedWiring, 0.5));
|
||||
}
|
||||
|
||||
private static void planFor(Item item, int amount, String name) {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public class RecipeBuilder {
|
|||
if (outputs.isEmpty()){
|
||||
throw new IllegalStateException("no outputs set");
|
||||
}
|
||||
Recipe recipe = new Recipe(duration, inputs,outputs, byProducts,building,name,isHandCraftable );
|
||||
Recipe recipe = new Recipe(duration, inputs,outputs, byProducts, building, name, isHandCraftable);
|
||||
outputs.keySet().forEach(item -> item.add(recipe));
|
||||
return recipe;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,4 +72,9 @@ class ItemTest {
|
|||
test("aluminumIngot", Database.AluminumIngot);
|
||||
}
|
||||
|
||||
@Test
|
||||
void productionBattery() {
|
||||
test("battery", Database.Battery);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -107,6 +107,13 @@ public class ValidatedValues {
|
|||
ref.put(item, 1.0);
|
||||
values.put(item, ref);
|
||||
}
|
||||
{
|
||||
Item item = Database.Battery;
|
||||
Map<Item, Double> ref = new HashMap<>();
|
||||
ref.put(Database.Water, 0.0); // TODO: get values
|
||||
ref.put(item, 1d);
|
||||
values.put(item, ref);
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<Item, Double> get(Item item) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue