mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(cheatenabler): keep the rare-recipe preference for belt statistics
The planner migration switched belt-signal upstream statistics to each item's standard recipe. Capture the native RecipeProto.Explicit flag in the production catalog and let the belt preset prefer explicit recipes again, which include the rare-resource alternatives such as Graphene from Fire Ice and Diamond from Kimberlite Ore. As before, explicit recipes that consume their own product (X-ray Cracking and Reforming Refine) never supply an item, and natural items stay raw. Proliferation modes now follow the selected recipe.
This commit is contained in:
1 parent
402d4008fb
commit
c000debdc1
6 files changed
+51
-8
No files matched your search
@@ -69,7 +69,8 @@ public static class ProductionCatalogReader
|
||||
recipe.Results.Length != recipe.ResultCounts.Length) continue;
|
||||
|
||||
recipes.Add(new ProductionRecipe(recipe.ID, MapCategory(recipe.Type), recipe.TimeSpend, recipe.productive,
|
||||
PairFlows(recipe.Items, recipe.ItemCounts), PairFlows(recipe.Results, recipe.ResultCounts)));
|
||||
PairFlows(recipe.Items, recipe.ItemCounts), PairFlows(recipe.Results, recipe.ResultCounts),
|
||||
recipe.Explicit));
|
||||
// Follow native maincraft selection (lowest result index, then recipe order), but skip recipes such as
|
||||
// Reforming Refine that consume their own product and so cannot start its production chain.
|
||||
for (var resultIndex = 0; resultIndex < recipe.Results.Length; resultIndex++)
|
||||
|
||||
Reference in new issue
Block a user