Skip to content

Commit

Permalink
Auto-assign beacons to recipes before modules.
Browse files Browse the repository at this point in the history
This way, effectivity modules will fill to the limit or to the point of counteracting the beacons' effects, rather than stopping at 80% of the 0-beacon consumption.
  • Loading branch information
DaleStan authored and shpaass committed May 10, 2024
1 parent 950402e commit 34a23e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yafc.Model/Model/ModuleFillerParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public void AutoFillModules(RecipeParameters recipeParams, Recipe recipe, Entity
}

public void GetModulesInfo(RecipeParameters recipeParams, Recipe recipe, EntityCrafter entity, Goods fuel, ref ModuleEffects effects, ref RecipeParameters.UsedModule used) {
AutoFillModules(recipeParams, recipe, entity, fuel, ref effects, ref used);
AutoFillBeacons(recipeParams, recipe, entity, fuel, ref effects, ref used);
AutoFillModules(recipeParams, recipe, entity, fuel, ref effects, ref used);
}

private void AddModuleSimple(Item module, ref ModuleEffects effects, EntityCrafter entity, ref RecipeParameters.UsedModule used) {
Expand Down

0 comments on commit 34a23e0

Please sign in to comment.