Compare commits

...

4 Commits

Author SHA1 Message Date
agp8x ecf0014683 update 1.0 until early p3, add more alts 2024-09-22 22:55:27 +02:00
agp8x 22b02b6495 catchup misc 2024-09-11 21:36:17 +02:00
agp8x b2d23b331c duration fixes 2024-03-08 21:59:17 +01:00
agp8x 7e5c0e8e35 add alts, refactor recipes 2024-03-08 21:33:11 +01:00
5 changed files with 654 additions and 416 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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) {

View File

@ -72,4 +72,9 @@ class ItemTest {
test("aluminumIngot", Database.AluminumIngot);
}
@Test
void productionBattery() {
test("battery", Database.Battery);
}
}

View File

@ -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) {