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
6d86e1f5dd
commit
a6225cf750
6 files changed
+51
-8
No files matched your search
@@ -180,16 +180,20 @@ public sealed class ProductionRecipe
|
||||
public ProductionRecipeCategory Category { get; }
|
||||
public int TimeTicks { get; }
|
||||
public bool Productive { get; }
|
||||
// Native RecipeProto.Explicit, set for named recipes such as the rare-resource alternatives.
|
||||
public bool Explicit { get; }
|
||||
public IReadOnlyDictionary<int, double> Inputs { get; }
|
||||
public IReadOnlyDictionary<int, double> Outputs { get; }
|
||||
|
||||
public ProductionRecipe(int id, ProductionRecipeCategory category, int timeTicks, bool productive,
|
||||
IEnumerable<KeyValuePair<int, double>> inputs, IEnumerable<KeyValuePair<int, double>> outputs)
|
||||
IEnumerable<KeyValuePair<int, double>> inputs, IEnumerable<KeyValuePair<int, double>> outputs,
|
||||
bool explicitRecipe = false)
|
||||
{
|
||||
Id = id;
|
||||
Category = category;
|
||||
TimeTicks = timeTicks;
|
||||
Productive = productive;
|
||||
Explicit = explicitRecipe;
|
||||
Inputs = CopyFlows(inputs);
|
||||
Outputs = CopyFlows(outputs);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user